From fb5cc40c111010e5433aba0e7b2eaddf68ecf40b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:04:59 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1/CertificateAuthorityServiceGrpc.java | 3935 ------- .../CertificateAuthorityServiceGrpc.java | 2914 ------ .../v1/CertificateAuthorityServiceClient.java | 165 +- .../CertificateAuthorityServiceSettings.java | 48 +- .../security/privateca/v1/gapic_metadata.json | 0 .../security/privateca/v1/package-info.java | 0 .../stub/CertificateAuthorityServiceStub.java | 6 +- ...rtificateAuthorityServiceStubSettings.java | 137 +- ...ficateAuthorityServiceCallableFactory.java | 0 .../GrpcCertificateAuthorityServiceStub.java | 1 + ...ficateAuthorityServiceCallableFactory.java | 105 + ...tpJsonCertificateAuthorityServiceStub.java | 2476 +++++ .../CertificateAuthorityServiceClient.java | 133 +- .../CertificateAuthorityServiceSettings.java | 45 +- .../privateca/v1beta1/gapic_metadata.json | 0 .../privateca/v1beta1/package-info.java | 0 .../stub/CertificateAuthorityServiceStub.java | 6 +- ...rtificateAuthorityServiceStubSettings.java | 122 +- ...ficateAuthorityServiceCallableFactory.java | 0 .../GrpcCertificateAuthorityServiceStub.java | 1 + ...ficateAuthorityServiceCallableFactory.java | 105 + ...tpJsonCertificateAuthorityServiceStub.java | 1560 +++ .../google/cloud/location/MockLocations.java | 0 .../cloud/location/MockLocationsImpl.java | 0 ...ateAuthorityServiceClientHttpJsonTest.java | 3653 +++++++ ...CertificateAuthorityServiceClientTest.java | 0 .../v1/MockCertificateAuthorityService.java | 0 .../MockCertificateAuthorityServiceImpl.java | 0 ...ateAuthorityServiceClientHttpJsonTest.java | 2420 +++++ ...CertificateAuthorityServiceClientTest.java | 0 .../MockCertificateAuthorityService.java | 0 .../MockCertificateAuthorityServiceImpl.java | 0 .../java/com/google/iam/v1/MockIAMPolicy.java | 0 .../com/google/iam/v1/MockIAMPolicyImpl.java | 0 .../v1/CertificateAuthorityServiceGrpc.java | 2776 +++++ .../ActivateCertificateAuthorityRequest.java | 763 +- ...eCertificateAuthorityRequestOrBuilder.java | 73 +- .../cloud/security/privateca/v1/CaPool.java | 5320 ++++------ .../security/privateca/v1/CaPoolName.java | 0 .../privateca/v1/CaPoolOrBuilder.java | 118 +- .../security/privateca/v1/Certificate.java | 2660 ++--- .../privateca/v1/CertificateAuthority.java | 4091 +++----- .../v1/CertificateAuthorityName.java | 0 .../v1/CertificateAuthorityOrBuilder.java | 354 +- .../privateca/v1/CertificateConfig.java | 1325 +-- .../v1/CertificateConfigOrBuilder.java | 81 +- .../privateca/v1/CertificateDescription.java | 3130 ++---- .../v1/CertificateDescriptionOrBuilder.java | 162 +- .../v1/CertificateExtensionConstraints.java | 848 +- ...tificateExtensionConstraintsOrBuilder.java | 99 +- .../v1/CertificateIdentityConstraints.java | 486 +- ...rtificateIdentityConstraintsOrBuilder.java | 52 +- .../privateca/v1/CertificateName.java | 0 .../privateca/v1/CertificateOrBuilder.java | 288 +- .../v1/CertificateRevocationList.java | 2243 ++-- .../v1/CertificateRevocationListName.java | 0 .../CertificateRevocationListOrBuilder.java | 181 +- .../privateca/v1/CertificateTemplate.java | 1497 +-- .../privateca/v1/CertificateTemplateName.java | 0 .../v1/CertificateTemplateOrBuilder.java | 175 +- .../privateca/v1/CreateCaPoolRequest.java | 646 +- .../v1/CreateCaPoolRequestOrBuilder.java | 73 +- .../v1/CreateCertificateAuthorityRequest.java | 713 +- ...eCertificateAuthorityRequestOrBuilder.java | 76 +- .../v1/CreateCertificateRequest.java | 812 +- .../v1/CreateCertificateRequestOrBuilder.java | 91 +- .../v1/CreateCertificateTemplateRequest.java | 709 +- ...teCertificateTemplateRequestOrBuilder.java | 76 +- .../privateca/v1/DeleteCaPoolRequest.java | 421 +- .../v1/DeleteCaPoolRequestOrBuilder.java | 44 +- .../v1/DeleteCertificateAuthorityRequest.java | 544 +- ...eCertificateAuthorityRequestOrBuilder.java | 50 +- .../v1/DeleteCertificateTemplateRequest.java | 467 +- ...teCertificateTemplateRequestOrBuilder.java | 44 +- .../DisableCertificateAuthorityRequest.java | 477 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../v1/EnableCertificateAuthorityRequest.java | 470 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../privateca/v1/FetchCaCertsRequest.java | 421 +- .../v1/FetchCaCertsRequestOrBuilder.java | 44 +- .../privateca/v1/FetchCaCertsResponse.java | 914 +- .../v1/FetchCaCertsResponseOrBuilder.java | 52 +- .../FetchCertificateAuthorityCsrRequest.java | 442 +- ...rtificateAuthorityCsrRequestOrBuilder.java | 31 + .../FetchCertificateAuthorityCsrResponse.java | 414 +- ...tificateAuthorityCsrResponseOrBuilder.java | 27 +- .../privateca/v1/GetCaPoolRequest.java | 342 +- .../v1/GetCaPoolRequestOrBuilder.java | 29 + .../v1/GetCertificateAuthorityRequest.java | 378 +- ...tCertificateAuthorityRequestOrBuilder.java | 31 + .../privateca/v1/GetCertificateRequest.java | 349 +- .../v1/GetCertificateRequestOrBuilder.java | 29 + .../GetCertificateRevocationListRequest.java | 442 +- ...ificateRevocationListRequestOrBuilder.java | 31 + .../v1/GetCertificateTemplateRequest.java | 375 +- ...etCertificateTemplateRequestOrBuilder.java | 31 + .../cloud/security/privateca/v1/KeyUsage.java | 1885 ++-- .../privateca/v1/KeyUsageOrBuilder.java | 82 +- .../privateca/v1/ListCaPoolsRequest.java | 615 +- .../v1/ListCaPoolsRequestOrBuilder.java | 65 +- .../privateca/v1/ListCaPoolsResponse.java | 570 +- .../v1/ListCaPoolsResponseOrBuilder.java | 63 +- .../v1/ListCertificateAuthoritiesRequest.java | 664 +- ...ertificateAuthoritiesRequestOrBuilder.java | 65 +- .../ListCertificateAuthoritiesResponse.java | 758 +- ...rtificateAuthoritiesResponseOrBuilder.java | 83 +- ...ListCertificateRevocationListsRequest.java | 715 +- ...ficateRevocationListsRequestOrBuilder.java | 65 +- ...istCertificateRevocationListsResponse.java | 813 +- ...icateRevocationListsResponseOrBuilder.java | 87 +- .../v1/ListCertificateTemplatesRequest.java | 654 +- ...tCertificateTemplatesRequestOrBuilder.java | 65 +- .../v1/ListCertificateTemplatesResponse.java | 746 +- ...CertificateTemplatesResponseOrBuilder.java | 83 +- .../privateca/v1/ListCertificatesRequest.java | 633 +- .../v1/ListCertificatesRequestOrBuilder.java | 65 +- .../v1/ListCertificatesResponse.java | 583 +- .../v1/ListCertificatesResponseOrBuilder.java | 63 +- .../security/privateca/v1/LocationName.java | 0 .../cloud/security/privateca/v1/ObjectId.java | 330 +- .../privateca/v1/ObjectIdOrBuilder.java | 27 +- .../privateca/v1/OperationMetadata.java | 855 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../security/privateca/v1/PrivateCaProto.java | 841 ++ .../privateca/v1/PrivateCaResourcesProto.java | 799 ++ .../security/privateca/v1/PublicKey.java | 422 +- .../privateca/v1/PublicKeyOrBuilder.java | 35 +- .../privateca/v1/RevocationReason.java | 126 +- .../v1/RevokeCertificateRequest.java | 542 +- .../v1/RevokeCertificateRequestOrBuilder.java | 58 +- .../cloud/security/privateca/v1/Subject.java | 856 +- .../privateca/v1/SubjectAltNames.java | 815 +- .../v1/SubjectAltNamesOrBuilder.java | 108 +- .../privateca/v1/SubjectOrBuilder.java | 90 +- .../privateca/v1/SubjectRequestMode.java | 84 +- .../privateca/v1/SubordinateConfig.java | 1128 +- .../v1/SubordinateConfigOrBuilder.java | 71 +- .../UndeleteCertificateAuthorityRequest.java | 521 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../privateca/v1/UpdateCaPoolRequest.java | 592 +- .../v1/UpdateCaPoolRequestOrBuilder.java | 64 +- .../v1/UpdateCertificateAuthorityRequest.java | 659 +- ...eCertificateAuthorityRequestOrBuilder.java | 67 +- .../v1/UpdateCertificateRequest.java | 614 +- .../v1/UpdateCertificateRequestOrBuilder.java | 64 +- ...pdateCertificateRevocationListRequest.java | 726 +- ...ificateRevocationListRequestOrBuilder.java | 67 +- .../v1/UpdateCertificateTemplateRequest.java | 655 +- ...teCertificateTemplateRequestOrBuilder.java | 67 +- .../security/privateca/v1/X509Extension.java | 451 +- .../privateca/v1/X509ExtensionOrBuilder.java | 44 +- .../security/privateca/v1/X509Parameters.java | 1516 +-- .../privateca/v1/X509ParametersOrBuilder.java | 148 +- .../security/privateca/v1/resources.proto | 0 .../cloud/security/privateca/v1/service.proto | 0 .../AsyncActivateCertificateAuthority.java | 57 + .../AsyncActivateCertificateAuthorityLRO.java | 58 + .../SyncActivateCertificateAuthority.java | 52 + ...cateAuthorityCertificateauthorityname.java | 43 + ...yncActivateCertificateAuthorityString.java | 44 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 42 + .../create/SyncCreateSetEndpoint.java | 39 + .../createcapool/AsyncCreateCaPool.java | 52 + .../createcapool/AsyncCreateCaPoolLRO.java | 52 + .../createcapool/SyncCreateCaPool.java | 47 + ...cCreateCaPoolLocationnameCapoolString.java | 43 + .../SyncCreateCaPoolStringCapoolString.java | 43 + .../AsyncCreateCertificate.java | 53 + .../SyncCreateCertificate.java | 49 + ...ertificateCapoolnameCertificateString.java | 43 + ...ateCertificateStringCertificateString.java | 43 + .../AsyncCreateCertificateAuthority.java | 54 + .../AsyncCreateCertificateAuthorityLRO.java | 54 + .../SyncCreateCertificateAuthority.java | 48 + ...yCapoolnameCertificateauthorityString.java | 46 + ...orityStringCertificateauthorityString.java | 46 + .../AsyncCreateCertificateTemplate.java | 52 + .../AsyncCreateCertificateTemplateLRO.java | 54 + .../SyncCreateCertificateTemplate.java | 48 + ...LocationnameCertificatetemplateString.java | 46 + ...mplateStringCertificatetemplateString.java | 46 + .../deletecapool/AsyncDeleteCaPool.java | 49 + .../deletecapool/AsyncDeleteCaPoolLRO.java | 50 + .../deletecapool/SyncDeleteCaPool.java | 45 + .../SyncDeleteCaPoolCapoolname.java | 40 + .../deletecapool/SyncDeleteCaPoolString.java | 40 + .../AsyncDeleteCertificateAuthority.java | 56 + .../AsyncDeleteCertificateAuthorityLRO.java | 57 + .../SyncDeleteCertificateAuthority.java | 51 + ...cateAuthorityCertificateauthorityname.java | 43 + .../SyncDeleteCertificateAuthorityString.java | 44 + .../AsyncDeleteCertificateTemplate.java | 51 + .../AsyncDeleteCertificateTemplateLRO.java | 54 + .../SyncDeleteCertificateTemplate.java | 47 + ...ficateTemplateCertificatetemplatename.java | 41 + .../SyncDeleteCertificateTemplateString.java | 42 + .../AsyncDisableCertificateAuthority.java | 54 + .../AsyncDisableCertificateAuthorityLRO.java | 55 + .../SyncDisableCertificateAuthority.java | 49 + ...cateAuthorityCertificateauthorityname.java | 43 + ...SyncDisableCertificateAuthorityString.java | 44 + .../AsyncEnableCertificateAuthority.java | 54 + .../AsyncEnableCertificateAuthorityLRO.java | 55 + .../SyncEnableCertificateAuthority.java | 49 + ...cateAuthorityCertificateauthorityname.java | 43 + .../SyncEnableCertificateAuthorityString.java | 44 + .../fetchcacerts/AsyncFetchCaCerts.java | 49 + .../fetchcacerts/SyncFetchCaCerts.java | 45 + .../SyncFetchCaCertsCapoolname.java | 40 + .../fetchcacerts/SyncFetchCaCertsString.java | 40 + .../AsyncFetchCertificateAuthorityCsr.java | 53 + .../SyncFetchCertificateAuthorityCsr.java | 48 + ...eAuthorityCsrCertificateauthorityname.java | 43 + ...yncFetchCertificateAuthorityCsrString.java | 44 + .../getcapool/AsyncGetCaPool.java | 48 + .../getcapool/SyncGetCaPool.java | 44 + .../getcapool/SyncGetCaPoolCapoolname.java | 40 + .../getcapool/SyncGetCaPoolString.java | 40 + .../getcertificate/AsyncGetCertificate.java | 50 + .../getcertificate/SyncGetCertificate.java | 46 + .../SyncGetCertificateCertificatename.java | 41 + .../SyncGetCertificateString.java | 41 + .../AsyncGetCertificateAuthority.java | 51 + .../SyncGetCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 43 + .../SyncGetCertificateAuthorityString.java | 44 + .../AsyncGetCertificateRevocationList.java | 57 + .../SyncGetCertificateRevocationList.java | 52 + ...tionListCertificaterevocationlistname.java | 48 + ...yncGetCertificateRevocationListString.java | 48 + .../AsyncGetCertificateTemplate.java | 50 + .../SyncGetCertificateTemplate.java | 47 + ...ficateTemplateCertificatetemplatename.java | 41 + .../SyncGetCertificateTemplateString.java | 42 + .../getiampolicy/AsyncGetIamPolicy.java | 50 + .../getiampolicy/SyncGetIamPolicy.java | 46 + .../getlocation/AsyncGetLocation.java | 44 + .../getlocation/SyncGetLocation.java | 40 + .../listcapools/AsyncListCaPools.java | 54 + .../listcapools/AsyncListCaPoolsPaged.java | 62 + .../listcapools/SyncListCaPools.java | 50 + .../SyncListCaPoolsLocationname.java | 42 + .../listcapools/SyncListCaPoolsString.java | 42 + .../AsyncListCertificateAuthorities.java | 56 + .../AsyncListCertificateAuthoritiesPaged.java | 62 + .../SyncListCertificateAuthorities.java | 51 + ...cListCertificateAuthoritiesCapoolname.java | 43 + .../SyncListCertificateAuthoritiesString.java | 43 + .../AsyncListCertificateRevocationLists.java | 59 + ...ncListCertificateRevocationListsPaged.java | 67 + .../SyncListCertificateRevocationLists.java | 54 + ...vocationListsCertificateauthorityname.java | 45 + ...cListCertificateRevocationListsString.java | 46 + .../AsyncListCertificates.java | 54 + .../AsyncListCertificatesPaged.java | 62 + .../SyncListCertificates.java | 51 + .../SyncListCertificatesCapoolname.java | 43 + .../SyncListCertificatesString.java | 43 + .../AsyncListCertificateTemplates.java | 56 + .../AsyncListCertificateTemplatesPaged.java | 62 + .../SyncListCertificateTemplates.java | 51 + ...cListCertificateTemplatesLocationname.java | 43 + .../SyncListCertificateTemplatesString.java | 43 + .../listlocations/AsyncListLocations.java | 52 + .../AsyncListLocationsPaged.java | 60 + .../listlocations/SyncListLocations.java | 49 + .../AsyncRevokeCertificate.java | 53 + .../SyncRevokeCertificate.java | 49 + .../SyncRevokeCertificateCertificatename.java | 41 + .../SyncRevokeCertificateString.java | 41 + .../setiampolicy/AsyncSetIamPolicy.java | 51 + .../setiampolicy/SyncSetIamPolicy.java | 47 + .../AsyncTestIamPermissions.java | 50 + .../SyncTestIamPermissions.java | 47 + .../AsyncUndeleteCertificateAuthority.java | 54 + .../AsyncUndeleteCertificateAuthorityLRO.java | 55 + .../SyncUndeleteCertificateAuthority.java | 49 + ...cateAuthorityCertificateauthorityname.java | 43 + ...yncUndeleteCertificateAuthorityString.java | 44 + .../updatecapool/AsyncUpdateCaPool.java | 51 + .../updatecapool/AsyncUpdateCaPoolLRO.java | 51 + .../updatecapool/SyncUpdateCaPool.java | 46 + .../SyncUpdateCaPoolCapoolFieldmask.java | 42 + .../AsyncUpdateCertificate.java | 50 + .../SyncUpdateCertificate.java | 46 + ...UpdateCertificateCertificateFieldmask.java | 42 + .../AsyncUpdateCertificateAuthority.java | 53 + .../AsyncUpdateCertificateAuthorityLRO.java | 53 + .../SyncUpdateCertificateAuthority.java | 47 + ...uthorityCertificateauthorityFieldmask.java | 45 + .../AsyncUpdateCertificateRevocationList.java | 53 + ...yncUpdateCertificateRevocationListLRO.java | 53 + .../SyncUpdateCertificateRevocationList.java | 47 + ...istCertificaterevocationlistFieldmask.java | 46 + .../AsyncUpdateCertificateTemplate.java | 51 + .../AsyncUpdateCertificateTemplateLRO.java | 53 + .../SyncUpdateCertificateTemplate.java | 47 + ...eTemplateCertificatetemplateFieldmask.java | 44 + .../SyncCreateCertificate.java | 47 + .../SyncCreateCertificate.java | 47 + .../CertificateAuthorityServiceGrpc.java | 1994 ++++ .../ActivateCertificateAuthorityRequest.java | 771 +- ...eCertificateAuthorityRequestOrBuilder.java | 76 +- .../privateca/v1beta1/Certificate.java | 2424 ++--- .../v1beta1/CertificateAuthority.java | 9242 ++++++----------- .../v1beta1/CertificateAuthorityName.java | 0 .../CertificateAuthorityOrBuilder.java | 382 +- .../privateca/v1beta1/CertificateConfig.java | 1500 +-- .../v1beta1/CertificateConfigOrBuilder.java | 84 +- .../v1beta1/CertificateDescription.java | 3398 ++---- .../CertificateDescriptionOrBuilder.java | 168 +- .../privateca/v1beta1/CertificateName.java | 0 .../v1beta1/CertificateOrBuilder.java | 232 +- .../v1beta1/CertificateRevocationList.java | 2225 ++-- .../CertificateRevocationListName.java | 0 .../CertificateRevocationListOrBuilder.java | 172 +- .../CreateCertificateAuthorityRequest.java | 771 +- ...eCertificateAuthorityRequestOrBuilder.java | 76 +- .../v1beta1/CreateCertificateRequest.java | 686 +- .../CreateCertificateRequestOrBuilder.java | 73 +- .../DisableCertificateAuthorityRequest.java | 526 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../EnableCertificateAuthorityRequest.java | 521 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../FetchCertificateAuthorityCsrRequest.java | 449 +- ...rtificateAuthorityCsrRequestOrBuilder.java | 31 + .../FetchCertificateAuthorityCsrResponse.java | 429 +- ...tificateAuthorityCsrResponseOrBuilder.java | 27 +- .../GetCertificateAuthorityRequest.java | 441 +- ...tCertificateAuthorityRequestOrBuilder.java | 31 + .../v1beta1/GetCertificateRequest.java | 371 +- .../GetCertificateRequestOrBuilder.java | 29 + .../GetCertificateRevocationListRequest.java | 449 +- ...ificateRevocationListRequestOrBuilder.java | 31 + .../v1beta1/GetReusableConfigRequest.java | 375 +- .../GetReusableConfigRequestOrBuilder.java | 29 + .../security/privateca/v1beta1/KeyUsage.java | 2028 ++-- .../privateca/v1beta1/KeyUsageOrBuilder.java | 102 +- .../ListCertificateAuthoritiesRequest.java | 715 +- ...ertificateAuthoritiesRequestOrBuilder.java | 65 +- .../ListCertificateAuthoritiesResponse.java | 811 +- ...rtificateAuthoritiesResponseOrBuilder.java | 87 +- ...ListCertificateRevocationListsRequest.java | 730 +- ...ficateRevocationListsRequestOrBuilder.java | 65 +- ...istCertificateRevocationListsResponse.java | 837 +- ...icateRevocationListsResponseOrBuilder.java | 87 +- .../v1beta1/ListCertificatesRequest.java | 648 +- .../ListCertificatesRequestOrBuilder.java | 65 +- .../v1beta1/ListCertificatesResponse.java | 616 +- .../ListCertificatesResponseOrBuilder.java | 60 +- .../v1beta1/ListReusableConfigsRequest.java | 651 +- .../ListReusableConfigsRequestOrBuilder.java | 65 +- .../v1beta1/ListReusableConfigsResponse.java | 716 +- .../ListReusableConfigsResponseOrBuilder.java | 74 +- .../privateca/v1beta1/LocationName.java | 0 .../security/privateca/v1beta1/ObjectId.java | 337 +- .../privateca/v1beta1/ObjectIdOrBuilder.java | 27 +- .../privateca/v1beta1/OperationMetadata.java | 863 +- .../v1beta1/OperationMetadataOrBuilder.java | 91 +- .../privateca/v1beta1/PrivateCaProto.java | 620 ++ .../v1beta1/PrivateCaResourcesProto.java | 724 ++ .../security/privateca/v1beta1/PublicKey.java | 439 +- .../privateca/v1beta1/PublicKeyOrBuilder.java | 39 + .../RestoreCertificateAuthorityRequest.java | 526 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../privateca/v1beta1/ReusableConfig.java | 1100 +- .../privateca/v1beta1/ReusableConfigName.java | 0 .../v1beta1/ReusableConfigOrBuilder.java | 121 +- .../v1beta1/ReusableConfigValues.java | 1804 ++-- .../ReusableConfigValuesOrBuilder.java | 155 +- .../v1beta1/ReusableConfigWrapper.java | 602 +- .../ReusableConfigWrapperOrBuilder.java | 56 +- .../privateca/v1beta1/RevocationReason.java | 126 +- .../v1beta1/RevokeCertificateRequest.java | 556 +- .../RevokeCertificateRequestOrBuilder.java | 58 +- ...duleDeleteCertificateAuthorityRequest.java | 554 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../security/privateca/v1beta1/Subject.java | 787 +- .../privateca/v1beta1/SubjectAltNames.java | 839 +- .../v1beta1/SubjectAltNamesOrBuilder.java | 105 +- .../privateca/v1beta1/SubjectOrBuilder.java | 81 +- .../privateca/v1beta1/SubordinateConfig.java | 1133 +- .../v1beta1/SubordinateConfigOrBuilder.java | 59 +- .../UpdateCertificateAuthorityRequest.java | 717 +- ...eCertificateAuthorityRequestOrBuilder.java | 67 +- .../v1beta1/UpdateCertificateRequest.java | 632 +- .../UpdateCertificateRequestOrBuilder.java | 64 +- ...pdateCertificateRevocationListRequest.java | 748 +- ...ificateRevocationListRequestOrBuilder.java | 70 +- .../privateca/v1beta1/X509Extension.java | 455 +- .../v1beta1/X509ExtensionOrBuilder.java | 44 +- .../privateca/v1beta1/resources.proto | 0 .../security/privateca/v1beta1/service.proto | 0 .../AsyncActivateCertificateAuthority.java | 56 + .../AsyncActivateCertificateAuthorityLRO.java | 57 + .../SyncActivateCertificateAuthority.java | 51 + ...cateAuthorityCertificateauthorityname.java | 42 + ...yncActivateCertificateAuthorityString.java | 43 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 42 + .../create/SyncCreateSetEndpoint.java | 39 + .../AsyncCreateCertificate.java | 53 + .../SyncCreateCertificate.java | 49 + ...ificateauthoritynameCertificateString.java | 45 + ...ateCertificateStringCertificateString.java | 45 + .../AsyncCreateCertificateAuthority.java | 54 + .../AsyncCreateCertificateAuthorityLRO.java | 54 + .../SyncCreateCertificateAuthority.java | 48 + ...ocationnameCertificateauthorityString.java | 46 + ...orityStringCertificateauthorityString.java | 46 + .../AsyncDisableCertificateAuthority.java | 53 + .../AsyncDisableCertificateAuthorityLRO.java | 54 + .../SyncDisableCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 42 + ...SyncDisableCertificateAuthorityString.java | 43 + .../AsyncEnableCertificateAuthority.java | 53 + .../AsyncEnableCertificateAuthorityLRO.java | 54 + .../SyncEnableCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 42 + .../SyncEnableCertificateAuthorityString.java | 43 + .../AsyncFetchCertificateAuthorityCsr.java | 52 + .../SyncFetchCertificateAuthorityCsr.java | 47 + ...eAuthorityCsrCertificateauthorityname.java | 42 + ...yncFetchCertificateAuthorityCsrString.java | 43 + .../getcertificate/AsyncGetCertificate.java | 51 + .../getcertificate/SyncGetCertificate.java | 47 + .../SyncGetCertificateCertificatename.java | 41 + .../SyncGetCertificateString.java | 42 + .../AsyncGetCertificateAuthority.java | 50 + .../SyncGetCertificateAuthority.java | 47 + ...cateAuthorityCertificateauthorityname.java | 42 + .../SyncGetCertificateAuthorityString.java | 43 + .../AsyncGetCertificateRevocationList.java | 56 + .../SyncGetCertificateRevocationList.java | 51 + ...tionListCertificaterevocationlistname.java | 47 + ...yncGetCertificateRevocationListString.java | 47 + .../AsyncGetReusableConfig.java | 49 + .../SyncGetReusableConfig.java | 45 + ...ncGetReusableConfigReusableconfigname.java | 41 + .../SyncGetReusableConfigString.java | 41 + .../AsyncListCertificateAuthorities.java | 56 + .../AsyncListCertificateAuthoritiesPaged.java | 62 + .../SyncListCertificateAuthorities.java | 51 + ...istCertificateAuthoritiesLocationname.java | 43 + .../SyncListCertificateAuthoritiesString.java | 43 + .../AsyncListCertificateRevocationLists.java | 58 + ...ncListCertificateRevocationListsPaged.java | 66 + .../SyncListCertificateRevocationLists.java | 53 + ...vocationListsCertificateauthorityname.java | 44 + ...cListCertificateRevocationListsString.java | 45 + .../AsyncListCertificates.java | 56 + .../AsyncListCertificatesPaged.java | 64 + .../SyncListCertificates.java | 53 + ...tCertificatesCertificateauthorityname.java | 44 + .../SyncListCertificatesString.java | 45 + .../AsyncListReusableConfigs.java | 54 + .../AsyncListReusableConfigsPaged.java | 62 + .../SyncListReusableConfigs.java | 51 + .../SyncListReusableConfigsLocationname.java | 43 + .../SyncListReusableConfigsString.java | 43 + .../AsyncRestoreCertificateAuthority.java | 53 + .../AsyncRestoreCertificateAuthorityLRO.java | 54 + .../SyncRestoreCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 42 + ...SyncRestoreCertificateAuthorityString.java | 43 + .../AsyncRevokeCertificate.java | 54 + .../SyncRevokeCertificate.java | 50 + .../SyncRevokeCertificateCertificatename.java | 41 + .../SyncRevokeCertificateString.java | 42 + ...yncScheduleDeleteCertificateAuthority.java | 53 + ...ScheduleDeleteCertificateAuthorityLRO.java | 54 + ...yncScheduleDeleteCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 43 + ...eduleDeleteCertificateAuthorityString.java | 43 + .../AsyncUpdateCertificate.java | 50 + .../SyncUpdateCertificate.java | 46 + ...UpdateCertificateCertificateFieldmask.java | 42 + .../AsyncUpdateCertificateAuthority.java | 53 + .../AsyncUpdateCertificateAuthorityLRO.java | 53 + .../SyncUpdateCertificateAuthority.java | 47 + ...uthorityCertificateauthorityFieldmask.java | 45 + .../AsyncUpdateCertificateRevocationList.java | 53 + ...yncUpdateCertificateRevocationListLRO.java | 53 + .../SyncUpdateCertificateRevocationList.java | 47 + ...istCertificaterevocationlistFieldmask.java | 46 + .../SyncCreateCertificate.java | 47 + .../SyncCreateCertificate.java | 47 + ...rtificateAuthorityCsrRequestOrBuilder.java | 56 - .../v1/GetCaPoolRequestOrBuilder.java | 54 - ...tCertificateAuthorityRequestOrBuilder.java | 56 - .../v1/GetCertificateRequestOrBuilder.java | 54 - ...ificateRevocationListRequestOrBuilder.java | 56 - ...etCertificateTemplateRequestOrBuilder.java | 56 - .../security/privateca/v1/PrivateCaProto.java | 906 -- .../privateca/v1/PrivateCaResourcesProto.java | 986 -- ...rtificateAuthorityCsrRequestOrBuilder.java | 56 - ...tCertificateAuthorityRequestOrBuilder.java | 56 - .../GetCertificateRequestOrBuilder.java | 54 - ...ificateRevocationListRequestOrBuilder.java | 56 - .../GetReusableConfigRequestOrBuilder.java | 54 - .../privateca/v1beta1/PrivateCaProto.java | 666 -- .../v1beta1/PrivateCaResourcesProto.java | 896 -- .../privateca/v1beta1/PublicKeyOrBuilder.java | 68 - 504 files changed, 66640 insertions(+), 78027 deletions(-) delete mode 100644 grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java delete mode 100644 grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java (97%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java (95%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/package-info.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java (99%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java (96%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java (99%) create mode 100644 owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java create mode 100644 owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java (97%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java (94%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java (98%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java (94%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java (99%) create mode 100644 owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java create mode 100644 owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/location/MockLocations.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/location/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java (100%) create mode 100644 owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/iam/v1/MockIAMPolicy.java (100%) rename {google-cloud-security-private-ca => owl-bot-staging/$1/google-cloud-security-private-ca}/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java (66%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java (65%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java (66%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java (66%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java (63%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java (60%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java (75%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java (67%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java (60%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java (73%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java (76%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java (69%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java (65%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java (76%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java (75%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java (81%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java (73%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java (76%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java (69%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java (69%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java (73%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java (69%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java (67%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java (57%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java (59%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java (52%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java (57%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java (73%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java (75%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java (75%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java (66%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java (64%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java (73%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java (63%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java (63%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java (66%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java (64%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java (74%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java (76%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java (75%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java (75%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java (65%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java (50%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java (78%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/Subject.java (73%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java (77%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java (79%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java (76%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java (64%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java (61%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java (66%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java (67%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java (69%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java (64%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java (67%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java (67%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java (56%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java (68%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java (61%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/proto/google/cloud/security/privateca/v1/resources.proto (100%) rename {proto-google-cloud-security-private-ca-v1 => owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1}/src/main/proto/google/cloud/security/privateca/v1/service.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java (65%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java (67%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java (100%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java (61%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java (59%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java (100%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java (63%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java (100%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java (65%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java (75%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java (56%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java (57%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java (52%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java (57%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java (56%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java (69%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java (58%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java (67%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java (63%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java (62%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java (67%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java (73%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java (62%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java (62%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java (73%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java (76%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java (73%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java (76%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java (70%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java (100%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java (66%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java (64%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java (100%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java (65%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java (60%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java (64%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java (62%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java (78%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java (69%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java (70%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java (62%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java (74%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java (75%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java (78%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java (69%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java (65%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java (69%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java (64%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java (69%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java (72%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java (63%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java (71%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java (67%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java (56%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto (100%) rename {proto-google-cloud-security-private-ca-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1}/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java delete mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java delete mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java diff --git a/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java b/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java deleted file mode 100644 index e8918310..00000000 --- a/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java +++ /dev/null @@ -1,3935 +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.security.privateca.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
- * certificate authorities and issued certificates.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/privateca/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CertificateAuthorityServiceGrpc { - - private CertificateAuthorityServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.security.privateca.v1.CertificateAuthorityService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getCreateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", - requestType = com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getCreateCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getCreateCertificateMethod; - if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateMethod = - getCreateCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CreateCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateCertificate")) - .build(); - } - } - } - return getCreateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getGetCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificate", - requestType = com.google.cloud.security.privateca.v1.GetCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getGetCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getGetCertificateMethod; - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateMethod = - getGetCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) - .build(); - } - } - } - return getGetCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1.ListCertificatesResponse> - getListCertificatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificates", - requestType = com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1.ListCertificatesResponse> - getListCertificatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1.ListCertificatesResponse> - getListCertificatesMethod; - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificatesMethod = - getListCertificatesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificatesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificatesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificates")) - .build(); - } - } - } - return getListCertificatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getRevokeCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", - requestType = com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getRevokeCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getRevokeCertificateMethod; - if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getRevokeCertificateMethod = - CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = - getRevokeCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "RevokeCertificate")) - .build(); - } - } - } - return getRevokeCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getUpdateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getUpdateCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate> - getUpdateCertificateMethod; - if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = - getUpdateCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificate")) - .build(); - } - } - } - return getUpdateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getActivateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getActivateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getActivateCertificateAuthorityMethod; - if ((getActivateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getActivateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = - getActivateCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .ActivateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ActivateCertificateAuthority")) - .build(); - } - } - } - return getActivateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getCreateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getCreateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getCreateCertificateAuthorityMethod; - if ((getCreateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = - getCreateCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .CreateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateCertificateAuthority")) - .build(); - } - } - } - return getCreateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDisableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDisableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDisableCertificateAuthorityMethod; - if ((getDisableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDisableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = - getDisableCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .DisableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "DisableCertificateAuthority")) - .build(); - } - } - } - return getDisableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getEnableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getEnableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getEnableCertificateAuthorityMethod; - if ((getEnableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getEnableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = - getEnableCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .EnableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "EnableCertificateAuthority")) - .build(); - } - } - } - return getEnableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> - getFetchCertificateAuthorityCsrMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", - requestType = - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, - responseType = - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> - getFetchCertificateAuthorityCsrMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> - getFetchCertificateAuthorityCsrMethod; - if ((getFetchCertificateAuthorityCsrMethod = - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getFetchCertificateAuthorityCsrMethod = - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) - == null) { - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = - getFetchCertificateAuthorityCsrMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .FetchCertificateAuthorityCsrRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .FetchCertificateAuthorityCsrResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "FetchCertificateAuthorityCsr")) - .build(); - } - } - } - return getFetchCertificateAuthorityCsrMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1.CertificateAuthority> - getGetCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, - responseType = com.google.cloud.security.privateca.v1.CertificateAuthority.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1.CertificateAuthority> - getGetCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1.CertificateAuthority> - getGetCertificateAuthorityMethod; - if ((getGetCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = - getGetCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CertificateAuthority - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "GetCertificateAuthority")) - .build(); - } - } - } - return getGetCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> - getListCertificateAuthoritiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", - requestType = com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, - responseType = - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> - getListCertificateAuthoritiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> - getListCertificateAuthoritiesMethod; - if ((getListCertificateAuthoritiesMethod = - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateAuthoritiesMethod = - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = - getListCertificateAuthoritiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .ListCertificateAuthoritiesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .ListCertificateAuthoritiesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificateAuthorities")) - .build(); - } - } - } - return getListCertificateAuthoritiesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUndeleteCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUndeleteCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUndeleteCertificateAuthorityMethod; - if ((getUndeleteCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUndeleteCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod = - getUndeleteCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UndeleteCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .UndeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UndeleteCertificateAuthority")) - .build(); - } - } - } - return getUndeleteCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDeleteCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDeleteCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDeleteCertificateAuthorityMethod; - if ((getDeleteCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod = - getDeleteCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .DeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "DeleteCertificateAuthority")) - .build(); - } - } - } - return getDeleteCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUpdateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUpdateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUpdateCertificateAuthorityMethod; - if ((getUpdateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = - getUpdateCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .UpdateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificateAuthority")) - .build(); - } - } - } - return getUpdateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCaPoolRequest, - com.google.longrunning.Operation> - getCreateCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCaPool", - requestType = com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCaPoolRequest, - com.google.longrunning.Operation> - getCreateCaPoolMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCaPoolRequest, - com.google.longrunning.Operation> - getCreateCaPoolMethod; - if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCaPoolMethod = - getCreateCaPoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCaPool")) - .build(); - } - } - } - return getCreateCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, - com.google.longrunning.Operation> - getUpdateCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCaPool", - requestType = com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, - com.google.longrunning.Operation> - getUpdateCaPoolMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, - com.google.longrunning.Operation> - getUpdateCaPoolMethod; - if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod = - getUpdateCaPoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCaPool")) - .build(); - } - } - } - return getUpdateCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCaPoolRequest, - com.google.cloud.security.privateca.v1.CaPool> - getGetCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCaPool", - requestType = com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, - responseType = com.google.cloud.security.privateca.v1.CaPool.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCaPoolRequest, - com.google.cloud.security.privateca.v1.CaPool> - getGetCaPoolMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCaPoolRequest, - com.google.cloud.security.privateca.v1.CaPool> - getGetCaPoolMethod; - if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCaPoolMethod = - getGetCaPoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCaPoolRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("GetCaPool")) - .build(); - } - } - } - return getGetCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCaPoolsRequest, - com.google.cloud.security.privateca.v1.ListCaPoolsResponse> - getListCaPoolsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCaPools", - requestType = com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCaPoolsRequest, - com.google.cloud.security.privateca.v1.ListCaPoolsResponse> - getListCaPoolsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCaPoolsRequest, - com.google.cloud.security.privateca.v1.ListCaPoolsResponse> - getListCaPoolsMethod; - if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { - CertificateAuthorityServiceGrpc.getListCaPoolsMethod = - getListCaPoolsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCaPools")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCaPoolsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("ListCaPools")) - .build(); - } - } - } - return getListCaPoolsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, - com.google.longrunning.Operation> - getDeleteCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCaPool", - requestType = com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, - com.google.longrunning.Operation> - getDeleteCaPoolMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, - com.google.longrunning.Operation> - getDeleteCaPoolMethod; - if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) - == null) { - CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod = - getDeleteCaPoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCaPool")) - .build(); - } - } - } - return getDeleteCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.FetchCaCertsRequest, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse> - getFetchCaCertsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchCaCerts", - requestType = com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, - responseType = com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.FetchCaCertsRequest, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse> - getFetchCaCertsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.FetchCaCertsRequest, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse> - getFetchCaCertsMethod; - if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) - == null) { - CertificateAuthorityServiceGrpc.getFetchCaCertsMethod = - getFetchCaCertsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCaCerts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCaCerts")) - .build(); - } - } - } - return getFetchCaCertsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1.CertificateRevocationList> - getGetCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", - requestType = - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, - responseType = com.google.cloud.security.privateca.v1.CertificateRevocationList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1.CertificateRevocationList> - getGetCertificateRevocationListMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1.CertificateRevocationList> - getGetCertificateRevocationListMethod; - if ((getGetCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = - getGetCertificateRevocationListMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .GetCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CertificateRevocationList - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "GetCertificateRevocationList")) - .build(); - } - } - } - return getGetCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> - getListCertificateRevocationListsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", - requestType = - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, - responseType = - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> - getListCertificateRevocationListsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> - getListCertificateRevocationListsMethod; - if ((getListCertificateRevocationListsMethod = - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateRevocationListsMethod = - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = - getListCertificateRevocationListsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .ListCertificateRevocationListsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .ListCertificateRevocationListsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificateRevocationLists")) - .build(); - } - } - } - return getListCertificateRevocationListsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getUpdateCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", - requestType = - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getUpdateCertificateRevocationListMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getUpdateCertificateRevocationListMethod; - if ((getUpdateCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = - getUpdateCertificateRevocationListMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .UpdateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificateRevocationList")) - .build(); - } - } - } - return getUpdateCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, - com.google.longrunning.Operation> - getCreateCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, - com.google.longrunning.Operation> - getCreateCertificateTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, - com.google.longrunning.Operation> - getCreateCertificateTemplateMethod; - if ((getCreateCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod = - getCreateCertificateTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .CreateCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateCertificateTemplate")) - .build(); - } - } - } - return getCreateCertificateTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, - com.google.longrunning.Operation> - getDeleteCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, - com.google.longrunning.Operation> - getDeleteCertificateTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, - com.google.longrunning.Operation> - getDeleteCertificateTemplateMethod; - if ((getDeleteCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) - == null) { - CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod = - getDeleteCertificateTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .DeleteCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "DeleteCertificateTemplate")) - .build(); - } - } - } - return getDeleteCertificateTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, - com.google.cloud.security.privateca.v1.CertificateTemplate> - getGetCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, - responseType = com.google.cloud.security.privateca.v1.CertificateTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, - com.google.cloud.security.privateca.v1.CertificateTemplate> - getGetCertificateTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, - com.google.cloud.security.privateca.v1.CertificateTemplate> - getGetCertificateTemplateMethod; - if ((getGetCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod = - getGetCertificateTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CertificateTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "GetCertificateTemplate")) - .build(); - } - } - } - return getGetCertificateTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> - getListCertificateTemplatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateTemplates", - requestType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> - getListCertificateTemplatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> - getListCertificateTemplatesMethod; - if ((getListCertificateTemplatesMethod = - CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateTemplatesMethod = - CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod = - getListCertificateTemplatesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateTemplates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .ListCertificateTemplatesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificateTemplates")) - .build(); - } - } - } - return getListCertificateTemplatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, - com.google.longrunning.Operation> - getUpdateCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, - com.google.longrunning.Operation> - getUpdateCertificateTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, - com.google.longrunning.Operation> - getUpdateCertificateTemplateMethod; - if ((getUpdateCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateTemplateMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod = - getUpdateCertificateTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1 - .UpdateCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificateTemplate")) - .build(); - } - } - } - return getUpdateCertificateTemplateMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CertificateAuthorityServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CertificateAuthorityServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public abstract static class CertificateAuthorityServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCertificate( - com.google.cloud.security.privateca.v1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void getCertificate( - com.google.cloud.security.privateca.v1.GetCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void listCertificates( - com.google.cloud.security.privateca.v1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void revokeCertificate( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRevokeCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getActivateCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDisableCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getEnableCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchCertificateAuthorityCsrMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateAuthoritiesMethod(), responseObserver); - } - - /** - * - * - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public void undeleteCertificateAuthority( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void deleteCertificateAuthority( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCaPool( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCaPoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void updateCaPool( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCaPoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void getCaPool( - com.google.cloud.security.privateca.v1.GetCaPoolRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCaPoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void listCaPools( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCaPoolsMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void deleteCaPool( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCaPoolMethod(), responseObserver); - } - - /** - * - * - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void fetchCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchCaCertsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.CertificateRevocationList> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateRevocationListMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateRevocationListsMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateRevocationListMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public void createCertificateTemplate( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void deleteCertificateTemplate( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCertificateTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void getCertificateTemplate( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void listCertificateTemplates( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateTemplatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void updateCertificateTemplate( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateTemplateMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_CREATE_CERTIFICATE))) - .addMethod( - getGetCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_GET_CERTIFICATE))) - .addMethod( - getListCertificatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1.ListCertificatesResponse>( - this, METHODID_LIST_CERTIFICATES))) - .addMethod( - getRevokeCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_REVOKE_CERTIFICATE))) - .addMethod( - getUpdateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_UPDATE_CERTIFICATE))) - .addMethod( - getActivateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getDisableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getEnableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getFetchCertificateAuthorityCsrMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse>( - this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) - .addMethod( - getGetCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1.CertificateAuthority>( - this, METHODID_GET_CERTIFICATE_AUTHORITY))) - .addMethod( - getListCertificateAuthoritiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse>( - this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) - .addMethod( - getUndeleteCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_CERTIFICATE_AUTHORITY))) - .addMethod( - getDeleteCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CERTIFICATE_AUTHORITY))) - .addMethod( - getUpdateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCaPoolRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CA_POOL))) - .addMethod( - getUpdateCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CA_POOL))) - .addMethod( - getGetCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCaPoolRequest, - com.google.cloud.security.privateca.v1.CaPool>(this, METHODID_GET_CA_POOL))) - .addMethod( - getListCaPoolsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCaPoolsRequest, - com.google.cloud.security.privateca.v1.ListCaPoolsResponse>( - this, METHODID_LIST_CA_POOLS))) - .addMethod( - getDeleteCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CA_POOL))) - .addMethod( - getFetchCaCertsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.FetchCaCertsRequest, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse>( - this, METHODID_FETCH_CA_CERTS))) - .addMethod( - getGetCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1.CertificateRevocationList>( - this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getListCertificateRevocationListsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1 - .ListCertificateRevocationListsResponse>( - this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) - .addMethod( - getUpdateCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getCreateCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_TEMPLATE))) - .addMethod( - getDeleteCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CERTIFICATE_TEMPLATE))) - .addMethod( - getGetCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, - com.google.cloud.security.privateca.v1.CertificateTemplate>( - this, METHODID_GET_CERTIFICATE_TEMPLATE))) - .addMethod( - getListCertificateTemplatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse>( - this, METHODID_LIST_CERTIFICATE_TEMPLATES))) - .addMethod( - getUpdateCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_TEMPLATE))) - .build(); - } - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private CertificateAuthorityServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCertificate( - com.google.cloud.security.privateca.v1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void getCertificate( - com.google.cloud.security.privateca.v1.GetCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void listCertificates( - com.google.cloud.security.privateca.v1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void revokeCertificate( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public void undeleteCertificateAuthority( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void deleteCertificateAuthority( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCaPool( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void updateCaPool( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void getCaPool( - com.google.cloud.security.privateca.v1.GetCaPoolRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void listCaPools( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void deleteCaPool( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void fetchCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.CertificateRevocationList> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public void createCertificateTemplate( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void deleteCertificateTemplate( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void getCertificateTemplate( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void listCertificateTemplates( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void updateCertificateTemplate( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CertificateAuthorityServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate createCertificate( - com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate getCertificate( - com.google.cloud.security.privateca.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificatesResponse listCertificates( - com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate revokeCertificate( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate updateCertificate( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.longrunning.Operation activateCertificateAuthority( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateAuthority( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation disableCertificateAuthority( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation enableCertificateAuthority( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse - listCertificateAuthorities( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public com.google.longrunning.Operation undeleteCertificateAuthority( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation deleteCertificateAuthority( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateAuthority( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.longrunning.Operation createCaPool( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCaPoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.longrunning.Operation updateCaPool( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCaPoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CaPool getCaPool( - com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCaPoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCaPoolsResponse listCaPools( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCaPoolsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.longrunning.Operation deleteCaPool( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCaPoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchCaCertsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList - getCertificateRevocationList( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - listCertificateRevocationLists( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateRevocationList( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateTemplate( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.longrunning.Operation deleteCertificateTemplate( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse - listCertificateTemplates( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateTemplatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateTemplate( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateTemplateMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CertificateAuthorityServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.Certificate> - createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.Certificate> - getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.ListCertificatesResponse> - listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.Certificate> - revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.Certificate> - updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - activateCertificateAuthority( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificateAuthority( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - disableCertificateAuthority( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - enableCertificateAuthority( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.CertificateAuthority> - getCertificateAuthority( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> - listCertificateAuthorities( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeleteCertificateAuthority( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCertificateAuthority( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateAuthority( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.CaPool> - getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.ListCaPoolsResponse> - listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse> - fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.CertificateRevocationList> - getCertificateRevocationList( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> - listCertificateRevocationLists( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateRevocationList( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificateTemplate( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCertificateTemplate( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.CertificateTemplate> - getCertificateTemplate( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> - listCertificateTemplates( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateTemplate( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CERTIFICATE = 0; - private static final int METHODID_GET_CERTIFICATE = 1; - private static final int METHODID_LIST_CERTIFICATES = 2; - private static final int METHODID_REVOKE_CERTIFICATE = 3; - private static final int METHODID_UPDATE_CERTIFICATE = 4; - private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; - private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; - private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; - private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; - private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; - private static final int METHODID_UNDELETE_CERTIFICATE_AUTHORITY = 12; - private static final int METHODID_DELETE_CERTIFICATE_AUTHORITY = 13; - private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; - private static final int METHODID_CREATE_CA_POOL = 15; - private static final int METHODID_UPDATE_CA_POOL = 16; - private static final int METHODID_GET_CA_POOL = 17; - private static final int METHODID_LIST_CA_POOLS = 18; - private static final int METHODID_DELETE_CA_POOL = 19; - private static final int METHODID_FETCH_CA_CERTS = 20; - private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 21; - private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 22; - private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 23; - private static final int METHODID_CREATE_CERTIFICATE_TEMPLATE = 24; - private static final int METHODID_DELETE_CERTIFICATE_TEMPLATE = 25; - private static final int METHODID_GET_CERTIFICATE_TEMPLATE = 26; - private static final int METHODID_LIST_CERTIFICATE_TEMPLATES = 27; - private static final int METHODID_UPDATE_CERTIFICATE_TEMPLATE = 28; - - 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 CertificateAuthorityServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CERTIFICATE: - serviceImpl.createCertificate( - (com.google.cloud.security.privateca.v1.CreateCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CERTIFICATE: - serviceImpl.getCertificate( - (com.google.cloud.security.privateca.v1.GetCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CERTIFICATES: - serviceImpl.listCertificates( - (com.google.cloud.security.privateca.v1.ListCertificatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificatesResponse>) - responseObserver); - break; - case METHODID_REVOKE_CERTIFICATE: - serviceImpl.revokeCertificate( - (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE: - serviceImpl.updateCertificate( - (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: - serviceImpl.activateCertificateAuthority( - (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_AUTHORITY: - serviceImpl.createCertificateAuthority( - (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_CERTIFICATE_AUTHORITY: - serviceImpl.disableCertificateAuthority( - (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_CERTIFICATE_AUTHORITY: - serviceImpl.enableCertificateAuthority( - (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: - serviceImpl.fetchCertificateAuthorityCsr( - (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse>) - responseObserver); - break; - case METHODID_GET_CERTIFICATE_AUTHORITY: - serviceImpl.getCertificateAuthority( - (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.CertificateAuthority>) - responseObserver); - break; - case METHODID_LIST_CERTIFICATE_AUTHORITIES: - serviceImpl.listCertificateAuthorities( - (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse>) - responseObserver); - break; - case METHODID_UNDELETE_CERTIFICATE_AUTHORITY: - serviceImpl.undeleteCertificateAuthority( - (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE_AUTHORITY: - serviceImpl.deleteCertificateAuthority( - (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_AUTHORITY: - serviceImpl.updateCertificateAuthority( - (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CA_POOL: - serviceImpl.createCaPool( - (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CA_POOL: - serviceImpl.updateCaPool( - (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CA_POOL: - serviceImpl.getCaPool( - (com.google.cloud.security.privateca.v1.GetCaPoolRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CA_POOLS: - serviceImpl.listCaPools( - (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCaPoolsResponse>) - responseObserver); - break; - case METHODID_DELETE_CA_POOL: - serviceImpl.deleteCaPool( - (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CA_CERTS: - serviceImpl.fetchCaCerts( - (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse>) - responseObserver); - break; - case METHODID_GET_CERTIFICATE_REVOCATION_LIST: - serviceImpl.getCertificateRevocationList( - (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.CertificateRevocationList>) - responseObserver); - break; - case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: - serviceImpl.listCertificateRevocationLists( - (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1 - .ListCertificateRevocationListsResponse>) - responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: - serviceImpl.updateCertificateRevocationList( - (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_TEMPLATE: - serviceImpl.createCertificateTemplate( - (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE_TEMPLATE: - serviceImpl.deleteCertificateTemplate( - (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_TEMPLATE: - serviceImpl.getCertificateTemplate( - (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.CertificateTemplate>) - responseObserver); - break; - case METHODID_LIST_CERTIFICATE_TEMPLATES: - serviceImpl.listCertificateTemplates( - (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse>) - responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_TEMPLATE: - serviceImpl.updateCertificateTemplate( - (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) 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 CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CertificateAuthorityServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CertificateAuthorityService"); - } - } - - private static final class CertificateAuthorityServiceFileDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier { - CertificateAuthorityServiceFileDescriptorSupplier() {} - } - - private static final class CertificateAuthorityServiceMethodDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) - .addMethod(getCreateCertificateMethod()) - .addMethod(getGetCertificateMethod()) - .addMethod(getListCertificatesMethod()) - .addMethod(getRevokeCertificateMethod()) - .addMethod(getUpdateCertificateMethod()) - .addMethod(getActivateCertificateAuthorityMethod()) - .addMethod(getCreateCertificateAuthorityMethod()) - .addMethod(getDisableCertificateAuthorityMethod()) - .addMethod(getEnableCertificateAuthorityMethod()) - .addMethod(getFetchCertificateAuthorityCsrMethod()) - .addMethod(getGetCertificateAuthorityMethod()) - .addMethod(getListCertificateAuthoritiesMethod()) - .addMethod(getUndeleteCertificateAuthorityMethod()) - .addMethod(getDeleteCertificateAuthorityMethod()) - .addMethod(getUpdateCertificateAuthorityMethod()) - .addMethod(getCreateCaPoolMethod()) - .addMethod(getUpdateCaPoolMethod()) - .addMethod(getGetCaPoolMethod()) - .addMethod(getListCaPoolsMethod()) - .addMethod(getDeleteCaPoolMethod()) - .addMethod(getFetchCaCertsMethod()) - .addMethod(getGetCertificateRevocationListMethod()) - .addMethod(getListCertificateRevocationListsMethod()) - .addMethod(getUpdateCertificateRevocationListMethod()) - .addMethod(getCreateCertificateTemplateMethod()) - .addMethod(getDeleteCertificateTemplateMethod()) - .addMethod(getGetCertificateTemplateMethod()) - .addMethod(getListCertificateTemplatesMethod()) - .addMethod(getUpdateCertificateTemplateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java b/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java deleted file mode 100644 index 111cc56c..00000000 --- a/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java +++ /dev/null @@ -1,2914 +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.security.privateca.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
- * certificate authorities and issued certificates.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/privateca/v1beta1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CertificateAuthorityServiceGrpc { - - private CertificateAuthorityServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.security.privateca.v1beta1.CertificateAuthorityService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getCreateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getCreateCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getCreateCertificateMethod; - if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateMethod = - getCreateCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateCertificate")) - .build(); - } - } - } - return getCreateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getGetCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getGetCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getGetCertificateMethod; - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateMethod = - getGetCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) - .build(); - } - } - } - return getGetCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> - getListCertificatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificates", - requestType = com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> - getListCertificatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> - getListCertificatesMethod; - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificatesMethod = - getListCertificatesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificates")) - .build(); - } - } - } - return getListCertificatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getRevokeCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getRevokeCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getRevokeCertificateMethod; - if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getRevokeCertificateMethod = - CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = - getRevokeCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "RevokeCertificate")) - .build(); - } - } - } - return getRevokeCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getUpdateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getUpdateCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate> - getUpdateCertificateMethod; - if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = - getUpdateCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificate")) - .build(); - } - } - } - return getUpdateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getActivateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getActivateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getActivateCertificateAuthorityMethod; - if ((getActivateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getActivateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = - getActivateCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ActivateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ActivateCertificateAuthority")) - .build(); - } - } - } - return getActivateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getCreateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getCreateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getCreateCertificateAuthorityMethod; - if ((getCreateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = - getCreateCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .CreateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "CreateCertificateAuthority")) - .build(); - } - } - } - return getCreateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDisableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDisableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getDisableCertificateAuthorityMethod; - if ((getDisableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDisableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = - getDisableCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .DisableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "DisableCertificateAuthority")) - .build(); - } - } - } - return getDisableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getEnableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getEnableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation> - getEnableCertificateAuthorityMethod; - if ((getEnableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getEnableCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = - getEnableCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .EnableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "EnableCertificateAuthority")) - .build(); - } - } - } - return getEnableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> - getFetchCertificateAuthorityCsrMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", - requestType = - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, - responseType = - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> - getFetchCertificateAuthorityCsrMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> - getFetchCertificateAuthorityCsrMethod; - if ((getFetchCertificateAuthorityCsrMethod = - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getFetchCertificateAuthorityCsrMethod = - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) - == null) { - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = - getFetchCertificateAuthorityCsrMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "FetchCertificateAuthorityCsr")) - .build(); - } - } - } - return getFetchCertificateAuthorityCsrMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - getGetCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - getGetCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - getGetCertificateAuthorityMethod; - if ((getGetCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = - getGetCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .GetCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "GetCertificateAuthority")) - .build(); - } - } - } - return getGetCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> - getListCertificateAuthoritiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", - requestType = - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, - responseType = - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> - getListCertificateAuthoritiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> - getListCertificateAuthoritiesMethod; - if ((getListCertificateAuthoritiesMethod = - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateAuthoritiesMethod = - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = - getListCertificateAuthoritiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ListCertificateAuthoritiesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ListCertificateAuthoritiesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificateAuthorities")) - .build(); - } - } - } - return getListCertificateAuthoritiesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, - com.google.longrunning.Operation> - getRestoreCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, - com.google.longrunning.Operation> - getRestoreCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, - com.google.longrunning.Operation> - getRestoreCertificateAuthorityMethod; - if ((getRestoreCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getRestoreCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod = - getRestoreCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RestoreCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .RestoreCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "RestoreCertificateAuthority")) - .build(); - } - } - } - return getRestoreCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getScheduleDeleteCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ScheduleDeleteCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getScheduleDeleteCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, - com.google.longrunning.Operation> - getScheduleDeleteCertificateAuthorityMethod; - if ((getScheduleDeleteCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getScheduleDeleteCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod = - getScheduleDeleteCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "ScheduleDeleteCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ScheduleDeleteCertificateAuthority")) - .build(); - } - } - } - return getScheduleDeleteCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUpdateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", - requestType = - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUpdateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation> - getUpdateCertificateAuthorityMethod; - if ((getUpdateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateAuthorityMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = - getUpdateCertificateAuthorityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .UpdateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificateAuthority")) - .build(); - } - } - } - return getUpdateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - getGetCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", - requestType = - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - getGetCertificateRevocationListMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - getGetCertificateRevocationListMethod; - if ((getGetCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = - getGetCertificateRevocationListMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .GetCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "GetCertificateRevocationList")) - .build(); - } - } - } - return getGetCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> - getListCertificateRevocationListsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", - requestType = - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, - responseType = - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> - getListCertificateRevocationListsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> - getListCertificateRevocationListsMethod; - if ((getListCertificateRevocationListsMethod = - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateRevocationListsMethod = - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) - == null) { - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = - getListCertificateRevocationListsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListCertificateRevocationLists")) - .build(); - } - } - } - return getListCertificateRevocationListsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getUpdateCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", - requestType = - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getUpdateCertificateRevocationListMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation> - getUpdateCertificateRevocationListMethod; - if ((getUpdateCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateRevocationListMethod = - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) - == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = - getUpdateCertificateRevocationListMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .UpdateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "UpdateCertificateRevocationList")) - .build(); - } - } - } - return getUpdateCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, - com.google.cloud.security.privateca.v1beta1.ReusableConfig> - getGetReusableConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetReusableConfig", - requestType = com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, - com.google.cloud.security.privateca.v1beta1.ReusableConfig> - getGetReusableConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, - com.google.cloud.security.privateca.v1beta1.ReusableConfig> - getGetReusableConfigMethod; - if ((getGetReusableConfigMethod = CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetReusableConfigMethod = - CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) - == null) { - CertificateAuthorityServiceGrpc.getGetReusableConfigMethod = - getGetReusableConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReusableConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ReusableConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "GetReusableConfig")) - .build(); - } - } - } - return getGetReusableConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> - getListReusableConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReusableConfigs", - requestType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> - getListReusableConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> - getListReusableConfigsMethod; - if ((getListReusableConfigsMethod = - CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) - == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListReusableConfigsMethod = - CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) - == null) { - CertificateAuthorityServiceGrpc.getListReusableConfigsMethod = - getListReusableConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListReusableConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1 - .ListReusableConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateAuthorityServiceMethodDescriptorSupplier( - "ListReusableConfigs")) - .build(); - } - } - } - return getListReusableConfigsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CertificateAuthorityServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CertificateAuthorityServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public abstract static class CertificateAuthorityServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void createCertificate( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void getCertificate( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void listCertificates( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void revokeCertificate( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRevokeCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getActivateCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDisableCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getEnableCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchCertificateAuthorityCsrMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateAuthoritiesMethod(), responseObserver); - } - - /** - * - * - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public void restoreCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public void scheduleDeleteCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getScheduleDeleteCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateAuthorityMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateRevocationListMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateRevocationListsMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateRevocationListMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void getReusableConfig( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReusableConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void listReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReusableConfigsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_CREATE_CERTIFICATE))) - .addMethod( - getGetCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_GET_CERTIFICATE))) - .addMethod( - getListCertificatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse>( - this, METHODID_LIST_CERTIFICATES))) - .addMethod( - getRevokeCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_REVOKE_CERTIFICATE))) - .addMethod( - getUpdateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_UPDATE_CERTIFICATE))) - .addMethod( - getActivateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getDisableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .DisableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getEnableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getFetchCertificateAuthorityCsrMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrResponse>( - this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) - .addMethod( - getGetCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority>( - this, METHODID_GET_CERTIFICATE_AUTHORITY))) - .addMethod( - getListCertificateAuthoritiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1beta1 - .ListCertificateAuthoritiesResponse>( - this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) - .addMethod( - getRestoreCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .RestoreCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_RESTORE_CERTIFICATE_AUTHORITY))) - .addMethod( - getScheduleDeleteCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY))) - .addMethod( - getUpdateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getGetCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>( - this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getListCertificateRevocationListsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsResponse>( - this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) - .addMethod( - getUpdateCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1 - .UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getGetReusableConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, - com.google.cloud.security.privateca.v1beta1.ReusableConfig>( - this, METHODID_GET_REUSABLE_CONFIG))) - .addMethod( - getListReusableConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>( - this, METHODID_LIST_REUSABLE_CONFIGS))) - .build(); - } - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private CertificateAuthorityServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void createCertificate( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void getCertificate( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void listCertificates( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void revokeCertificate( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public void restoreCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public void scheduleDeleteCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void getReusableConfig( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void listReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CertificateAuthorityServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate createCertificate( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse listCertificates( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.longrunning.Operation activateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation disableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation enableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - listCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public com.google.longrunning.Operation restoreCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public com.google.longrunning.Operation scheduleDeleteCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getScheduleDeleteCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - listCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReusableConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse - listReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReusableConfigsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CertificateAuthorityServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.Certificate> - createCertificate( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.Certificate> - getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> - listCertificates( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.Certificate> - revokeCertificate( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.Certificate> - updateCertificate( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - activateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - disableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - enableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> - fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - getCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> - listCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - restoreCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - scheduleDeleteCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - getCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> - listCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.ReusableConfig> - getReusableConfig( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> - listReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CERTIFICATE = 0; - private static final int METHODID_GET_CERTIFICATE = 1; - private static final int METHODID_LIST_CERTIFICATES = 2; - private static final int METHODID_REVOKE_CERTIFICATE = 3; - private static final int METHODID_UPDATE_CERTIFICATE = 4; - private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; - private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; - private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; - private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; - private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; - private static final int METHODID_RESTORE_CERTIFICATE_AUTHORITY = 12; - private static final int METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY = 13; - private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; - private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 15; - private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 16; - private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 17; - private static final int METHODID_GET_REUSABLE_CONFIG = 18; - private static final int METHODID_LIST_REUSABLE_CONFIGS = 19; - - 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 CertificateAuthorityServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CERTIFICATE: - serviceImpl.createCertificate( - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CERTIFICATE: - serviceImpl.getCertificate( - (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CERTIFICATES: - serviceImpl.listCertificates( - (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse>) - responseObserver); - break; - case METHODID_REVOKE_CERTIFICATE: - serviceImpl.revokeCertificate( - (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE: - serviceImpl.updateCertificate( - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: - serviceImpl.activateCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_AUTHORITY: - serviceImpl.createCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_CERTIFICATE_AUTHORITY: - serviceImpl.disableCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_CERTIFICATE_AUTHORITY: - serviceImpl.enableCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: - serviceImpl.fetchCertificateAuthorityCsr( - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrResponse>) - responseObserver); - break; - case METHODID_GET_CERTIFICATE_AUTHORITY: - serviceImpl.getCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority>) - responseObserver); - break; - case METHODID_LIST_CERTIFICATE_AUTHORITIES: - serviceImpl.listCertificateAuthorities( - (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1 - .ListCertificateAuthoritiesResponse>) - responseObserver); - break; - case METHODID_RESTORE_CERTIFICATE_AUTHORITY: - serviceImpl.restoreCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY: - serviceImpl.scheduleDeleteCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_AUTHORITY: - serviceImpl.updateCertificateAuthority( - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_REVOCATION_LIST: - serviceImpl.getCertificateRevocationList( - (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>) - responseObserver); - break; - case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: - serviceImpl.listCertificateRevocationLists( - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsResponse>) - responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: - serviceImpl.updateCertificateRevocationList( - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_REUSABLE_CONFIG: - serviceImpl.getReusableConfig( - (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ReusableConfig>) - responseObserver); - break; - case METHODID_LIST_REUSABLE_CONFIGS: - serviceImpl.listReusableConfigs( - (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>) - 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 CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CertificateAuthorityServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CertificateAuthorityService"); - } - } - - private static final class CertificateAuthorityServiceFileDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier { - CertificateAuthorityServiceFileDescriptorSupplier() {} - } - - private static final class CertificateAuthorityServiceMethodDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) - .addMethod(getCreateCertificateMethod()) - .addMethod(getGetCertificateMethod()) - .addMethod(getListCertificatesMethod()) - .addMethod(getRevokeCertificateMethod()) - .addMethod(getUpdateCertificateMethod()) - .addMethod(getActivateCertificateAuthorityMethod()) - .addMethod(getCreateCertificateAuthorityMethod()) - .addMethod(getDisableCertificateAuthorityMethod()) - .addMethod(getEnableCertificateAuthorityMethod()) - .addMethod(getFetchCertificateAuthorityCsrMethod()) - .addMethod(getGetCertificateAuthorityMethod()) - .addMethod(getListCertificateAuthoritiesMethod()) - .addMethod(getRestoreCertificateAuthorityMethod()) - .addMethod(getScheduleDeleteCertificateAuthorityMethod()) - .addMethod(getUpdateCertificateAuthorityMethod()) - .addMethod(getGetCertificateRevocationListMethod()) - .addMethod(getListCertificateRevocationListsMethod()) - .addMethod(getUpdateCertificateRevocationListMethod()) - .addMethod(getGetReusableConfigMethod()) - .addMethod(getListReusableConfigsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java similarity index 97% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java index 82cac796..8671e8c9 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -39,7 +40,6 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -77,13 +77,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -120,13 +120,30 @@ * CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CertificateAuthorityServiceSettings certificateAuthorityServiceSettings =
+ *     CertificateAuthorityServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CertificateAuthorityServiceSettings.defaultHttpJsonTransportProviderBuilder()
+ *                 .build())
+ *         .build();
+ * CertificateAuthorityServiceClient certificateAuthorityServiceClient =
+ *     CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class CertificateAuthorityServiceClient implements BackgroundResource { private final CertificateAuthorityServiceSettings settings; private final CertificateAuthorityServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of CertificateAuthorityServiceClient with default settings. */ public static final CertificateAuthorityServiceClient create() throws IOException { @@ -161,13 +178,17 @@ protected CertificateAuthorityServiceClient(CertificateAuthorityServiceSettings throws IOException { this.settings = settings; this.stub = ((CertificateAuthorityServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected CertificateAuthorityServiceClient(CertificateAuthorityServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final CertificateAuthorityServiceSettings getSettings() { @@ -182,10 +203,18 @@ public CertificateAuthorityServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, @@ -4891,10 +4920,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListCertificatesPagedResponse extends AbstractPagedListResponse< - ListCertificatesRequest, - ListCertificatesResponse, - Certificate, - ListCertificatesPage, + ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, ListCertificatesFixedSizeCollection> { public static ApiFuture createAsync( @@ -4944,10 +4970,7 @@ public ApiFuture createPageAsync( public static class ListCertificatesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificatesRequest, - ListCertificatesResponse, - Certificate, - ListCertificatesPage, + ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( @@ -4968,16 +4991,13 @@ protected ListCertificatesFixedSizeCollection createCollection( public static class ListCertificateAuthoritiesPagedResponse extends AbstractPagedListResponse< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + CertificateAuthority, ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -4996,15 +5016,12 @@ private ListCertificateAuthoritiesPagedResponse(ListCertificateAuthoritiesPage p public static class ListCertificateAuthoritiesPage extends AbstractPage< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage> { + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + CertificateAuthority, ListCertificateAuthoritiesPage> { private ListCertificateAuthoritiesPage( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -5018,8 +5035,7 @@ private static ListCertificateAuthoritiesPage createEmptyPage() { @Override protected ListCertificateAuthoritiesPage createPage( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -5029,8 +5045,7 @@ protected ListCertificateAuthoritiesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -5040,10 +5055,8 @@ public ApiFuture createPageAsync( public static class ListCertificateAuthoritiesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + CertificateAuthority, ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { private ListCertificateAuthoritiesFixedSizeCollection( @@ -5064,10 +5077,7 @@ protected ListCertificateAuthoritiesFixedSizeCollection createCollection( public static class ListCaPoolsPagedResponse extends AbstractPagedListResponse< - ListCaPoolsRequest, - ListCaPoolsResponse, - CaPool, - ListCaPoolsPage, + ListCaPoolsRequest, ListCaPoolsResponse, CaPool, ListCaPoolsPage, ListCaPoolsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5114,10 +5124,7 @@ public ApiFuture createPageAsync( public static class ListCaPoolsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCaPoolsRequest, - ListCaPoolsResponse, - CaPool, - ListCaPoolsPage, + ListCaPoolsRequest, ListCaPoolsResponse, CaPool, ListCaPoolsPage, ListCaPoolsFixedSizeCollection> { private ListCaPoolsFixedSizeCollection(List pages, int collectionSize) { @@ -5137,16 +5144,13 @@ protected ListCaPoolsFixedSizeCollection createCollection( public static class ListCertificateRevocationListsPagedResponse extends AbstractPagedListResponse< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + CertificateRevocationList, ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -5166,15 +5170,12 @@ private ListCertificateRevocationListsPagedResponse(ListCertificateRevocationLis public static class ListCertificateRevocationListsPage extends AbstractPage< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage> { + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + CertificateRevocationList, ListCertificateRevocationListsPage> { private ListCertificateRevocationListsPage( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -5188,8 +5189,7 @@ private static ListCertificateRevocationListsPage createEmptyPage() { @Override protected ListCertificateRevocationListsPage createPage( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -5199,8 +5199,7 @@ protected ListCertificateRevocationListsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -5210,10 +5209,8 @@ public ApiFuture createPageAsync( public static class ListCertificateRevocationListsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + CertificateRevocationList, ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { private ListCertificateRevocationListsFixedSizeCollection( @@ -5234,16 +5231,12 @@ protected ListCertificateRevocationListsFixedSizeCollection createCollection( public static class ListCertificateTemplatesPagedResponse extends AbstractPagedListResponse< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, - CertificateTemplate, - ListCertificateTemplatesPage, - ListCertificateTemplatesFixedSizeCollection> { + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate, + ListCertificateTemplatesPage, ListCertificateTemplatesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> context, ApiFuture futureResponse) { @@ -5262,15 +5255,12 @@ private ListCertificateTemplatesPagedResponse(ListCertificateTemplatesPage page) public static class ListCertificateTemplatesPage extends AbstractPage< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, - CertificateTemplate, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate, ListCertificateTemplatesPage> { private ListCertificateTemplatesPage( PageContext< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> context, ListCertificateTemplatesResponse response) { @@ -5284,8 +5274,7 @@ private static ListCertificateTemplatesPage createEmptyPage() { @Override protected ListCertificateTemplatesPage createPage( PageContext< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> context, ListCertificateTemplatesResponse response) { @@ -5295,8 +5284,7 @@ protected ListCertificateTemplatesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> context, ApiFuture futureResponse) { @@ -5306,11 +5294,8 @@ public ApiFuture createPageAsync( public static class ListCertificateTemplatesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, - CertificateTemplate, - ListCertificateTemplatesPage, - ListCertificateTemplatesFixedSizeCollection> { + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate, + ListCertificateTemplatesPage, ListCertificateTemplatesFixedSizeCollection> { private ListCertificateTemplatesFixedSizeCollection( List pages, int collectionSize) { @@ -5330,10 +5315,7 @@ protected ListCertificateTemplatesFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5383,10 +5365,7 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java similarity index 95% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java index 1cd5d8e7..1a9f0d48 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java @@ -28,11 +28,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; @@ -58,9 +60,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -197,8 +199,7 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -311,8 +312,7 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -372,8 +372,7 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateTemplates. */ public PagedCallSettings< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -448,11 +447,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CertificateAuthorityServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CertificateAuthorityServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CertificateAuthorityServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CertificateAuthorityServiceStubSettings.defaultTransportChannelProvider(); } @@ -462,11 +468,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CertificateAuthorityServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -505,6 +517,11 @@ private static Builder createDefault() { return new Builder(CertificateAuthorityServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CertificateAuthorityServiceStubSettings.newHttpJsonBuilder()); + } + public CertificateAuthorityServiceStubSettings.Builder getStubSettingsBuilder() { return ((CertificateAuthorityServiceStubSettings.Builder) getStubSettings()); } @@ -618,8 +635,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return getStubSettingsBuilder().listCertificateAuthoritiesSettings(); @@ -723,8 +739,7 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return getStubSettingsBuilder().listCertificateRevocationListsSettings(); @@ -776,8 +791,7 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateTemplates. */ public PagedCallSettings.Builder< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return getStubSettingsBuilder().listCertificateTemplatesSettings(); diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json similarity index 100% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java similarity index 100% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java similarity index 99% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java index c4c43cf9..7f836841 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java @@ -92,7 +92,11 @@ public abstract class CertificateAuthorityServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createCertificateCallable() { diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java similarity index 96% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java index 834b8faf..a9058c91 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java @@ -33,6 +33,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -118,9 +121,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -186,8 +189,7 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateAuthoritySettings; private final PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings @@ -221,8 +223,7 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateRevocationListSettings; private final PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings @@ -242,8 +243,7 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateTemplateSettings; private final PagedCallSettings< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings; private final UnaryCallSettings @@ -301,13 +301,11 @@ public Iterable extractResources(ListCertificatesResponse payload) }; private static final PagedListDescriptor< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority>() { @Override public String emptyToken() { @@ -386,13 +384,11 @@ public Iterable extractResources(ListCaPoolsResponse payload) { }; private static final PagedListDescriptor< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList>() { @Override public String emptyToken() { @@ -438,8 +434,7 @@ public Iterable extractResources( ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> LIST_CERTIFICATE_TEMPLATES_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate>() { @Override public String emptyToken() { @@ -537,13 +532,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -553,8 +546,7 @@ public ApiFuture getFuturePagedResponse ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> pageContext = PageContext.create( @@ -582,13 +574,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -600,8 +590,7 @@ public ApiFuture getFuturePagedResp ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> pageContext = PageContext.create( @@ -615,13 +604,11 @@ public ApiFuture getFuturePagedResp }; private static final PagedListResponseFactory< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> LIST_CERTIFICATE_TEMPLATES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -631,8 +618,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> pageContext = PageContext.create( @@ -752,8 +738,7 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -855,8 +840,7 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -908,8 +892,7 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateTemplates. */ public PagedCallSettings< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return listCertificateTemplatesSettings; @@ -961,6 +944,11 @@ public CertificateAuthorityServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCertificateAuthorityServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCertificateAuthorityServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -993,18 +981,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CertificateAuthorityServiceStubSettings.class)) @@ -1012,11 +1007,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CertificateAuthorityServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CertificateAuthorityServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -1144,8 +1158,7 @@ public static class Builder private final UnaryCallSettings.Builder getCertificateAuthoritySettings; private final PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings.Builder @@ -1182,8 +1195,7 @@ public static class Builder GetCertificateRevocationListRequest, CertificateRevocationList> getCertificateRevocationListSettings; private final PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings.Builder @@ -1204,8 +1216,7 @@ public static class Builder private final UnaryCallSettings.Builder getCertificateTemplateSettings; private final PagedCallSettings.Builder< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings; private final UnaryCallSettings.Builder @@ -1475,6 +1486,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createCertificateSettings() @@ -2117,8 +2141,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -2234,8 +2257,7 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -2293,8 +2315,7 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateTemplates. */ public PagedCallSettings.Builder< - ListCertificateTemplatesRequest, - ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return listCertificateTemplatesSettings; diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java similarity index 100% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java similarity index 99% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java index 9a9b10db..764b09fc 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java @@ -88,6 +88,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java new file mode 100644 index 00000000..e718e9e1 --- /dev/null +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CertificateAuthorityService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCertificateAuthorityServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java new file mode 100644 index 00000000..3c2d54de --- /dev/null +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java @@ -0,0 +1,2476 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.stub; + +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCaPoolsPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificateTemplatesPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CreateCaPoolRequest; +import com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.CreateCertificateRequest; +import com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.DeleteCaPoolRequest; +import com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.FetchCaCertsRequest; +import com.google.cloud.security.privateca.v1.FetchCaCertsResponse; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; +import com.google.cloud.security.privateca.v1.GetCaPoolRequest; +import com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.GetCertificateRequest; +import com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest; +import com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.ListCaPoolsRequest; +import com.google.cloud.security.privateca.v1.ListCaPoolsResponse; +import com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest; +import com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse; +import com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest; +import com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse; +import com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest; +import com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse; +import com.google.cloud.security.privateca.v1.ListCertificatesRequest; +import com.google.cloud.security.privateca.v1.ListCertificatesResponse; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.RevokeCertificateRequest; +import com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.UpdateCaPoolRequest; +import com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.UpdateCertificateRequest; +import com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest; +import com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CertificateAuthorityService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCertificateAuthorityServiceStub extends CertificateAuthorityServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(CaPool.getDescriptor()) + .add(CertificateRevocationList.getDescriptor()) + .add(CertificateAuthority.getDescriptor()) + .add(CertificateTemplate.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/CreateCertificate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/caPools/*}/certificates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "certificateId", request.getCertificateId()); + serializer.putQueryParam( + fields, + "issuingCertificateAuthorityId", + request.getIssuingCertificateAuthorityId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("certificate", request.getCertificate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/GetCertificate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCertificatesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/ListCertificates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/caPools/*}/certificates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCertificatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + revokeCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/RevokeCertificate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificates/*}:revoke", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/UpdateCertificate") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{certificate.name=projects/*/locations/*/caPools/*/certificates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "certificate.name", request.getCertificate().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("certificate", request.getCertificate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + activateCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/ActivateCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:activate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ActivateCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/CreateCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/caPools/*}/certificateAuthorities", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "certificateAuthorityId", + request.getCertificateAuthorityId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateAuthority", request.getCertificateAuthority())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + disableCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/DisableCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:disable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DisableCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + enableCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/EnableCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:enable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (EnableCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> + fetchCertificateAuthorityCsrMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/FetchCertificateAuthorityCsr") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:fetch", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchCertificateAuthorityCsrResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/GetCertificateAuthority") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateAuthority.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse> + listCertificateAuthoritiesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/ListCertificateAuthorities") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/caPools/*}/certificateAuthorities", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCertificateAuthoritiesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + undeleteCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/UndeleteCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:undelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UndeleteCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/DeleteCertificateAuthority") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "ignoreActiveCertificates", + request.getIgnoreActiveCertificates()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "skipGracePeriod", request.getSkipGracePeriod()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/UpdateCertificateAuthority") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{certificateAuthority.name=projects/*/locations/*/caPools/*/certificateAuthorities/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "certificateAuthority.name", + request.getCertificateAuthority().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateAuthority", request.getCertificateAuthority())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createCaPoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/CreateCaPool") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/caPools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "caPoolId", request.getCaPoolId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("caPool", request.getCaPool())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCaPoolRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateCaPoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/UpdateCaPool") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{caPool.name=projects/*/locations/*/caPools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "caPool.name", request.getCaPool().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("caPool", request.getCaPool())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCaPoolRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getCaPoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/GetCaPool") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CaPool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCaPoolsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/ListCaPools") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/caPools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCaPoolsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCaPoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/DeleteCaPool") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCaPoolRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + fetchCaCertsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/FetchCaCerts") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{caPool=projects/*/locations/*/caPools/*}:fetchCaCerts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "caPool", request.getCaPool()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearCaPool().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchCaCertsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetCertificateRevocationListRequest, CertificateRevocationList> + getCertificateRevocationListMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/GetCertificateRevocationList") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateRevocationList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/ListCertificateRevocationLists") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/caPools/*/certificateAuthorities/*}/certificateRevocationLists", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListCertificateRevocationListsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCertificateRevocationListMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/UpdateCertificateRevocationList") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{certificateRevocationList.name=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "certificateRevocationList.name", + request.getCertificateRevocationList().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateRevocationList", + request.getCertificateRevocationList())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCertificateRevocationListRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createCertificateTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/CreateCertificateTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/certificateTemplates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "certificateTemplateId", + request.getCertificateTemplateId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("certificateTemplate", request.getCertificateTemplate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCertificateTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCertificateTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/DeleteCertificateTemplate") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/certificateTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCertificateTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getCertificateTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/GetCertificateTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/certificateTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCertificateTemplatesRequest, ListCertificateTemplatesResponse> + listCertificateTemplatesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/ListCertificateTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/certificateTemplates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCertificateTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCertificateTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1.CertificateAuthorityService/UpdateCertificateTemplate") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{certificateTemplate.name=projects/*/locations/*/certificateTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "certificateTemplate.name", + request.getCertificateTemplate().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("certificateTemplate", request.getCertificateTemplate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCertificateTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/caPools/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/certificateTemplates/*}:setIamPolicy", + "/v1/{resource=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/caPools/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/certificateTemplates/*}:getIamPolicy", + "/v1/{resource=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/caPools/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/certificateTemplates/*}:testIamPermissions", + "/v1/{resource=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createCertificateCallable; + private final UnaryCallable getCertificateCallable; + private final UnaryCallable + listCertificatesCallable; + private final UnaryCallable + listCertificatesPagedCallable; + private final UnaryCallable revokeCertificateCallable; + private final UnaryCallable updateCertificateCallable; + private final UnaryCallable + activateCertificateAuthorityCallable; + private final OperationCallable< + ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + activateCertificateAuthorityOperationCallable; + private final UnaryCallable + createCertificateAuthorityCallable; + private final OperationCallable< + CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + createCertificateAuthorityOperationCallable; + private final UnaryCallable + disableCertificateAuthorityCallable; + private final OperationCallable< + DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + disableCertificateAuthorityOperationCallable; + private final UnaryCallable + enableCertificateAuthorityCallable; + private final OperationCallable< + EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + enableCertificateAuthorityOperationCallable; + private final UnaryCallable< + FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> + fetchCertificateAuthorityCsrCallable; + private final UnaryCallable + getCertificateAuthorityCallable; + private final UnaryCallable + listCertificateAuthoritiesCallable; + private final UnaryCallable< + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesPagedResponse> + listCertificateAuthoritiesPagedCallable; + private final UnaryCallable + undeleteCertificateAuthorityCallable; + private final OperationCallable< + UndeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + undeleteCertificateAuthorityOperationCallable; + private final UnaryCallable + deleteCertificateAuthorityCallable; + private final OperationCallable< + DeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + deleteCertificateAuthorityOperationCallable; + private final UnaryCallable + updateCertificateAuthorityCallable; + private final OperationCallable< + UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + updateCertificateAuthorityOperationCallable; + private final UnaryCallable createCaPoolCallable; + private final OperationCallable + createCaPoolOperationCallable; + private final UnaryCallable updateCaPoolCallable; + private final OperationCallable + updateCaPoolOperationCallable; + private final UnaryCallable getCaPoolCallable; + private final UnaryCallable listCaPoolsCallable; + private final UnaryCallable + listCaPoolsPagedCallable; + private final UnaryCallable deleteCaPoolCallable; + private final OperationCallable + deleteCaPoolOperationCallable; + private final UnaryCallable fetchCaCertsCallable; + private final UnaryCallable + getCertificateRevocationListCallable; + private final UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsCallable; + private final UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> + listCertificateRevocationListsPagedCallable; + private final UnaryCallable + updateCertificateRevocationListCallable; + private final OperationCallable< + UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> + updateCertificateRevocationListOperationCallable; + private final UnaryCallable + createCertificateTemplateCallable; + private final OperationCallable< + CreateCertificateTemplateRequest, CertificateTemplate, OperationMetadata> + createCertificateTemplateOperationCallable; + private final UnaryCallable + deleteCertificateTemplateCallable; + private final OperationCallable + deleteCertificateTemplateOperationCallable; + private final UnaryCallable + getCertificateTemplateCallable; + private final UnaryCallable + listCertificateTemplatesCallable; + private final UnaryCallable< + ListCertificateTemplatesRequest, ListCertificateTemplatesPagedResponse> + listCertificateTemplatesPagedCallable; + private final UnaryCallable + updateCertificateTemplateCallable; + private final OperationCallable< + UpdateCertificateTemplateRequest, CertificateTemplate, OperationMetadata> + updateCertificateTemplateOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCertificateAuthorityServiceStub create( + CertificateAuthorityServiceStubSettings settings) throws IOException { + return new HttpJsonCertificateAuthorityServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCertificateAuthorityServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCertificateAuthorityServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonCertificateAuthorityServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCertificateAuthorityServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCertificateAuthorityServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCertificatesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCertificatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings revokeCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(revokeCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + activateCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(activateCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + disableCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(disableCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + enableCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(enableCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + fetchCertificateAuthorityCsrTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchCertificateAuthorityCsrMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCertificateAuthoritiesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCertificateAuthoritiesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + undeleteCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(undeleteCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createCaPoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCaPoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCaPoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCaPoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCaPoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCaPoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listCaPoolsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCaPoolsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteCaPoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCaPoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings fetchCaCertsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(fetchCaCertsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateRevocationListTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCertificateRevocationListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listCertificateRevocationListsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateCertificateRevocationListTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateRevocationListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createCertificateTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteCertificateTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCertificateTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCertificateTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCertificateTemplatesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCertificateTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateCertificateTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createCertificateCallable = + callableFactory.createUnaryCallable( + createCertificateTransportSettings, + settings.createCertificateSettings(), + clientContext); + this.getCertificateCallable = + callableFactory.createUnaryCallable( + getCertificateTransportSettings, settings.getCertificateSettings(), clientContext); + this.listCertificatesCallable = + callableFactory.createUnaryCallable( + listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext); + this.listCertificatesPagedCallable = + callableFactory.createPagedCallable( + listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext); + this.revokeCertificateCallable = + callableFactory.createUnaryCallable( + revokeCertificateTransportSettings, + settings.revokeCertificateSettings(), + clientContext); + this.updateCertificateCallable = + callableFactory.createUnaryCallable( + updateCertificateTransportSettings, + settings.updateCertificateSettings(), + clientContext); + this.activateCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + activateCertificateAuthorityTransportSettings, + settings.activateCertificateAuthoritySettings(), + clientContext); + this.activateCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + activateCertificateAuthorityTransportSettings, + settings.activateCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + createCertificateAuthorityTransportSettings, + settings.createCertificateAuthoritySettings(), + clientContext); + this.createCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + createCertificateAuthorityTransportSettings, + settings.createCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.disableCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + disableCertificateAuthorityTransportSettings, + settings.disableCertificateAuthoritySettings(), + clientContext); + this.disableCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + disableCertificateAuthorityTransportSettings, + settings.disableCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.enableCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + enableCertificateAuthorityTransportSettings, + settings.enableCertificateAuthoritySettings(), + clientContext); + this.enableCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + enableCertificateAuthorityTransportSettings, + settings.enableCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.fetchCertificateAuthorityCsrCallable = + callableFactory.createUnaryCallable( + fetchCertificateAuthorityCsrTransportSettings, + settings.fetchCertificateAuthorityCsrSettings(), + clientContext); + this.getCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + getCertificateAuthorityTransportSettings, + settings.getCertificateAuthoritySettings(), + clientContext); + this.listCertificateAuthoritiesCallable = + callableFactory.createUnaryCallable( + listCertificateAuthoritiesTransportSettings, + settings.listCertificateAuthoritiesSettings(), + clientContext); + this.listCertificateAuthoritiesPagedCallable = + callableFactory.createPagedCallable( + listCertificateAuthoritiesTransportSettings, + settings.listCertificateAuthoritiesSettings(), + clientContext); + this.undeleteCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + undeleteCertificateAuthorityTransportSettings, + settings.undeleteCertificateAuthoritySettings(), + clientContext); + this.undeleteCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + undeleteCertificateAuthorityTransportSettings, + settings.undeleteCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + deleteCertificateAuthorityTransportSettings, + settings.deleteCertificateAuthoritySettings(), + clientContext); + this.deleteCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + deleteCertificateAuthorityTransportSettings, + settings.deleteCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + updateCertificateAuthorityTransportSettings, + settings.updateCertificateAuthoritySettings(), + clientContext); + this.updateCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + updateCertificateAuthorityTransportSettings, + settings.updateCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createCaPoolCallable = + callableFactory.createUnaryCallable( + createCaPoolTransportSettings, settings.createCaPoolSettings(), clientContext); + this.createCaPoolOperationCallable = + callableFactory.createOperationCallable( + createCaPoolTransportSettings, + settings.createCaPoolOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateCaPoolCallable = + callableFactory.createUnaryCallable( + updateCaPoolTransportSettings, settings.updateCaPoolSettings(), clientContext); + this.updateCaPoolOperationCallable = + callableFactory.createOperationCallable( + updateCaPoolTransportSettings, + settings.updateCaPoolOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCaPoolCallable = + callableFactory.createUnaryCallable( + getCaPoolTransportSettings, settings.getCaPoolSettings(), clientContext); + this.listCaPoolsCallable = + callableFactory.createUnaryCallable( + listCaPoolsTransportSettings, settings.listCaPoolsSettings(), clientContext); + this.listCaPoolsPagedCallable = + callableFactory.createPagedCallable( + listCaPoolsTransportSettings, settings.listCaPoolsSettings(), clientContext); + this.deleteCaPoolCallable = + callableFactory.createUnaryCallable( + deleteCaPoolTransportSettings, settings.deleteCaPoolSettings(), clientContext); + this.deleteCaPoolOperationCallable = + callableFactory.createOperationCallable( + deleteCaPoolTransportSettings, + settings.deleteCaPoolOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.fetchCaCertsCallable = + callableFactory.createUnaryCallable( + fetchCaCertsTransportSettings, settings.fetchCaCertsSettings(), clientContext); + this.getCertificateRevocationListCallable = + callableFactory.createUnaryCallable( + getCertificateRevocationListTransportSettings, + settings.getCertificateRevocationListSettings(), + clientContext); + this.listCertificateRevocationListsCallable = + callableFactory.createUnaryCallable( + listCertificateRevocationListsTransportSettings, + settings.listCertificateRevocationListsSettings(), + clientContext); + this.listCertificateRevocationListsPagedCallable = + callableFactory.createPagedCallable( + listCertificateRevocationListsTransportSettings, + settings.listCertificateRevocationListsSettings(), + clientContext); + this.updateCertificateRevocationListCallable = + callableFactory.createUnaryCallable( + updateCertificateRevocationListTransportSettings, + settings.updateCertificateRevocationListSettings(), + clientContext); + this.updateCertificateRevocationListOperationCallable = + callableFactory.createOperationCallable( + updateCertificateRevocationListTransportSettings, + settings.updateCertificateRevocationListOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createCertificateTemplateCallable = + callableFactory.createUnaryCallable( + createCertificateTemplateTransportSettings, + settings.createCertificateTemplateSettings(), + clientContext); + this.createCertificateTemplateOperationCallable = + callableFactory.createOperationCallable( + createCertificateTemplateTransportSettings, + settings.createCertificateTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCertificateTemplateCallable = + callableFactory.createUnaryCallable( + deleteCertificateTemplateTransportSettings, + settings.deleteCertificateTemplateSettings(), + clientContext); + this.deleteCertificateTemplateOperationCallable = + callableFactory.createOperationCallable( + deleteCertificateTemplateTransportSettings, + settings.deleteCertificateTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCertificateTemplateCallable = + callableFactory.createUnaryCallable( + getCertificateTemplateTransportSettings, + settings.getCertificateTemplateSettings(), + clientContext); + this.listCertificateTemplatesCallable = + callableFactory.createUnaryCallable( + listCertificateTemplatesTransportSettings, + settings.listCertificateTemplatesSettings(), + clientContext); + this.listCertificateTemplatesPagedCallable = + callableFactory.createPagedCallable( + listCertificateTemplatesTransportSettings, + settings.listCertificateTemplatesSettings(), + clientContext); + this.updateCertificateTemplateCallable = + callableFactory.createUnaryCallable( + updateCertificateTemplateTransportSettings, + settings.updateCertificateTemplateSettings(), + clientContext); + this.updateCertificateTemplateOperationCallable = + callableFactory.createOperationCallable( + updateCertificateTemplateTransportSettings, + settings.updateCertificateTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createCertificateMethodDescriptor); + methodDescriptors.add(getCertificateMethodDescriptor); + methodDescriptors.add(listCertificatesMethodDescriptor); + methodDescriptors.add(revokeCertificateMethodDescriptor); + methodDescriptors.add(updateCertificateMethodDescriptor); + methodDescriptors.add(activateCertificateAuthorityMethodDescriptor); + methodDescriptors.add(createCertificateAuthorityMethodDescriptor); + methodDescriptors.add(disableCertificateAuthorityMethodDescriptor); + methodDescriptors.add(enableCertificateAuthorityMethodDescriptor); + methodDescriptors.add(fetchCertificateAuthorityCsrMethodDescriptor); + methodDescriptors.add(getCertificateAuthorityMethodDescriptor); + methodDescriptors.add(listCertificateAuthoritiesMethodDescriptor); + methodDescriptors.add(undeleteCertificateAuthorityMethodDescriptor); + methodDescriptors.add(deleteCertificateAuthorityMethodDescriptor); + methodDescriptors.add(updateCertificateAuthorityMethodDescriptor); + methodDescriptors.add(createCaPoolMethodDescriptor); + methodDescriptors.add(updateCaPoolMethodDescriptor); + methodDescriptors.add(getCaPoolMethodDescriptor); + methodDescriptors.add(listCaPoolsMethodDescriptor); + methodDescriptors.add(deleteCaPoolMethodDescriptor); + methodDescriptors.add(fetchCaCertsMethodDescriptor); + methodDescriptors.add(getCertificateRevocationListMethodDescriptor); + methodDescriptors.add(listCertificateRevocationListsMethodDescriptor); + methodDescriptors.add(updateCertificateRevocationListMethodDescriptor); + methodDescriptors.add(createCertificateTemplateMethodDescriptor); + methodDescriptors.add(deleteCertificateTemplateMethodDescriptor); + methodDescriptors.add(getCertificateTemplateMethodDescriptor); + methodDescriptors.add(listCertificateTemplatesMethodDescriptor); + methodDescriptors.add(updateCertificateTemplateMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createCertificateCallable() { + return createCertificateCallable; + } + + @Override + public UnaryCallable getCertificateCallable() { + return getCertificateCallable; + } + + @Override + public UnaryCallable + listCertificatesCallable() { + return listCertificatesCallable; + } + + @Override + public UnaryCallable + listCertificatesPagedCallable() { + return listCertificatesPagedCallable; + } + + @Override + public UnaryCallable revokeCertificateCallable() { + return revokeCertificateCallable; + } + + @Override + public UnaryCallable updateCertificateCallable() { + return updateCertificateCallable; + } + + @Override + public UnaryCallable + activateCertificateAuthorityCallable() { + return activateCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + activateCertificateAuthorityOperationCallable() { + return activateCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + createCertificateAuthorityCallable() { + return createCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + createCertificateAuthorityOperationCallable() { + return createCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + disableCertificateAuthorityCallable() { + return disableCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + disableCertificateAuthorityOperationCallable() { + return disableCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + enableCertificateAuthorityCallable() { + return enableCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + enableCertificateAuthorityOperationCallable() { + return enableCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + fetchCertificateAuthorityCsrCallable() { + return fetchCertificateAuthorityCsrCallable; + } + + @Override + public UnaryCallable + getCertificateAuthorityCallable() { + return getCertificateAuthorityCallable; + } + + @Override + public UnaryCallable + listCertificateAuthoritiesCallable() { + return listCertificateAuthoritiesCallable; + } + + @Override + public UnaryCallable + listCertificateAuthoritiesPagedCallable() { + return listCertificateAuthoritiesPagedCallable; + } + + @Override + public UnaryCallable + undeleteCertificateAuthorityCallable() { + return undeleteCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + UndeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + undeleteCertificateAuthorityOperationCallable() { + return undeleteCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + deleteCertificateAuthorityCallable() { + return deleteCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + DeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + deleteCertificateAuthorityOperationCallable() { + return deleteCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + updateCertificateAuthorityCallable() { + return updateCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + updateCertificateAuthorityOperationCallable() { + return updateCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable createCaPoolCallable() { + return createCaPoolCallable; + } + + @Override + public OperationCallable + createCaPoolOperationCallable() { + return createCaPoolOperationCallable; + } + + @Override + public UnaryCallable updateCaPoolCallable() { + return updateCaPoolCallable; + } + + @Override + public OperationCallable + updateCaPoolOperationCallable() { + return updateCaPoolOperationCallable; + } + + @Override + public UnaryCallable getCaPoolCallable() { + return getCaPoolCallable; + } + + @Override + public UnaryCallable listCaPoolsCallable() { + return listCaPoolsCallable; + } + + @Override + public UnaryCallable listCaPoolsPagedCallable() { + return listCaPoolsPagedCallable; + } + + @Override + public UnaryCallable deleteCaPoolCallable() { + return deleteCaPoolCallable; + } + + @Override + public OperationCallable + deleteCaPoolOperationCallable() { + return deleteCaPoolOperationCallable; + } + + @Override + public UnaryCallable fetchCaCertsCallable() { + return fetchCaCertsCallable; + } + + @Override + public UnaryCallable + getCertificateRevocationListCallable() { + return getCertificateRevocationListCallable; + } + + @Override + public UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsCallable() { + return listCertificateRevocationListsCallable; + } + + @Override + public UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> + listCertificateRevocationListsPagedCallable() { + return listCertificateRevocationListsPagedCallable; + } + + @Override + public UnaryCallable + updateCertificateRevocationListCallable() { + return updateCertificateRevocationListCallable; + } + + @Override + public OperationCallable< + UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> + updateCertificateRevocationListOperationCallable() { + return updateCertificateRevocationListOperationCallable; + } + + @Override + public UnaryCallable + createCertificateTemplateCallable() { + return createCertificateTemplateCallable; + } + + @Override + public OperationCallable + createCertificateTemplateOperationCallable() { + return createCertificateTemplateOperationCallable; + } + + @Override + public UnaryCallable + deleteCertificateTemplateCallable() { + return deleteCertificateTemplateCallable; + } + + @Override + public OperationCallable + deleteCertificateTemplateOperationCallable() { + return deleteCertificateTemplateOperationCallable; + } + + @Override + public UnaryCallable + getCertificateTemplateCallable() { + return getCertificateTemplateCallable; + } + + @Override + public UnaryCallable + listCertificateTemplatesCallable() { + return listCertificateTemplatesCallable; + } + + @Override + public UnaryCallable + listCertificateTemplatesPagedCallable() { + return listCertificateTemplatesPagedCallable; + } + + @Override + public UnaryCallable + updateCertificateTemplateCallable() { + return updateCertificateTemplateCallable; + } + + @Override + public OperationCallable + updateCertificateTemplateOperationCallable() { + return updateCertificateTemplateOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java similarity index 97% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java index 5491c185..8b1c1334 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -31,7 +32,6 @@ import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; @@ -69,13 +69,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -112,6 +112,22 @@ * CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CertificateAuthorityServiceSettings certificateAuthorityServiceSettings =
+ *     CertificateAuthorityServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CertificateAuthorityServiceSettings.defaultHttpJsonTransportProviderBuilder()
+ *                 .build())
+ *         .build();
+ * CertificateAuthorityServiceClient certificateAuthorityServiceClient =
+ *     CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -119,7 +135,8 @@ public class CertificateAuthorityServiceClient implements BackgroundResource { private final CertificateAuthorityServiceSettings settings; private final CertificateAuthorityServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of CertificateAuthorityServiceClient with default settings. */ public static final CertificateAuthorityServiceClient create() throws IOException { @@ -154,13 +171,17 @@ protected CertificateAuthorityServiceClient(CertificateAuthorityServiceSettings throws IOException { this.settings = settings; this.stub = ((CertificateAuthorityServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected CertificateAuthorityServiceClient(CertificateAuthorityServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final CertificateAuthorityServiceSettings getSettings() { @@ -175,10 +196,18 @@ public CertificateAuthorityServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given @@ -3249,10 +3278,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListCertificatesPagedResponse extends AbstractPagedListResponse< - ListCertificatesRequest, - ListCertificatesResponse, - Certificate, - ListCertificatesPage, + ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, ListCertificatesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3302,10 +3328,7 @@ public ApiFuture createPageAsync( public static class ListCertificatesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificatesRequest, - ListCertificatesResponse, - Certificate, - ListCertificatesPage, + ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( @@ -3326,16 +3349,13 @@ protected ListCertificatesFixedSizeCollection createCollection( public static class ListCertificateAuthoritiesPagedResponse extends AbstractPagedListResponse< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + CertificateAuthority, ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -3354,15 +3374,12 @@ private ListCertificateAuthoritiesPagedResponse(ListCertificateAuthoritiesPage p public static class ListCertificateAuthoritiesPage extends AbstractPage< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage> { + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + CertificateAuthority, ListCertificateAuthoritiesPage> { private ListCertificateAuthoritiesPage( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -3376,8 +3393,7 @@ private static ListCertificateAuthoritiesPage createEmptyPage() { @Override protected ListCertificateAuthoritiesPage createPage( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -3387,8 +3403,7 @@ protected ListCertificateAuthoritiesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -3398,10 +3413,8 @@ public ApiFuture createPageAsync( public static class ListCertificateAuthoritiesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, - CertificateAuthority, - ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + CertificateAuthority, ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { private ListCertificateAuthoritiesFixedSizeCollection( @@ -3422,16 +3435,13 @@ protected ListCertificateAuthoritiesFixedSizeCollection createCollection( public static class ListCertificateRevocationListsPagedResponse extends AbstractPagedListResponse< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + CertificateRevocationList, ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -3451,15 +3461,12 @@ private ListCertificateRevocationListsPagedResponse(ListCertificateRevocationLis public static class ListCertificateRevocationListsPage extends AbstractPage< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage> { + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + CertificateRevocationList, ListCertificateRevocationListsPage> { private ListCertificateRevocationListsPage( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -3473,8 +3480,7 @@ private static ListCertificateRevocationListsPage createEmptyPage() { @Override protected ListCertificateRevocationListsPage createPage( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -3484,8 +3490,7 @@ protected ListCertificateRevocationListsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -3495,10 +3500,8 @@ public ApiFuture createPageAsync( public static class ListCertificateRevocationListsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, - CertificateRevocationList, - ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + CertificateRevocationList, ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { private ListCertificateRevocationListsFixedSizeCollection( @@ -3519,11 +3522,8 @@ protected ListCertificateRevocationListsFixedSizeCollection createCollection( public static class ListReusableConfigsPagedResponse extends AbstractPagedListResponse< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ReusableConfig, - ListReusableConfigsPage, - ListReusableConfigsFixedSizeCollection> { + ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig, + ListReusableConfigsPage, ListReusableConfigsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3544,9 +3544,7 @@ private ListReusableConfigsPagedResponse(ListReusableConfigsPage page) { public static class ListReusableConfigsPage extends AbstractPage< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ReusableConfig, + ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig, ListReusableConfigsPage> { private ListReusableConfigsPage( @@ -3579,11 +3577,8 @@ public ApiFuture createPageAsync( public static class ListReusableConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListReusableConfigsRequest, - ListReusableConfigsResponse, - ReusableConfig, - ListReusableConfigsPage, - ListReusableConfigsFixedSizeCollection> { + ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig, + ListReusableConfigsPage, ListReusableConfigsFixedSizeCollection> { private ListReusableConfigsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java similarity index 94% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java index 2ce6295b..fb6988f5 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java @@ -26,11 +26,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; @@ -46,9 +48,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -186,8 +188,7 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -248,8 +249,7 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -310,11 +310,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CertificateAuthorityServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CertificateAuthorityServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CertificateAuthorityServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CertificateAuthorityServiceStubSettings.defaultTransportChannelProvider(); } @@ -324,11 +331,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CertificateAuthorityServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -367,6 +380,11 @@ private static Builder createDefault() { return new Builder(CertificateAuthorityServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CertificateAuthorityServiceStubSettings.newHttpJsonBuilder()); + } + public CertificateAuthorityServiceStubSettings.Builder getStubSettingsBuilder() { return ((CertificateAuthorityServiceStubSettings.Builder) getStubSettings()); } @@ -480,8 +498,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return getStubSettingsBuilder().listCertificateAuthoritiesSettings(); @@ -538,8 +555,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return getStubSettingsBuilder().listCertificateRevocationListsSettings(); @@ -566,8 +582,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listReusableConfigs. */ public PagedCallSettings.Builder< - ListReusableConfigsRequest, - ListReusableConfigsResponse, + ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings() { return getStubSettingsBuilder().listReusableConfigsSettings(); diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java similarity index 100% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java similarity index 98% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java index e36206f8..3f576733 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java @@ -70,7 +70,11 @@ public abstract class CertificateAuthorityServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createCertificateCallable() { diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java similarity index 94% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java index 0b9ff6f8..d7287291 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java @@ -31,6 +31,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -94,9 +97,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -163,8 +166,7 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateAuthoritySettings; private final PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings @@ -185,8 +187,7 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateRevocationListSettings; private final PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings @@ -241,13 +242,11 @@ public Iterable extractResources(ListCertificatesResponse payload) }; private static final PagedListDescriptor< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority>() { @Override public String emptyToken() { @@ -290,13 +289,11 @@ public Iterable extractResources( }; private static final PagedListDescriptor< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList>() { @Override public String emptyToken() { @@ -398,13 +395,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -414,8 +409,7 @@ public ApiFuture getFuturePagedResponse ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> pageContext = PageContext.create( @@ -426,13 +420,11 @@ public ApiFuture getFuturePagedResponse }; private static final PagedListResponseFactory< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -444,8 +436,7 @@ public ApiFuture getFuturePagedResp ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> pageContext = PageContext.create( @@ -462,8 +453,7 @@ public ApiFuture getFuturePagedResp ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> LIST_REUSABLE_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< - ListReusableConfigsRequest, - ListReusableConfigsResponse, + ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -573,8 +563,7 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -627,8 +616,7 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -665,6 +653,11 @@ public CertificateAuthorityServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCertificateAuthorityServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCertificateAuthorityServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -697,18 +690,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CertificateAuthorityServiceStubSettings.class)) @@ -716,11 +716,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CertificateAuthorityServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CertificateAuthorityServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -825,8 +844,7 @@ public static class Builder private final UnaryCallSettings.Builder getCertificateAuthoritySettings; private final PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings.Builder @@ -848,8 +866,7 @@ public static class Builder GetCertificateRevocationListRequest, CertificateRevocationList> getCertificateRevocationListSettings; private final PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings.Builder @@ -860,8 +877,7 @@ public static class Builder private final UnaryCallSettings.Builder getReusableConfigSettings; private final PagedCallSettings.Builder< - ListReusableConfigsRequest, - ListReusableConfigsResponse, + ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings; private static final ImmutableMap> @@ -1048,6 +1064,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createCertificateSettings() @@ -1473,8 +1502,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, - ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -1537,8 +1565,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, - ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -1567,8 +1594,7 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listReusableConfigs. */ public PagedCallSettings.Builder< - ListReusableConfigsRequest, - ListReusableConfigsResponse, + ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings() { return listReusableConfigsSettings; diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java similarity index 100% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java diff --git a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java similarity index 99% rename from google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java index 4ac5bb5b..b3b7e8af 100644 --- a/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java @@ -65,6 +65,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/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java new file mode 100644 index 00000000..22c63164 --- /dev/null +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CertificateAuthorityService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCertificateAuthorityServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java new file mode 100644 index 00000000..8125890d --- /dev/null +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java @@ -0,0 +1,1560 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.stub; + +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; +import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; +import com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.GetCertificateRequest; +import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest; +import com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse; +import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse; +import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse; +import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; +import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; +import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; +import com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest; +import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CertificateAuthorityService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCertificateAuthorityServiceStub extends CertificateAuthorityServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(CertificateAuthority.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(CertificateRevocationList.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateCertificate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/certificateAuthorities/*}/certificates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "certificateId", request.getCertificateId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("certificate", request.getCertificate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetCertificate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*/certificates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCertificatesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListCertificates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/certificateAuthorities/*}/certificates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCertificatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + revokeCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/RevokeCertificate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*/certificates/*}:revoke", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCertificateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateCertificate") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{certificate.name=projects/*/locations/*/certificateAuthorities/*/certificates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "certificate.name", request.getCertificate().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("certificate", request.getCertificate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Certificate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + activateCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ActivateCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}:activate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ActivateCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/CreateCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/certificateAuthorities", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "certificateAuthorityId", + request.getCertificateAuthorityId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateAuthority", request.getCertificateAuthority())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + disableCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/DisableCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}:disable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DisableCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + enableCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/EnableCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}:enable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (EnableCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> + fetchCertificateAuthorityCsrMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/FetchCertificateAuthorityCsr") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}:fetch", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchCertificateAuthorityCsrResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetCertificateAuthority") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateAuthority.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse> + listCertificateAuthoritiesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListCertificateAuthorities") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/certificateAuthorities", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCertificateAuthoritiesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + restoreCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/RestoreCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}:restore", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + scheduleDeleteCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ScheduleDeleteCertificateAuthority") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*}:scheduleDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ScheduleDeleteCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateCertificateAuthority") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{certificateAuthority.name=projects/*/locations/*/certificateAuthorities/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "certificateAuthority.name", + request.getCertificateAuthority().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateAuthority", request.getCertificateAuthority())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCertificateAuthorityRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GetCertificateRevocationListRequest, CertificateRevocationList> + getCertificateRevocationListMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetCertificateRevocationList") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/certificateAuthorities/*/certificateRevocationLists/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateRevocationList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListCertificateRevocationLists") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/certificateAuthorities/*}/certificateRevocationLists", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListCertificateRevocationListsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCertificateRevocationListMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/UpdateCertificateRevocationList") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{certificateRevocationList.name=projects/*/locations/*/certificateAuthorities/*/certificateRevocationLists/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "certificateRevocationList.name", + request.getCertificateRevocationList().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateRevocationList", + request.getCertificateRevocationList())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCertificateRevocationListRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getReusableConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/GetReusableConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/reusableConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReusableConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listReusableConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService/ListReusableConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/reusableConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListReusableConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createCertificateCallable; + private final UnaryCallable getCertificateCallable; + private final UnaryCallable + listCertificatesCallable; + private final UnaryCallable + listCertificatesPagedCallable; + private final UnaryCallable revokeCertificateCallable; + private final UnaryCallable updateCertificateCallable; + private final UnaryCallable + activateCertificateAuthorityCallable; + private final OperationCallable< + ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + activateCertificateAuthorityOperationCallable; + private final UnaryCallable + createCertificateAuthorityCallable; + private final OperationCallable< + CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + createCertificateAuthorityOperationCallable; + private final UnaryCallable + disableCertificateAuthorityCallable; + private final OperationCallable< + DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + disableCertificateAuthorityOperationCallable; + private final UnaryCallable + enableCertificateAuthorityCallable; + private final OperationCallable< + EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + enableCertificateAuthorityOperationCallable; + private final UnaryCallable< + FetchCertificateAuthorityCsrRequest, FetchCertificateAuthorityCsrResponse> + fetchCertificateAuthorityCsrCallable; + private final UnaryCallable + getCertificateAuthorityCallable; + private final UnaryCallable + listCertificateAuthoritiesCallable; + private final UnaryCallable< + ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesPagedResponse> + listCertificateAuthoritiesPagedCallable; + private final UnaryCallable + restoreCertificateAuthorityCallable; + private final OperationCallable< + RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + restoreCertificateAuthorityOperationCallable; + private final UnaryCallable + scheduleDeleteCertificateAuthorityCallable; + private final OperationCallable< + ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + scheduleDeleteCertificateAuthorityOperationCallable; + private final UnaryCallable + updateCertificateAuthorityCallable; + private final OperationCallable< + UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + updateCertificateAuthorityOperationCallable; + private final UnaryCallable + getCertificateRevocationListCallable; + private final UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsCallable; + private final UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> + listCertificateRevocationListsPagedCallable; + private final UnaryCallable + updateCertificateRevocationListCallable; + private final OperationCallable< + UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> + updateCertificateRevocationListOperationCallable; + private final UnaryCallable getReusableConfigCallable; + private final UnaryCallable + listReusableConfigsCallable; + private final UnaryCallable + listReusableConfigsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCertificateAuthorityServiceStub create( + CertificateAuthorityServiceStubSettings settings) throws IOException { + return new HttpJsonCertificateAuthorityServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCertificateAuthorityServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCertificateAuthorityServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonCertificateAuthorityServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCertificateAuthorityServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCertificateAuthorityServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonCertificateAuthorityServiceStub( + CertificateAuthorityServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCertificatesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCertificatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings revokeCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(revokeCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCertificateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + activateCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(activateCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + disableCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(disableCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + enableCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(enableCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + fetchCertificateAuthorityCsrTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchCertificateAuthorityCsrMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCertificateAuthoritiesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCertificateAuthoritiesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + restoreCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + scheduleDeleteCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(scheduleDeleteCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateCertificateAuthorityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateRevocationListTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCertificateRevocationListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listCertificateRevocationListsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateCertificateRevocationListTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCertificateRevocationListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getReusableConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getReusableConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listReusableConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listReusableConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createCertificateCallable = + callableFactory.createUnaryCallable( + createCertificateTransportSettings, + settings.createCertificateSettings(), + clientContext); + this.getCertificateCallable = + callableFactory.createUnaryCallable( + getCertificateTransportSettings, settings.getCertificateSettings(), clientContext); + this.listCertificatesCallable = + callableFactory.createUnaryCallable( + listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext); + this.listCertificatesPagedCallable = + callableFactory.createPagedCallable( + listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext); + this.revokeCertificateCallable = + callableFactory.createUnaryCallable( + revokeCertificateTransportSettings, + settings.revokeCertificateSettings(), + clientContext); + this.updateCertificateCallable = + callableFactory.createUnaryCallable( + updateCertificateTransportSettings, + settings.updateCertificateSettings(), + clientContext); + this.activateCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + activateCertificateAuthorityTransportSettings, + settings.activateCertificateAuthoritySettings(), + clientContext); + this.activateCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + activateCertificateAuthorityTransportSettings, + settings.activateCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + createCertificateAuthorityTransportSettings, + settings.createCertificateAuthoritySettings(), + clientContext); + this.createCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + createCertificateAuthorityTransportSettings, + settings.createCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.disableCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + disableCertificateAuthorityTransportSettings, + settings.disableCertificateAuthoritySettings(), + clientContext); + this.disableCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + disableCertificateAuthorityTransportSettings, + settings.disableCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.enableCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + enableCertificateAuthorityTransportSettings, + settings.enableCertificateAuthoritySettings(), + clientContext); + this.enableCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + enableCertificateAuthorityTransportSettings, + settings.enableCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.fetchCertificateAuthorityCsrCallable = + callableFactory.createUnaryCallable( + fetchCertificateAuthorityCsrTransportSettings, + settings.fetchCertificateAuthorityCsrSettings(), + clientContext); + this.getCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + getCertificateAuthorityTransportSettings, + settings.getCertificateAuthoritySettings(), + clientContext); + this.listCertificateAuthoritiesCallable = + callableFactory.createUnaryCallable( + listCertificateAuthoritiesTransportSettings, + settings.listCertificateAuthoritiesSettings(), + clientContext); + this.listCertificateAuthoritiesPagedCallable = + callableFactory.createPagedCallable( + listCertificateAuthoritiesTransportSettings, + settings.listCertificateAuthoritiesSettings(), + clientContext); + this.restoreCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + restoreCertificateAuthorityTransportSettings, + settings.restoreCertificateAuthoritySettings(), + clientContext); + this.restoreCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + restoreCertificateAuthorityTransportSettings, + settings.restoreCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.scheduleDeleteCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + scheduleDeleteCertificateAuthorityTransportSettings, + settings.scheduleDeleteCertificateAuthoritySettings(), + clientContext); + this.scheduleDeleteCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + scheduleDeleteCertificateAuthorityTransportSettings, + settings.scheduleDeleteCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + updateCertificateAuthorityTransportSettings, + settings.updateCertificateAuthoritySettings(), + clientContext); + this.updateCertificateAuthorityOperationCallable = + callableFactory.createOperationCallable( + updateCertificateAuthorityTransportSettings, + settings.updateCertificateAuthorityOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCertificateRevocationListCallable = + callableFactory.createUnaryCallable( + getCertificateRevocationListTransportSettings, + settings.getCertificateRevocationListSettings(), + clientContext); + this.listCertificateRevocationListsCallable = + callableFactory.createUnaryCallable( + listCertificateRevocationListsTransportSettings, + settings.listCertificateRevocationListsSettings(), + clientContext); + this.listCertificateRevocationListsPagedCallable = + callableFactory.createPagedCallable( + listCertificateRevocationListsTransportSettings, + settings.listCertificateRevocationListsSettings(), + clientContext); + this.updateCertificateRevocationListCallable = + callableFactory.createUnaryCallable( + updateCertificateRevocationListTransportSettings, + settings.updateCertificateRevocationListSettings(), + clientContext); + this.updateCertificateRevocationListOperationCallable = + callableFactory.createOperationCallable( + updateCertificateRevocationListTransportSettings, + settings.updateCertificateRevocationListOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getReusableConfigCallable = + callableFactory.createUnaryCallable( + getReusableConfigTransportSettings, + settings.getReusableConfigSettings(), + clientContext); + this.listReusableConfigsCallable = + callableFactory.createUnaryCallable( + listReusableConfigsTransportSettings, + settings.listReusableConfigsSettings(), + clientContext); + this.listReusableConfigsPagedCallable = + callableFactory.createPagedCallable( + listReusableConfigsTransportSettings, + settings.listReusableConfigsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createCertificateMethodDescriptor); + methodDescriptors.add(getCertificateMethodDescriptor); + methodDescriptors.add(listCertificatesMethodDescriptor); + methodDescriptors.add(revokeCertificateMethodDescriptor); + methodDescriptors.add(updateCertificateMethodDescriptor); + methodDescriptors.add(activateCertificateAuthorityMethodDescriptor); + methodDescriptors.add(createCertificateAuthorityMethodDescriptor); + methodDescriptors.add(disableCertificateAuthorityMethodDescriptor); + methodDescriptors.add(enableCertificateAuthorityMethodDescriptor); + methodDescriptors.add(fetchCertificateAuthorityCsrMethodDescriptor); + methodDescriptors.add(getCertificateAuthorityMethodDescriptor); + methodDescriptors.add(listCertificateAuthoritiesMethodDescriptor); + methodDescriptors.add(restoreCertificateAuthorityMethodDescriptor); + methodDescriptors.add(scheduleDeleteCertificateAuthorityMethodDescriptor); + methodDescriptors.add(updateCertificateAuthorityMethodDescriptor); + methodDescriptors.add(getCertificateRevocationListMethodDescriptor); + methodDescriptors.add(listCertificateRevocationListsMethodDescriptor); + methodDescriptors.add(updateCertificateRevocationListMethodDescriptor); + methodDescriptors.add(getReusableConfigMethodDescriptor); + methodDescriptors.add(listReusableConfigsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createCertificateCallable() { + return createCertificateCallable; + } + + @Override + public UnaryCallable getCertificateCallable() { + return getCertificateCallable; + } + + @Override + public UnaryCallable + listCertificatesCallable() { + return listCertificatesCallable; + } + + @Override + public UnaryCallable + listCertificatesPagedCallable() { + return listCertificatesPagedCallable; + } + + @Override + public UnaryCallable revokeCertificateCallable() { + return revokeCertificateCallable; + } + + @Override + public UnaryCallable updateCertificateCallable() { + return updateCertificateCallable; + } + + @Override + public UnaryCallable + activateCertificateAuthorityCallable() { + return activateCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + ActivateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + activateCertificateAuthorityOperationCallable() { + return activateCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + createCertificateAuthorityCallable() { + return createCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + CreateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + createCertificateAuthorityOperationCallable() { + return createCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + disableCertificateAuthorityCallable() { + return disableCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + DisableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + disableCertificateAuthorityOperationCallable() { + return disableCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + enableCertificateAuthorityCallable() { + return enableCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + EnableCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + enableCertificateAuthorityOperationCallable() { + return enableCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + fetchCertificateAuthorityCsrCallable() { + return fetchCertificateAuthorityCsrCallable; + } + + @Override + public UnaryCallable + getCertificateAuthorityCallable() { + return getCertificateAuthorityCallable; + } + + @Override + public UnaryCallable + listCertificateAuthoritiesCallable() { + return listCertificateAuthoritiesCallable; + } + + @Override + public UnaryCallable + listCertificateAuthoritiesPagedCallable() { + return listCertificateAuthoritiesPagedCallable; + } + + @Override + public UnaryCallable + restoreCertificateAuthorityCallable() { + return restoreCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + RestoreCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + restoreCertificateAuthorityOperationCallable() { + return restoreCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + scheduleDeleteCertificateAuthorityCallable() { + return scheduleDeleteCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + ScheduleDeleteCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + scheduleDeleteCertificateAuthorityOperationCallable() { + return scheduleDeleteCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + updateCertificateAuthorityCallable() { + return updateCertificateAuthorityCallable; + } + + @Override + public OperationCallable< + UpdateCertificateAuthorityRequest, CertificateAuthority, OperationMetadata> + updateCertificateAuthorityOperationCallable() { + return updateCertificateAuthorityOperationCallable; + } + + @Override + public UnaryCallable + getCertificateRevocationListCallable() { + return getCertificateRevocationListCallable; + } + + @Override + public UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse> + listCertificateRevocationListsCallable() { + return listCertificateRevocationListsCallable; + } + + @Override + public UnaryCallable< + ListCertificateRevocationListsRequest, ListCertificateRevocationListsPagedResponse> + listCertificateRevocationListsPagedCallable() { + return listCertificateRevocationListsPagedCallable; + } + + @Override + public UnaryCallable + updateCertificateRevocationListCallable() { + return updateCertificateRevocationListCallable; + } + + @Override + public OperationCallable< + UpdateCertificateRevocationListRequest, CertificateRevocationList, OperationMetadata> + updateCertificateRevocationListOperationCallable() { + return updateCertificateRevocationListOperationCallable; + } + + @Override + public UnaryCallable getReusableConfigCallable() { + return getReusableConfigCallable; + } + + @Override + public UnaryCallable + listReusableConfigsCallable() { + return listReusableConfigsCallable; + } + + @Override + public UnaryCallable + listReusableConfigsPagedCallable() { + return listReusableConfigsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java new file mode 100644 index 00000000..9d04a3ee --- /dev/null +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java @@ -0,0 +1,3653 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1; + +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCaPoolsPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificateTemplatesPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; +import static com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.stub.HttpJsonCertificateAuthorityServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CertificateAuthorityServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CertificateAuthorityServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCertificateAuthorityServiceStub.getMethodDescriptors(), + CertificateAuthorityServiceSettings.getDefaultEndpoint()); + CertificateAuthorityServiceSettings settings = + CertificateAuthorityServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CertificateAuthorityServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CertificateAuthorityServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + + Certificate actualResponse = client.createCertificate(parent, certificate, certificateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + client.createCertificate(parent, certificate, certificateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCertificateTest2() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + + Certificate actualResponse = client.createCertificate(parent, certificate, certificateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + client.createCertificate(parent, certificate, certificateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + + Certificate actualResponse = client.getCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + client.getCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateTest2() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1351/locations/location-1351/caPools/caPool-1351/certificates/certificate-1351"; + + Certificate actualResponse = client.getCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1351/locations/location-1351/caPools/caPool-1351/certificates/certificate-1351"; + client.getCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificatesTest() throws Exception { + Certificate responsesElement = Certificate.newBuilder().build(); + ListCertificatesResponse expectedResponse = + ListCertificatesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + + ListCertificatesPagedResponse pagedListResponse = client.listCertificates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificatesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + client.listCertificates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificatesTest2() throws Exception { + Certificate responsesElement = Certificate.newBuilder().build(); + ListCertificatesResponse expectedResponse = + ListCertificatesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + + ListCertificatesPagedResponse pagedListResponse = client.listCertificates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificatesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + client.listCertificates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + + Certificate actualResponse = client.revokeCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + client.revokeCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeCertificateTest2() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1351/locations/location-1351/caPools/caPool-1351/certificates/certificate-1351"; + + Certificate actualResponse = client.revokeCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeCertificateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1351/locations/location-1351/caPools/caPool-1351/certificates/certificate-1351"; + client.revokeCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Certificate certificate = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Certificate actualResponse = client.updateCertificate(certificate, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Certificate certificate = + Certificate.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setIssuerCertificateAuthority( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setCertificateTemplate( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setSubjectMode(SubjectRequestMode.forNumber(0)) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificate(certificate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void activateCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.activateCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void activateCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.activateCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void activateCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + CertificateAuthority actualResponse = client.activateCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void activateCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.activateCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + + CertificateAuthority actualResponse = + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + + CertificateAuthority actualResponse = + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void disableCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("disableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.disableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.disableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void disableCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("disableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + CertificateAuthority actualResponse = client.disableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.disableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void enableCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("enableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.enableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.enableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void enableCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("enableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + CertificateAuthority actualResponse = client.enableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.enableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void fetchCertificateAuthorityCsrTest() throws Exception { + FetchCertificateAuthorityCsrResponse expectedResponse = + FetchCertificateAuthorityCsrResponse.newBuilder().setPemCsr("pemCsr-991911478").build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + FetchCertificateAuthorityCsrResponse actualResponse = client.fetchCertificateAuthorityCsr(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchCertificateAuthorityCsrExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.fetchCertificateAuthorityCsr(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchCertificateAuthorityCsrTest2() throws Exception { + FetchCertificateAuthorityCsrResponse expectedResponse = + FetchCertificateAuthorityCsrResponse.newBuilder().setPemCsr("pemCsr-991911478").build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + FetchCertificateAuthorityCsrResponse actualResponse = client.fetchCertificateAuthorityCsr(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchCertificateAuthorityCsrExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.fetchCertificateAuthorityCsr(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.getCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.getCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + CertificateAuthority actualResponse = client.getCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.getCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateAuthoritiesTest() throws Exception { + CertificateAuthority responsesElement = CertificateAuthority.newBuilder().build(); + ListCertificateAuthoritiesResponse expectedResponse = + ListCertificateAuthoritiesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateAuthorities(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + + ListCertificateAuthoritiesPagedResponse pagedListResponse = + client.listCertificateAuthorities(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificateAuthoritiesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateAuthoritiesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + client.listCertificateAuthorities(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateAuthoritiesTest2() throws Exception { + CertificateAuthority responsesElement = CertificateAuthority.newBuilder().build(); + ListCertificateAuthoritiesResponse expectedResponse = + ListCertificateAuthoritiesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateAuthorities(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + + ListCertificateAuthoritiesPagedResponse pagedListResponse = + client.listCertificateAuthorities(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificateAuthoritiesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateAuthoritiesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6494/locations/location-6494/caPools/caPool-6494"; + client.listCertificateAuthorities(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeleteCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.undeleteCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void undeleteCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.undeleteCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void undeleteCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeleteCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + CertificateAuthority actualResponse = client.undeleteCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void undeleteCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.undeleteCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.deleteCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.deleteCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + + CertificateAuthority actualResponse = client.deleteCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6987/locations/location-6987/caPools/caPool-6987/certificateAuthorities/certificateAuthoritie-6987"; + client.deleteCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthority certificateAuthority = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CertificateAuthority actualResponse = + client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthority certificateAuthority = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCaPoolTest() throws Exception { + CaPool expectedResponse = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCaPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CaPool caPool = CaPool.newBuilder().build(); + String caPoolId = "caPoolId-970668971"; + + CaPool actualResponse = client.createCaPoolAsync(parent, caPool, caPoolId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCaPoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CaPool caPool = CaPool.newBuilder().build(); + String caPoolId = "caPoolId-970668971"; + client.createCaPoolAsync(parent, caPool, caPoolId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCaPoolTest2() throws Exception { + CaPool expectedResponse = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCaPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CaPool caPool = CaPool.newBuilder().build(); + String caPoolId = "caPoolId-970668971"; + + CaPool actualResponse = client.createCaPoolAsync(parent, caPool, caPoolId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCaPoolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CaPool caPool = CaPool.newBuilder().build(); + String caPoolId = "caPoolId-970668971"; + client.createCaPoolAsync(parent, caPool, caPoolId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateCaPoolTest() throws Exception { + CaPool expectedResponse = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCaPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CaPool caPool = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CaPool actualResponse = client.updateCaPoolAsync(caPool, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCaPoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPool caPool = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCaPoolAsync(caPool, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getCaPoolTest() throws Exception { + CaPool expectedResponse = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CaPoolName name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + + CaPool actualResponse = client.getCaPool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCaPoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + client.getCaPool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCaPoolTest2() throws Exception { + CaPool expectedResponse = + CaPool.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setIssuancePolicy(CaPool.IssuancePolicy.newBuilder().build()) + .setPublishingOptions(CaPool.PublishingOptions.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2703/locations/location-2703/caPools/caPool-2703"; + + CaPool actualResponse = client.getCaPool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCaPoolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2703/locations/location-2703/caPools/caPool-2703"; + client.getCaPool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCaPoolsTest() throws Exception { + CaPool responsesElement = CaPool.newBuilder().build(); + ListCaPoolsResponse expectedResponse = + ListCaPoolsResponse.newBuilder() + .setNextPageToken("") + .addAllCaPools(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCaPoolsPagedResponse pagedListResponse = client.listCaPools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCaPoolsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCaPoolsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCaPools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCaPoolsTest2() throws Exception { + CaPool responsesElement = CaPool.newBuilder().build(); + ListCaPoolsResponse expectedResponse = + ListCaPoolsResponse.newBuilder() + .setNextPageToken("") + .addAllCaPools(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCaPoolsPagedResponse pagedListResponse = client.listCaPools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCaPoolsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCaPoolsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCaPools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCaPoolTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCaPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CaPoolName name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + + client.deleteCaPoolAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCaPoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + client.deleteCaPoolAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCaPoolTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCaPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-2703/locations/location-2703/caPools/caPool-2703"; + + client.deleteCaPoolAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCaPoolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2703/locations/location-2703/caPools/caPool-2703"; + client.deleteCaPoolAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void fetchCaCertsTest() throws Exception { + FetchCaCertsResponse expectedResponse = + FetchCaCertsResponse.newBuilder() + .addAllCaCerts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CaPoolName caPool = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + + FetchCaCertsResponse actualResponse = client.fetchCaCerts(caPool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchCaCertsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CaPoolName caPool = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + client.fetchCaCerts(caPool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchCaCertsTest2() throws Exception { + FetchCaCertsResponse expectedResponse = + FetchCaCertsResponse.newBuilder() + .addAllCaCerts(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String caPool = "projects/project-9774/locations/location-9774/caPools/caPool-9774"; + + FetchCaCertsResponse actualResponse = client.fetchCaCerts(caPool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchCaCertsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String caPool = "projects/project-9774/locations/location-9774/caPools/caPool-9774"; + client.fetchCaCerts(caPool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateRevocationListTest() throws Exception { + CertificateRevocationList expectedResponse = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRevisionId("revisionId-1507445162") + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateRevocationListName name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]"); + + CertificateRevocationList actualResponse = client.getCertificateRevocationList(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateRevocationListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateRevocationListName name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]"); + client.getCertificateRevocationList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateRevocationListTest2() throws Exception { + CertificateRevocationList expectedResponse = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRevisionId("revisionId-1507445162") + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4203/locations/location-4203/caPools/caPool-4203/certificateAuthorities/certificateAuthoritie-4203/certificateRevocationLists/certificateRevocationList-4203"; + + CertificateRevocationList actualResponse = client.getCertificateRevocationList(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateRevocationListExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4203/locations/location-4203/caPools/caPool-4203/certificateAuthorities/certificateAuthoritie-4203/certificateRevocationLists/certificateRevocationList-4203"; + client.getCertificateRevocationList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateRevocationListsTest() throws Exception { + CertificateRevocationList responsesElement = CertificateRevocationList.newBuilder().build(); + ListCertificateRevocationListsResponse expectedResponse = + ListCertificateRevocationListsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateRevocationLists(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName parent = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + + ListCertificateRevocationListsPagedResponse pagedListResponse = + client.listCertificateRevocationLists(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateRevocationListsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateRevocationListsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName parent = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + client.listCertificateRevocationLists(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateRevocationListsTest2() throws Exception { + CertificateRevocationList responsesElement = CertificateRevocationList.newBuilder().build(); + ListCertificateRevocationListsResponse expectedResponse = + ListCertificateRevocationListsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateRevocationLists(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6570/locations/location-6570/caPools/caPool-6570/certificateAuthorities/certificateAuthoritie-6570"; + + ListCertificateRevocationListsPagedResponse pagedListResponse = + client.listCertificateRevocationLists(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateRevocationListsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateRevocationListsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6570/locations/location-6570/caPools/caPool-6570/certificateAuthorities/certificateAuthoritie-6570"; + client.listCertificateRevocationLists(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCertificateRevocationListTest() throws Exception { + CertificateRevocationList expectedResponse = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRevisionId("revisionId-1507445162") + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCertificateRevocationListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateRevocationList certificateRevocationList = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRevisionId("revisionId-1507445162") + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CertificateRevocationList actualResponse = + client.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateRevocationListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateRevocationList certificateRevocationList = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRevisionId("revisionId-1507445162") + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateTemplateTest() throws Exception { + CertificateTemplate expectedResponse = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + String certificateTemplateId = "certificateTemplateId1920134188"; + + CertificateTemplate actualResponse = + client + .createCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + String certificateTemplateId = "certificateTemplateId1920134188"; + client + .createCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateTemplateTest2() throws Exception { + CertificateTemplate expectedResponse = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + String certificateTemplateId = "certificateTemplateId1920134188"; + + CertificateTemplate actualResponse = + client + .createCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + String certificateTemplateId = "certificateTemplateId1920134188"; + client + .createCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateTemplateName name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + + client.deleteCertificateTemplateAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCertificateTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateTemplateName name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + client.deleteCertificateTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5118/locations/location-5118/certificateTemplates/certificateTemplate-5118"; + + client.deleteCertificateTemplateAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCertificateTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5118/locations/location-5118/certificateTemplates/certificateTemplate-5118"; + client.deleteCertificateTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getCertificateTemplateTest() throws Exception { + CertificateTemplate expectedResponse = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateTemplateName name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + + CertificateTemplate actualResponse = client.getCertificateTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateTemplateName name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + client.getCertificateTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateTemplateTest2() throws Exception { + CertificateTemplate expectedResponse = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5118/locations/location-5118/certificateTemplates/certificateTemplate-5118"; + + CertificateTemplate actualResponse = client.getCertificateTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5118/locations/location-5118/certificateTemplates/certificateTemplate-5118"; + client.getCertificateTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateTemplatesTest() throws Exception { + CertificateTemplate responsesElement = CertificateTemplate.newBuilder().build(); + ListCertificateTemplatesResponse expectedResponse = + ListCertificateTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCertificateTemplatesPagedResponse pagedListResponse = + client.listCertificateTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificateTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateTemplatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCertificateTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateTemplatesTest2() throws Exception { + CertificateTemplate responsesElement = CertificateTemplate.newBuilder().build(); + ListCertificateTemplatesResponse expectedResponse = + ListCertificateTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCertificateTemplatesPagedResponse pagedListResponse = + client.listCertificateTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificateTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateTemplatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCertificateTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCertificateTemplateTest() throws Exception { + CertificateTemplate expectedResponse = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCertificateTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateTemplate certificateTemplate = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CertificateTemplate actualResponse = + client.updateCertificateTemplateAsync(certificateTemplate, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateTemplate certificateTemplate = + CertificateTemplate.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setPredefinedValues(X509Parameters.newBuilder().build()) + .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) + .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificateTemplateAsync(certificateTemplate, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java new file mode 100644 index 00000000..4932c05f --- /dev/null +++ b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java @@ -0,0 +1,2420 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1; + +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateAuthoritiesPagedResponse; +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificateRevocationListsPagedResponse; +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListCertificatesPagedResponse; +import static com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient.ListReusableConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.security.privateca.v1beta1.stub.HttpJsonCertificateAuthorityServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CertificateAuthorityServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CertificateAuthorityServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCertificateAuthorityServiceStub.getMethodDescriptors(), + CertificateAuthorityServiceSettings.getDefaultEndpoint()); + CertificateAuthorityServiceSettings settings = + CertificateAuthorityServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CertificateAuthorityServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CertificateAuthorityServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + + Certificate actualResponse = client.createCertificate(parent, certificate, certificateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + client.createCertificate(parent, certificate, certificateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCertificateTest2() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2053/locations/location-2053/certificateAuthorities/certificateAuthoritie-2053"; + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + + Certificate actualResponse = client.createCertificate(parent, certificate, certificateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2053/locations/location-2053/certificateAuthorities/certificateAuthoritie-2053"; + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + client.createCertificate(parent, certificate, certificateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); + + Certificate actualResponse = client.getCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); + client.getCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateTest2() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8612/locations/location-8612/certificateAuthorities/certificateAuthoritie-8612/certificates/certificate-8612"; + + Certificate actualResponse = client.getCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8612/locations/location-8612/certificateAuthorities/certificateAuthoritie-8612/certificates/certificate-8612"; + client.getCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificatesTest() throws Exception { + Certificate responsesElement = Certificate.newBuilder().build(); + ListCertificatesResponse expectedResponse = + ListCertificatesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + ListCertificatesPagedResponse pagedListResponse = client.listCertificates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificatesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.listCertificates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificatesTest2() throws Exception { + Certificate responsesElement = Certificate.newBuilder().build(); + ListCertificatesResponse expectedResponse = + ListCertificatesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2053/locations/location-2053/certificateAuthorities/certificateAuthoritie-2053"; + + ListCertificatesPagedResponse pagedListResponse = client.listCertificates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificatesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2053/locations/location-2053/certificateAuthorities/certificateAuthoritie-2053"; + client.listCertificates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); + + Certificate actualResponse = client.revokeCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); + client.revokeCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeCertificateTest2() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8612/locations/location-8612/certificateAuthorities/certificateAuthoritie-8612/certificates/certificate-8612"; + + Certificate actualResponse = client.revokeCertificate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeCertificateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8612/locations/location-8612/certificateAuthorities/certificateAuthoritie-8612/certificates/certificate-8612"; + client.revokeCertificate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCertificateTest() throws Exception { + Certificate expectedResponse = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Certificate certificate = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Certificate actualResponse = client.updateCertificate(certificate, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Certificate certificate = + Certificate.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setLifetime(Duration.newBuilder().build()) + .setRevocationDetails(Certificate.RevocationDetails.newBuilder().build()) + .setPemCertificate("pemCertificate153491807") + .setCertificateDescription(CertificateDescription.newBuilder().build()) + .addAllPemCertificateChain(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificate(certificate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void activateCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.activateCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void activateCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.activateCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void activateCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + CertificateAuthority actualResponse = client.activateCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void activateCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.activateCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + + CertificateAuthority actualResponse = + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + + CertificateAuthority actualResponse = + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + client + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void disableCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("disableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.disableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.disableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void disableCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("disableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + CertificateAuthority actualResponse = client.disableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.disableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void enableCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("enableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.enableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.enableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void enableCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("enableCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + CertificateAuthority actualResponse = client.enableCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.enableCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void fetchCertificateAuthorityCsrTest() throws Exception { + FetchCertificateAuthorityCsrResponse expectedResponse = + FetchCertificateAuthorityCsrResponse.newBuilder().setPemCsr("pemCsr-991911478").build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + FetchCertificateAuthorityCsrResponse actualResponse = client.fetchCertificateAuthorityCsr(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchCertificateAuthorityCsrExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.fetchCertificateAuthorityCsr(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchCertificateAuthorityCsrTest2() throws Exception { + FetchCertificateAuthorityCsrResponse expectedResponse = + FetchCertificateAuthorityCsrResponse.newBuilder().setPemCsr("pemCsr-991911478").build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + FetchCertificateAuthorityCsrResponse actualResponse = client.fetchCertificateAuthorityCsr(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchCertificateAuthorityCsrExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.fetchCertificateAuthorityCsr(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.getCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.getCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + CertificateAuthority actualResponse = client.getCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.getCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateAuthoritiesTest() throws Exception { + CertificateAuthority responsesElement = CertificateAuthority.newBuilder().build(); + ListCertificateAuthoritiesResponse expectedResponse = + ListCertificateAuthoritiesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateAuthorities(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCertificateAuthoritiesPagedResponse pagedListResponse = + client.listCertificateAuthorities(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificateAuthoritiesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateAuthoritiesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCertificateAuthorities(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateAuthoritiesTest2() throws Exception { + CertificateAuthority responsesElement = CertificateAuthority.newBuilder().build(); + ListCertificateAuthoritiesResponse expectedResponse = + ListCertificateAuthoritiesResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateAuthorities(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCertificateAuthoritiesPagedResponse pagedListResponse = + client.listCertificateAuthorities(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCertificateAuthoritiesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateAuthoritiesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCertificateAuthorities(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = client.restoreCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.restoreCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + CertificateAuthority actualResponse = client.restoreCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.restoreCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void scheduleDeleteCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("scheduleDeleteCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + CertificateAuthority actualResponse = + client.scheduleDeleteCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void scheduleDeleteCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.scheduleDeleteCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void scheduleDeleteCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("scheduleDeleteCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + + CertificateAuthority actualResponse = + client.scheduleDeleteCertificateAuthorityAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void scheduleDeleteCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5194/locations/location-5194/certificateAuthorities/certificateAuthoritie-5194"; + client.scheduleDeleteCertificateAuthorityAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCertificateAuthorityTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateAuthority certificateAuthority = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CertificateAuthority actualResponse = + client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthority certificateAuthority = + CertificateAuthority.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setConfig(CertificateConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setKeySpec(CertificateAuthority.KeyVersionSpec.newBuilder().build()) + .setCertificatePolicy( + CertificateAuthority.CertificateAuthorityPolicy.newBuilder().build()) + .setIssuingOptions(CertificateAuthority.IssuingOptions.newBuilder().build()) + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .addAllPemCaCertificates(new ArrayList()) + .addAllCaCertificateDescriptions(new ArrayList()) + .setGcsBucket("gcsBucket239654881") + .setAccessUrls(CertificateAuthority.AccessUrls.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificateAuthorityAsync(certificateAuthority, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getCertificateRevocationListTest() throws Exception { + CertificateRevocationList expectedResponse = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateRevocationListName name = + CertificateRevocationListName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"); + + CertificateRevocationList actualResponse = client.getCertificateRevocationList(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateRevocationListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateRevocationListName name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]"); + client.getCertificateRevocationList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateRevocationListTest2() throws Exception { + CertificateRevocationList expectedResponse = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8416/locations/location-8416/certificateAuthorities/certificateAuthoritie-8416/certificateRevocationLists/certificateRevocationList-8416"; + + CertificateRevocationList actualResponse = client.getCertificateRevocationList(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCertificateRevocationListExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8416/locations/location-8416/certificateAuthorities/certificateAuthoritie-8416/certificateRevocationLists/certificateRevocationList-8416"; + client.getCertificateRevocationList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateRevocationListsTest() throws Exception { + CertificateRevocationList responsesElement = CertificateRevocationList.newBuilder().build(); + ListCertificateRevocationListsResponse expectedResponse = + ListCertificateRevocationListsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateRevocationLists(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + + ListCertificateRevocationListsPagedResponse pagedListResponse = + client.listCertificateRevocationLists(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateRevocationListsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateRevocationListsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + client.listCertificateRevocationLists(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateRevocationListsTest2() throws Exception { + CertificateRevocationList responsesElement = CertificateRevocationList.newBuilder().build(); + ListCertificateRevocationListsResponse expectedResponse = + ListCertificateRevocationListsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateRevocationLists(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2053/locations/location-2053/certificateAuthorities/certificateAuthoritie-2053"; + + ListCertificateRevocationListsPagedResponse pagedListResponse = + client.listCertificateRevocationLists(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateRevocationListsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCertificateRevocationListsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2053/locations/location-2053/certificateAuthorities/certificateAuthoritie-2053"; + client.listCertificateRevocationLists(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCertificateRevocationListTest() throws Exception { + CertificateRevocationList expectedResponse = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCertificateRevocationListTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateRevocationList certificateRevocationList = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CertificateRevocationList actualResponse = + client.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCertificateRevocationListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateRevocationList certificateRevocationList = + CertificateRevocationList.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .setSequenceNumber(-1309190777) + .addAllRevokedCertificates( + new ArrayList()) + .setPemCrl("pemCrl-991911515") + .setAccessUrl("accessUrl-2115048085") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCertificateRevocationListAsync(certificateRevocationList, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getReusableConfigTest() throws Exception { + ReusableConfig expectedResponse = + ReusableConfig.newBuilder() + .setName( + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]").toString()) + .setValues(ReusableConfigValues.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ReusableConfigName name = ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); + + ReusableConfig actualResponse = client.getReusableConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getReusableConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReusableConfigName name = + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); + client.getReusableConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReusableConfigTest2() throws Exception { + ReusableConfig expectedResponse = + ReusableConfig.newBuilder() + .setName( + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]").toString()) + .setValues(ReusableConfigValues.newBuilder().build()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5380/locations/location-5380/reusableConfigs/reusableConfig-5380"; + + ReusableConfig actualResponse = client.getReusableConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getReusableConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5380/locations/location-5380/reusableConfigs/reusableConfig-5380"; + client.getReusableConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReusableConfigsTest() throws Exception { + ReusableConfig responsesElement = ReusableConfig.newBuilder().build(); + ListReusableConfigsResponse expectedResponse = + ListReusableConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllReusableConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListReusableConfigsPagedResponse pagedListResponse = client.listReusableConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReusableConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listReusableConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listReusableConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReusableConfigsTest2() throws Exception { + ReusableConfig responsesElement = ReusableConfig.newBuilder().build(); + ListReusableConfigsResponse expectedResponse = + ListReusableConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllReusableConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListReusableConfigsPagedResponse pagedListResponse = client.listReusableConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReusableConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listReusableConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listReusableConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java diff --git a/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java b/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java similarity index 100% rename from google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java rename to owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java new file mode 100644 index 00000000..8cf07201 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java @@ -0,0 +1,2776 @@ +package com.google.cloud.security.privateca.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+ * certificate authorities and issued certificates.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/security/privateca/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CertificateAuthorityServiceGrpc { + + private CertificateAuthorityServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.security.privateca.v1.CertificateAuthorityService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", + requestType = com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateMethod() { + io.grpc.MethodDescriptor getCreateCertificateMethod; + if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateMethod = getCreateCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificate")) + .build(); + } + } + } + return getCreateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificate", + requestType = com.google.cloud.security.privateca.v1.GetCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateMethod() { + io.grpc.MethodDescriptor getGetCertificateMethod; + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateMethod = getGetCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) + .build(); + } + } + } + return getGetCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificates", + requestType = com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificatesMethod() { + io.grpc.MethodDescriptor getListCertificatesMethod; + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificatesMethod = getListCertificatesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificates")) + .build(); + } + } + } + return getListCertificatesMethod; + } + + private static volatile io.grpc.MethodDescriptor getRevokeCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", + requestType = com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRevokeCertificateMethod() { + io.grpc.MethodDescriptor getRevokeCertificateMethod; + if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = getRevokeCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("RevokeCertificate")) + .build(); + } + } + } + return getRevokeCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateMethod() { + io.grpc.MethodDescriptor getUpdateCertificateMethod; + if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = getUpdateCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificate")) + .build(); + } + } + } + return getUpdateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; + if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = getActivateCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ActivateCertificateAuthority")) + .build(); + } + } + } + return getActivateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; + if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = getCreateCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificateAuthority")) + .build(); + } + } + } + return getCreateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; + if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = getDisableCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DisableCertificateAuthority")) + .build(); + } + } + } + return getDisableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; + if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = getEnableCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("EnableCertificateAuthority")) + .build(); + } + } + } + return getEnableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", + requestType = com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, + responseType = com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod() { + io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; + if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = getFetchCertificateAuthorityCsrMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCertificateAuthorityCsr")) + .build(); + } + } + } + return getFetchCertificateAuthorityCsrMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, + responseType = com.google.cloud.security.privateca.v1.CertificateAuthority.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; + if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = getGetCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateAuthority")) + .build(); + } + } + } + return getGetCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", + requestType = com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod() { + io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; + if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = getListCertificateAuthoritiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateAuthorities")) + .build(); + } + } + } + return getListCertificateAuthoritiesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeleteCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeleteCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getUndeleteCertificateAuthorityMethod; + if ((getUndeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUndeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod = getUndeleteCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UndeleteCertificateAuthority")) + .build(); + } + } + } + return getUndeleteCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getDeleteCertificateAuthorityMethod; + if ((getDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod = getDeleteCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCertificateAuthority")) + .build(); + } + } + } + return getDeleteCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; + if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = getUpdateCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateAuthority")) + .build(); + } + } + } + return getUpdateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCaPool", + requestType = com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCaPoolMethod() { + io.grpc.MethodDescriptor getCreateCaPoolMethod; + if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) == null) { + CertificateAuthorityServiceGrpc.getCreateCaPoolMethod = getCreateCaPoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCaPool")) + .build(); + } + } + } + return getCreateCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCaPool", + requestType = com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCaPoolMethod() { + io.grpc.MethodDescriptor getUpdateCaPoolMethod; + if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod = getUpdateCaPoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCaPool")) + .build(); + } + } + } + return getUpdateCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCaPool", + requestType = com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, + responseType = com.google.cloud.security.privateca.v1.CaPool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCaPoolMethod() { + io.grpc.MethodDescriptor getGetCaPoolMethod; + if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCaPoolMethod = getGetCaPoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCaPoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCaPool")) + .build(); + } + } + } + return getGetCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCaPoolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCaPools", + requestType = com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCaPoolsMethod() { + io.grpc.MethodDescriptor getListCaPoolsMethod; + if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { + CertificateAuthorityServiceGrpc.getListCaPoolsMethod = getListCaPoolsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCaPools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCaPoolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCaPools")) + .build(); + } + } + } + return getListCaPoolsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCaPool", + requestType = com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCaPoolMethod() { + io.grpc.MethodDescriptor getDeleteCaPoolMethod; + if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) == null) { + CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod = getDeleteCaPoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCaPool")) + .build(); + } + } + } + return getDeleteCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchCaCertsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchCaCerts", + requestType = com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, + responseType = com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchCaCertsMethod() { + io.grpc.MethodDescriptor getFetchCaCertsMethod; + if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) == null) { + CertificateAuthorityServiceGrpc.getFetchCaCertsMethod = getFetchCaCertsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCaCerts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCaCerts")) + .build(); + } + } + } + return getFetchCaCertsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", + requestType = com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, + responseType = com.google.cloud.security.privateca.v1.CertificateRevocationList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateRevocationListMethod() { + io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; + if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = getGetCertificateRevocationListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateRevocationList")) + .build(); + } + } + } + return getGetCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", + requestType = com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateRevocationListsMethod() { + io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; + if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = getListCertificateRevocationListsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateRevocationLists")) + .build(); + } + } + } + return getListCertificateRevocationListsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod() { + io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; + if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = getUpdateCertificateRevocationListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateRevocationList")) + .build(); + } + } + } + return getUpdateCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateTemplateMethod() { + io.grpc.MethodDescriptor getCreateCertificateTemplateMethod; + if ((getCreateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod = getCreateCertificateTemplateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificateTemplate")) + .build(); + } + } + } + return getCreateCertificateTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCertificateTemplateMethod() { + io.grpc.MethodDescriptor getDeleteCertificateTemplateMethod; + if ((getDeleteCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDeleteCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) == null) { + CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod = getDeleteCertificateTemplateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCertificateTemplate")) + .build(); + } + } + } + return getDeleteCertificateTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, + responseType = com.google.cloud.security.privateca.v1.CertificateTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateTemplateMethod() { + io.grpc.MethodDescriptor getGetCertificateTemplateMethod; + if ((getGetCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod = getGetCertificateTemplateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateTemplate")) + .build(); + } + } + } + return getGetCertificateTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateTemplatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateTemplates", + requestType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateTemplatesMethod() { + io.grpc.MethodDescriptor getListCertificateTemplatesMethod; + if ((getListCertificateTemplatesMethod = CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateTemplatesMethod = CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod = getListCertificateTemplatesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateTemplates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateTemplates")) + .build(); + } + } + } + return getListCertificateTemplatesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateTemplateMethod() { + io.grpc.MethodDescriptor getUpdateCertificateTemplateMethod; + if ((getUpdateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod = getUpdateCertificateTemplateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateTemplate")) + .build(); + } + } + } + return getUpdateCertificateTemplateMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CertificateAuthorityServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CertificateAuthorityServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static abstract class CertificateAuthorityServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMethod(), responseObserver); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMethod(), responseObserver); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificatesMethod(), responseObserver); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeCertificateMethod(), responseObserver); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMethod(), responseObserver); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchCertificateAuthorityCsrMethod(), responseObserver); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateAuthoritiesMethod(), responseObserver); + } + + /** + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public void undeleteCertificateAuthority(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void deleteCertificateAuthority(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCaPoolMethod(), responseObserver); + } + + /** + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCaPoolMethod(), responseObserver); + } + + /** + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCaPoolMethod(), responseObserver); + } + + /** + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCaPoolsMethod(), responseObserver); + } + + /** + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCaPoolMethod(), responseObserver); + } + + /** + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchCaCertsMethod(), responseObserver); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateRevocationListMethod(), responseObserver); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateRevocationListsMethod(), responseObserver); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateRevocationListMethod(), responseObserver); + } + + /** + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public void createCertificateTemplate(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateTemplateMethod(), responseObserver); + } + + /** + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void deleteCertificateTemplate(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateTemplateMethod(), responseObserver); + } + + /** + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void getCertificateTemplate(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateTemplateMethod(), responseObserver); + } + + /** + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void listCertificateTemplates(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateTemplatesMethod(), responseObserver); + } + + /** + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void updateCertificateTemplate(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateTemplateMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_CREATE_CERTIFICATE))) + .addMethod( + getGetCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_GET_CERTIFICATE))) + .addMethod( + getListCertificatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1.ListCertificatesResponse>( + this, METHODID_LIST_CERTIFICATES))) + .addMethod( + getRevokeCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_REVOKE_CERTIFICATE))) + .addMethod( + getUpdateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_UPDATE_CERTIFICATE))) + .addMethod( + getActivateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getCreateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getDisableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getEnableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getFetchCertificateAuthorityCsrMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse>( + this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) + .addMethod( + getGetCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1.CertificateAuthority>( + this, METHODID_GET_CERTIFICATE_AUTHORITY))) + .addMethod( + getListCertificateAuthoritiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse>( + this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) + .addMethod( + getUndeleteCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_CERTIFICATE_AUTHORITY))) + .addMethod( + getDeleteCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_AUTHORITY))) + .addMethod( + getUpdateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getCreateCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCaPoolRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CA_POOL))) + .addMethod( + getUpdateCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CA_POOL))) + .addMethod( + getGetCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCaPoolRequest, + com.google.cloud.security.privateca.v1.CaPool>( + this, METHODID_GET_CA_POOL))) + .addMethod( + getListCaPoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCaPoolsRequest, + com.google.cloud.security.privateca.v1.ListCaPoolsResponse>( + this, METHODID_LIST_CA_POOLS))) + .addMethod( + getDeleteCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CA_POOL))) + .addMethod( + getFetchCaCertsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.FetchCaCertsRequest, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse>( + this, METHODID_FETCH_CA_CERTS))) + .addMethod( + getGetCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1.CertificateRevocationList>( + this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getListCertificateRevocationListsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse>( + this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) + .addMethod( + getUpdateCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getCreateCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_TEMPLATE))) + .addMethod( + getDeleteCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_TEMPLATE))) + .addMethod( + getGetCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, + com.google.cloud.security.privateca.v1.CertificateTemplate>( + this, METHODID_GET_CERTIFICATE_TEMPLATE))) + .addMethod( + getListCertificateTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse>( + this, METHODID_LIST_CERTIFICATE_TEMPLATES))) + .addMethod( + getUpdateCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_TEMPLATE))) + .build(); + } + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceStub extends io.grpc.stub.AbstractAsyncStub { + private CertificateAuthorityServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public void undeleteCertificateAuthority(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void deleteCertificateAuthority(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public void createCertificateTemplate(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void deleteCertificateTemplate(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void getCertificateTemplate(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void listCertificateTemplates(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void updateCertificateTemplate(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CertificateAuthorityServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificatesResponse listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificatesMethod(), getCallOptions(), request); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.longrunning.Operation activateCertificateAuthority(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateAuthority(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation disableCertificateAuthority(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation enableCertificateAuthority(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse listCertificateAuthorities(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); + } + + /** + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public com.google.longrunning.Operation undeleteCertificateAuthority(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateAuthority(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateAuthority(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.longrunning.Operation createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCaPoolMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.longrunning.Operation updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCaPoolMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CaPool getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCaPoolMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCaPoolsResponse listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCaPoolsMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.longrunning.Operation deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCaPoolMethod(), getCallOptions(), request); + } + + /** + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchCaCertsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse listCertificateRevocationLists(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateRevocationList(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateTemplate(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateTemplateMethod(), getCallOptions(), request); + } + + /** + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateTemplate(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateTemplateMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateTemplateMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse listCertificateTemplates(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateTemplatesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateTemplate(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateTemplateMethod(), getCallOptions(), request); + } + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private CertificateAuthorityServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificate( + com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificate( + com.google.cloud.security.privateca.v1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificates( + com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture revokeCertificate( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificate( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture activateCertificateAuthority( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificateAuthority( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture disableCertificateAuthority( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture enableCertificateAuthority( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateAuthority( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateAuthorities( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); + } + + /** + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeleteCertificateAuthority( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCertificateAuthority( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateAuthority( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCaPool( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCaPool( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCaPool( + com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCaPools( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCaPool( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), request); + } + + /** + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchCaCerts( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateRevocationList( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateRevocationLists( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateRevocationList( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificateTemplate( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), request); + } + + /** + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCertificateTemplate( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateTemplate( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateTemplates( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateTemplate( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CERTIFICATE = 0; + private static final int METHODID_GET_CERTIFICATE = 1; + private static final int METHODID_LIST_CERTIFICATES = 2; + private static final int METHODID_REVOKE_CERTIFICATE = 3; + private static final int METHODID_UPDATE_CERTIFICATE = 4; + private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; + private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; + private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; + private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; + private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; + private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; + private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; + private static final int METHODID_UNDELETE_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_DELETE_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; + private static final int METHODID_CREATE_CA_POOL = 15; + private static final int METHODID_UPDATE_CA_POOL = 16; + private static final int METHODID_GET_CA_POOL = 17; + private static final int METHODID_LIST_CA_POOLS = 18; + private static final int METHODID_DELETE_CA_POOL = 19; + private static final int METHODID_FETCH_CA_CERTS = 20; + private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 21; + private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 22; + private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 23; + private static final int METHODID_CREATE_CERTIFICATE_TEMPLATE = 24; + private static final int METHODID_DELETE_CERTIFICATE_TEMPLATE = 25; + private static final int METHODID_GET_CERTIFICATE_TEMPLATE = 26; + private static final int METHODID_LIST_CERTIFICATE_TEMPLATES = 27; + private static final int METHODID_UPDATE_CERTIFICATE_TEMPLATE = 28; + + 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 CertificateAuthorityServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CERTIFICATE: + serviceImpl.createCertificate((com.google.cloud.security.privateca.v1.CreateCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE: + serviceImpl.getCertificate((com.google.cloud.security.privateca.v1.GetCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATES: + serviceImpl.listCertificates((com.google.cloud.security.privateca.v1.ListCertificatesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REVOKE_CERTIFICATE: + serviceImpl.revokeCertificate((com.google.cloud.security.privateca.v1.RevokeCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE: + serviceImpl.updateCertificate((com.google.cloud.security.privateca.v1.UpdateCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: + serviceImpl.activateCertificateAuthority((com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_AUTHORITY: + serviceImpl.createCertificateAuthority((com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISABLE_CERTIFICATE_AUTHORITY: + serviceImpl.disableCertificateAuthority((com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENABLE_CERTIFICATE_AUTHORITY: + serviceImpl.enableCertificateAuthority((com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: + serviceImpl.fetchCertificateAuthorityCsr((com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_AUTHORITY: + serviceImpl.getCertificateAuthority((com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_AUTHORITIES: + serviceImpl.listCertificateAuthorities((com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_CERTIFICATE_AUTHORITY: + serviceImpl.undeleteCertificateAuthority((com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_AUTHORITY: + serviceImpl.deleteCertificateAuthority((com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_AUTHORITY: + serviceImpl.updateCertificateAuthority((com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CA_POOL: + serviceImpl.createCaPool((com.google.cloud.security.privateca.v1.CreateCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CA_POOL: + serviceImpl.updateCaPool((com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CA_POOL: + serviceImpl.getCaPool((com.google.cloud.security.privateca.v1.GetCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CA_POOLS: + serviceImpl.listCaPools((com.google.cloud.security.privateca.v1.ListCaPoolsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CA_POOL: + serviceImpl.deleteCaPool((com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_CA_CERTS: + serviceImpl.fetchCaCerts((com.google.cloud.security.privateca.v1.FetchCaCertsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_REVOCATION_LIST: + serviceImpl.getCertificateRevocationList((com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: + serviceImpl.listCertificateRevocationLists((com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: + serviceImpl.updateCertificateRevocationList((com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_TEMPLATE: + serviceImpl.createCertificateTemplate((com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_TEMPLATE: + serviceImpl.deleteCertificateTemplate((com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_TEMPLATE: + serviceImpl.getCertificateTemplate((com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_TEMPLATES: + serviceImpl.listCertificateTemplates((com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_TEMPLATE: + serviceImpl.updateCertificateTemplate((com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) 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 CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CertificateAuthorityServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CertificateAuthorityService"); + } + } + + private static final class CertificateAuthorityServiceFileDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier { + CertificateAuthorityServiceFileDescriptorSupplier() {} + } + + private static final class CertificateAuthorityServiceMethodDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) + .addMethod(getCreateCertificateMethod()) + .addMethod(getGetCertificateMethod()) + .addMethod(getListCertificatesMethod()) + .addMethod(getRevokeCertificateMethod()) + .addMethod(getUpdateCertificateMethod()) + .addMethod(getActivateCertificateAuthorityMethod()) + .addMethod(getCreateCertificateAuthorityMethod()) + .addMethod(getDisableCertificateAuthorityMethod()) + .addMethod(getEnableCertificateAuthorityMethod()) + .addMethod(getFetchCertificateAuthorityCsrMethod()) + .addMethod(getGetCertificateAuthorityMethod()) + .addMethod(getListCertificateAuthoritiesMethod()) + .addMethod(getUndeleteCertificateAuthorityMethod()) + .addMethod(getDeleteCertificateAuthorityMethod()) + .addMethod(getUpdateCertificateAuthorityMethod()) + .addMethod(getCreateCaPoolMethod()) + .addMethod(getUpdateCaPoolMethod()) + .addMethod(getGetCaPoolMethod()) + .addMethod(getListCaPoolsMethod()) + .addMethod(getDeleteCaPoolMethod()) + .addMethod(getFetchCaCertsMethod()) + .addMethod(getGetCertificateRevocationListMethod()) + .addMethod(getListCertificateRevocationListsMethod()) + .addMethod(getUpdateCertificateRevocationListMethod()) + .addMethod(getCreateCertificateTemplateMethod()) + .addMethod(getDeleteCertificateTemplateMethod()) + .addMethod(getGetCertificateTemplateMethod()) + .addMethod(getListCertificateTemplatesMethod()) + .addMethod(getUpdateCertificateTemplateMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java index eb43a357..6d3ab2f5 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest}
  */
-public final class ActivateCertificateAuthorityRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ActivateCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)
     ActivateCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ActivateCertificateAuthorityRequest.newBuilder() to construct.
-  private ActivateCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ActivateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ActivateCertificateAuthorityRequest() {
     name_ = "";
     pemCaCertificate_ = "";
@@ -48,15 +28,16 @@ private ActivateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ActivateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ActivateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,51 +56,44 @@ private ActivateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pemCaCertificate_ = s;
-              break;
+            pemCaCertificate_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
+            if (subordinateConfig_ != null) {
+              subBuilder = subordinateConfig_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
-              if (subordinateConfig_ != null) {
-                subBuilder = subordinateConfig_.toBuilder();
-              }
-              subordinateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.SubordinateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subordinateConfig_);
-                subordinateConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1.SubordinateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subordinateConfig_);
+              subordinateConfig_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -127,43 +101,35 @@ private ActivateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -172,32 +138,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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -208,15 +172,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PEM_CA_CERTIFICATE_FIELD_NUMBER = 2; private volatile java.lang.Object pemCaCertificate_; /** - * - * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pemCaCertificate. */ @java.lang.Override @@ -225,30 +186,30 @@ public java.lang.String getPemCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; } } /** - * - * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pemCaCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCaCertificateBytes() { + public com.google.protobuf.ByteString + getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -259,17 +220,12 @@ public com.google.protobuf.ByteString getPemCaCertificateBytes() { public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -277,48 +233,34 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -334,7 +276,6 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateCo
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -343,15 +284,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -367,15 +307,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -384,7 +325,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -425,7 +366,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pemCaCertificate_); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubordinateConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -438,22 +380,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.security.privateca.v1.ActivateCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getPemCaCertificate().equals(other.getPemCaCertificate())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPemCaCertificate() + .equals(other.getPemCaCertificate())) return false; if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig() + .equals(other.getSubordinateConfig())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,111 +424,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - 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.security.privateca.v1.ActivateCertificateAuthorityRequest 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.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
@@ -592,41 +522,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -646,22 +573,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -669,10 +593,8 @@ public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.pemCaCertificate_ = pemCaCertificate_;
       if (subordinateConfigBuilder_ == null) {
@@ -689,52 +611,46 @@ public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityReques
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -765,14 +681,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -784,23 +697,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -809,24 +718,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -834,70 +740,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -905,21 +798,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object pemCaCertificate_ = ""; /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pemCaCertificate. */ public java.lang.String getPemCaCertificate() { java.lang.Object ref = pemCaCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; @@ -928,22 +819,21 @@ public java.lang.String getPemCaCertificate() { } } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pemCaCertificate. */ - public com.google.protobuf.ByteString getPemCaCertificateBytes() { + public com.google.protobuf.ByteString + getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -951,64 +841,57 @@ public com.google.protobuf.ByteString getPemCaCertificateBytes() { } } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificate(java.lang.String value) { + public Builder setPemCaCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCaCertificate_ = value; onChanged(); return this; } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPemCaCertificate() { - + pemCaCertificate_ = getDefaultInstance().getPemCaCertificate(); onChanged(); return this; } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setPemCaCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCaCertificate_ = value; onChanged(); return this; @@ -1016,64 +899,44 @@ public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, - com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> - subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSubordinateConfig( - com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1087,16 +950,12 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1.SubordinateConfig.Builder builderForValue) { @@ -1110,26 +969,18 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSubordinateConfig( - com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder( - subordinateConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); } else { subordinateConfig_ = value; } @@ -1141,16 +992,12 @@ public Builder mergeSubordinateConfig( return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -1164,69 +1011,51 @@ public Builder clearSubordinateConfig() { return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder - getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? + com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, - com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, - com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), getParentForChildren(), isClean()); + subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), + getParentForChildren(), + isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -1234,8 +1063,6 @@ public Builder clearSubordinateConfig() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1251,13 +1078,13 @@ public Builder clearSubordinateConfig() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1266,8 +1093,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1283,14 +1108,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1298,8 +1124,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1315,22 +1139,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1346,18 +1168,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1373,23 +1192,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1399,33 +1218,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActivateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActivateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1437,8 +1253,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java index afa75fdf..de8cc8da 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java @@ -1,133 +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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ActivateCertificateAuthorityRequestOrBuilder - extends +public interface ActivateCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pemCaCertificate. */ java.lang.String getPemCaCertificate(); /** - * - * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pemCaCertificate. */ - com.google.protobuf.ByteString getPemCaCertificateBytes(); + com.google.protobuf.ByteString + getPemCaCertificateBytes(); /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig(); /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,13 +97,10 @@ public interface ActivateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -165,8 +116,8 @@ public interface ActivateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java index 38ccd33a..2c73be69 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of
  * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] that form a trust anchor. A
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CaPool}
  */
-public final class CaPool extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CaPool extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool)
     CaPoolOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CaPool.newBuilder() to construct.
   private CaPool(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CaPool() {
     name_ = "";
     tier_ = 0;
@@ -48,15 +30,16 @@ private CaPool() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CaPool();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CaPool(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,76 +59,64 @@ private CaPool(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              tier_ = rawValue;
-              break;
+            tier_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder subBuilder = null;
+            if (issuancePolicy_ != null) {
+              subBuilder = issuancePolicy_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder subBuilder =
-                  null;
-              if (issuancePolicy_ != null) {
-                subBuilder = issuancePolicy_.toBuilder();
-              }
-              issuancePolicy_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(issuancePolicy_);
-                issuancePolicy_ = subBuilder.buildPartial();
-              }
-
-              break;
+            issuancePolicy_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(issuancePolicy_);
+              issuancePolicy_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder subBuilder =
-                  null;
-              if (publishingOptions_ != null) {
-                subBuilder = publishingOptions_.toBuilder();
-              }
-              publishingOptions_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publishingOptions_);
-                publishingOptions_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder subBuilder = null;
+            if (publishingOptions_ != null) {
+              subBuilder = publishingOptions_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            publishingOptions_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publishingOptions_);
+              publishingOptions_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
+            }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -153,42 +124,39 @@ private CaPool(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CaPool.class,
-            com.google.cloud.security.privateca.v1.CaPool.Builder.class);
+            com.google.cloud.security.privateca.v1.CaPool.class, com.google.cloud.security.privateca.v1.CaPool.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The tier of a [CaPool][google.cloud.security.privateca.v1.CaPool], indicating its supported functionality and/or
    * billing SKU.
@@ -196,10 +164,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1.CaPool.Tier}
    */
-  public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Tier
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -208,8 +175,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * Enterprise tier.
      * 
@@ -218,8 +183,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ ENTERPRISE(1), /** - * - * *
      * DevOps tier.
      * 
@@ -231,8 +194,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -241,8 +202,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Enterprise tier.
      * 
@@ -251,8 +210,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENTERPRISE_VALUE = 1; /** - * - * *
      * DevOps tier.
      * 
@@ -261,6 +218,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEVOPS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,49 +243,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return ENTERPRISE; - case 2: - return DEVOPS; - default: - return null; + case 0: return TIER_UNSPECIFIED; + case 1: return ENTERPRISE; + case 2: return DEVOPS; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.security.privateca.v1.CaPool.getDescriptor().getEnumTypes().get(0); } private static final Tier[] VALUES = values(); - public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -344,14 +302,11 @@ private Tier(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.CaPool.Tier) } - public interface PublishingOptionsOrBuilder - extends + public interface PublishingOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.PublishingOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
      * includes its URL in the "Authority Information Access" X.509 extension
@@ -361,14 +316,11 @@ public interface PublishingOptionsOrBuilder
      * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The publishCaCert. */ boolean getPublishCaCert(); /** - * - * *
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
      * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -380,14 +332,11 @@ public interface PublishingOptionsOrBuilder
      * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The publishCrl. */ boolean getPublishCrl(); } /** - * - * *
    * Options relating to the publication of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA
    * certificate and CRLs and their inclusion as extensions in issued
@@ -397,29 +346,30 @@ public interface PublishingOptionsOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.PublishingOptions}
    */
-  public static final class PublishingOptions extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PublishingOptions extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.PublishingOptions)
       PublishingOptionsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PublishingOptions.newBuilder() to construct.
     private PublishingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private PublishingOptions() {}
+    private PublishingOptions() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PublishingOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private PublishingOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -438,23 +388,23 @@ private PublishingOptions(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                publishCaCert_ = input.readBool();
-                break;
-              }
-            case 16:
-              {
-                publishCrl_ = input.readBool();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 8: {
+
+              publishCaCert_ = input.readBool();
+              break;
+            }
+            case 16: {
+
+              publishCrl_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -462,33 +412,29 @@ private PublishingOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class,
-              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
+              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
     }
 
     public static final int PUBLISH_CA_CERT_FIELD_NUMBER = 1;
     private boolean publishCaCert_;
     /**
-     *
-     *
      * 
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
      * includes its URL in the "Authority Information Access" X.509 extension
@@ -498,7 +444,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The publishCaCert. */ @java.lang.Override @@ -509,8 +454,6 @@ public boolean getPublishCaCert() { public static final int PUBLISH_CRL_FIELD_NUMBER = 2; private boolean publishCrl_; /** - * - * *
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
      * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -522,7 +465,6 @@ public boolean getPublishCaCert() {
      * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The publishCrl. */ @java.lang.Override @@ -531,7 +473,6 @@ public boolean getPublishCrl() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -543,7 +484,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (publishCaCert_ != false) { output.writeBool(1, publishCaCert_); } @@ -560,10 +502,12 @@ public int getSerializedSize() { size = 0; if (publishCaCert_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, publishCaCert_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, publishCaCert_); } if (publishCrl_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, publishCrl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, publishCrl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -573,16 +517,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.security.privateca.v1.CaPool.PublishingOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other = - (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) obj; + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other = (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) obj; - if (getPublishCaCert() != other.getPublishCaCert()) return false; - if (getPublishCrl() != other.getPublishCrl()) return false; + if (getPublishCaCert() + != other.getPublishCaCert()) return false; + if (getPublishCrl() + != other.getPublishCrl()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -595,104 +540,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PUBLISH_CA_CERT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPublishCaCert()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPublishCaCert()); hash = (37 * hash) + PUBLISH_CRL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPublishCrl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPublishCrl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions 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.security.privateca.v1.CaPool.PublishingOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions - 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.security.privateca.v1.CaPool.PublishingOptions 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.security.privateca.v1.CaPool.PublishingOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -702,8 +641,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options relating to the publication of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA
      * certificate and CRLs and their inclusion as extensions in issued
@@ -713,41 +650,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.PublishingOptions}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.PublishingOptions)
         com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class,
-                com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
+                com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -759,14 +693,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions
-          getDefaultInstanceForType() {
+      public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getDefaultInstanceForType() {
         return com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance();
       }
 
@@ -781,8 +714,7 @@ public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions build() {
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions buildPartial() {
-        com.google.cloud.security.privateca.v1.CaPool.PublishingOptions result =
-            new com.google.cloud.security.privateca.v1.CaPool.PublishingOptions(this);
+        com.google.cloud.security.privateca.v1.CaPool.PublishingOptions result = new com.google.cloud.security.privateca.v1.CaPool.PublishingOptions(this);
         result.publishCaCert_ = publishCaCert_;
         result.publishCrl_ = publishCrl_;
         onBuilt();
@@ -793,52 +725,46 @@ public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions buildPart
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.PublishingOptions) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) other);
+          return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.PublishingOptions)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other) {
-        if (other
-            == com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other) {
+        if (other == com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance()) return this;
         if (other.getPublishCaCert() != false) {
           setPublishCaCert(other.getPublishCaCert());
         }
@@ -864,9 +790,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -876,10 +800,8 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean publishCaCert_;
+      private boolean publishCaCert_ ;
       /**
-       *
-       *
        * 
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
        * includes its URL in the "Authority Information Access" X.509 extension
@@ -889,7 +811,6 @@ public Builder mergeFrom(
        * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The publishCaCert. */ @java.lang.Override @@ -897,8 +818,6 @@ public boolean getPublishCaCert() { return publishCaCert_; } /** - * - * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
        * includes its URL in the "Authority Information Access" X.509 extension
@@ -908,19 +827,16 @@ public boolean getPublishCaCert() {
        * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The publishCaCert to set. * @return This builder for chaining. */ public Builder setPublishCaCert(boolean value) { - + publishCaCert_ = value; onChanged(); return this; } /** - * - * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
        * includes its URL in the "Authority Information Access" X.509 extension
@@ -930,20 +846,17 @@ public Builder setPublishCaCert(boolean value) {
        * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPublishCaCert() { - + publishCaCert_ = false; onChanged(); return this; } - private boolean publishCrl_; + private boolean publishCrl_ ; /** - * - * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
        * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -955,7 +868,6 @@ public Builder clearPublishCaCert() {
        * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The publishCrl. */ @java.lang.Override @@ -963,8 +875,6 @@ public boolean getPublishCrl() { return publishCrl_; } /** - * - * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
        * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -976,19 +886,16 @@ public boolean getPublishCrl() {
        * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The publishCrl to set. * @return This builder for chaining. */ public Builder setPublishCrl(boolean value) { - + publishCrl_ = value; onChanged(); return this; } /** - * - * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
        * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -1000,16 +907,14 @@ public Builder setPublishCrl(boolean value) {
        * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPublishCrl() { - + publishCrl_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1022,32 +927,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.PublishingOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.PublishingOptions) - private static final com.google.cloud.security.privateca.v1.CaPool.PublishingOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CaPool.PublishingOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.PublishingOptions(); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishingOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishingOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,98 +962,71 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IssuancePolicyOrBuilder - extends + public interface IssuancePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAllowedKeyTypesList(); /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes( - int index); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index); /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ int getAllowedKeyTypesCount(); /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyTypeOrBuilder> + java.util.List getAllowedKeyTypesOrBuilderList(); /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder - getAllowedKeyTypesOrBuilder(int index); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder( + int index); /** - * - * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -1158,16 +1034,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * be explicitly truncated to match it.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maximumLifetime field is set. */ boolean hasMaximumLifetime(); /** - * - * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -1175,16 +1046,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * be explicitly truncated to match it.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maximumLifetime. */ com.google.protobuf.Duration getMaximumLifetime(); /** - * - * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -1192,61 +1058,41 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * be explicitly truncated to match it.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder(); /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedIssuanceModes field is set. */ boolean hasAllowedIssuanceModes(); /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedIssuanceModes. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - getAllowedIssuanceModes(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes(); /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder - getAllowedIssuanceModesOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder(); /** - * - * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -1257,16 +1103,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the baselineValues field is set. */ boolean hasBaselineValues(); /** - * - * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -1277,16 +1118,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The baselineValues. */ com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues(); /** - * - * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -1297,15 +1133,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselineValuesOrBuilder(); /** - * - * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1313,16 +1145,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConstraints field is set. */ boolean hasIdentityConstraints(); /** - * - * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1330,16 +1157,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConstraints. */ com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints(); /** - * - * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1347,16 +1169,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder - getIdentityConstraintsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder(); /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -1370,16 +1187,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the passthroughExtensions field is set. */ boolean hasPassthroughExtensions(); /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -1393,17 +1205,11 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The passthroughExtensions. */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getPassthroughExtensions(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions(); /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -1417,47 +1223,42 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getA
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder - getPassthroughExtensionsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder(); } /** - * - * *
    * Defines controls over all certificate issuance within a [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy} */ - public static final class IssuancePolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IssuancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) IssuancePolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IssuancePolicy.newBuilder() to construct. private IssuancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IssuancePolicy() { allowedKeyTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IssuancePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IssuancePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1477,118 +1278,87 @@ private IssuancePolicy( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedKeyTypes_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyType>(); - mutable_bitField0_ |= 0x00000001; - } - allowedKeyTypes_.add( - input.readMessage( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedKeyTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maximumLifetime_ != null) { - subBuilder = maximumLifetime_.toBuilder(); - } - maximumLifetime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maximumLifetime_); - maximumLifetime_ = subBuilder.buildPartial(); - } - - break; + allowedKeyTypes_.add( + input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maximumLifetime_ != null) { + subBuilder = maximumLifetime_.toBuilder(); + } + maximumLifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maximumLifetime_); + maximumLifetime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder - subBuilder = null; - if (allowedIssuanceModes_ != null) { - subBuilder = allowedIssuanceModes_.toBuilder(); - } - allowedIssuanceModes_ = - input.readMessage( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedIssuanceModes_); - allowedIssuanceModes_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder subBuilder = null; + if (allowedIssuanceModes_ != null) { + subBuilder = allowedIssuanceModes_.toBuilder(); + } + allowedIssuanceModes_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowedIssuanceModes_); + allowedIssuanceModes_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null; - if (baselineValues_ != null) { - subBuilder = baselineValues_.toBuilder(); - } - baselineValues_ = - input.readMessage( - com.google.cloud.security.privateca.v1.X509Parameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baselineValues_); - baselineValues_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null; + if (baselineValues_ != null) { + subBuilder = baselineValues_.toBuilder(); + } + baselineValues_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(baselineValues_); + baselineValues_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder - subBuilder = null; - if (identityConstraints_ != null) { - subBuilder = identityConstraints_.toBuilder(); - } - identityConstraints_ = - input.readMessage( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(identityConstraints_); - identityConstraints_ = subBuilder.buildPartial(); - } - break; + break; + } + case 42: { + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder subBuilder = null; + if (identityConstraints_ != null) { + subBuilder = identityConstraints_.toBuilder(); + } + identityConstraints_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identityConstraints_); + identityConstraints_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder - subBuilder = null; - if (passthroughExtensions_ != null) { - subBuilder = passthroughExtensions_.toBuilder(); - } - passthroughExtensions_ = - input.readMessage( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(passthroughExtensions_); - passthroughExtensions_ = subBuilder.buildPartial(); - } - break; + break; + } + case 50: { + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder subBuilder = null; + if (passthroughExtensions_ != null) { + subBuilder = passthroughExtensions_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + passthroughExtensions_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(passthroughExtensions_); + passthroughExtensions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1596,7 +1366,8 @@ private IssuancePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedKeyTypes_ = java.util.Collections.unmodifiableList(allowedKeyTypes_); @@ -1605,120 +1376,80 @@ private IssuancePolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); } - public interface AllowedKeyTypeOrBuilder - extends + public interface AllowedKeyTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Represents an allowed RSA key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; * @return Whether the rsa field is set. */ boolean hasRsa(); /** - * - * *
        * Represents an allowed RSA key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; * @return The rsa. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - getRsa(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getRsa(); /** - * - * *
        * Represents an allowed RSA key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder - getRsaOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder getRsaOrBuilder(); /** - * - * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; * @return Whether the ellipticCurve field is set. */ boolean hasEllipticCurve(); /** - * - * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; * @return The ellipticCurve. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - getEllipticCurve(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getEllipticCurve(); /** - * - * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder - getEllipticCurveOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder getEllipticCurveOrBuilder(); - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.KeyTypeCase - getKeyTypeCase(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.KeyTypeCase getKeyTypeCase(); } /** - * - * *
      * Describes a "type" of key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued
      * from a [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1729,29 +1460,30 @@ public interface AllowedKeyTypeOrBuilder
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType}
      */
-    public static final class AllowedKeyType extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class AllowedKeyType extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)
         AllowedKeyTypeOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use AllowedKeyType.newBuilder() to construct.
       private AllowedKeyType(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private AllowedKeyType() {}
+      private AllowedKeyType() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new AllowedKeyType();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet
+      getUnknownFields() {
         return this.unknownFields;
       }
-
       private AllowedKeyType(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1770,67 +1502,41 @@ private AllowedKeyType(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
-                          .RsaKeyType.Builder
-                      subBuilder = null;
-                  if (keyTypeCase_ == 1) {
-                    subBuilder =
-                        ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
-                                    .AllowedKeyType.RsaKeyType)
-                                keyType_)
-                            .toBuilder();
-                  }
-                  keyType_ =
-                      input.readMessage(
-                          com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
-                              .AllowedKeyType.RsaKeyType.parser(),
-                          extensionRegistry);
-                  if (subBuilder != null) {
-                    subBuilder.mergeFrom(
-                        (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
-                                .RsaKeyType)
-                            keyType_);
-                    keyType_ = subBuilder.buildPartial();
-                  }
-                  keyTypeCase_ = 1;
-                  break;
+              case 10: {
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder subBuilder = null;
+                if (keyTypeCase_ == 1) {
+                  subBuilder = ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_).toBuilder();
                 }
-              case 18:
-                {
-                  com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
-                          .EcKeyType.Builder
-                      subBuilder = null;
-                  if (keyTypeCase_ == 2) {
-                    subBuilder =
-                        ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
-                                    .AllowedKeyType.EcKeyType)
-                                keyType_)
-                            .toBuilder();
-                  }
-                  keyType_ =
-                      input.readMessage(
-                          com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
-                              .AllowedKeyType.EcKeyType.parser(),
-                          extensionRegistry);
-                  if (subBuilder != null) {
-                    subBuilder.mergeFrom(
-                        (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
-                                .EcKeyType)
-                            keyType_);
-                    keyType_ = subBuilder.buildPartial();
-                  }
-                  keyTypeCase_ = 2;
-                  break;
+                keyType_ =
+                    input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_);
+                  keyType_ = subBuilder.buildPartial();
                 }
-              default:
-                {
-                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                    done = true;
-                  }
-                  break;
+                keyTypeCase_ = 1;
+                break;
+              }
+              case 18: {
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder subBuilder = null;
+                if (keyTypeCase_ == 2) {
+                  subBuilder = ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_).toBuilder();
                 }
+                keyType_ =
+                    input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_);
+                  keyType_ = subBuilder.buildPartial();
+                }
+                keyTypeCase_ = 2;
+                break;
+              }
+              default: {
+                if (!parseUnknownField(
+                    input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
+              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1838,38 +1544,31 @@ private AllowedKeyType(
         } catch (com.google.protobuf.UninitializedMessageException e) {
           throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(
+              e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
-
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class,
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder
-                    .class);
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder.class);
       }
 
-      public interface RsaKeyTypeOrBuilder
-          extends
+      public interface RsaKeyTypeOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType)
           com.google.protobuf.MessageOrBuilder {
 
         /**
-         *
-         *
          * 
          * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service-level min RSA modulus size
@@ -1877,14 +1576,11 @@ public interface RsaKeyTypeOrBuilder
          * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minModulusSize. */ long getMinModulusSize(); /** - * - * *
          * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service will not enforce an explicit
@@ -1892,45 +1588,42 @@ public interface RsaKeyTypeOrBuilder
          * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxModulusSize. */ long getMaxModulusSize(); } /** - * - * *
        * Describes an RSA key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued from
        * a [CaPool][google.cloud.security.privateca.v1.CaPool].
        * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} + * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} */ - public static final class RsaKeyType extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RsaKeyType extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) RsaKeyTypeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RsaKeyType.newBuilder() to construct. private RsaKeyType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RsaKeyType() {} + private RsaKeyType() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RsaKeyType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RsaKeyType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1949,23 +1642,23 @@ private RsaKeyType( case 0: done = true; break; - case 8: - { - minModulusSize_ = input.readInt64(); - break; - } - case 16: - { - maxModulusSize_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + minModulusSize_ = input.readInt64(); + break; + } + case 16: { + + maxModulusSize_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1973,36 +1666,29 @@ private RsaKeyType( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder.class); } public static final int MIN_MODULUS_SIZE_FIELD_NUMBER = 1; private long minModulusSize_; /** - * - * *
          * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service-level min RSA modulus size
@@ -2010,7 +1696,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minModulusSize. */ @java.lang.Override @@ -2021,8 +1706,6 @@ public long getMinModulusSize() { public static final int MAX_MODULUS_SIZE_FIELD_NUMBER = 2; private long maxModulusSize_; /** - * - * *
          * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service will not enforce an explicit
@@ -2030,7 +1713,6 @@ public long getMinModulusSize() {
          * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxModulusSize. */ @java.lang.Override @@ -2039,7 +1721,6 @@ public long getMaxModulusSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2052,7 +1733,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (minModulusSize_ != 0L) { output.writeInt64(1, minModulusSize_); } @@ -2069,10 +1750,12 @@ public int getSerializedSize() { size = 0; if (minModulusSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, minModulusSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, minModulusSize_); } if (maxModulusSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxModulusSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxModulusSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2082,22 +1765,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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - other = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) obj; - if (getMinModulusSize() != other.getMinModulusSize()) return false; - if (getMaxModulusSize() != other.getMaxModulusSize()) return false; + if (getMinModulusSize() + != other.getMinModulusSize()) return false; + if (getMaxModulusSize() + != other.getMaxModulusSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2110,126 +1788,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_MODULUS_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinModulusSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinModulusSize()); hash = (37 * hash) + MAX_MODULUS_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxModulusSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxModulusSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2239,54 +1889,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Describes an RSA key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued from
          * a [CaPool][google.cloud.security.privateca.v1.CaPool].
          * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} + * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2298,25 +1939,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - result = buildPartial(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType build() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2324,13 +1959,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - result = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType(this); result.minModulusSize_ = minModulusSize_; result.maxModulusSize_ = maxModulusSize_; onBuilt(); @@ -2341,59 +1971,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - other); + if (other instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) { + return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - other) { - if (other - == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType other) { + if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance()) return this; if (other.getMinModulusSize() != 0L) { setMinModulusSize(other.getMinModulusSize()); } @@ -2415,15 +2032,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2433,10 +2046,8 @@ public Builder mergeFrom( return this; } - private long minModulusSize_; + private long minModulusSize_ ; /** - * - * *
            * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service-level min RSA modulus size
@@ -2444,7 +2055,6 @@ public Builder mergeFrom(
            * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The minModulusSize. */ @java.lang.Override @@ -2452,8 +2062,6 @@ public long getMinModulusSize() { return minModulusSize_; } /** - * - * *
            * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service-level min RSA modulus size
@@ -2461,19 +2069,16 @@ public long getMinModulusSize() {
            * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The minModulusSize to set. * @return This builder for chaining. */ public Builder setMinModulusSize(long value) { - + minModulusSize_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service-level min RSA modulus size
@@ -2481,20 +2086,17 @@ public Builder setMinModulusSize(long value) {
            * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMinModulusSize() { - + minModulusSize_ = 0L; onChanged(); return this; } - private long maxModulusSize_; + private long maxModulusSize_ ; /** - * - * *
            * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service will not enforce an explicit
@@ -2502,7 +2104,6 @@ public Builder clearMinModulusSize() {
            * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxModulusSize. */ @java.lang.Override @@ -2510,8 +2111,6 @@ public long getMaxModulusSize() { return maxModulusSize_; } /** - * - * *
            * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service will not enforce an explicit
@@ -2519,19 +2118,16 @@ public long getMaxModulusSize() {
            * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The maxModulusSize to set. * @return This builder for chaining. */ public Builder setMaxModulusSize(long value) { - + maxModulusSize_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service will not enforce an explicit
@@ -2539,16 +2135,14 @@ public Builder setMaxModulusSize(long value) {
            * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMaxModulusSize() { - + maxModulusSize_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2561,36 +2155,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyType.RsaKeyType - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RsaKeyType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RsaKeyType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RsaKeyType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RsaKeyType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2602,87 +2190,70 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EcKeyTypeOrBuilder - extends + public interface EcKeyTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for signatureAlgorithm. */ int getSignatureAlgorithmValue(); /** - * - * *
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The signatureAlgorithm. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .EcSignatureAlgorithm - getSignatureAlgorithm(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm getSignatureAlgorithm(); } /** - * - * *
        * Describes an Elliptic Curve key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate]
        * issued from a [CaPool][google.cloud.security.privateca.v1.CaPool].
        * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} + * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} */ - public static final class EcKeyType extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class EcKeyType extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) EcKeyTypeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EcKeyType.newBuilder() to construct. private EcKeyType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EcKeyType() { signatureAlgorithm_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EcKeyType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EcKeyType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2701,20 +2272,19 @@ private EcKeyType( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - signatureAlgorithm_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + signatureAlgorithm_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2722,46 +2292,37 @@ private EcKeyType( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder.class); } /** - * - * *
          * Describes an elliptic curve-based signature algorithm that may be
          * used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued from a [CaPool][google.cloud.security.privateca.v1.CaPool].
          * 
* - * Protobuf enum {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm} + * Protobuf enum {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm} */ - public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnum { + public enum EcSignatureAlgorithm + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
            * Not specified. Signifies that any signature algorithm may be used.
            * 
@@ -2770,8 +2331,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE */ EC_SIGNATURE_ALGORITHM_UNSPECIFIED(0), /** - * - * *
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-256 curve.
@@ -2781,8 +2340,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE
            */
           ECDSA_P256(1),
           /**
-           *
-           *
            * 
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-384 curve.
@@ -2792,8 +2349,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE
            */
           ECDSA_P384(2),
           /**
-           *
-           *
            * 
            * Refers to the Edwards-curve Digital Signature Algorithm over curve
            * 25519, as described in RFC 8410.
@@ -2806,8 +2361,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE
           ;
 
           /**
-           *
-           *
            * 
            * Not specified. Signifies that any signature algorithm may be used.
            * 
@@ -2816,8 +2369,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE */ public static final int EC_SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** - * - * *
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-256 curve.
@@ -2827,8 +2378,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE
            */
           public static final int ECDSA_P256_VALUE = 1;
           /**
-           *
-           *
            * 
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-384 curve.
@@ -2838,8 +2387,6 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE
            */
           public static final int ECDSA_P384_VALUE = 2;
           /**
-           *
-           *
            * 
            * Refers to the Edwards-curve Digital Signature Algorithm over curve
            * 25519, as described in RFC 8410.
@@ -2849,6 +2396,7 @@ public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageE
            */
           public static final int EDDSA_25519_VALUE = 3;
 
+
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
@@ -2873,16 +2421,11 @@ public static EcSignatureAlgorithm valueOf(int value) {
            */
           public static EcSignatureAlgorithm forNumber(int value) {
             switch (value) {
-              case 0:
-                return EC_SIGNATURE_ALGORITHM_UNSPECIFIED;
-              case 1:
-                return ECDSA_P256;
-              case 2:
-                return ECDSA_P384;
-              case 3:
-                return EDDSA_25519;
-              default:
-                return null;
+              case 0: return EC_SIGNATURE_ALGORITHM_UNSPECIFIED;
+              case 1: return ECDSA_P256;
+              case 2: return ECDSA_P384;
+              case 3: return EDDSA_25519;
+              default: return null;
             }
           }
 
@@ -2890,32 +2433,29 @@ public static EcSignatureAlgorithm forNumber(int value) {
               internalGetValueMap() {
             return internalValueMap;
           }
+          private static final com.google.protobuf.Internal.EnumLiteMap<
+              EcSignatureAlgorithm> internalValueMap =
+                new com.google.protobuf.Internal.EnumLiteMap() {
+                  public EcSignatureAlgorithm findValueByNumber(int number) {
+                    return EcSignatureAlgorithm.forNumber(number);
+                  }
+                };
 
-          private static final com.google.protobuf.Internal.EnumLiteMap
-              internalValueMap =
-                  new com.google.protobuf.Internal.EnumLiteMap() {
-                    public EcSignatureAlgorithm findValueByNumber(int number) {
-                      return EcSignatureAlgorithm.forNumber(number);
-                    }
-                  };
-
-          public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+          public final com.google.protobuf.Descriptors.EnumValueDescriptor
+              getValueDescriptor() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalStateException(
                   "Can't get the descriptor of an unrecognized enum value.");
             }
             return getDescriptor().getValues().get(ordinal());
           }
-
-          public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+          public final com.google.protobuf.Descriptors.EnumDescriptor
+              getDescriptorForType() {
             return getDescriptor();
           }
-
-          public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-            return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
-                .EcKeyType.getDescriptor()
-                .getEnumTypes()
-                .get(0);
+          public static final com.google.protobuf.Descriptors.EnumDescriptor
+              getDescriptor() {
+            return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDescriptor().getEnumTypes().get(0);
           }
 
           private static final EcSignatureAlgorithm[] VALUES = values();
@@ -2924,7 +2464,7 @@ public static EcSignatureAlgorithm valueOf(
               com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
             if (desc.getType() != getDescriptor()) {
               throw new java.lang.IllegalArgumentException(
-                  "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
@@ -2944,55 +2484,33 @@ private EcSignatureAlgorithm(int value) {
         public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 1;
         private int signatureAlgorithm_;
         /**
-         *
-         *
          * 
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override - public int getSignatureAlgorithmValue() { + @java.lang.Override public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** - * - * *
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The signatureAlgorithm. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .EcSignatureAlgorithm - getSignatureAlgorithm() { + @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .EcSignatureAlgorithm - result = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm result = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3005,11 +2523,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (signatureAlgorithm_ - != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED - .getNumber()) { + throws java.io.IOException { + if (signatureAlgorithm_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(1, signatureAlgorithm_); } unknownFields.writeTo(output); @@ -3021,11 +2536,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (signatureAlgorithm_ - != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, signatureAlgorithm_); + if (signatureAlgorithm_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, signatureAlgorithm_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3035,19 +2548,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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - other = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) obj; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -3068,118 +2574,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3189,54 +2665,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Describes an Elliptic Curve key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate]
          * issued from a [CaPool][google.cloud.security.privateca.v1.CaPool].
          * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} + * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3246,25 +2713,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - result = buildPartial(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType build() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3272,13 +2733,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - result = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType(this); result.signatureAlgorithm_ = signatureAlgorithm_; onBuilt(); return result; @@ -3288,59 +2744,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - other); + if (other instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) { + return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - other) { - if (other - == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType other) { + if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance()) return this; if (other.signatureAlgorithm_ != 0) { setSignatureAlgorithmValue(other.getSignatureAlgorithmValue()); } @@ -3359,15 +2802,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3379,121 +2818,82 @@ public Builder mergeFrom( private int signatureAlgorithm_ = 0; /** - * - * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override - public int getSignatureAlgorithmValue() { + @java.lang.Override public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** - * - * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for signatureAlgorithm to set. * @return This builder for chaining. */ public Builder setSignatureAlgorithmValue(int value) { - + signatureAlgorithm_ = value; onChanged(); return this; } /** - * - * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The signatureAlgorithm. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm - getSignatureAlgorithm() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .EcSignatureAlgorithm - result = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm result = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED : result; } /** - * - * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .EcSignatureAlgorithm - value) { + public Builder setSignatureAlgorithm(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + signatureAlgorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3506,36 +2906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyType.EcKeyType - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EcKeyType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EcKeyType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EcKeyType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EcKeyType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3547,24 +2941,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int keyTypeCase_ = 0; private java.lang.Object keyType_; - public enum KeyTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RSA(1), ELLIPTIC_CURVE(2), KEYTYPE_NOT_SET(0); private final int value; - private KeyTypeCase(int value) { this.value = value; } @@ -3580,38 +2971,30 @@ public static KeyTypeCase valueOf(int value) { public static KeyTypeCase forNumber(int value) { switch (value) { - case 1: - return RSA; - case 2: - return ELLIPTIC_CURVE; - case 0: - return KEYTYPE_NOT_SET; - default: - return null; + case 1: return RSA; + case 2: return ELLIPTIC_CURVE; + case 0: return KEYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public KeyTypeCase getKeyTypeCase() { - return KeyTypeCase.forNumber(keyTypeCase_); + public KeyTypeCase + getKeyTypeCase() { + return KeyTypeCase.forNumber( + keyTypeCase_); } public static final int RSA_FIELD_NUMBER = 1; /** - * - * *
        * Represents an allowed RSA key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; * @return Whether the rsa field is set. */ @java.lang.Override @@ -3619,65 +3002,42 @@ public boolean hasRsa() { return keyTypeCase_ == 1; } /** - * - * *
        * Represents an allowed RSA key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; * @return The rsa. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - getRsa() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getRsa() { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } /** - * - * *
        * Represents an allowed RSA key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder - getRsaOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder getRsaOrBuilder() { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } public static final int ELLIPTIC_CURVE_FIELD_NUMBER = 2; /** - * - * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; * @return Whether the ellipticCurve field is set. */ @java.lang.Override @@ -3685,55 +3045,36 @@ public boolean hasEllipticCurve() { return keyTypeCase_ == 2; } /** - * - * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; * @return The ellipticCurve. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - getEllipticCurve() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getEllipticCurve() { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } /** - * - * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyTypeOrBuilder - getEllipticCurveOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder getEllipticCurveOrBuilder() { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3745,20 +3086,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (keyTypeCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_); + output.writeMessage(1, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_); } if (keyTypeCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_); + output.writeMessage(2, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_); } unknownFields.writeTo(output); } @@ -3770,20 +3104,12 @@ public int getSerializedSize() { size = 0; if (keyTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_); } if (keyTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3793,23 +3119,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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) obj; if (!getKeyTypeCase().equals(other.getKeyTypeCase())) return false; switch (keyTypeCase_) { case 1: - if (!getRsa().equals(other.getRsa())) return false; + if (!getRsa() + .equals(other.getRsa())) return false; break; case 2: - if (!getEllipticCurve().equals(other.getEllipticCurve())) return false; + if (!getEllipticCurve() + .equals(other.getEllipticCurve())) return false; break; case 0: default: @@ -3842,103 +3167,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3948,8 +3258,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes a "type" of key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued
        * from a [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -3958,45 +3266,40 @@ protected Builder newBuilderForType(
        * algorithms, such as any RSA key.
        * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType} + * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4006,22 +3309,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = - buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4029,10 +3329,8 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(this); if (keyTypeCase_ == 1) { if (rsaBuilder_ == null) { result.keyType_ = keyType_; @@ -4056,71 +3354,58 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) - other); + if (other instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) { + return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other) { - if (other - == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other) { + if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance()) return this; switch (other.getKeyTypeCase()) { - case RSA: - { - mergeRsa(other.getRsa()); - break; - } - case ELLIPTIC_CURVE: - { - mergeEllipticCurve(other.getEllipticCurve()); - break; - } - case KEYTYPE_NOT_SET: - { - break; - } + case RSA: { + mergeRsa(other.getRsa()); + break; + } + case ELLIPTIC_CURVE: { + mergeEllipticCurve(other.getEllipticCurve()); + break; + } + case KEYTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4137,14 +3422,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4153,12 +3435,12 @@ public Builder mergeFrom( } return this; } - private int keyTypeCase_ = 0; private java.lang.Object keyType_; - - public KeyTypeCase getKeyTypeCase() { - return KeyTypeCase.forNumber(keyTypeCase_); + public KeyTypeCase + getKeyTypeCase() { + return KeyTypeCase.forNumber( + keyTypeCase_); } public Builder clearKeyType() { @@ -4168,25 +3450,15 @@ public Builder clearKeyType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder> - rsaBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder> rsaBuilder_; /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; * @return Whether the rsa field is set. */ @java.lang.Override @@ -4194,52 +3466,35 @@ public boolean hasRsa() { return keyTypeCase_ == 1; } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; * @return The rsa. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType - getRsa() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getRsa() { if (rsaBuilder_ == null) { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } else { if (keyTypeCase_ == 1) { return rsaBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ - public Builder setRsa( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - value) { + public Builder setRsa(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType value) { if (rsaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4253,20 +3508,14 @@ public Builder setRsa( return this; } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ public Builder setRsa( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - .Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder builderForValue) { if (rsaBuilder_ == null) { keyType_ = builderForValue.build(); onChanged(); @@ -4277,32 +3526,18 @@ public Builder setRsa( return this; } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ - public Builder mergeRsa( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType - value) { + public Builder mergeRsa(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType value) { if (rsaBuilder_ == null) { - if (keyTypeCase_ == 1 - && keyType_ - != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance()) { - keyType_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.newBuilder( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyType.RsaKeyType) - keyType_) - .mergeFrom(value) - .buildPartial(); + if (keyTypeCase_ == 1 && + keyType_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance()) { + keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.newBuilder((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_) + .mergeFrom(value).buildPartial(); } else { keyType_ = value; } @@ -4318,15 +3553,11 @@ public Builder mergeRsa( return this; } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ public Builder clearRsa() { if (rsaBuilder_ == null) { @@ -4345,113 +3576,67 @@ public Builder clearRsa() { return this; } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.Builder - getRsaBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder getRsaBuilder() { return getRsaFieldBuilder().getBuilder(); } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder - getRsaOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder getRsaOrBuilder() { if ((keyTypeCase_ == 1) && (rsaBuilder_ != null)) { return rsaBuilder_.getMessageOrBuilder(); } else { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } } /** - * - * *
          * Represents an allowed RSA key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder> getRsaFieldBuilder() { if (rsaBuilder_ == null) { if (!(keyTypeCase_ == 1)) { - keyType_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.getDefaultInstance(); + keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); } - rsaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyTypeOrBuilder>( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .RsaKeyType) - keyType_, + rsaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder>( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_, getParentForChildren(), isClean()); keyType_ = null; } keyTypeCase_ = 1; - onChanged(); - ; + onChanged();; return rsaBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyTypeOrBuilder> - ellipticCurveBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder> ellipticCurveBuilder_; /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; * @return Whether the ellipticCurve field is set. */ @java.lang.Override @@ -4459,51 +3644,35 @@ public boolean hasEllipticCurve() { return keyTypeCase_ == 2; } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; * @return The ellipticCurve. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - getEllipticCurve() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getEllipticCurve() { if (ellipticCurveBuilder_ == null) { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } else { if (keyTypeCase_ == 2) { return ellipticCurveBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ - public Builder setEllipticCurve( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - value) { + public Builder setEllipticCurve(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType value) { if (ellipticCurveBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4517,20 +3686,14 @@ public Builder setEllipticCurve( return this; } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ public Builder setEllipticCurve( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder builderForValue) { if (ellipticCurveBuilder_ == null) { keyType_ = builderForValue.build(); onChanged(); @@ -4541,32 +3704,18 @@ public Builder setEllipticCurve( return this; } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ - public Builder mergeEllipticCurve( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - value) { + public Builder mergeEllipticCurve(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType value) { if (ellipticCurveBuilder_ == null) { - if (keyTypeCase_ == 2 - && keyType_ - != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance()) { - keyType_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.newBuilder( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyType.EcKeyType) - keyType_) - .mergeFrom(value) - .buildPartial(); + if (keyTypeCase_ == 2 && + keyType_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance()) { + keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.newBuilder((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_) + .mergeFrom(value).buildPartial(); } else { keyType_ = value; } @@ -4582,15 +3731,11 @@ public Builder mergeEllipticCurve( return this; } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ public Builder clearEllipticCurve() { if (ellipticCurveBuilder_ == null) { @@ -4609,94 +3754,58 @@ public Builder clearEllipticCurve() { return this; } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType - .Builder - getEllipticCurveBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder getEllipticCurveBuilder() { return getEllipticCurveFieldBuilder().getBuilder(); } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyTypeOrBuilder - getEllipticCurveOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder getEllipticCurveOrBuilder() { if ((keyTypeCase_ == 2) && (ellipticCurveBuilder_ != null)) { return ellipticCurveBuilder_.getMessageOrBuilder(); } else { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } } /** - * - * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyTypeOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder> getEllipticCurveFieldBuilder() { if (ellipticCurveBuilder_ == null) { if (!(keyTypeCase_ == 2)) { - keyType_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.getDefaultInstance(); + keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); } - ellipticCurveBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyTypeOrBuilder>( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .EcKeyType) - keyType_, + ellipticCurveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder>( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_, getParentForChildren(), isClean()); keyType_ = null; } keyTypeCase_ = 2; - onChanged(); - ; + onChanged();; return ellipticCurveBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4709,34 +3818,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyType - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedKeyType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedKeyType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedKeyType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedKeyType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4748,49 +3853,39 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IssuanceModesOrBuilder - extends + public interface IssuanceModesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowCsrBasedIssuance. */ boolean getAllowCsrBasedIssuance(); /** - * - * *
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowConfigBasedIssuance. */ boolean getAllowConfigBasedIssuance(); } /** - * - * *
      * [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] specifies the allowed ways in which
      * [Certificates][google.cloud.security.privateca.v1.Certificate] may be requested from this
@@ -4799,29 +3894,30 @@ public interface IssuanceModesOrBuilder
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes}
      */
-    public static final class IssuanceModes extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class IssuanceModes extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)
         IssuanceModesOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use IssuanceModes.newBuilder() to construct.
       private IssuanceModes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private IssuanceModes() {}
+      private IssuanceModes() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new IssuanceModes();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet
+      getUnknownFields() {
         return this.unknownFields;
       }
-
       private IssuanceModes(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -4840,23 +3936,23 @@ private IssuanceModes(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  allowCsrBasedIssuance_ = input.readBool();
-                  break;
-                }
-              case 16:
-                {
-                  allowConfigBasedIssuance_ = input.readBool();
-                  break;
-                }
-              default:
-                {
-                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                    done = true;
-                  }
-                  break;
+              case 8: {
+
+                allowCsrBasedIssuance_ = input.readBool();
+                break;
+              }
+              case 16: {
+
+                allowConfigBasedIssuance_ = input.readBool();
+                break;
+              }
+              default: {
+                if (!parseUnknownField(
+                    input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
                 }
+                break;
+              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4864,42 +3960,35 @@ private IssuanceModes(
         } catch (com.google.protobuf.UninitializedMessageException e) {
           throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(
+              e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
-
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class,
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder
-                    .class);
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder.class);
       }
 
       public static final int ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER = 1;
       private boolean allowCsrBasedIssuance_;
       /**
-       *
-       *
        * 
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -4910,16 +3999,12 @@ public boolean getAllowCsrBasedIssuance() { public static final int ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER = 2; private boolean allowConfigBasedIssuance_; /** - * - * *
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -4928,7 +4013,6 @@ public boolean getAllowConfigBasedIssuance() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4940,7 +4024,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowCsrBasedIssuance_ != false) { output.writeBool(1, allowCsrBasedIssuance_); } @@ -4957,11 +4042,12 @@ public int getSerializedSize() { size = 0; if (allowCsrBasedIssuance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowCsrBasedIssuance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowCsrBasedIssuance_); } if (allowConfigBasedIssuance_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowConfigBasedIssuance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowConfigBasedIssuance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4971,18 +4057,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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) obj; - if (getAllowCsrBasedIssuance() != other.getAllowCsrBasedIssuance()) return false; - if (getAllowConfigBasedIssuance() != other.getAllowConfigBasedIssuance()) return false; + if (getAllowCsrBasedIssuance() + != other.getAllowCsrBasedIssuance()) return false; + if (getAllowConfigBasedIssuance() + != other.getAllowConfigBasedIssuance()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4995,112 +4080,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCsrBasedIssuance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowCsrBasedIssuance()); hash = (37 * hash) + ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowConfigBasedIssuance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowConfigBasedIssuance()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - 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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes 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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5110,53 +4181,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] specifies the allowed ways in which
        * [Certificates][google.cloud.security.privateca.v1.Certificate] may be requested from this
        * [CaPool][google.cloud.security.privateca.v1.CaPool].
        * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes} + * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder - .class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5168,22 +4232,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = - buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5191,10 +4252,8 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(this); result.allowCsrBasedIssuance_ = allowCsrBasedIssuance_; result.allowConfigBasedIssuance_ = allowConfigBasedIssuance_; onBuilt(); @@ -5205,55 +4264,46 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) other); + if (other instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) { + return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other) { - if (other - == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other) { + if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance()) return this; if (other.getAllowCsrBasedIssuance() != false) { setAllowCsrBasedIssuance(other.getAllowCsrBasedIssuance()); } @@ -5275,14 +4325,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parsedMessage = - null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5292,17 +4339,14 @@ public Builder mergeFrom( return this; } - private boolean allowCsrBasedIssuance_; + private boolean allowCsrBasedIssuance_ ; /** - * - * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -5310,55 +4354,45 @@ public boolean getAllowCsrBasedIssuance() { return allowCsrBasedIssuance_; } /** - * - * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowCsrBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowCsrBasedIssuance(boolean value) { - + allowCsrBasedIssuance_ = value; onChanged(); return this; } /** - * - * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowCsrBasedIssuance() { - + allowCsrBasedIssuance_ = false; onChanged(); return this; } - private boolean allowConfigBasedIssuance_; + private boolean allowConfigBasedIssuance_ ; /** - * - * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -5366,45 +4400,36 @@ public boolean getAllowConfigBasedIssuance() { return allowConfigBasedIssuance_; } /** - * - * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowConfigBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowConfigBasedIssuance(boolean value) { - + allowConfigBasedIssuance_ = value; onChanged(); return this; } /** - * - * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowConfigBasedIssuance() { - + allowConfigBasedIssuance_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5417,34 +4442,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .IssuanceModes - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuanceModes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuanceModes(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuanceModes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuanceModes(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5456,115 +4477,85 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ALLOWED_KEY_TYPES_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> - allowedKeyTypes_; + private java.util.List allowedKeyTypes_; /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> - getAllowedKeyTypesList() { + public java.util.List getAllowedKeyTypesList() { return allowedKeyTypes_; } /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyTypeOrBuilder> + public java.util.List getAllowedKeyTypesOrBuilderList() { return allowedKeyTypes_; } /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAllowedKeyTypesCount() { return allowedKeyTypes_.size(); } /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - getAllowedKeyTypes(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index) { return allowedKeyTypes_.get(index); } /** - * - * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder - getAllowedKeyTypesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder( + int index) { return allowedKeyTypes_.get(index); } public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 2; private com.google.protobuf.Duration maximumLifetime_; /** - * - * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5572,10 +4563,7 @@ public int getAllowedKeyTypesCount() {
      * be explicitly truncated to match it.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maximumLifetime field is set. */ @java.lang.Override @@ -5583,8 +4571,6 @@ public boolean hasMaximumLifetime() { return maximumLifetime_ != null; } /** - * - * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5592,21 +4578,14 @@ public boolean hasMaximumLifetime() {
      * be explicitly truncated to match it.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maximumLifetime. */ @java.lang.Override public com.google.protobuf.Duration getMaximumLifetime() { - return maximumLifetime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumLifetime_; + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; } /** - * - * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5614,9 +4593,7 @@ public com.google.protobuf.Duration getMaximumLifetime() {
      * be explicitly truncated to match it.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { @@ -5624,20 +4601,14 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { } public static final int ALLOWED_ISSUANCE_MODES_FIELD_NUMBER = 3; - private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowedIssuanceModes_; /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedIssuanceModes field is set. */ @java.lang.Override @@ -5645,50 +4616,34 @@ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModes_ != null; } /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedIssuanceModes. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - getAllowedIssuanceModes() { - return allowedIssuanceModes_ == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .getDefaultInstance() - : allowedIssuanceModes_; + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes() { + return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; } /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder - getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { return getAllowedIssuanceModes(); } public static final int BASELINE_VALUES_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1.X509Parameters baselineValues_; /** - * - * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -5699,10 +4654,7 @@ public boolean hasAllowedIssuanceModes() {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the baselineValues field is set. */ @java.lang.Override @@ -5710,8 +4662,6 @@ public boolean hasBaselineValues() { return baselineValues_ != null; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -5722,21 +4672,14 @@ public boolean hasBaselineValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The baselineValues. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues() { - return baselineValues_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : baselineValues_; + return baselineValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : baselineValues_; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -5747,22 +4690,16 @@ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues()
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder - getBaselineValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselineValuesOrBuilder() { return getBaselineValues(); } public static final int IDENTITY_CONSTRAINTS_FIELD_NUMBER = 5; - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; /** - * - * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -5770,10 +4707,7 @@ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues()
      * certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConstraints field is set. */ @java.lang.Override @@ -5781,8 +4715,6 @@ public boolean hasIdentityConstraints() { return identityConstraints_ != null; } /** - * - * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -5790,23 +4722,14 @@ public boolean hasIdentityConstraints() {
      * certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConstraints. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - getIdentityConstraints() { - return identityConstraints_ == null - ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - .getDefaultInstance() - : identityConstraints_; + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { + return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; } /** - * - * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -5814,22 +4737,16 @@ public boolean hasIdentityConstraints() {
      * certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder - getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { return getIdentityConstraints(); } public static final int PASSTHROUGH_EXTENSIONS_FIELD_NUMBER = 6; - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -5843,10 +4760,7 @@ public boolean hasIdentityConstraints() {
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the passthroughExtensions field is set. */ @java.lang.Override @@ -5854,8 +4768,6 @@ public boolean hasPassthroughExtensions() { return passthroughExtensions_ != null; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -5869,23 +4781,14 @@ public boolean hasPassthroughExtensions() {
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The passthroughExtensions. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getPassthroughExtensions() { - return passthroughExtensions_ == null - ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .getDefaultInstance() - : passthroughExtensions_; + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { + return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -5899,18 +4802,14 @@ public boolean hasPassthroughExtensions() {
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder - getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { return getPassthroughExtensions(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5922,7 +4821,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < allowedKeyTypes_.size(); i++) { output.writeMessage(1, allowedKeyTypes_.get(i)); } @@ -5951,26 +4851,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < allowedKeyTypes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, allowedKeyTypes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, allowedKeyTypes_.get(i)); } if (maximumLifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaximumLifetime()); } if (allowedIssuanceModes_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllowedIssuanceModes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAllowedIssuanceModes()); } if (baselineValues_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBaselineValues()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBaselineValues()); } if (identityConstraints_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIdentityConstraints()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIdentityConstraints()); } if (passthroughExtensions_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPassthroughExtensions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getPassthroughExtensions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5980,34 +4882,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy other = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) obj; - if (!getAllowedKeyTypesList().equals(other.getAllowedKeyTypesList())) return false; + if (!getAllowedKeyTypesList() + .equals(other.getAllowedKeyTypesList())) return false; if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; if (hasMaximumLifetime()) { - if (!getMaximumLifetime().equals(other.getMaximumLifetime())) return false; + if (!getMaximumLifetime() + .equals(other.getMaximumLifetime())) return false; } if (hasAllowedIssuanceModes() != other.hasAllowedIssuanceModes()) return false; if (hasAllowedIssuanceModes()) { - if (!getAllowedIssuanceModes().equals(other.getAllowedIssuanceModes())) return false; + if (!getAllowedIssuanceModes() + .equals(other.getAllowedIssuanceModes())) return false; } if (hasBaselineValues() != other.hasBaselineValues()) return false; if (hasBaselineValues()) { - if (!getBaselineValues().equals(other.getBaselineValues())) return false; + if (!getBaselineValues() + .equals(other.getBaselineValues())) return false; } if (hasIdentityConstraints() != other.hasIdentityConstraints()) return false; if (hasIdentityConstraints()) { - if (!getIdentityConstraints().equals(other.getIdentityConstraints())) return false; + if (!getIdentityConstraints() + .equals(other.getIdentityConstraints())) return false; } if (hasPassthroughExtensions() != other.hasPassthroughExtensions()) return false; if (hasPassthroughExtensions()) { - if (!getPassthroughExtensions().equals(other.getPassthroughExtensions())) return false; + if (!getPassthroughExtensions() + .equals(other.getPassthroughExtensions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -6050,94 +4957,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy 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.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6147,32 +5047,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Defines controls over all certificate issuance within a [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.newBuilder() @@ -6180,17 +5075,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAllowedKeyTypesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6234,14 +5129,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance(); } @@ -6256,8 +5150,7 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy build() { @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy result = - new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy(this); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy(this); int from_bitField0_ = bitField0_; if (allowedKeyTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6301,41 +5194,38 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy) { - return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) other); + return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy)other); } else { super.mergeFrom(other); return this; @@ -6343,9 +5233,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy other) { - if (other - == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance()) return this; if (allowedKeyTypesBuilder_ == null) { if (!other.allowedKeyTypes_.isEmpty()) { if (allowedKeyTypes_.isEmpty()) { @@ -6364,10 +5252,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuanceP allowedKeyTypesBuilder_ = null; allowedKeyTypes_ = other.allowedKeyTypes_; bitField0_ = (bitField0_ & ~0x00000001); - allowedKeyTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAllowedKeyTypesFieldBuilder() - : null; + allowedKeyTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowedKeyTypesFieldBuilder() : null; } else { allowedKeyTypesBuilder_.addAllMessages(other.allowedKeyTypes_); } @@ -6407,9 +5294,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6418,45 +5303,30 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> - allowedKeyTypes_ = java.util.Collections.emptyList(); - + private java.util.List allowedKeyTypes_ = + java.util.Collections.emptyList(); private void ensureAllowedKeyTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedKeyTypes_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType>( - allowedKeyTypes_); + allowedKeyTypes_ = new java.util.ArrayList(allowedKeyTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> - allowedKeyTypesBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> allowedKeyTypesBuilder_; /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> - getAllowedKeyTypesList() { + public java.util.List getAllowedKeyTypesList() { if (allowedKeyTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedKeyTypes_); } else { @@ -6464,17 +5334,13 @@ private void ensureAllowedKeyTypesIsMutable() { } } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAllowedKeyTypesCount() { if (allowedKeyTypesBuilder_ == null) { @@ -6484,20 +5350,15 @@ public int getAllowedKeyTypesCount() { } } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - getAllowedKeyTypes(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index) { if (allowedKeyTypesBuilder_ == null) { return allowedKeyTypes_.get(index); } else { @@ -6505,21 +5366,16 @@ public int getAllowedKeyTypesCount() { } } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedKeyTypes( - int index, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { + int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { if (allowedKeyTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6533,22 +5389,16 @@ public Builder setAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedKeyTypes( - int index, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder builderForValue) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); allowedKeyTypes_.set(index, builderForValue.build()); @@ -6559,20 +5409,15 @@ public Builder setAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAllowedKeyTypes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { + public Builder addAllowedKeyTypes(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { if (allowedKeyTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6586,21 +5431,16 @@ public Builder addAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllowedKeyTypes( - int index, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { + int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { if (allowedKeyTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6614,21 +5454,16 @@ public Builder addAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllowedKeyTypes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder builderForValue) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); allowedKeyTypes_.add(builderForValue.build()); @@ -6639,22 +5474,16 @@ public Builder addAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllowedKeyTypes( - int index, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder builderForValue) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); allowedKeyTypes_.add(index, builderForValue.build()); @@ -6665,26 +5494,20 @@ public Builder addAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAllowedKeyTypes( - java.lang.Iterable< - ? extends - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> - values) { + java.lang.Iterable values) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedKeyTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedKeyTypes_); onChanged(); } else { allowedKeyTypesBuilder_.addAllMessages(values); @@ -6692,17 +5515,13 @@ public Builder addAllAllowedKeyTypes( return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllowedKeyTypes() { if (allowedKeyTypesBuilder_ == null) { @@ -6715,17 +5534,13 @@ public Builder clearAllowedKeyTypes() { return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAllowedKeyTypes(int index) { if (allowedKeyTypesBuilder_ == null) { @@ -6738,61 +5553,45 @@ public Builder removeAllowedKeyTypes(int index) { return this; } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder - getAllowedKeyTypesBuilder(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder getAllowedKeyTypesBuilder( + int index) { return getAllowedKeyTypesFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder - getAllowedKeyTypesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder( + int index) { if (allowedKeyTypesBuilder_ == null) { - return allowedKeyTypes_.get(index); - } else { + return allowedKeyTypes_.get(index); } else { return allowedKeyTypesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyTypeOrBuilder> - getAllowedKeyTypesOrBuilderList() { + public java.util.List + getAllowedKeyTypesOrBuilderList() { if (allowedKeyTypesBuilder_ != null) { return allowedKeyTypesBuilder_.getMessageOrBuilderList(); } else { @@ -6800,78 +5599,51 @@ public Builder removeAllowedKeyTypes(int index) { } } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder - addAllowedKeyTypesBuilder() { - return getAllowedKeyTypesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder addAllowedKeyTypesBuilder() { + return getAllowedKeyTypesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance()); } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder - addAllowedKeyTypesBuilder(int index) { - return getAllowedKeyTypesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder addAllowedKeyTypesBuilder( + int index) { + return getAllowedKeyTypesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance()); } /** - * - * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder> - getAllowedKeyTypesBuilderList() { + public java.util.List + getAllowedKeyTypesBuilderList() { return getAllowedKeyTypesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> getAllowedKeyTypesFieldBuilder() { if (allowedKeyTypesBuilder_ == null) { - allowedKeyTypesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType - .Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .AllowedKeyTypeOrBuilder>( + allowedKeyTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder>( allowedKeyTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -6883,13 +5655,8 @@ public Builder removeAllowedKeyTypes(int index) { private com.google.protobuf.Duration maximumLifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maximumLifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumLifetimeBuilder_; /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -6897,18 +5664,13 @@ public Builder removeAllowedKeyTypes(int index) {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maximumLifetime field is set. */ public boolean hasMaximumLifetime() { return maximumLifetimeBuilder_ != null || maximumLifetime_ != null; } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -6916,24 +5678,17 @@ public boolean hasMaximumLifetime() {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maximumLifetime. */ public com.google.protobuf.Duration getMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { - return maximumLifetime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumLifetime_; + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; } else { return maximumLifetimeBuilder_.getMessage(); } } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -6941,9 +5696,7 @@ public com.google.protobuf.Duration getMaximumLifetime() {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { @@ -6959,8 +5712,6 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -6968,11 +5719,10 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaximumLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (maximumLifetimeBuilder_ == null) { maximumLifetime_ = builderForValue.build(); onChanged(); @@ -6983,8 +5733,6 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -6992,17 +5740,13 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderFo
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { if (maximumLifetime_ != null) { maximumLifetime_ = - com.google.protobuf.Duration.newBuilder(maximumLifetime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(maximumLifetime_).mergeFrom(value).buildPartial(); } else { maximumLifetime_ = value; } @@ -7014,8 +5758,6 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -7023,9 +5765,7 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { @@ -7039,8 +5779,6 @@ public Builder clearMaximumLifetime() { return this; } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -7048,18 +5786,14 @@ public Builder clearMaximumLifetime() {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { - + onChanged(); return getMaximumLifetimeFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -7067,22 +5801,17 @@ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { if (maximumLifetimeBuilder_ != null) { return maximumLifetimeBuilder_.getMessageOrBuilder(); } else { - return maximumLifetime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumLifetime_; + return maximumLifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; } } /** - * - * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -7090,90 +5819,62 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() {
        * be explicitly truncated to match it.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getMaximumLifetimeFieldBuilder() { if (maximumLifetimeBuilder_ == null) { - maximumLifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaximumLifetime(), getParentForChildren(), isClean()); + maximumLifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaximumLifetime(), + getParentForChildren(), + isClean()); maximumLifetime_ = null; } return maximumLifetimeBuilder_; } - private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowedIssuanceModes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> - allowedIssuanceModesBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> allowedIssuanceModesBuilder_; /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedIssuanceModes field is set. */ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModesBuilder_ != null || allowedIssuanceModes_ != null; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedIssuanceModes. */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - getAllowedIssuanceModes() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { - return allowedIssuanceModes_ == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .getDefaultInstance() - : allowedIssuanceModes_; + return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; } else { return allowedIssuanceModesBuilder_.getMessage(); } } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAllowedIssuanceModes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { + public Builder setAllowedIssuanceModes(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7187,20 +5888,15 @@ public Builder setAllowedIssuanceModes( return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedIssuanceModes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder builderForValue) { if (allowedIssuanceModesBuilder_ == null) { allowedIssuanceModes_ = builderForValue.build(); onChanged(); @@ -7211,26 +5907,18 @@ public Builder setAllowedIssuanceModes( return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAllowedIssuanceModes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { + public Builder mergeAllowedIssuanceModes(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { if (allowedIssuanceModes_ != null) { allowedIssuanceModes_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .newBuilder(allowedIssuanceModes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.newBuilder(allowedIssuanceModes_).mergeFrom(value).buildPartial(); } else { allowedIssuanceModes_ = value; } @@ -7242,16 +5930,12 @@ public Builder mergeAllowedIssuanceModes( return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { @@ -7265,72 +5949,51 @@ public Builder clearAllowedIssuanceModes() { return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder - getAllowedIssuanceModesBuilder() { - + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder getAllowedIssuanceModesBuilder() { + onChanged(); return getAllowedIssuanceModesFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder - getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { if (allowedIssuanceModesBuilder_ != null) { return allowedIssuanceModesBuilder_.getMessageOrBuilder(); } else { - return allowedIssuanceModes_ == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .getDefaultInstance() - : allowedIssuanceModes_; + return allowedIssuanceModes_ == null ? + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; } } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> getAllowedIssuanceModesFieldBuilder() { if (allowedIssuanceModesBuilder_ == null) { - allowedIssuanceModesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes - .Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - .IssuanceModesOrBuilder>( - getAllowedIssuanceModes(), getParentForChildren(), isClean()); + allowedIssuanceModesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder>( + getAllowedIssuanceModes(), + getParentForChildren(), + isClean()); allowedIssuanceModes_ = null; } return allowedIssuanceModesBuilder_; @@ -7338,13 +6001,8 @@ public Builder clearAllowedIssuanceModes() { private com.google.cloud.security.privateca.v1.X509Parameters baselineValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> - baselineValuesBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> baselineValuesBuilder_; /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7355,18 +6013,13 @@ public Builder clearAllowedIssuanceModes() {
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the baselineValues field is set. */ public boolean hasBaselineValues() { return baselineValuesBuilder_ != null || baselineValues_ != null; } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7377,24 +6030,17 @@ public boolean hasBaselineValues() {
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The baselineValues. */ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues() { if (baselineValuesBuilder_ == null) { - return baselineValues_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : baselineValues_; + return baselineValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : baselineValues_; } else { return baselineValuesBuilder_.getMessage(); } } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7405,12 +6051,9 @@ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues()
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setBaselineValues( - com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder setBaselineValues(com.google.cloud.security.privateca.v1.X509Parameters value) { if (baselineValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7424,8 +6067,6 @@ public Builder setBaselineValues( return this; } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7436,9 +6077,7 @@ public Builder setBaselineValues(
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setBaselineValues( com.google.cloud.security.privateca.v1.X509Parameters.Builder builderForValue) { @@ -7452,8 +6091,6 @@ public Builder setBaselineValues( return this; } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7464,18 +6101,13 @@ public Builder setBaselineValues(
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeBaselineValues( - com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder mergeBaselineValues(com.google.cloud.security.privateca.v1.X509Parameters value) { if (baselineValuesBuilder_ == null) { if (baselineValues_ != null) { baselineValues_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(baselineValues_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(baselineValues_).mergeFrom(value).buildPartial(); } else { baselineValues_ = value; } @@ -7487,8 +6119,6 @@ public Builder mergeBaselineValues( return this; } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7499,9 +6129,7 @@ public Builder mergeBaselineValues(
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearBaselineValues() { if (baselineValuesBuilder_ == null) { @@ -7515,8 +6143,6 @@ public Builder clearBaselineValues() { return this; } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7527,19 +6153,14 @@ public Builder clearBaselineValues() {
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Parameters.Builder - getBaselineValuesBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.Builder getBaselineValuesBuilder() { + onChanged(); return getBaselineValuesFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7550,23 +6171,17 @@ public Builder clearBaselineValues() {
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder - getBaselineValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselineValuesOrBuilder() { if (baselineValuesBuilder_ != null) { return baselineValuesBuilder_.getMessageOrBuilder(); } else { - return baselineValues_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : baselineValues_; + return baselineValues_ == null ? + com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : baselineValues_; } } /** - * - * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -7577,37 +6192,26 @@ public Builder clearBaselineValues() {
        * properties, the certificate issuance request will fail.
        * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getBaselineValuesFieldBuilder() { if (baselineValuesBuilder_ == null) { - baselineValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getBaselineValues(), getParentForChildren(), isClean()); + baselineValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getBaselineValues(), + getParentForChildren(), + isClean()); baselineValues_ = null; } return baselineValuesBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> - identityConstraintsBuilder_; + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> identityConstraintsBuilder_; /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7615,18 +6219,13 @@ public Builder clearBaselineValues() {
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConstraints field is set. */ public boolean hasIdentityConstraints() { return identityConstraintsBuilder_ != null || identityConstraints_ != null; } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7634,26 +6233,17 @@ public boolean hasIdentityConstraints() {
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConstraints. */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - getIdentityConstraints() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { if (identityConstraintsBuilder_ == null) { - return identityConstraints_ == null - ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - .getDefaultInstance() - : identityConstraints_; + return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; } else { return identityConstraintsBuilder_.getMessage(); } } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7661,12 +6251,9 @@ public boolean hasIdentityConstraints() {
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7680,8 +6267,6 @@ public Builder setIdentityConstraints( return this; } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7689,13 +6274,10 @@ public Builder setIdentityConstraints(
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder builderForValue) { if (identityConstraintsBuilder_ == null) { identityConstraints_ = builderForValue.build(); onChanged(); @@ -7706,8 +6288,6 @@ public Builder setIdentityConstraints( return this; } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7715,19 +6295,13 @@ public Builder setIdentityConstraints(
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (identityConstraints_ != null) { identityConstraints_ = - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder( - identityConstraints_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder(identityConstraints_).mergeFrom(value).buildPartial(); } else { identityConstraints_ = value; } @@ -7739,8 +6313,6 @@ public Builder mergeIdentityConstraints( return this; } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7748,9 +6320,7 @@ public Builder mergeIdentityConstraints(
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdentityConstraints() { if (identityConstraintsBuilder_ == null) { @@ -7764,8 +6334,6 @@ public Builder clearIdentityConstraints() { return this; } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7773,19 +6341,14 @@ public Builder clearIdentityConstraints() {
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder - getIdentityConstraintsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder getIdentityConstraintsBuilder() { + onChanged(); return getIdentityConstraintsFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7793,24 +6356,17 @@ public Builder clearIdentityConstraints() {
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder - getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { if (identityConstraintsBuilder_ != null) { return identityConstraintsBuilder_.getMessageOrBuilder(); } else { - return identityConstraints_ == null - ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - .getDefaultInstance() - : identityConstraints_; + return identityConstraints_ == null ? + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; } } /** - * - * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -7818,37 +6374,26 @@ public Builder clearIdentityConstraints() {
        * certificate's identity.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> getIdentityConstraintsFieldBuilder() { if (identityConstraintsBuilder_ == null) { - identityConstraintsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( - getIdentityConstraints(), getParentForChildren(), isClean()); + identityConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( + getIdentityConstraints(), + getParentForChildren(), + isClean()); identityConstraints_ = null; } return identityConstraintsBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> - passthroughExtensionsBuilder_; + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> passthroughExtensionsBuilder_; /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -7862,18 +6407,13 @@ public Builder clearIdentityConstraints() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the passthroughExtensions field is set. */ public boolean hasPassthroughExtensions() { return passthroughExtensionsBuilder_ != null || passthroughExtensions_ != null; } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -7887,26 +6427,17 @@ public boolean hasPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The passthroughExtensions. */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getPassthroughExtensions() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { - return passthroughExtensions_ == null - ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .getDefaultInstance() - : passthroughExtensions_; + return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; } else { return passthroughExtensionsBuilder_.getMessage(); } } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -7920,12 +6451,9 @@ public boolean hasPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7939,8 +6467,6 @@ public Builder setPassthroughExtensions( return this; } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -7954,13 +6480,10 @@ public Builder setPassthroughExtensions(
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder builderForValue) { if (passthroughExtensionsBuilder_ == null) { passthroughExtensions_ = builderForValue.build(); onChanged(); @@ -7970,9 +6493,7 @@ public Builder setPassthroughExtensions( return this; } - /** - * - * + /** *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -7986,19 +6507,13 @@ public Builder setPassthroughExtensions(
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (passthroughExtensions_ != null) { passthroughExtensions_ = - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder( - passthroughExtensions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder(passthroughExtensions_).mergeFrom(value).buildPartial(); } else { passthroughExtensions_ = value; } @@ -8010,8 +6525,6 @@ public Builder mergePassthroughExtensions( return this; } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -8025,9 +6538,7 @@ public Builder mergePassthroughExtensions(
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { @@ -8041,8 +6552,6 @@ public Builder clearPassthroughExtensions() { return this; } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -8056,19 +6565,14 @@ public Builder clearPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder - getPassthroughExtensionsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder getPassthroughExtensionsBuilder() { + onChanged(); return getPassthroughExtensionsFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -8082,24 +6586,17 @@ public Builder clearPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder - getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { if (passthroughExtensionsBuilder_ != null) { return passthroughExtensionsBuilder_.getMessageOrBuilder(); } else { - return passthroughExtensions_ == null - ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .getDefaultInstance() - : passthroughExtensions_; + return passthroughExtensions_ == null ? + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; } } /** - * - * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -8113,27 +6610,21 @@ public Builder clearPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> getPassthroughExtensionsFieldBuilder() { if (passthroughExtensionsBuilder_ == null) { - passthroughExtensionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( - getPassthroughExtensions(), getParentForChildren(), isClean()); + passthroughExtensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( + getPassthroughExtensions(), + getParentForChildren(), + isClean()); passthroughExtensions_ = null; } return passthroughExtensionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8146,32 +6637,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuancePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuancePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8183,24 +6672,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy 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 [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -8209,30 +6695,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * 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 { @@ -8243,59 +6729,39 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TIER_FIELD_NUMBER = 2; private int tier_; /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The tier. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { + @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = - com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; } public static final int ISSUANCE_POLICY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuancePolicy_; /** - * - * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the issuancePolicy field is set. */ @java.lang.Override @@ -8303,58 +6769,41 @@ public boolean hasIssuancePolicy() { return issuancePolicy_ != null; } /** - * - * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuancePolicy. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getIssuancePolicy() { - return issuancePolicy_ == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() - : issuancePolicy_; + return issuancePolicy_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() : issuancePolicy_; } /** - * - * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder - getIssuancePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder getIssuancePolicyOrBuilder() { return getIssuancePolicy(); } public static final int PUBLISHING_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1.CaPool.PublishingOptions publishingOptions_; /** - * - * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publishingOptions field is set. */ @java.lang.Override @@ -8362,63 +6811,52 @@ public boolean hasPublishingOptions() { return publishingOptions_ != null; } /** - * - * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The publishingOptions. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getPublishingOptions() { - return publishingOptions_ == null - ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() - : publishingOptions_; + return publishingOptions_ == null ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() : publishingOptions_; } /** - * - * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder - getPublishingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder getPublishingOptionsOrBuilder() { return getPublishingOptions(); } public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -8427,30 +6865,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -8458,12 +6894,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -8471,16 +6906,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -8488,11 +6923,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -8500,7 +6936,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8512,7 +6947,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -8525,8 +6961,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (publishingOptions_ != null) { output.writeMessage(4, getPublishingOptions()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 5); unknownFields.writeTo(output); } @@ -8540,23 +6980,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (tier_ != com.google.cloud.security.privateca.v1.CaPool.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, tier_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, tier_); } if (issuancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIssuancePolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getIssuancePolicy()); } if (publishingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishingOptions()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPublishingOptions()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8566,25 +7009,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.security.privateca.v1.CaPool)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool other = - (com.google.cloud.security.privateca.v1.CaPool) obj; + com.google.cloud.security.privateca.v1.CaPool other = (com.google.cloud.security.privateca.v1.CaPool) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (tier_ != other.tier_) return false; if (hasIssuancePolicy() != other.hasIssuancePolicy()) return false; if (hasIssuancePolicy()) { - if (!getIssuancePolicy().equals(other.getIssuancePolicy())) return false; + if (!getIssuancePolicy() + .equals(other.getIssuancePolicy())) return false; } if (hasPublishingOptions() != other.hasPublishingOptions()) return false; if (hasPublishingOptions()) { - if (!getPublishingOptions().equals(other.getPublishingOptions())) return false; + if (!getPublishingOptions() + .equals(other.getPublishingOptions())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8617,104 +7063,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom(java.io.InputStream input) 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.security.privateca.v1.CaPool parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CaPool parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CaPool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] that form a trust anchor. A
@@ -8725,43 +7164,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CaPool}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool)
       com.google.cloud.security.privateca.v1.CaPoolOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CaPool.class,
-              com.google.cloud.security.privateca.v1.CaPool.Builder.class);
+              com.google.cloud.security.privateca.v1.CaPool.class, com.google.cloud.security.privateca.v1.CaPool.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CaPool.newBuilder()
@@ -8769,15 +7208,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -8802,9 +7242,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
     }
 
     @java.lang.Override
@@ -8823,8 +7263,7 @@ public com.google.cloud.security.privateca.v1.CaPool build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CaPool buildPartial() {
-      com.google.cloud.security.privateca.v1.CaPool result =
-          new com.google.cloud.security.privateca.v1.CaPool(this);
+      com.google.cloud.security.privateca.v1.CaPool result = new com.google.cloud.security.privateca.v1.CaPool(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.tier_ = tier_;
@@ -8848,39 +7287,38 @@ public com.google.cloud.security.privateca.v1.CaPool buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CaPool) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CaPool) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CaPool)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -8902,7 +7340,8 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool other) {
       if (other.hasPublishingOptions()) {
         mergePublishingOptions(other.getPublishingOptions());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -8931,26 +7370,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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; @@ -8959,22 +7395,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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 { @@ -8982,64 +7417,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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; @@ -9047,75 +7475,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int tier_ = 0; /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The tier. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = - com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The tier to set. * @return This builder for chaining. */ @@ -9123,26 +7527,21 @@ public Builder setTier(com.google.cloud.security.privateca.v1.CaPool.Tier value) if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; @@ -9150,64 +7549,44 @@ public Builder clearTier() { private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuancePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> - issuancePolicyBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> issuancePolicyBuilder_; /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the issuancePolicy field is set. */ public boolean hasIssuancePolicy() { return issuancePolicyBuilder_ != null || issuancePolicy_ != null; } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuancePolicy. */ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getIssuancePolicy() { if (issuancePolicyBuilder_ == null) { - return issuancePolicy_ == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() - : issuancePolicy_; + return issuancePolicy_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() : issuancePolicy_; } else { return issuancePolicyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIssuancePolicy( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { + public Builder setIssuancePolicy(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { if (issuancePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9221,16 +7600,12 @@ public Builder setIssuancePolicy( return this; } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIssuancePolicy( com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder builderForValue) { @@ -9244,26 +7619,18 @@ public Builder setIssuancePolicy( return this; } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeIssuancePolicy( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { + public Builder mergeIssuancePolicy(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { if (issuancePolicyBuilder_ == null) { if (issuancePolicy_ != null) { issuancePolicy_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.newBuilder( - issuancePolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.newBuilder(issuancePolicy_).mergeFrom(value).buildPartial(); } else { issuancePolicy_ = value; } @@ -9275,16 +7642,12 @@ public Builder mergeIssuancePolicy( return this; } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIssuancePolicy() { if (issuancePolicyBuilder_ == null) { @@ -9298,69 +7661,51 @@ public Builder clearIssuancePolicy() { return this; } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder - getIssuancePolicyBuilder() { - + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder getIssuancePolicyBuilder() { + onChanged(); return getIssuancePolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder - getIssuancePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder getIssuancePolicyOrBuilder() { if (issuancePolicyBuilder_ != null) { return issuancePolicyBuilder_.getMessageOrBuilder(); } else { - return issuancePolicy_ == null - ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() - : issuancePolicy_; + return issuancePolicy_ == null ? + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() : issuancePolicy_; } } /** - * - * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> getIssuancePolicyFieldBuilder() { if (issuancePolicyBuilder_ == null) { - issuancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder>( - getIssuancePolicy(), getParentForChildren(), isClean()); + issuancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder>( + getIssuancePolicy(), + getParentForChildren(), + isClean()); issuancePolicy_ = null; } return issuancePolicyBuilder_; @@ -9368,67 +7713,47 @@ public Builder clearIssuancePolicy() { private com.google.cloud.security.privateca.v1.CaPool.PublishingOptions publishingOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, - com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> - publishingOptionsBuilder_; + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> publishingOptionsBuilder_; /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publishingOptions field is set. */ public boolean hasPublishingOptions() { return publishingOptionsBuilder_ != null || publishingOptions_ != null; } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The publishingOptions. */ public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getPublishingOptions() { if (publishingOptionsBuilder_ == null) { - return publishingOptions_ == null - ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() - : publishingOptions_; + return publishingOptions_ == null ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() : publishingOptions_; } else { return publishingOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPublishingOptions( - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { + public Builder setPublishingOptions(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { if (publishingOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9442,17 +7767,13 @@ public Builder setPublishingOptions( return this; } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublishingOptions( com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder builderForValue) { @@ -9466,27 +7787,19 @@ public Builder setPublishingOptions( return this; } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePublishingOptions( - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { + public Builder mergePublishingOptions(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { if (publishingOptionsBuilder_ == null) { if (publishingOptions_ != null) { publishingOptions_ = - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder( - publishingOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder(publishingOptions_).mergeFrom(value).buildPartial(); } else { publishingOptions_ = value; } @@ -9498,17 +7811,13 @@ public Builder mergePublishingOptions( return this; } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPublishingOptions() { if (publishingOptionsBuilder_ == null) { @@ -9522,92 +7831,75 @@ public Builder clearPublishingOptions() { return this; } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder - getPublishingOptionsBuilder() { - + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder getPublishingOptionsBuilder() { + onChanged(); return getPublishingOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder - getPublishingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder getPublishingOptionsOrBuilder() { if (publishingOptionsBuilder_ != null) { return publishingOptionsBuilder_.getMessageOrBuilder(); } else { - return publishingOptions_ == null - ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() - : publishingOptions_; + return publishingOptions_ == null ? + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() : publishingOptions_; } } /** - * - * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, - com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> getPublishingOptionsFieldBuilder() { if (publishingOptionsBuilder_ == null) { - publishingOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, - com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder>( - getPublishingOptions(), getParentForChildren(), isClean()); + publishingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder>( + getPublishingOptions(), + getParentForChildren(), + isClean()); publishingOptions_ = null; } return publishingOptionsBuilder_; } - 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(); @@ -9619,30 +7911,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -9650,12 +7940,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -9663,17 +7952,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -9681,11 +7969,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -9693,66 +7982,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9762,12 +8054,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool) private static final com.google.cloud.security.privateca.v1.CaPool DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool(); } @@ -9776,16 +8068,16 @@ public static com.google.cloud.security.privateca.v1.CaPool getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaPool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaPool(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaPool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CaPool(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9800,4 +8092,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CaPool getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java index 53049697..ac6d01b5 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java @@ -1,180 +1,117 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CaPoolOrBuilder - extends +public interface CaPoolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * 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 [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The tier. */ com.google.cloud.security.privateca.v1.CaPool.Tier getTier(); /** - * - * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the issuancePolicy field is set. */ boolean hasIssuancePolicy(); /** - * - * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuancePolicy. */ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getIssuancePolicy(); /** - * - * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder - getIssuancePolicyOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder getIssuancePolicyOrBuilder(); /** - * - * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publishingOptions field is set. */ boolean hasPublishingOptions(); /** - * - * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The publishingOptions. */ com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getPublishingOptions(); /** - * - * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder - getPublishingOptionsOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder getPublishingOptionsOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -183,31 +120,30 @@ public interface CaPoolOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -216,18 +152,18 @@ public interface CaPoolOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java index b9f2061e..fb9d2ba4 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a
  * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.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() {
     name_ = "";
     issuerCertificateAuthority_ = "";
@@ -49,15 +31,16 @@ 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;
   }
-
   private Certificate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,179 +60,150 @@ private Certificate(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              certificateConfigCase_ = 2;
-              certificateConfig_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            certificateConfigCase_ = 2;
+            certificateConfig_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
+            if (certificateConfigCase_ == 3) {
+              subBuilder = ((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
-              if (certificateConfigCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_)
-                        .toBuilder();
-              }
-              certificateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_);
-                certificateConfig_ = subBuilder.buildPartial();
-              }
-              certificateConfigCase_ = 3;
-              break;
+            certificateConfig_ =
+                input.readMessage(com.google.cloud.security.privateca.v1.CertificateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_);
+              certificateConfig_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            certificateConfigCase_ = 3;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              issuerCertificateAuthority_ = s;
-              break;
+            issuerCertificateAuthority_ = s;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (lifetime_ != null) {
+              subBuilder = lifetime_.toBuilder();
             }
-          case 42:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (lifetime_ != null) {
-                subBuilder = lifetime_.toBuilder();
-              }
-              lifetime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lifetime_);
-                lifetime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lifetime_);
+              lifetime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              certificateTemplate_ = s;
-              break;
-            }
-          case 56:
-            {
-              int rawValue = input.readEnum();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              subjectMode_ = rawValue;
-              break;
-            }
-          case 66:
-            {
-              com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder
-                  subBuilder = null;
-              if (revocationDetails_ != null) {
-                subBuilder = revocationDetails_.toBuilder();
-              }
-              revocationDetails_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(revocationDetails_);
-                revocationDetails_ = subBuilder.buildPartial();
-              }
+            certificateTemplate_ = s;
+            break;
+          }
+          case 56: {
+            int rawValue = input.readEnum();
 
-              break;
+            subjectMode_ = rawValue;
+            break;
+          }
+          case 66: {
+            com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder subBuilder = null;
+            if (revocationDetails_ != null) {
+              subBuilder = revocationDetails_.toBuilder();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              pemCertificate_ = s;
-              break;
+            revocationDetails_ = input.readMessage(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(revocationDetails_);
+              revocationDetails_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              com.google.cloud.security.privateca.v1.CertificateDescription.Builder subBuilder =
-                  null;
-              if (certificateDescription_ != null) {
-                subBuilder = certificateDescription_.toBuilder();
-              }
-              certificateDescription_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateDescription.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateDescription_);
-                certificateDescription_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            pemCertificate_ = s;
+            break;
+          }
+          case 82: {
+            com.google.cloud.security.privateca.v1.CertificateDescription.Builder subBuilder = null;
+            if (certificateDescription_ != null) {
+              subBuilder = certificateDescription_.toBuilder();
             }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pemCertificateChain_.add(s);
-              break;
+            certificateDescription_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateDescription_);
+              certificateDescription_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            pemCertificateChain_.add(s);
+            break;
+          }
+          case 98: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
+            }
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 106: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 114:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 114: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -257,7 +211,8 @@ private Certificate(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCertificateChain_ = pemCertificateChain_.getUnmodifiableView();
@@ -266,90 +221,73 @@ private Certificate(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_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 14:
         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.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.Certificate.class,
-            com.google.cloud.security.privateca.v1.Certificate.Builder.class);
+            com.google.cloud.security.privateca.v1.Certificate.class, com.google.cloud.security.privateca.v1.Certificate.Builder.class);
   }
 
-  public interface RevocationDetailsOrBuilder
-      extends
+  public interface RevocationDetailsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.Certificate.RevocationDetails)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return The enum numeric value on the wire for revocationState. */ int getRevocationStateValue(); /** - * - * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return The revocationState. */ com.google.cloud.security.privateca.v1.RevocationReason getRevocationState(); /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return Whether the revocationTime field is set. */ boolean hasRevocationTime(); /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return The revocationTime. */ com.google.protobuf.Timestamp getRevocationTime(); /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
@@ -359,39 +297,37 @@ public interface RevocationDetailsOrBuilder com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder(); } /** - * - * *
    * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.Certificate.RevocationDetails} */ - public static final class RevocationDetails extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RevocationDetails extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.Certificate.RevocationDetails) RevocationDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevocationDetails.newBuilder() to construct. private RevocationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RevocationDetails() { revocationState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RevocationDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RevocationDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -410,35 +346,32 @@ private RevocationDetails( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - revocationState_ = rawValue; - break; + revocationState_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (revocationTime_ != null) { + subBuilder = revocationTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (revocationTime_ != null) { - subBuilder = revocationTime_.toBuilder(); - } - revocationTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationTime_); - revocationTime_ = subBuilder.buildPartial(); - } - - break; + revocationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(revocationTime_); + revocationTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -446,77 +379,61 @@ private RevocationDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); } public static final int REVOCATION_STATE_FIELD_NUMBER = 1; private int revocationState_; /** - * - * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override - public int getRevocationStateValue() { + @java.lang.Override public int getRevocationStateValue() { return revocationState_; } /** - * - * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return The revocationState. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.RevocationReason getRevocationState() { + @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = - com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); - return result == null - ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); + return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; } public static final int REVOCATION_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp revocationTime_; /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return Whether the revocationTime field is set. */ @java.lang.Override @@ -524,25 +441,18 @@ public boolean hasRevocationTime() { return revocationTime_ != null; } /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return The revocationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevocationTime() { - return revocationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revocationTime_; + return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; } /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
@@ -555,7 +465,6 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,10 +476,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (revocationState_ - != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (revocationState_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(1, revocationState_); } if (revocationTime_ != null) { @@ -585,13 +493,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (revocationState_ - != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, revocationState_); + if (revocationState_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, revocationState_); } if (revocationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRevocationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRevocationTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -601,18 +509,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.Certificate.RevocationDetails)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other = - (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) obj; + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other = (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) obj; if (revocationState_ != other.revocationState_) return false; if (hasRevocationTime() != other.hasRevocationTime()) return false; if (hasRevocationTime()) { - if (!getRevocationTime().equals(other.getRevocationTime())) return false; + if (!getRevocationTime() + .equals(other.getRevocationTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -637,95 +545,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails 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.security.privateca.v1.Certificate.RevocationDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - 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.security.privateca.v1.Certificate.RevocationDetails 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.security.privateca.v1.Certificate.RevocationDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -735,49 +635,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.Certificate.RevocationDetails} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.Certificate.RevocationDetails) com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -793,22 +688,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails build() { - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = - buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -817,8 +709,7 @@ public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails buil @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails buildPartial() { - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = - new com.google.cloud.security.privateca.v1.Certificate.RevocationDetails(this); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = new com.google.cloud.security.privateca.v1.Certificate.RevocationDetails(this); result.revocationState_ = revocationState_; if (revocationTimeBuilder_ == null) { result.revocationTime_ = revocationTime_; @@ -833,53 +724,46 @@ public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.Certificate.RevocationDetails) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) other); + return mergeFrom((com.google.cloud.security.privateca.v1.Certificate.RevocationDetails)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other) { - if (other - == com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other) { + if (other == com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance()) return this; if (other.revocationState_ != 0) { setRevocationStateValue(other.getRevocationStateValue()); } @@ -905,9 +789,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -919,93 +801,73 @@ public Builder mergeFrom( private int revocationState_ = 0; /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override - public int getRevocationStateValue() { + @java.lang.Override public int getRevocationStateValue() { return revocationState_; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @param value The enum numeric value on the wire for revocationState to set. * @return This builder for chaining. */ public Builder setRevocationStateValue(int value) { - + revocationState_ = value; onChanged(); return this; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return The revocationState. */ @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = - com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); - return result == null - ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); + return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @param value The revocationState to set. * @return This builder for chaining. */ - public Builder setRevocationState( - com.google.cloud.security.privateca.v1.RevocationReason value) { + public Builder setRevocationState(com.google.cloud.security.privateca.v1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; - * * @return This builder for chaining. */ public Builder clearRevocationState() { - + revocationState_ = 0; onChanged(); return this; @@ -1013,47 +875,34 @@ public Builder clearRevocationState() { private com.google.protobuf.Timestamp revocationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - revocationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revocationTimeBuilder_; /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return Whether the revocationTime field is set. */ public boolean hasRevocationTime() { return revocationTimeBuilder_ != null || revocationTime_ != null; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return The revocationTime. */ public com.google.protobuf.Timestamp getRevocationTime() { if (revocationTimeBuilder_ == null) { - return revocationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revocationTime_; + return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; } else { return revocationTimeBuilder_.getMessage(); } } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1074,15 +923,14 @@ public Builder setRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; */ - public Builder setRevocationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevocationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (revocationTimeBuilder_ == null) { revocationTime_ = builderForValue.build(); onChanged(); @@ -1093,8 +941,6 @@ public Builder setRevocationTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1105,9 +951,7 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { if (revocationTimeBuilder_ == null) { if (revocationTime_ != null) { revocationTime_ = - com.google.protobuf.Timestamp.newBuilder(revocationTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(revocationTime_).mergeFrom(value).buildPartial(); } else { revocationTime_ = value; } @@ -1119,8 +963,6 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1139,8 +981,6 @@ public Builder clearRevocationTime() { return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1148,13 +988,11 @@ public Builder clearRevocationTime() { * .google.protobuf.Timestamp revocation_time = 2; */ public com.google.protobuf.Timestamp.Builder getRevocationTimeBuilder() { - + onChanged(); return getRevocationTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1165,14 +1003,11 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { if (revocationTimeBuilder_ != null) { return revocationTimeBuilder_.getMessageOrBuilder(); } else { - return revocationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revocationTime_; + return revocationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; } } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1180,22 +1015,18 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { * .google.protobuf.Timestamp revocation_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getRevocationTimeFieldBuilder() { if (revocationTimeBuilder_ == null) { - revocationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRevocationTime(), getParentForChildren(), isClean()); + revocationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRevocationTime(), + getParentForChildren(), + isClean()); revocationTime_ = null; } return revocationTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1208,32 +1039,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.Certificate.RevocationDetails) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.Certificate.RevocationDetails) - private static final com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.Certificate.RevocationDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.Certificate.RevocationDetails(); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevocationDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevocationDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1245,24 +1074,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int certificateConfigCase_ = 0; private java.lang.Object certificateConfig_; - public enum CertificateConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PEM_CSR(2), CONFIG(3), CERTIFICATECONFIG_NOT_SET(0); private final int value; - private CertificateConfigCase(int value) { this.value = value; } @@ -1278,40 +1104,32 @@ public static CertificateConfigCase valueOf(int value) { public static CertificateConfigCase forNumber(int value) { switch (value) { - case 2: - return PEM_CSR; - case 3: - return CONFIG; - case 0: - return CERTIFICATECONFIG_NOT_SET; - default: - return null; + case 2: return PEM_CSR; + case 3: return CONFIG; + case 0: return CERTIFICATECONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CertificateConfigCase getCertificateConfigCase() { - return CertificateConfigCase.forNumber(certificateConfigCase_); + public CertificateConfigCase + getCertificateConfigCase() { + return CertificateConfigCase.forNumber( + certificateConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -1320,32 +1138,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -1355,28 +1171,22 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PEM_CSR_FIELD_NUMBER = 2; /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return Whether the pemCsr field is set. */ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pemCsr. */ public java.lang.String getPemCsr() { @@ -1387,7 +1197,8 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -1396,24 +1207,23 @@ public java.lang.String getPemCsr() { } } /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -1425,17 +1235,12 @@ public com.google.protobuf.ByteString getPemCsrBytes() { public static final int CONFIG_FIELD_NUMBER = 3; /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ @java.lang.Override @@ -1443,42 +1248,33 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); } /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); } @@ -1486,17 +1282,12 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf public static final int ISSUER_CERTIFICATE_AUTHORITY_FIELD_NUMBER = 4; private volatile java.lang.Object issuerCertificateAuthority_; /** - * - * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The issuerCertificateAuthority. */ @java.lang.Override @@ -1505,32 +1296,30 @@ public java.lang.String getIssuerCertificateAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuerCertificateAuthority_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for issuerCertificateAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() { + public com.google.protobuf.ByteString + getIssuerCertificateAuthorityBytes() { java.lang.Object ref = issuerCertificateAuthority_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuerCertificateAuthority_ = b; return b; } else { @@ -1541,8 +1330,6 @@ public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() { public static final int LIFETIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration lifetime_; /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1550,10 +1337,7 @@ public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ @java.lang.Override @@ -1561,8 +1345,6 @@ public boolean hasLifetime() { return lifetime_ != null; } /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1570,10 +1352,7 @@ public boolean hasLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ @java.lang.Override @@ -1581,8 +1360,6 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1590,9 +1367,7 @@ public com.google.protobuf.Duration getLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -1602,8 +1377,6 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { public static final int CERTIFICATE_TEMPLATE_FIELD_NUMBER = 6; private volatile java.lang.Object certificateTemplate_; /** - * - * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -1613,10 +1386,7 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The certificateTemplate. */ @java.lang.Override @@ -1625,15 +1395,14 @@ public java.lang.String getCertificateTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplate_ = s; return s; } } /** - * - * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -1643,18 +1412,17 @@ public java.lang.String getCertificateTemplate() {
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for certificateTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateTemplateBytes() { + public com.google.protobuf.ByteString + getCertificateTemplateBytes() { java.lang.Object ref = certificateTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateTemplate_ = b; return b; } else { @@ -1665,61 +1433,41 @@ public com.google.protobuf.ByteString getCertificateTemplateBytes() { public static final int SUBJECT_MODE_FIELD_NUMBER = 7; private int subjectMode_; /** - * - * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for subjectMode. */ - @java.lang.Override - public int getSubjectModeValue() { + @java.lang.Override public int getSubjectModeValue() { return subjectMode_; } /** - * - * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The subjectMode. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode() { + @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.SubjectRequestMode result = - com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); - return result == null - ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.SubjectRequestMode result = com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); + return result == null ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED : result; } public static final int REVOCATION_DETAILS_FIELD_NUMBER = 8; private com.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocationDetails_; /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revocationDetails field is set. */ @java.lang.Override @@ -1727,55 +1475,39 @@ public boolean hasRevocationDetails() { return revocationDetails_ != null; } /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revocationDetails. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - getRevocationDetails() { - return revocationDetails_ == null - ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() - : revocationDetails_; + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getRevocationDetails() { + return revocationDetails_ == null ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; } /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder - getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { return getRevocationDetails(); } public static final int PEM_CERTIFICATE_FIELD_NUMBER = 9; private volatile java.lang.Object pemCertificate_; /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ @java.lang.Override @@ -1784,29 +1516,29 @@ public java.lang.String getPemCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; } } /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCertificateBytes() { + public com.google.protobuf.ByteString + getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -1817,16 +1549,11 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { public static final int CERTIFICATE_DESCRIPTION_FIELD_NUMBER = 10; private com.google.cloud.security.privateca.v1.CertificateDescription certificateDescription_; /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certificateDescription field is set. */ @java.lang.Override @@ -1834,86 +1561,63 @@ public boolean hasCertificateDescription() { return certificateDescription_ != null; } /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certificateDescription. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateDescription getCertificateDescription() { - return certificateDescription_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() - : certificateDescription_; + return certificateDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() : certificateDescription_; } /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder - getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { return getCertificateDescription(); } public static final int PEM_CERTIFICATE_CHAIN_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList pemCertificateChain_; /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList + getPemCertificateChainList() { return pemCertificateChain_; } /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1921,35 +1625,28 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1957,15 +1654,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1973,14 +1666,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1990,15 +1680,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2006,15 +1692,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -2022,14 +1704,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2037,23 +1716,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 14; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2062,30 +1742,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -2093,12 +1771,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -2106,16 +1783,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -2123,11 +1800,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -2135,7 +1813,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2147,7 +1824,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -2155,8 +1833,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateConfig_); } if (certificateConfigCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); + output.writeMessage(3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuerCertificateAuthority_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, issuerCertificateAuthority_); @@ -2167,10 +1844,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateTemplate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, certificateTemplate_); } - if (subjectMode_ - != com.google.cloud.security.privateca.v1.SubjectRequestMode - .SUBJECT_REQUEST_MODE_UNSPECIFIED - .getNumber()) { + if (subjectMode_ != com.google.cloud.security.privateca.v1.SubjectRequestMode.SUBJECT_REQUEST_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(7, subjectMode_); } if (revocationDetails_ != null) { @@ -2183,8 +1857,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(10, getCertificateDescription()); } for (int i = 0; i < pemCertificateChain_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 11, pemCertificateChain_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pemCertificateChain_.getRaw(i)); } if (createTime_ != null) { output.writeMessage(12, getCreateTime()); @@ -2192,8 +1865,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(13, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 14); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 14); unknownFields.writeTo(output); } @@ -2210,35 +1887,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateConfig_); } if (certificateConfigCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuerCertificateAuthority_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(4, issuerCertificateAuthority_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, issuerCertificateAuthority_); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLifetime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, certificateTemplate_); } - if (subjectMode_ - != com.google.cloud.security.privateca.v1.SubjectRequestMode - .SUBJECT_REQUEST_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, subjectMode_); + if (subjectMode_ != com.google.cloud.security.privateca.v1.SubjectRequestMode.SUBJECT_REQUEST_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, subjectMode_); } if (revocationDetails_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRevocationDetails()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRevocationDetails()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pemCertificate_); } if (certificateDescription_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCertificateDescription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCertificateDescription()); } { int dataSize = 0; @@ -2249,20 +1924,22 @@ public int getSerializedSize() { size += 1 * getPemCertificateChainList().size(); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUpdateTime()); - } - 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(14, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getUpdateTime()); + } + 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(14, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2272,49 +1949,60 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.Certificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.Certificate other = - (com.google.cloud.security.privateca.v1.Certificate) obj; + com.google.cloud.security.privateca.v1.Certificate other = (com.google.cloud.security.privateca.v1.Certificate) obj; - if (!getName().equals(other.getName())) return false; - if (!getIssuerCertificateAuthority().equals(other.getIssuerCertificateAuthority())) - return false; + if (!getName() + .equals(other.getName())) return false; + if (!getIssuerCertificateAuthority() + .equals(other.getIssuerCertificateAuthority())) return false; if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime().equals(other.getLifetime())) return false; + if (!getLifetime() + .equals(other.getLifetime())) return false; } - if (!getCertificateTemplate().equals(other.getCertificateTemplate())) return false; + if (!getCertificateTemplate() + .equals(other.getCertificateTemplate())) return false; if (subjectMode_ != other.subjectMode_) return false; if (hasRevocationDetails() != other.hasRevocationDetails()) return false; if (hasRevocationDetails()) { - if (!getRevocationDetails().equals(other.getRevocationDetails())) return false; + if (!getRevocationDetails() + .equals(other.getRevocationDetails())) return false; } - if (!getPemCertificate().equals(other.getPemCertificate())) return false; + if (!getPemCertificate() + .equals(other.getPemCertificate())) return false; if (hasCertificateDescription() != other.hasCertificateDescription()) return false; if (hasCertificateDescription()) { - if (!getCertificateDescription().equals(other.getCertificateDescription())) return false; + if (!getCertificateDescription() + .equals(other.getCertificateDescription())) return false; } - if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; + if (!getPemCertificateChainList() + .equals(other.getPemCertificateChainList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getCertificateConfigCase().equals(other.getCertificateConfigCase())) return false; switch (certificateConfigCase_) { case 2: - if (!getPemCsr().equals(other.getPemCsr())) return false; + if (!getPemCsr() + .equals(other.getPemCsr())) return false; break; case 3: - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; break; case 0: default: @@ -2386,103 +2074,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.Certificate 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.security.privateca.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.security.privateca.v1.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.Certificate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.Certificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.Certificate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.Certificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.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.security.privateca.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.security.privateca.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.security.privateca.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.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
@@ -2490,43 +2171,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.v1.Certificate)
       com.google.cloud.security.privateca.v1.CertificateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 14:
           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 14:
           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.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.Certificate.class,
-              com.google.cloud.security.privateca.v1.Certificate.Builder.class);
+              com.google.cloud.security.privateca.v1.Certificate.class, com.google.cloud.security.privateca.v1.Certificate.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.Certificate.newBuilder()
@@ -2534,15 +2215,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2595,9 +2277,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
     }
 
     @java.lang.Override
@@ -2616,8 +2298,7 @@ public com.google.cloud.security.privateca.v1.Certificate build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.Certificate buildPartial() {
-      com.google.cloud.security.privateca.v1.Certificate result =
-          new com.google.cloud.security.privateca.v1.Certificate(this);
+      com.google.cloud.security.privateca.v1.Certificate result = new com.google.cloud.security.privateca.v1.Certificate(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (certificateConfigCase_ == 2) {
@@ -2675,39 +2356,38 @@ public com.google.cloud.security.privateca.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.security.privateca.v1.Certificate) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.Certificate) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.Certificate)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2715,8 +2395,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.Certificate other) {
-      if (other == com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2761,24 +2440,22 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.Certificate othe
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       switch (other.getCertificateConfigCase()) {
-        case PEM_CSR:
-          {
-            certificateConfigCase_ = 2;
-            certificateConfig_ = other.certificateConfig_;
-            onChanged();
-            break;
-          }
-        case CONFIG:
-          {
-            mergeConfig(other.getConfig());
-            break;
-          }
-        case CERTIFICATECONFIG_NOT_SET:
-          {
-            break;
-          }
+        case PEM_CSR: {
+          certificateConfigCase_ = 2;
+          certificateConfig_ = other.certificateConfig_;
+          onChanged();
+          break;
+        }
+        case CONFIG: {
+          mergeConfig(other.getConfig());
+          break;
+        }
+        case CERTIFICATECONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2799,8 +2476,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.Certificate) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.Certificate) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2809,12 +2485,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int certificateConfigCase_ = 0;
     private java.lang.Object certificateConfig_;
-
-    public CertificateConfigCase getCertificateConfigCase() {
-      return CertificateConfigCase.forNumber(certificateConfigCase_);
+    public CertificateConfigCase
+        getCertificateConfigCase() {
+      return CertificateConfigCase.forNumber(
+          certificateConfigCase_);
     }
 
     public Builder clearCertificateConfig() {
@@ -2828,23 +2504,19 @@ public Builder clearCertificateConfig() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -2853,24 +2525,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -2878,84 +2547,68 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** - * - * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return Whether the pemCsr field is set. */ @java.lang.Override @@ -2963,14 +2616,11 @@ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pemCsr. */ @java.lang.Override @@ -2980,7 +2630,8 @@ public java.lang.String getPemCsr() { ref = certificateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -2991,25 +2642,24 @@ public java.lang.String getPemCsr() { } } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -3019,35 +2669,30 @@ public com.google.protobuf.ByteString getPemCsrBytes() { } } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr(java.lang.String value) { + public Builder setPemCsr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - certificateConfigCase_ = 2; + throw new NullPointerException(); + } + certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearPemCsr() { @@ -3059,22 +2704,20 @@ public Builder clearPemCsr() { return this; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); @@ -3082,22 +2725,14 @@ public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> - configBuilder_; + com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> configBuilder_; /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ @java.lang.Override @@ -3105,17 +2740,12 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ @java.lang.Override @@ -3133,16 +2763,12 @@ public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { } } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { @@ -3158,16 +2784,12 @@ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfi return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig( com.google.cloud.security.privateca.v1.CertificateConfig.Builder builderForValue) { @@ -3181,27 +2803,19 @@ public Builder setConfig( return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { - if (certificateConfigCase_ == 3 - && certificateConfig_ - != com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance()) { - certificateConfig_ = - com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder( - (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_) - .mergeFrom(value) - .buildPartial(); + if (certificateConfigCase_ == 3 && + certificateConfig_ != com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance()) { + certificateConfig_ = com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_) + .mergeFrom(value).buildPartial(); } else { certificateConfig_ = value; } @@ -3217,16 +2831,12 @@ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateCon return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -3245,31 +2855,23 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.cloud.security.privateca.v1.CertificateConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { @@ -3283,62 +2885,47 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf } } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { if (!(certificateConfigCase_ == 3)) { - certificateConfig_ = - com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); + certificateConfig_ = com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); } - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_, getParentForChildren(), isClean()); certificateConfig_ = null; } certificateConfigCase_ = 3; - onChanged(); - ; + onChanged();; return configBuilder_; } private java.lang.Object issuerCertificateAuthority_ = ""; /** - * - * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The issuerCertificateAuthority. */ public java.lang.String getIssuerCertificateAuthority() { java.lang.Object ref = issuerCertificateAuthority_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuerCertificateAuthority_ = s; return s; @@ -3347,24 +2934,21 @@ public java.lang.String getIssuerCertificateAuthority() { } } /** - * - * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for issuerCertificateAuthority. */ - public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() { + public com.google.protobuf.ByteString + getIssuerCertificateAuthorityBytes() { java.lang.Object ref = issuerCertificateAuthority_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuerCertificateAuthority_ = b; return b; } else { @@ -3372,70 +2956,57 @@ public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() { } } /** - * - * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The issuerCertificateAuthority to set. * @return This builder for chaining. */ - public Builder setIssuerCertificateAuthority(java.lang.String value) { + public Builder setIssuerCertificateAuthority( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuerCertificateAuthority_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearIssuerCertificateAuthority() { - + issuerCertificateAuthority_ = getDefaultInstance().getIssuerCertificateAuthority(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for issuerCertificateAuthority to set. * @return This builder for chaining. */ - public Builder setIssuerCertificateAuthorityBytes(com.google.protobuf.ByteString value) { + public Builder setIssuerCertificateAuthorityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuerCertificateAuthority_ = value; onChanged(); return this; @@ -3443,13 +3014,8 @@ public Builder setIssuerCertificateAuthorityBytes(com.google.protobuf.ByteString private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - lifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3457,18 +3023,13 @@ public Builder setIssuerCertificateAuthorityBytes(com.google.protobuf.ByteString
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3476,10 +3037,7 @@ public boolean hasLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -3490,8 +3048,6 @@ public com.google.protobuf.Duration getLifetime() { } } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3499,9 +3055,7 @@ public com.google.protobuf.Duration getLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -3517,8 +3071,6 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3526,11 +3078,10 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -3541,8 +3092,6 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3550,15 +3099,13 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue)
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -3570,8 +3117,6 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3579,9 +3124,7 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -3595,8 +3138,6 @@ public Builder clearLifetime() { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3604,18 +3145,14 @@ public Builder clearLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3623,20 +3160,17 @@ public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3644,22 +3178,17 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLifetime(), getParentForChildren(), isClean()); + lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getLifetime(), + getParentForChildren(), + isClean()); lifetime_ = null; } return lifetimeBuilder_; @@ -3667,8 +3196,6 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { private java.lang.Object certificateTemplate_ = ""; /** - * - * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3678,16 +3205,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The certificateTemplate. */ public java.lang.String getCertificateTemplate() { java.lang.Object ref = certificateTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplate_ = s; return s; @@ -3696,8 +3221,6 @@ public java.lang.String getCertificateTemplate() { } } /** - * - * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3707,17 +3230,16 @@ public java.lang.String getCertificateTemplate() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for certificateTemplate. */ - public com.google.protobuf.ByteString getCertificateTemplateBytes() { + public com.google.protobuf.ByteString + getCertificateTemplateBytes() { java.lang.Object ref = certificateTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateTemplate_ = b; return b; } else { @@ -3725,8 +3247,6 @@ public com.google.protobuf.ByteString getCertificateTemplateBytes() { } } /** - * - * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3736,25 +3256,21 @@ public com.google.protobuf.ByteString getCertificateTemplateBytes() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The certificateTemplate to set. * @return This builder for chaining. */ - public Builder setCertificateTemplate(java.lang.String value) { + public Builder setCertificateTemplate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateTemplate_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3764,21 +3280,16 @@ public Builder setCertificateTemplate(java.lang.String value) {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCertificateTemplate() { - + certificateTemplate_ = getDefaultInstance().getCertificateTemplate(); onChanged(); return this; } /** - * - * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3788,19 +3299,17 @@ public Builder clearCertificateTemplate() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for certificateTemplate to set. * @return This builder for chaining. */ - public Builder setCertificateTemplateBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateTemplateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateTemplate_ = value; onChanged(); return this; @@ -3808,79 +3317,55 @@ public Builder setCertificateTemplateBytes(com.google.protobuf.ByteString value) private int subjectMode_ = 0; /** - * - * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for subjectMode. */ - @java.lang.Override - public int getSubjectModeValue() { + @java.lang.Override public int getSubjectModeValue() { return subjectMode_; } /** - * - * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for subjectMode to set. * @return This builder for chaining. */ public Builder setSubjectModeValue(int value) { - + subjectMode_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The subjectMode. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.SubjectRequestMode result = - com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); - return result == null - ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.SubjectRequestMode result = com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); + return result == null ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The subjectMode to set. * @return This builder for chaining. */ @@ -3888,27 +3373,22 @@ public Builder setSubjectMode(com.google.cloud.security.privateca.v1.SubjectRequ if (value == null) { throw new NullPointerException(); } - + subjectMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearSubjectMode() { - + subjectMode_ = 0; onChanged(); return this; @@ -3916,66 +3396,44 @@ public Builder clearSubjectMode() { private com.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocationDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> - revocationDetailsBuilder_; + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> revocationDetailsBuilder_; /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revocationDetails field is set. */ public boolean hasRevocationDetails() { return revocationDetailsBuilder_ != null || revocationDetails_ != null; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revocationDetails. */ - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - getRevocationDetails() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getRevocationDetails() { if (revocationDetailsBuilder_ == null) { - return revocationDetails_ == null - ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - .getDefaultInstance() - : revocationDetails_; + return revocationDetails_ == null ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; } else { return revocationDetailsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setRevocationDetails( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { + public Builder setRevocationDetails(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3989,20 +3447,15 @@ public Builder setRevocationDetails( return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevocationDetails( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder builderForValue) { if (revocationDetailsBuilder_ == null) { revocationDetails_ = builderForValue.build(); onChanged(); @@ -4013,26 +3466,18 @@ public Builder setRevocationDetails( return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeRevocationDetails( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { + public Builder mergeRevocationDetails(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (revocationDetails_ != null) { revocationDetails_ = - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder( - revocationDetails_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder(revocationDetails_).mergeFrom(value).buildPartial(); } else { revocationDetails_ = value; } @@ -4044,16 +3489,12 @@ public Builder mergeRevocationDetails( return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRevocationDetails() { if (revocationDetailsBuilder_ == null) { @@ -4067,70 +3508,51 @@ public Builder clearRevocationDetails() { return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder - getRevocationDetailsBuilder() { - + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder getRevocationDetailsBuilder() { + onChanged(); return getRevocationDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder - getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { if (revocationDetailsBuilder_ != null) { return revocationDetailsBuilder_.getMessageOrBuilder(); } else { - return revocationDetails_ == null - ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails - .getDefaultInstance() - : revocationDetails_; + return revocationDetails_ == null ? + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; } } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> getRevocationDetailsFieldBuilder() { if (revocationDetailsBuilder_ == null) { - revocationDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, - com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder>( - getRevocationDetails(), getParentForChildren(), isClean()); + revocationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder>( + getRevocationDetails(), + getParentForChildren(), + isClean()); revocationDetails_ = null; } return revocationDetailsBuilder_; @@ -4138,20 +3560,18 @@ public Builder clearRevocationDetails() { private java.lang.Object pemCertificate_ = ""; /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ public java.lang.String getPemCertificate() { java.lang.Object ref = pemCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; @@ -4160,21 +3580,20 @@ public java.lang.String getPemCertificate() { } } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCertificate. */ - public com.google.protobuf.ByteString getPemCertificateBytes() { + public com.google.protobuf.ByteString + getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -4182,61 +3601,54 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { } } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificate(java.lang.String value) { + public Builder setPemCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCertificate_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCertificate() { - + pemCertificate_ = getDefaultInstance().getPemCertificate(); onChanged(); return this; } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setPemCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCertificate_ = value; onChanged(); return this; @@ -4244,62 +3656,41 @@ public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1.CertificateDescription certificateDescription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> - certificateDescriptionBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> certificateDescriptionBuilder_; /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certificateDescription field is set. */ public boolean hasCertificateDescription() { return certificateDescriptionBuilder_ != null || certificateDescription_ != null; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certificateDescription. */ - public com.google.cloud.security.privateca.v1.CertificateDescription - getCertificateDescription() { + public com.google.cloud.security.privateca.v1.CertificateDescription getCertificateDescription() { if (certificateDescriptionBuilder_ == null) { - return certificateDescription_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() - : certificateDescription_; + return certificateDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() : certificateDescription_; } else { return certificateDescriptionBuilder_.getMessage(); } } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCertificateDescription( - com.google.cloud.security.privateca.v1.CertificateDescription value) { + public Builder setCertificateDescription(com.google.cloud.security.privateca.v1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4313,15 +3704,11 @@ public Builder setCertificateDescription( return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCertificateDescription( com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { @@ -4335,25 +3722,17 @@ public Builder setCertificateDescription( return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCertificateDescription( - com.google.cloud.security.privateca.v1.CertificateDescription value) { + public Builder mergeCertificateDescription(com.google.cloud.security.privateca.v1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (certificateDescription_ != null) { certificateDescription_ = - com.google.cloud.security.privateca.v1.CertificateDescription.newBuilder( - certificateDescription_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.newBuilder(certificateDescription_).mergeFrom(value).buildPartial(); } else { certificateDescription_ = value; } @@ -4365,15 +3744,11 @@ public Builder mergeCertificateDescription( return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCertificateDescription() { if (certificateDescriptionBuilder_ == null) { @@ -4387,126 +3762,92 @@ public Builder clearCertificateDescription() { return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder - getCertificateDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder getCertificateDescriptionBuilder() { + onChanged(); return getCertificateDescriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder - getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { if (certificateDescriptionBuilder_ != null) { return certificateDescriptionBuilder_.getMessageOrBuilder(); } else { - return certificateDescription_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() - : certificateDescription_; + return certificateDescription_ == null ? + com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() : certificateDescription_; } } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> getCertificateDescriptionFieldBuilder() { if (certificateDescriptionBuilder_ == null) { - certificateDescriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( - getCertificateDescription(), getParentForChildren(), isClean()); + certificateDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( + getCertificateDescription(), + getParentForChildren(), + isClean()); certificateDescription_ = null; } return certificateDescriptionBuilder_; } - private com.google.protobuf.LazyStringList pemCertificateChain_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePemCertificateChainIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList(pemCertificateChain_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList + getPemCertificateChainList() { return pemCertificateChain_.getUnmodifiableView(); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -4514,105 +3855,85 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. */ - public Builder setPemCertificateChain(int index, java.lang.String value) { + public Builder setPemCertificateChain( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChain(java.lang.String value) { + public Builder addPemCertificateChain( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addAllPemCertificateChain(java.lang.Iterable values) { + public Builder addAllPemCertificateChain( + java.lang.Iterable values) { ensurePemCertificateChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificateChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pemCertificateChain_); onChanged(); return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPemCertificateChain() { @@ -4622,25 +3943,21 @@ public Builder clearPemCertificateChain() { return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value) { + public Builder addPemCertificateChainBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); @@ -4649,58 +3966,39 @@ public Builder addPemCertificateChainBytes(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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 12 [(.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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 12 [(.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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4716,17 +4014,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.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(); @@ -4737,21 +4032,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.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; } @@ -4763,15 +4054,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4785,64 +4072,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -4850,58 +4121,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4917,17 +4169,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4938,21 +4187,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4964,15 +4209,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4986,84 +4227,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private 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(); @@ -5075,30 +4301,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -5106,12 +4330,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -5119,17 +4342,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -5137,11 +4359,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -5149,66 +4372,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5218,12 +4444,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.Certificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.Certificate) private static final com.google.cloud.security.privateca.v1.Certificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.Certificate(); } @@ -5232,16 +4458,16 @@ public static com.google.cloud.security.privateca.v1.Certificate getDefaultInsta 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 { - return new Certificate(input, extensionRegistry); - } - }; + 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 { + return new Certificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5256,4 +4482,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java index 58d4249a..933116ff 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] represents an individual Certificate Authority.
  * A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1.Certificate].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority}
  */
-public final class CertificateAuthority extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateAuthority extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority)
     CertificateAuthorityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateAuthority.newBuilder() to construct.
   private CertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateAuthority() {
     name_ = "";
     type_ = 0;
@@ -50,15 +32,16 @@ private CertificateAuthority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateAuthority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateAuthority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,232 +61,191 @@ private CertificateAuthority(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
+            type_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+            config_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (lifetime_ != null) {
-                subBuilder = lifetime_.toBuilder();
-              }
-              lifetime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lifetime_);
-                lifetime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (lifetime_ != null) {
+              subBuilder = lifetime_.toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder
-                  subBuilder = null;
-              if (keySpec_ != null) {
-                subBuilder = keySpec_.toBuilder();
-              }
-              keySpec_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(keySpec_);
-                keySpec_ = subBuilder.buildPartial();
-              }
-
-              break;
+            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lifetime_);
+              lifetime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
-              if (subordinateConfig_ != null) {
-                subBuilder = subordinateConfig_.toBuilder();
-              }
-              subordinateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.SubordinateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subordinateConfig_);
-                subordinateConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 42: {
+            com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder subBuilder = null;
+            if (keySpec_ != null) {
+              subBuilder = keySpec_.toBuilder();
             }
-          case 56:
-            {
-              int rawValue = input.readEnum();
-
-              tier_ = rawValue;
-              break;
+            keySpec_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(keySpec_);
+              keySpec_ = subBuilder.buildPartial();
             }
-          case 64:
-            {
-              int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pemCaCertificates_.add(s);
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
+            if (subordinateConfig_ != null) {
+              subBuilder = subordinateConfig_.toBuilder();
             }
-          case 82:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                caCertificateDescriptions_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1.CertificateDescription>();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              caCertificateDescriptions_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateDescription.parser(),
-                      extensionRegistry));
-              break;
+            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1.SubordinateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subordinateConfig_);
+              subordinateConfig_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              gcsBucket_ = s;
-              break;
+            break;
+          }
+          case 56: {
+            int rawValue = input.readEnum();
+
+            tier_ = rawValue;
+            break;
+          }
+          case 64: {
+            int rawValue = input.readEnum();
+
+            state_ = rawValue;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 98:
-            {
-              com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder
-                  subBuilder = null;
-              if (accessUrls_ != null) {
-                subBuilder = accessUrls_.toBuilder();
-              }
-              accessUrls_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(accessUrls_);
-                accessUrls_ = subBuilder.buildPartial();
-              }
+            pemCaCertificates_.add(s);
+            break;
+          }
+          case 82: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              caCertificateDescriptions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
+            }
+            caCertificateDescriptions_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.parser(), extensionRegistry));
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              break;
+            gcsBucket_ = s;
+            break;
+          }
+          case 98: {
+            com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder subBuilder = null;
+            if (accessUrls_ != null) {
+              subBuilder = accessUrls_.toBuilder();
+            }
+            accessUrls_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(accessUrls_);
+              accessUrls_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 106: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
+            }
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 114:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 114: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
+            }
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (deleteTime_ != null) {
-                subBuilder = deleteTime_.toBuilder();
-              }
-              deleteTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(deleteTime_);
-                deleteTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 122: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (deleteTime_ != null) {
+              subBuilder = deleteTime_.toBuilder();
+            }
+            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deleteTime_);
+              deleteTime_ = subBuilder.buildPartial();
             }
-          case 130:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (expireTime_ != null) {
-                subBuilder = expireTime_.toBuilder();
-              }
-              expireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(expireTime_);
-                expireTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 130: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expireTime_ != null) {
+              subBuilder = expireTime_.toBuilder();
             }
-          case 138:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000004;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(expireTime_);
+              expireTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 138: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000004;
             }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -311,59 +253,54 @@ private CertificateAuthority(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCaCertificates_ = pemCaCertificates_.getUnmodifiableView();
       }
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        caCertificateDescriptions_ =
-            java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+        caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_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 17:
         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.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateAuthority.class,
-            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateAuthority.class, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], indicating its issuing chain.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateAuthority.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -372,8 +309,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Self-signed CA.
      * 
@@ -382,8 +317,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ SELF_SIGNED(1), /** - * - * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * or an unmanaged CA.
@@ -396,8 +329,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -406,8 +337,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Self-signed CA.
      * 
@@ -416,8 +345,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SELF_SIGNED_VALUE = 1; /** - * - * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * or an unmanaged CA.
@@ -427,6 +354,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUBORDINATE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -451,51 +379,49 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0:
-          return TYPE_UNSPECIFIED;
-        case 1:
-          return SELF_SIGNED;
-        case 2:
-          return SUBORDINATE;
-        default:
-          return null;
+        case 0: return TYPE_UNSPECIFIED;
+        case 1: return SELF_SIGNED;
+        case 2: return SUBORDINATE;
+        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<
+        Type> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Type findValueByNumber(int number) {
+              return Type.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Type findValueByNumber(int number) {
-            return Type.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -513,18 +439,15 @@ private Type(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The state of a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], indicating if it can be used.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateAuthority.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -533,8 +456,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will be
@@ -545,8 +466,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ENABLED(1),
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not be
@@ -557,8 +476,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISABLED(2),
     /**
-     *
-     *
      * 
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not
@@ -569,8 +486,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STAGED(3),
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA will not be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will not be
@@ -581,8 +496,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     AWAITING_USER_ACTIVATION(4),
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA may still be recovered by calling
@@ -599,8 +512,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -609,8 +520,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will be
@@ -621,8 +530,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ENABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not be
@@ -633,8 +540,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISABLED_VALUE = 2;
     /**
-     *
-     *
      * 
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not
@@ -645,8 +550,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STAGED_VALUE = 3;
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA will not be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will not be
@@ -657,8 +560,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int AWAITING_USER_ACTIVATION_VALUE = 4;
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA may still be recovered by calling
@@ -672,6 +573,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DELETED_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -696,57 +598,52 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ENABLED;
-        case 2:
-          return DISABLED;
-        case 3:
-          return STAGED;
-        case 4:
-          return AWAITING_USER_ACTIVATION;
-        case 5:
-          return DELETED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ENABLED;
+        case 2: return DISABLED;
+        case 3: return STAGED;
+        case 4: return AWAITING_USER_ACTIVATION;
+        case 5: return DELETED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -764,8 +661,6 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The algorithm of a Cloud KMS CryptoKeyVersion of a
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] with the
@@ -780,10 +675,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm}
    */
-  public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SignHashAlgorithm
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -792,8 +686,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ SIGN_HASH_ALGORITHM_UNSPECIFIED(0), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -802,8 +694,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PSS_2048_SHA256(1), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -812,8 +702,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PSS_3072_SHA256(2), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -822,8 +710,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PSS_4096_SHA256(3), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -832,8 +718,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PKCS1_2048_SHA256(6), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -842,8 +726,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PKCS1_3072_SHA256(7), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -852,8 +734,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PKCS1_4096_SHA256(8), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -862,8 +742,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ EC_P256_SHA256(4), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -875,8 +753,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Not specified.
      * 
@@ -885,8 +761,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int SIGN_HASH_ALGORITHM_UNSPECIFIED_VALUE = 0; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -895,8 +769,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -905,8 +777,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -915,8 +785,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -925,8 +793,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PKCS1_2048_SHA256_VALUE = 6; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -935,8 +801,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PKCS1_3072_SHA256_VALUE = 7; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -945,8 +809,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PKCS1_4096_SHA256_VALUE = 8; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -955,8 +817,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int EC_P256_SHA256_VALUE = 4; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -965,6 +825,7 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int EC_P384_SHA384_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -989,26 +850,16 @@ public static SignHashAlgorithm valueOf(int value) { */ public static SignHashAlgorithm forNumber(int value) { switch (value) { - case 0: - return SIGN_HASH_ALGORITHM_UNSPECIFIED; - case 1: - return RSA_PSS_2048_SHA256; - case 2: - return RSA_PSS_3072_SHA256; - case 3: - return RSA_PSS_4096_SHA256; - case 6: - return RSA_PKCS1_2048_SHA256; - case 7: - return RSA_PKCS1_3072_SHA256; - case 8: - return RSA_PKCS1_4096_SHA256; - case 4: - return EC_P256_SHA256; - case 5: - return EC_P384_SHA384; - default: - return null; + case 0: return SIGN_HASH_ALGORITHM_UNSPECIFIED; + case 1: return RSA_PSS_2048_SHA256; + case 2: return RSA_PSS_3072_SHA256; + case 3: return RSA_PSS_4096_SHA256; + case 6: return RSA_PKCS1_2048_SHA256; + case 7: return RSA_PKCS1_3072_SHA256; + case 8: return RSA_PKCS1_4096_SHA256; + case 4: return EC_P256_SHA256; + case 5: return EC_P384_SHA384; + default: return null; } } @@ -1016,31 +867,29 @@ public static SignHashAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SignHashAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignHashAlgorithm findValueByNumber(int number) { + return SignHashAlgorithm.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignHashAlgorithm findValueByNumber(int number) { - return SignHashAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor().getEnumTypes().get(2); } private static final SignHashAlgorithm[] VALUES = values(); @@ -1048,7 +897,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SignHashAlgorithm 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; @@ -1065,112 +915,93 @@ private SignHashAlgorithm(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm) } - public interface AccessUrlsOrBuilder - extends + public interface AccessUrlsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The caCertificateAccessUrl. */ java.lang.String getCaCertificateAccessUrl(); /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The bytes for caCertificateAccessUrl. */ - com.google.protobuf.ByteString getCaCertificateAccessUrlBytes(); + com.google.protobuf.ByteString + getCaCertificateAccessUrlBytes(); /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @return A list containing the crlAccessUrls. */ - java.util.List getCrlAccessUrlsList(); + java.util.List + getCrlAccessUrlsList(); /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @return The count of crlAccessUrls. */ int getCrlAccessUrlsCount(); /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @param index The index of the element to return. * @return The crlAccessUrls at the given index. */ java.lang.String getCrlAccessUrls(int index); /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @param index The index of the value to return. * @return The bytes of the crlAccessUrls at the given index. */ - com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index); + com.google.protobuf.ByteString + getCrlAccessUrlsBytes(int index); } /** - * - * *
    * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will publish content.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls} */ - public static final class AccessUrls extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AccessUrls extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) AccessUrlsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessUrls.newBuilder() to construct. private AccessUrls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessUrls() { caCertificateAccessUrl_ = ""; crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1178,15 +1009,16 @@ private AccessUrls() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessUrls(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessUrls( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1206,30 +1038,28 @@ private AccessUrls( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - caCertificateAccessUrl_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - crlAccessUrls_.add(s); - break; + caCertificateAccessUrl_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + crlAccessUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1237,7 +1067,8 @@ private AccessUrls( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crlAccessUrls_ = crlAccessUrls_.getUnmodifiableView(); @@ -1246,34 +1077,28 @@ private AccessUrls( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder.class); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder.class); } public static final int CA_CERTIFICATE_ACCESS_URL_FIELD_NUMBER = 1; private volatile java.lang.Object caCertificateAccessUrl_; /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The caCertificateAccessUrl. */ @java.lang.Override @@ -1282,30 +1107,30 @@ public java.lang.String getCaCertificateAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; } } /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The bytes for caCertificateAccessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString + getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -1316,45 +1141,37 @@ public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { public static final int CRL_ACCESS_URLS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList crlAccessUrls_; /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @return A list containing the crlAccessUrls. */ - public com.google.protobuf.ProtocolStringList getCrlAccessUrlsList() { + public com.google.protobuf.ProtocolStringList + getCrlAccessUrlsList() { return crlAccessUrls_; } /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @return The count of crlAccessUrls. */ public int getCrlAccessUrlsCount() { return crlAccessUrls_.size(); } /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @param index The index of the element to return. * @return The crlAccessUrls at the given index. */ @@ -1362,24 +1179,21 @@ public java.lang.String getCrlAccessUrls(int index) { return crlAccessUrls_.get(index); } /** - * - * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; - * * @param index The index of the value to return. * @return The bytes of the crlAccessUrls at the given index. */ - public com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index) { + public com.google.protobuf.ByteString + getCrlAccessUrlsBytes(int index) { return crlAccessUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1391,7 +1205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caCertificateAccessUrl_); } @@ -1408,8 +1223,7 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); } { int dataSize = 0; @@ -1427,17 +1241,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.security.privateca.v1.CertificateAuthority.AccessUrls)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other = - (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) obj; + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other = (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) obj; - if (!getCaCertificateAccessUrl().equals(other.getCaCertificateAccessUrl())) return false; - if (!getCrlAccessUrlsList().equals(other.getCrlAccessUrlsList())) return false; + if (!getCaCertificateAccessUrl() + .equals(other.getCaCertificateAccessUrl())) return false; + if (!getCrlAccessUrlsList() + .equals(other.getCrlAccessUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1461,95 +1275,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls 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.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - 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.security.privateca.v1.CertificateAuthority.AccessUrls 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.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1559,50 +1365,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will publish content.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder - .class); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1614,22 +1414,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls build() { - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = - buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1638,8 +1435,7 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls bu @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls buildPartial() { - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = - new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(this); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(this); int from_bitField0_ = bitField0_; result.caCertificateAccessUrl_ = caCertificateAccessUrl_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1655,54 +1451,46 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateAuthority.AccessUrls) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) other); + if (other instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) { + return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other) { - if (other - == com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other) { + if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance()) return this; if (!other.getCaCertificateAccessUrl().isEmpty()) { caCertificateAccessUrl_ = other.caCertificateAccessUrl_; onChanged(); @@ -1736,9 +1524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1747,26 +1533,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object caCertificateAccessUrl_ = ""; /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @return The caCertificateAccessUrl. */ public java.lang.String getCaCertificateAccessUrl() { java.lang.Object ref = caCertificateAccessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; @@ -1775,22 +1558,21 @@ public java.lang.String getCaCertificateAccessUrl() { } } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @return The bytes for caCertificateAccessUrl. */ - public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString + getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -1798,118 +1580,101 @@ public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { } } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @param value The caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrl(java.lang.String value) { + public Builder setCaCertificateAccessUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificateAccessUrl_ = value; onChanged(); return this; } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @return This builder for chaining. */ public Builder clearCaCertificateAccessUrl() { - + caCertificateAccessUrl_ = getDefaultInstance().getCaCertificateAccessUrl(); onChanged(); return this; } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @param value The bytes for caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrlBytes(com.google.protobuf.ByteString value) { + public Builder setCaCertificateAccessUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificateAccessUrl_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList crlAccessUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCrlAccessUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(crlAccessUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @return A list containing the crlAccessUrls. */ - public com.google.protobuf.ProtocolStringList getCrlAccessUrlsList() { + public com.google.protobuf.ProtocolStringList + getCrlAccessUrlsList() { return crlAccessUrls_.getUnmodifiableView(); } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @return The count of crlAccessUrls. */ public int getCrlAccessUrlsCount() { return crlAccessUrls_.size(); } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @param index The index of the element to return. * @return The crlAccessUrls at the given index. */ @@ -1917,95 +1682,85 @@ public java.lang.String getCrlAccessUrls(int index) { return crlAccessUrls_.get(index); } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @param index The index of the value to return. * @return The bytes of the crlAccessUrls at the given index. */ - public com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index) { + public com.google.protobuf.ByteString + getCrlAccessUrlsBytes(int index) { return crlAccessUrls_.getByteString(index); } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @param index The index to set the value at. * @param value The crlAccessUrls to set. * @return This builder for chaining. */ - public Builder setCrlAccessUrls(int index, java.lang.String value) { + public Builder setCrlAccessUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlAccessUrlsIsMutable(); + throw new NullPointerException(); + } + ensureCrlAccessUrlsIsMutable(); crlAccessUrls_.set(index, value); onChanged(); return this; } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @param value The crlAccessUrls to add. * @return This builder for chaining. */ - public Builder addCrlAccessUrls(java.lang.String value) { + public Builder addCrlAccessUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlAccessUrlsIsMutable(); + throw new NullPointerException(); + } + ensureCrlAccessUrlsIsMutable(); crlAccessUrls_.add(value); onChanged(); return this; } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @param values The crlAccessUrls to add. * @return This builder for chaining. */ - public Builder addAllCrlAccessUrls(java.lang.Iterable values) { + public Builder addAllCrlAccessUrls( + java.lang.Iterable values) { ensureCrlAccessUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlAccessUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crlAccessUrls_); onChanged(); return this; } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @return This builder for chaining. */ public Builder clearCrlAccessUrls() { @@ -2015,29 +1770,26 @@ public Builder clearCrlAccessUrls() { return this; } /** - * - * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; - * * @param value The bytes of the crlAccessUrls to add. * @return This builder for chaining. */ - public Builder addCrlAccessUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addCrlAccessUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCrlAccessUrlsIsMutable(); crlAccessUrls_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2050,33 +1802,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) - private static final com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessUrls parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessUrls(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessUrls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessUrls(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2088,20 +1837,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface KeyVersionSpecOrBuilder - extends + public interface KeyVersionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2111,13 +1857,10 @@ public interface KeyVersionSpecOrBuilder
      * 
* * string cloud_kms_key_version = 1; - * * @return Whether the cloudKmsKeyVersion field is set. */ boolean hasCloudKmsKeyVersion(); /** - * - * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2127,13 +1870,10 @@ public interface KeyVersionSpecOrBuilder
      * 
* * string cloud_kms_key_version = 1; - * * @return The cloudKmsKeyVersion. */ java.lang.String getCloudKmsKeyVersion(); /** - * - * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2143,95 +1883,78 @@ public interface KeyVersionSpecOrBuilder
      * 
* * string cloud_kms_key_version = 1; - * * @return The bytes for cloudKmsKeyVersion. */ - com.google.protobuf.ByteString getCloudKmsKeyVersionBytes(); + com.google.protobuf.ByteString + getCloudKmsKeyVersionBytes(); /** - * - * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return Whether the algorithm field is set. */ boolean hasAlgorithm(); /** - * - * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** - * - * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return The algorithm. */ com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm getAlgorithm(); - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.KeyVersionCase - getKeyVersionCase(); + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase(); } /** - * - * *
    * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will use.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec} */ - public static final class KeyVersionSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KeyVersionSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) KeyVersionSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyVersionSpec.newBuilder() to construct. private KeyVersionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private KeyVersionSpec() {} + private KeyVersionSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeyVersionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KeyVersionSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2250,27 +1973,25 @@ private KeyVersionSpec( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - keyVersionCase_ = 1; - keyVersion_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - keyVersionCase_ = 2; - keyVersion_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + keyVersionCase_ = 1; + keyVersion_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + keyVersionCase_ = 2; + keyVersion_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2278,41 +1999,35 @@ private KeyVersionSpec( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder - .class); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder.class); } private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; - public enum KeyVersionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_KMS_KEY_VERSION(1), ALGORITHM(2), KEYVERSION_NOT_SET(0); private final int value; - private KeyVersionCase(int value) { this.value = value; } @@ -2328,30 +2043,25 @@ public static KeyVersionCase valueOf(int value) { public static KeyVersionCase forNumber(int value) { switch (value) { - case 1: - return CLOUD_KMS_KEY_VERSION; - case 2: - return ALGORITHM; - case 0: - return KEYVERSION_NOT_SET; - default: - return null; + case 1: return CLOUD_KMS_KEY_VERSION; + case 2: return ALGORITHM; + case 0: return KEYVERSION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public KeyVersionCase getKeyVersionCase() { - return KeyVersionCase.forNumber(keyVersionCase_); + public KeyVersionCase + getKeyVersionCase() { + return KeyVersionCase.forNumber( + keyVersionCase_); } public static final int CLOUD_KMS_KEY_VERSION_FIELD_NUMBER = 1; /** - * - * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2361,15 +2071,12 @@ public KeyVersionCase getKeyVersionCase() {
      * 
* * string cloud_kms_key_version = 1; - * * @return Whether the cloudKmsKeyVersion field is set. */ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** - * - * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2379,7 +2086,6 @@ public boolean hasCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1; - * * @return The cloudKmsKeyVersion. */ public java.lang.String getCloudKmsKeyVersion() { @@ -2390,7 +2096,8 @@ public java.lang.String getCloudKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -2399,8 +2106,6 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** - * - * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2410,17 +2115,18 @@ public java.lang.String getCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1; - * * @return The bytes for cloudKmsKeyVersion. */ - public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -2432,36 +2138,26 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { public static final int ALGORITHM_FIELD_NUMBER = 2; /** - * - * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** - * - * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return The enum numeric value on the wire for algorithm. */ public int getAlgorithmValue() { @@ -2470,39 +2166,27 @@ public int getAlgorithmValue() { } return 0; } - /** - * - * + /** *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return The algorithm. */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm - getAlgorithm() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( - (java.lang.Integer) keyVersion_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm - .UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( + (java.lang.Integer) keyVersion_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; } - return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm - .SIGN_HASH_ALGORITHM_UNSPECIFIED; + return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2514,7 +2198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (keyVersionCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyVersion_); } @@ -2534,9 +2219,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyVersion_); } if (keyVersionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) keyVersion_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, ((java.lang.Integer) keyVersion_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2546,22 +2230,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.security.privateca.v1.CertificateAuthority.KeyVersionSpec)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other = - (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) obj; + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other = (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) obj; if (!getKeyVersionCase().equals(other.getKeyVersionCase())) return false; switch (keyVersionCase_) { case 1: - if (!getCloudKmsKeyVersion().equals(other.getCloudKmsKeyVersion())) return false; + if (!getCloudKmsKeyVersion() + .equals(other.getCloudKmsKeyVersion())) return false; break; case 2: - if (getAlgorithmValue() != other.getAlgorithmValue()) return false; + if (getAlgorithmValue() + != other.getAlgorithmValue()) return false; break; case 0: default: @@ -2594,101 +2278,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - 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.security.privateca.v1.CertificateAuthority.KeyVersionSpec 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.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2698,50 +2369,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will use.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder - .class); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2751,22 +2416,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec build() { - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = - buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2774,10 +2436,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - buildPartial() { - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = - new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(this); + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec buildPartial() { + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(this); if (keyVersionCase_ == 1) { result.keyVersion_ = keyVersion_; } @@ -2793,71 +2453,60 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateAuthority.KeyVersionSpec) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) other); + if (other instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) { + return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other) { - if (other - == com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other) { + if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance()) return this; switch (other.getKeyVersionCase()) { - case CLOUD_KMS_KEY_VERSION: - { - keyVersionCase_ = 1; - keyVersion_ = other.keyVersion_; - onChanged(); - break; - } - case ALGORITHM: - { - setAlgorithmValue(other.getAlgorithmValue()); - break; - } - case KEYVERSION_NOT_SET: - { - break; - } + case CLOUD_KMS_KEY_VERSION: { + keyVersionCase_ = 1; + keyVersion_ = other.keyVersion_; + onChanged(); + break; + } + case ALGORITHM: { + setAlgorithmValue(other.getAlgorithmValue()); + break; + } + case KEYVERSION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2874,14 +2523,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parsedMessage = - null; + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2890,12 +2536,12 @@ public Builder mergeFrom( } return this; } - private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; - - public KeyVersionCase getKeyVersionCase() { - return KeyVersionCase.forNumber(keyVersionCase_); + public KeyVersionCase + getKeyVersionCase() { + return KeyVersionCase.forNumber( + keyVersionCase_); } public Builder clearKeyVersion() { @@ -2905,9 +2551,8 @@ public Builder clearKeyVersion() { return this; } + /** - * - * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2917,7 +2562,6 @@ public Builder clearKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; - * * @return Whether the cloudKmsKeyVersion field is set. */ @java.lang.Override @@ -2925,8 +2569,6 @@ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** - * - * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2936,7 +2578,6 @@ public boolean hasCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; - * * @return The cloudKmsKeyVersion. */ @java.lang.Override @@ -2946,7 +2587,8 @@ public java.lang.String getCloudKmsKeyVersion() { ref = keyVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -2957,8 +2599,6 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** - * - * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2968,18 +2608,19 @@ public java.lang.String getCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; - * * @return The bytes for cloudKmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -2989,8 +2630,6 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { } } /** - * - * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -3000,22 +2639,20 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() {
        * 
* * string cloud_kms_key_version = 1; - * * @param value The cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersion(java.lang.String value) { + public Builder setCloudKmsKeyVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - keyVersionCase_ = 1; + throw new NullPointerException(); + } + keyVersionCase_ = 1; keyVersion_ = value; onChanged(); return this; } /** - * - * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -3025,7 +2662,6 @@ public Builder setCloudKmsKeyVersion(java.lang.String value) {
        * 
* * string cloud_kms_key_version = 1; - * * @return This builder for chaining. */ public Builder clearCloudKmsKeyVersion() { @@ -3037,8 +2673,6 @@ public Builder clearCloudKmsKeyVersion() { return this; } /** - * - * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -3048,15 +2682,15 @@ public Builder clearCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; - * * @param value The bytes for cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value) { + public Builder setCloudKmsKeyVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); keyVersionCase_ = 1; keyVersion_ = value; onChanged(); @@ -3064,18 +2698,13 @@ public Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value) } /** - * - * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return Whether the algorithm field is set. */ @java.lang.Override @@ -3083,18 +2712,13 @@ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** - * - * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return The enum numeric value on the wire for algorithm. */ @java.lang.Override @@ -3105,18 +2729,13 @@ public int getAlgorithmValue() { return 0; } /** - * - * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @param value The enum numeric value on the wire for algorithm to set. * @return This builder for chaining. */ @@ -3127,54 +2746,37 @@ public Builder setAlgorithmValue(int value) { return this; } /** - * - * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return The algorithm. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm - getAlgorithm() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( - (java.lang.Integer) keyVersion_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm - .UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( + (java.lang.Integer) keyVersion_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; } - return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm - .SIGN_HASH_ALGORITHM_UNSPECIFIED; + return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; } /** - * - * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm( - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm value) { + public Builder setAlgorithm(com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm value) { if (value == null) { throw new NullPointerException(); } @@ -3184,18 +2786,13 @@ public Builder setAlgorithm( return this; } /** - * - * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; * @return This builder for chaining. */ public Builder clearAlgorithm() { @@ -3206,7 +2803,6 @@ public Builder clearAlgorithm() { } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3219,33 +2815,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) - private static final com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyVersionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyVersionSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyVersionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyVersionSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3257,24 +2850,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -3283,30 +2873,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * 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 { @@ -3317,58 +2907,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType() { + @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = - com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED : result; } public static final int CONFIG_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CertificateConfig config_; /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ @java.lang.Override @@ -3376,34 +2946,23 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { - return config_ == null - ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { @@ -3413,18 +2972,13 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf public static final int LIFETIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration lifetime_; /** - * - * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ @java.lang.Override @@ -3432,18 +2986,13 @@ public boolean hasLifetime() { return lifetime_ != null; } /** - * - * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ @java.lang.Override @@ -3451,17 +3000,13 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** - * - * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -3471,8 +3016,6 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { public static final int KEY_SPEC_FIELD_NUMBER = 5; private com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec keySpec_; /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -3480,10 +3023,7 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the keySpec field is set. */ @java.lang.Override @@ -3491,8 +3031,6 @@ public boolean hasKeySpec() { return keySpec_ != null; } /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -3500,22 +3038,14 @@ public boolean hasKeySpec() {
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The keySpec. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getKeySpec() { - return keySpec_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance() - : keySpec_; + return keySpec_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; } /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -3523,31 +3053,23 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder - getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { return getKeySpec(); } public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -3555,136 +3077,92 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int TIER_FIELD_NUMBER = 7; private int tier_; /** - * - * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tier. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { + @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = - com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; } public static final int STATE_FIELD_NUMBER = 8; private int state_; /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.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 [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.State getState() { + @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.State result = - com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED : result; } public static final int PEM_CA_CERTIFICATES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList pemCaCertificates_; /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3692,17 +3170,14 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.State getStat
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCaCertificatesList() { return pemCaCertificates_; } /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3710,17 +3185,13 @@ public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3728,9 +3199,7 @@ public int getPemCaCertificatesCount() {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -3738,8 +3207,6 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3747,110 +3214,83 @@ public java.lang.String getPemCaCertificates(int index) {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } public static final int CA_CERTIFICATE_DESCRIPTIONS_FIELD_NUMBER = 10; - private java.util.List - caCertificateDescriptions_; + private java.util.List caCertificateDescriptions_; /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getCaCertificateDescriptionsList() { + public java.util.List getCaCertificateDescriptionsList() { return caCertificateDescriptions_; } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + public java.util.List getCaCertificateDescriptionsOrBuilderList() { return caCertificateDescriptions_; } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getCaCertificateDescriptionsCount() { return caCertificateDescriptions_.size(); } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions( - int index) { + public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions(int index) { return caCertificateDescriptions_.get(index); } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder - getCaCertificateDescriptionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( + int index) { return caCertificateDescriptions_.get(index); } public static final int GCS_BUCKET_FIELD_NUMBER = 11; private volatile java.lang.Object gcsBucket_; /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -3861,7 +3301,6 @@ public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertif
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The gcsBucket. */ @java.lang.Override @@ -3870,15 +3309,14 @@ public java.lang.String getGcsBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; } } /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -3889,15 +3327,16 @@ public java.lang.String getGcsBucket() {
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for gcsBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsBucketBytes() { + public com.google.protobuf.ByteString + getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -3908,17 +3347,12 @@ public com.google.protobuf.ByteString getGcsBucketBytes() { public static final int ACCESS_URLS_FIELD_NUMBER = 12; private com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls accessUrls_; /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accessUrls field is set. */ @java.lang.Override @@ -3926,56 +3360,39 @@ public boolean hasAccessUrls() { return accessUrls_ != null; } /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accessUrls. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getAccessUrls() { - return accessUrls_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - .getDefaultInstance() - : accessUrls_; + return accessUrls_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; } /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder - getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { return getAccessUrls(); } public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -3983,15 +3400,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -3999,14 +3412,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -4016,15 +3426,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4032,15 +3438,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -4048,14 +3450,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4065,16 +3464,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -4082,16 +3477,12 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -4099,15 +3490,12 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -4117,16 +3505,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -4134,16 +3518,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -4151,15 +3531,12 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -4167,23 +3544,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 17; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -4192,30 +3570,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -4223,12 +3599,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -4236,16 +3611,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -4253,11 +3628,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -4265,7 +3641,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4277,13 +3652,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 (type_ - != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (config_ != null) { @@ -4301,9 +3675,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tier_ != com.google.cloud.security.privateca.v1.CaPool.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(7, tier_); } - if (state_ - != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } for (int i = 0; i < pemCaCertificates_.size(); i++) { @@ -4330,8 +3702,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(16, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 17); unknownFields.writeTo(output); } @@ -4344,30 +3720,33 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConfig()); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLifetime()); } if (keySpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getKeySpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getKeySpec()); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSubordinateConfig()); } if (tier_ != com.google.cloud.security.privateca.v1.CaPool.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, tier_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, tier_); } - if (state_ - != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + if (state_ != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } { int dataSize = 0; @@ -4378,37 +3757,41 @@ public int getSerializedSize() { size += 1 * getPemCaCertificatesList().size(); } for (int i = 0; i < caCertificateDescriptions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, caCertificateDescriptions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, caCertificateDescriptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, gcsBucket_); } if (accessUrls_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getAccessUrls()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getAccessUrls()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getExpireTime()); - } - 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(17, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getExpireTime()); + } + 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(17, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4418,59 +3801,71 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateAuthority)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateAuthority other = - (com.google.cloud.security.privateca.v1.CertificateAuthority) obj; + com.google.cloud.security.privateca.v1.CertificateAuthority other = (com.google.cloud.security.privateca.v1.CertificateAuthority) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime().equals(other.getLifetime())) return false; + if (!getLifetime() + .equals(other.getLifetime())) return false; } if (hasKeySpec() != other.hasKeySpec()) return false; if (hasKeySpec()) { - if (!getKeySpec().equals(other.getKeySpec())) return false; + if (!getKeySpec() + .equals(other.getKeySpec())) return false; } if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig() + .equals(other.getSubordinateConfig())) return false; } if (tier_ != other.tier_) return false; if (state_ != other.state_) return false; - if (!getPemCaCertificatesList().equals(other.getPemCaCertificatesList())) return false; - if (!getCaCertificateDescriptionsList().equals(other.getCaCertificateDescriptionsList())) - return false; - if (!getGcsBucket().equals(other.getGcsBucket())) return false; + if (!getPemCaCertificatesList() + .equals(other.getPemCaCertificatesList())) return false; + if (!getCaCertificateDescriptionsList() + .equals(other.getCaCertificateDescriptionsList())) return false; + if (!getGcsBucket() + .equals(other.getGcsBucket())) return false; if (hasAccessUrls() != other.hasAccessUrls()) return false; if (hasAccessUrls()) { - if (!getAccessUrls().equals(other.getAccessUrls())) return false; + if (!getAccessUrls() + .equals(other.getAccessUrls())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4546,104 +3941,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateAuthority 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.security.privateca.v1.CertificateAuthority parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateAuthority prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateAuthority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] represents an individual Certificate Authority.
    * A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1.Certificate].
@@ -4651,43 +4038,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority)
       com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 17:
           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 17:
           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.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateAuthority.class,
-              com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateAuthority.class, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder()
@@ -4695,17 +4082,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCaCertificateDescriptionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4786,9 +4173,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
     }
 
     @java.lang.Override
@@ -4807,8 +4194,7 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateAuthority buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateAuthority result =
-          new com.google.cloud.security.privateca.v1.CertificateAuthority(this);
+      com.google.cloud.security.privateca.v1.CertificateAuthority result = new com.google.cloud.security.privateca.v1.CertificateAuthority(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.type_ = type_;
@@ -4841,8 +4227,7 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority buildPartial(
       result.pemCaCertificates_ = pemCaCertificates_;
       if (caCertificateDescriptionsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
-          caCertificateDescriptions_ =
-              java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+          caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
           bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.caCertificateDescriptions_ = caCertificateDescriptions_;
@@ -4885,39 +4270,38 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateAuthority) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4925,8 +4309,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAuthority other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -4980,10 +4363,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAutho
             caCertificateDescriptionsBuilder_ = null;
             caCertificateDescriptions_ = other.caCertificateDescriptions_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            caCertificateDescriptionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCaCertificateDescriptionsFieldBuilder()
-                    : null;
+            caCertificateDescriptionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCaCertificateDescriptionsFieldBuilder() : null;
           } else {
             caCertificateDescriptionsBuilder_.addAllMessages(other.caCertificateDescriptions_);
           }
@@ -5008,7 +4390,8 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAutho
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -5028,8 +4411,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateAuthority) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateAuthority) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -5038,26 +4420,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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; @@ -5066,22 +4445,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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 { @@ -5089,64 +4467,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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; @@ -5154,75 +4525,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = - com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The type to set. * @return This builder for chaining. */ @@ -5230,26 +4577,21 @@ public Builder setType(com.google.cloud.security.privateca.v1.CertificateAuthori if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -5257,58 +4599,39 @@ public Builder clearType() { private com.google.cloud.security.privateca.v1.CertificateConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> - configBuilder_; + com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { @@ -5324,15 +4647,11 @@ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfi return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig( com.google.cloud.security.privateca.v1.CertificateConfig.Builder builderForValue) { @@ -5346,23 +4665,17 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -5374,15 +4687,11 @@ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateCon return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -5396,64 +4705,48 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.cloud.security.privateca.v1.CertificateConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -5461,41 +4754,28 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - lifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -5506,17 +4786,13 @@ public com.google.protobuf.Duration getLifetime() { } } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -5532,19 +4808,16 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -5555,23 +4828,19 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -5583,17 +4852,13 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -5607,68 +4872,54 @@ public Builder clearLifetime() { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** - * - * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLifetime(), getParentForChildren(), isClean()); + lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getLifetime(), + getParentForChildren(), + isClean()); lifetime_ = null; } return lifetimeBuilder_; @@ -5676,13 +4927,8 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { private com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec keySpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> - keySpecBuilder_; + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> keySpecBuilder_; /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5690,18 +4936,13 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the keySpec field is set. */ public boolean hasKeySpec() { return keySpecBuilder_ != null || keySpec_ != null; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5709,25 +4950,17 @@ public boolean hasKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The keySpec. */ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getKeySpec() { if (keySpecBuilder_ == null) { - return keySpec_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance() - : keySpec_; + return keySpec_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; } else { return keySpecBuilder_.getMessage(); } } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5735,12 +4968,9 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setKeySpec( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { + public Builder setKeySpec(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5754,8 +4984,6 @@ public Builder setKeySpec( return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5763,13 +4991,10 @@ public Builder setKeySpec(
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setKeySpec( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder builderForValue) { if (keySpecBuilder_ == null) { keySpec_ = builderForValue.build(); onChanged(); @@ -5780,8 +5005,6 @@ public Builder setKeySpec( return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5789,19 +5012,13 @@ public Builder setKeySpec(
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeKeySpec( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { + public Builder mergeKeySpec(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (keySpec_ != null) { keySpec_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder( - keySpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder(keySpec_).mergeFrom(value).buildPartial(); } else { keySpec_ = value; } @@ -5813,8 +5030,6 @@ public Builder mergeKeySpec( return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5822,9 +5037,7 @@ public Builder mergeKeySpec(
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearKeySpec() { if (keySpecBuilder_ == null) { @@ -5838,8 +5051,6 @@ public Builder clearKeySpec() { return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5847,19 +5058,14 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder - getKeySpecBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder getKeySpecBuilder() { + onChanged(); return getKeySpecFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5867,24 +5073,17 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder - getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { if (keySpecBuilder_ != null) { return keySpecBuilder_.getMessageOrBuilder(); } else { - return keySpec_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance() - : keySpec_; + return keySpec_ == null ? + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; } } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5892,22 +5091,17 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> getKeySpecFieldBuilder() { if (keySpecBuilder_ == null) { - keySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthority - .KeyVersionSpecOrBuilder>(getKeySpec(), getParentForChildren(), isClean()); + keySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder>( + getKeySpec(), + getParentForChildren(), + isClean()); keySpec_ = null; } return keySpecBuilder_; @@ -5915,67 +5109,47 @@ public Builder clearKeySpec() { private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, - com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> - subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSubordinateConfig( - com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5989,17 +5163,13 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1.SubordinateConfig.Builder builderForValue) { @@ -6013,27 +5183,19 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSubordinateConfig( - com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder( - subordinateConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); } else { subordinateConfig_ = value; } @@ -6045,17 +5207,13 @@ public Builder mergeSubordinateConfig( return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -6069,72 +5227,54 @@ public Builder clearSubordinateConfig() { return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder - getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? + com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, - com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, - com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), getParentForChildren(), isClean()); + subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), + getParentForChildren(), + isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -6142,79 +5282,55 @@ public Builder clearSubordinateConfig() { private int tier_ = 0; /** - * - * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tier. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = - com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The tier to set. * @return This builder for chaining. */ @@ -6222,27 +5338,22 @@ public Builder setTier(com.google.cloud.security.privateca.v1.CaPool.Tier value) if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; @@ -6250,120 +5361,86 @@ public Builder clearTier() { private int state_ = 0; /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.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 [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.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 [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.State result = - com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.security.privateca.v1.CertificateAuthority.State value) { + public Builder setState(com.google.cloud.security.privateca.v1.CertificateAuthority.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList pemCaCertificates_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pemCaCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePemCaCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCaCertificates_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6371,17 +5448,14 @@ private void ensurePemCaCertificatesIsMutable() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCaCertificatesList() { return pemCaCertificates_.getUnmodifiableView(); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6389,17 +5463,13 @@ public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6407,9 +5477,7 @@ public int getPemCaCertificatesCount() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -6417,8 +5485,6 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6426,18 +5492,15 @@ public java.lang.String getPemCaCertificates(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6445,25 +5508,22 @@ public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The pemCaCertificates to set. * @return This builder for chaining. */ - public Builder setPemCaCertificates(int index, java.lang.String value) { + public Builder setPemCaCertificates( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6471,24 +5531,21 @@ public Builder setPemCaCertificates(int index, java.lang.String value) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificates(java.lang.String value) { + public Builder addPemCaCertificates( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6496,21 +5553,19 @@ public Builder addPemCaCertificates(java.lang.String value) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCaCertificates(java.lang.Iterable values) { + public Builder addAllPemCaCertificates( + java.lang.Iterable values) { ensurePemCaCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCaCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pemCaCertificates_); onChanged(); return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6518,9 +5573,7 @@ public Builder addAllPemCaCertificates(java.lang.Iterable valu
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPemCaCertificates() { @@ -6530,8 +5583,6 @@ public Builder clearPemCaCertificates() { return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -6539,55 +5590,43 @@ public Builder clearPemCaCertificates() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificatesBytes(com.google.protobuf.ByteString value) { + public Builder addPemCaCertificatesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } - private java.util.List - caCertificateDescriptions_ = java.util.Collections.emptyList(); - + private java.util.List caCertificateDescriptions_ = + java.util.Collections.emptyList(); private void ensureCaCertificateDescriptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - caCertificateDescriptions_ = - new java.util.ArrayList( - caCertificateDescriptions_); + caCertificateDescriptions_ = new java.util.ArrayList(caCertificateDescriptions_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> - caCertificateDescriptionsBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> caCertificateDescriptionsBuilder_; /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getCaCertificateDescriptionsList() { + public java.util.List getCaCertificateDescriptionsList() { if (caCertificateDescriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(caCertificateDescriptions_); } else { @@ -6595,16 +5634,12 @@ private void ensureCaCertificateDescriptionsIsMutable() { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getCaCertificateDescriptionsCount() { if (caCertificateDescriptionsBuilder_ == null) { @@ -6614,19 +5649,14 @@ public int getCaCertificateDescriptionsCount() { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescription - getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { return caCertificateDescriptions_.get(index); } else { @@ -6634,16 +5664,12 @@ public int getCaCertificateDescriptionsCount() { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1.CertificateDescription value) { @@ -6660,20 +5686,15 @@ public Builder setCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCaCertificateDescriptions( - int index, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.set(index, builderForValue.build()); @@ -6684,19 +5705,14 @@ public Builder setCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addCaCertificateDescriptions( - com.google.cloud.security.privateca.v1.CertificateDescription value) { + public Builder addCaCertificateDescriptions(com.google.cloud.security.privateca.v1.CertificateDescription value) { if (caCertificateDescriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6710,16 +5726,12 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1.CertificateDescription value) { @@ -6736,16 +5748,12 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addCaCertificateDescriptions( com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { @@ -6759,20 +5767,15 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addCaCertificateDescriptions( - int index, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.add(index, builderForValue.build()); @@ -6783,23 +5786,19 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllCaCertificateDescriptions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCertificateDescriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, caCertificateDescriptions_); onChanged(); } else { caCertificateDescriptionsBuilder_.addAllMessages(values); @@ -6807,16 +5806,12 @@ public Builder addAllCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCaCertificateDescriptions() { if (caCertificateDescriptionsBuilder_ == null) { @@ -6829,16 +5824,12 @@ public Builder clearCaCertificateDescriptions() { return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { @@ -6851,56 +5842,42 @@ public Builder removeCaCertificateDescriptions(int index) { return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder - getCaCertificateDescriptionsBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder getCaCertificateDescriptionsBuilder( + int index) { return getCaCertificateDescriptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder - getCaCertificateDescriptionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( + int index) { if (caCertificateDescriptionsBuilder_ == null) { - return caCertificateDescriptions_.get(index); - } else { + return caCertificateDescriptions_.get(index); } else { return caCertificateDescriptionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> - getCaCertificateDescriptionsOrBuilderList() { + public java.util.List + getCaCertificateDescriptionsOrBuilderList() { if (caCertificateDescriptionsBuilder_ != null) { return caCertificateDescriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -6908,70 +5885,48 @@ public Builder removeCaCertificateDescriptions(int index) { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder - addCaCertificateDescriptionsBuilder() { - return getCaCertificateDescriptionsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder() { + return getCaCertificateDescriptionsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder - addCaCertificateDescriptionsBuilder(int index) { - return getCaCertificateDescriptionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder( + int index) { + return getCaCertificateDescriptionsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getCaCertificateDescriptionsBuilderList() { + public java.util.List + getCaCertificateDescriptionsBuilderList() { return getCaCertificateDescriptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsFieldBuilder() { if (caCertificateDescriptionsBuilder_ == null) { - caCertificateDescriptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( + caCertificateDescriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( caCertificateDescriptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6983,8 +5938,6 @@ public Builder removeCaCertificateDescriptions(int index) { private java.lang.Object gcsBucket_ = ""; /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -6995,13 +5948,13 @@ public Builder removeCaCertificateDescriptions(int index) {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The gcsBucket. */ public java.lang.String getGcsBucket() { java.lang.Object ref = gcsBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; @@ -7010,8 +5963,6 @@ public java.lang.String getGcsBucket() { } } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -7022,14 +5973,15 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for gcsBucket. */ - public com.google.protobuf.ByteString getGcsBucketBytes() { + public com.google.protobuf.ByteString + getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -7037,8 +5989,6 @@ public com.google.protobuf.ByteString getGcsBucketBytes() { } } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -7049,22 +5999,20 @@ public com.google.protobuf.ByteString getGcsBucketBytes() {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucket(java.lang.String value) { + public Builder setGcsBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsBucket_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -7075,18 +6023,15 @@ public Builder setGcsBucket(java.lang.String value) {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearGcsBucket() { - + gcsBucket_ = getDefaultInstance().getGcsBucket(); onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -7097,16 +6042,16 @@ public Builder clearGcsBucket() {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + public Builder setGcsBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; onChanged(); return this; @@ -7114,65 +6059,44 @@ public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls accessUrls_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> - accessUrlsBuilder_; + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> accessUrlsBuilder_; /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accessUrls field is set. */ public boolean hasAccessUrls() { return accessUrlsBuilder_ != null || accessUrls_ != null; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accessUrls. */ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getAccessUrls() { if (accessUrlsBuilder_ == null) { - return accessUrls_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - .getDefaultInstance() - : accessUrls_; + return accessUrls_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; } else { return accessUrlsBuilder_.getMessage(); } } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setAccessUrls( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { + public Builder setAccessUrls(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7186,20 +6110,15 @@ public Builder setAccessUrls( return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccessUrls( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder builderForValue) { if (accessUrlsBuilder_ == null) { accessUrls_ = builderForValue.build(); onChanged(); @@ -7210,26 +6129,18 @@ public Builder setAccessUrls( return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeAccessUrls( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { + public Builder mergeAccessUrls(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (accessUrls_ != null) { accessUrls_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder( - accessUrls_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder(accessUrls_).mergeFrom(value).buildPartial(); } else { accessUrls_ = value; } @@ -7241,16 +6152,12 @@ public Builder mergeAccessUrls( return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAccessUrls() { if (accessUrlsBuilder_ == null) { @@ -7264,70 +6171,51 @@ public Builder clearAccessUrls() { return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder - getAccessUrlsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder getAccessUrlsBuilder() { + onChanged(); return getAccessUrlsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder - getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { if (accessUrlsBuilder_ != null) { return accessUrlsBuilder_.getMessageOrBuilder(); } else { - return accessUrls_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls - .getDefaultInstance() - : accessUrls_; + return accessUrls_ == null ? + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; } } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> getAccessUrlsFieldBuilder() { if (accessUrlsBuilder_ == null) { - accessUrlsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder>( - getAccessUrls(), getParentForChildren(), isClean()); + accessUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder>( + getAccessUrls(), + getParentForChildren(), + isClean()); accessUrls_ = null; } return accessUrlsBuilder_; @@ -7335,58 +6223,39 @@ public Builder clearAccessUrls() { 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -7402,17 +6271,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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(); @@ -7423,21 +6289,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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; } @@ -7449,15 +6311,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -7471,64 +6329,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -7536,58 +6378,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -7603,17 +6426,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -7624,21 +6444,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -7650,15 +6466,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -7672,64 +6484,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -7737,61 +6533,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -7807,18 +6584,15 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -7829,22 +6603,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -7856,16 +6626,12 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -7879,67 +6645,51 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -7947,61 +6697,42 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 16 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 16 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -8017,18 +6748,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.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(); @@ -8039,22 +6767,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.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; } @@ -8066,16 +6790,12 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -8089,87 +6809,72 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.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_; } - 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(); @@ -8181,30 +6886,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -8212,12 +6915,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -8225,17 +6927,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -8243,11 +6944,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -8255,66 +6957,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8324,12 +7029,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority) private static final com.google.cloud.security.privateca.v1.CertificateAuthority DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateAuthority(); } @@ -8338,16 +7043,16 @@ public static com.google.cloud.security.privateca.v1.CertificateAuthority getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateAuthority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateAuthority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateAuthority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8362,4 +7067,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateAuthority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java index d7f948ea..eccd6bc3 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java @@ -1,175 +1,114 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateAuthorityOrBuilder - extends +public interface CertificateAuthorityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * 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 [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType(); /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ com.google.cloud.security.privateca.v1.CertificateConfig getConfig(); /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** - * - * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** - * - * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -177,16 +116,11 @@ public interface CertificateAuthorityOrBuilder
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the keySpec field is set. */ boolean hasKeySpec(); /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -194,16 +128,11 @@ public interface CertificateAuthorityOrBuilder
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The keySpec. */ com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getKeySpec(); /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -211,123 +140,84 @@ public interface CertificateAuthorityOrBuilder
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder - getKeySpecOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder(); /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig(); /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); /** - * - * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tier. */ com.google.cloud.security.privateca.v1.CaPool.Tier getTier(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.security.privateca.v1.CertificateAuthority.State getState(); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -335,15 +225,12 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCaCertificates. */ - java.util.List getPemCaCertificatesList(); + java.util.List + getPemCaCertificatesList(); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -351,15 +238,11 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCaCertificates. */ int getPemCaCertificatesCount(); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -367,16 +250,12 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ java.lang.String getPemCaCertificates(int index); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -384,87 +263,63 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - com.google.protobuf.ByteString getPemCaCertificatesBytes(int index); + com.google.protobuf.ByteString + getPemCaCertificatesBytes(int index); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getCaCertificateDescriptionsList(); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions( - int index); + com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions(int index); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getCaCertificateDescriptionsCount(); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getCaCertificateDescriptionsOrBuilderList(); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder - getCaCertificateDescriptionsOrBuilder(int index); + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( + int index); /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -475,13 +330,10 @@ com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDe
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The gcsBucket. */ java.lang.String getGcsBucket(); /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -492,217 +344,156 @@ com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDe
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for gcsBucket. */ - com.google.protobuf.ByteString getGcsBucketBytes(); + com.google.protobuf.ByteString + getGcsBucketBytes(); /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accessUrls field is set. */ boolean hasAccessUrls(); /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accessUrls. */ com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getAccessUrls(); /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder - getAccessUrlsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -711,31 +502,30 @@ com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDe */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -744,18 +534,18 @@ com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDe */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java index 6220f433..366dab1b 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig] describes an X.509 certificate or CSR that is to be
  * created, as an alternative to using ASN.1.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig}
  */
-public final class CertificateConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateConfig)
     CertificateConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateConfig.newBuilder() to construct.
   private CertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CertificateConfig() {}
+  private CertificateConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,65 +53,52 @@ private CertificateConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder
-                  subBuilder = null;
-              if (subjectConfig_ != null) {
-                subBuilder = subjectConfig_.toBuilder();
-              }
-              subjectConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectConfig_);
-                subjectConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder subBuilder = null;
+            if (subjectConfig_ != null) {
+              subBuilder = subjectConfig_.toBuilder();
+            }
+            subjectConfig_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subjectConfig_);
+              subjectConfig_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
-              if (x509Config_ != null) {
-                subBuilder = x509Config_.toBuilder();
-              }
-              x509Config_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.X509Parameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(x509Config_);
-                x509Config_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
+            if (x509Config_ != null) {
+              subBuilder = x509Config_.toBuilder();
+            }
+            x509Config_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(x509Config_);
+              x509Config_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
-              if (publicKey_ != null) {
-                subBuilder = publicKey_.toBuilder();
-              }
-              publicKey_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publicKey_);
-                publicKey_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
+            if (publicKey_ != null) {
+              subBuilder = publicKey_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publicKey_);
+              publicKey_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -135,121 +106,88 @@ private CertificateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateConfig.class,
-            com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
   }
 
-  public interface SubjectConfigOrBuilder
-      extends
+  public interface SubjectConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subject field is set. */ boolean hasSubject(); /** - * - * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subject. */ com.google.cloud.security.privateca.v1.Subject getSubject(); /** - * - * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder(); /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The subjectAltName. */ com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName(); /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); } /** - * - * *
    * These values are used to create the distinguished name and subject
    * alternative name fields in an X.509 certificate.
@@ -257,29 +195,30 @@ public interface SubjectConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig}
    */
-  public static final class SubjectConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SubjectConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
       SubjectConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SubjectConfig.newBuilder() to construct.
     private SubjectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private SubjectConfig() {}
+    private SubjectConfig() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SubjectConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private SubjectConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -298,46 +237,39 @@ private SubjectConfig(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null;
-                if (subject_ != null) {
-                  subBuilder = subject_.toBuilder();
-                }
-                subject_ =
-                    input.readMessage(
-                        com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(subject_);
-                  subject_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null;
+              if (subject_ != null) {
+                subBuilder = subject_.toBuilder();
               }
-            case 18:
-              {
-                com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null;
-                if (subjectAltName_ != null) {
-                  subBuilder = subjectAltName_.toBuilder();
-                }
-                subjectAltName_ =
-                    input.readMessage(
-                        com.google.cloud.security.privateca.v1.SubjectAltNames.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(subjectAltName_);
-                  subjectAltName_ = subBuilder.buildPartial();
-                }
-
-                break;
+              subject_ = input.readMessage(com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subject_);
+                subject_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+
+              break;
+            }
+            case 18: {
+              com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null;
+              if (subjectAltName_ != null) {
+                subBuilder = subjectAltName_.toBuilder();
+              }
+              subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1.SubjectAltNames.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectAltName_);
+                subjectAltName_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -345,42 +277,35 @@ private SubjectConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class,
-              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder.class);
     }
 
     public static final int SUBJECT_FIELD_NUMBER = 1;
     private com.google.cloud.security.privateca.v1.Subject subject_;
     /**
-     *
-     *
      * 
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subject field is set. */ @java.lang.Override @@ -388,36 +313,25 @@ public boolean hasSubject() { return subject_ != null; } /** - * - * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Subject getSubject() { - return subject_ == null - ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; } /** - * - * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder() { @@ -427,16 +341,11 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_; /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -444,43 +353,30 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { return getSubjectAltName(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -492,7 +388,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subject_ != null) { output.writeMessage(1, getSubject()); } @@ -509,10 +406,12 @@ public int getSerializedSize() { size = 0; if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubject()); } if (subjectAltName_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubjectAltName()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSubjectAltName()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -522,22 +421,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.security.privateca.v1.CertificateConfig.SubjectConfig)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other = - (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) obj; + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other = (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) obj; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject().equals(other.getSubject())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; } if (hasSubjectAltName() != other.hasSubjectAltName()) return false; if (hasSubjectAltName()) { - if (!getSubjectAltName().equals(other.getSubjectAltName())) return false; + if (!getSubjectAltName() + .equals(other.getSubjectAltName())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -564,95 +463,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig 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.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - 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.security.privateca.v1.CertificateConfig.SubjectConfig 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.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -662,8 +553,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * These values are used to create the distinguished name and subject
      * alternative name fields in an X.509 certificate.
@@ -671,42 +560,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
         com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class,
-                com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder
-                    .class);
+                com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -726,22 +611,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
-          getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
-            .getDefaultInstance();
+      public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig build() {
-        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result =
-            buildPartial();
+        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -750,8 +632,7 @@ public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig bu
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig buildPartial() {
-        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result =
-            new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(this);
+        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result = new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(this);
         if (subjectBuilder_ == null) {
           result.subject_ = subject_;
         } else {
@@ -770,54 +651,46 @@ public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig bu
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateConfig.SubjectConfig) {
-          return mergeFrom(
-              (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) other);
+        if (other instanceof com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) {
+          return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other) {
-        if (other
-            == com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other) {
+        if (other == com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance()) return this;
         if (other.hasSubject()) {
           mergeSubject(other.getSubject());
         }
@@ -843,9 +716,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -857,61 +728,42 @@ public Builder mergeFrom(
 
       private com.google.cloud.security.privateca.v1.Subject subject_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.security.privateca.v1.Subject,
-              com.google.cloud.security.privateca.v1.Subject.Builder,
-              com.google.cloud.security.privateca.v1.SubjectOrBuilder>
-          subjectBuilder_;
+          com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> subjectBuilder_;
       /**
-       *
-       *
        * 
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subject. */ public com.google.cloud.security.privateca.v1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null - ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; } else { return subjectBuilder_.getMessage(); } } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value) { if (subjectBuilder_ == null) { @@ -927,16 +779,12 @@ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value) return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubject( com.google.cloud.security.privateca.v1.Subject.Builder builderForValue) { @@ -950,24 +798,18 @@ public Builder setSubject( return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value) { if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = - com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial(); } else { subject_ = value; } @@ -979,16 +821,12 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubject() { if (subjectBuilder_ == null) { @@ -1002,67 +840,51 @@ public Builder clearSubject() { return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.Subject.Builder getSubjectBuilder() { - + onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder() { if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null - ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? + com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; } } /** - * - * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Subject, - com.google.cloud.security.privateca.v1.Subject.Builder, - com.google.cloud.security.privateca.v1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Subject, - com.google.cloud.security.privateca.v1.Subject.Builder, - com.google.cloud.security.privateca.v1.SubjectOrBuilder>( - getSubject(), getParentForChildren(), isClean()); + subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder>( + getSubject(), + getParentForChildren(), + isClean()); subject_ = null; } return subjectBuilder_; @@ -1070,61 +892,41 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> - subjectAltNameBuilder_; + com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_; /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSubjectAltName( - com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder setSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1138,15 +940,11 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSubjectAltName( com.google.cloud.security.privateca.v1.SubjectAltNames.Builder builderForValue) { @@ -1160,24 +958,17 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSubjectAltName( - com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); } else { subjectAltName_ = value; } @@ -1189,15 +980,11 @@ public Builder mergeSubjectAltName( return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSubjectAltName() { if (subjectAltNameBuilder_ == null) { @@ -1211,71 +998,52 @@ public Builder clearSubjectAltName() { return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder - getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? + com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), getParentForChildren(), isClean()); + subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), + getParentForChildren(), + isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1288,33 +1056,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) - private static final com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1326,26 +1091,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SUBJECT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subjectConfig_; /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subjectConfig field is set. */ @java.lang.Override @@ -1353,58 +1113,40 @@ public boolean hasSubjectConfig() { return subjectConfig_ != null; } /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subjectConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getSubjectConfig() { - return subjectConfig_ == null - ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - .getDefaultInstance() - : subjectConfig_; + return subjectConfig_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; } /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder - getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { return getSubjectConfig(); } public static final int X509_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters x509Config_; /** - * - * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the x509Config field is set. */ @java.lang.Override @@ -1412,36 +1154,25 @@ public boolean hasX509Config() { return x509Config_ != null; } /** - * - * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The x509Config. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getX509Config() { - return x509Config_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : x509Config_; + return x509Config_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Config_; } /** - * - * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509ConfigOrBuilder() { @@ -1451,18 +1182,13 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509Con public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.PublicKey publicKey_; /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publicKey field is set. */ @java.lang.Override @@ -1470,38 +1196,27 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; } /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder() { @@ -1509,7 +1224,6 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1521,7 +1235,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subjectConfig_ != null) { output.writeMessage(1, getSubjectConfig()); } @@ -1541,13 +1256,16 @@ public int getSerializedSize() { size = 0; if (subjectConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubjectConfig()); } if (x509Config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getX509Config()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getX509Config()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPublicKey()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1557,25 +1275,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateConfig other = - (com.google.cloud.security.privateca.v1.CertificateConfig) obj; + com.google.cloud.security.privateca.v1.CertificateConfig other = (com.google.cloud.security.privateca.v1.CertificateConfig) obj; if (hasSubjectConfig() != other.hasSubjectConfig()) return false; if (hasSubjectConfig()) { - if (!getSubjectConfig().equals(other.getSubjectConfig())) return false; + if (!getSubjectConfig() + .equals(other.getSubjectConfig())) return false; } if (hasX509Config() != other.hasX509Config()) return false; if (hasX509Config()) { - if (!getX509Config().equals(other.getX509Config())) return false; + if (!getX509Config() + .equals(other.getX509Config())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1606,104 +1326,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateConfig 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.security.privateca.v1.CertificateConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig] describes an X.509 certificate or CSR that is to be
    * created, as an alternative to using ASN.1.
@@ -1711,23 +1423,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateConfig)
       com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateConfig.class,
-              com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder()
@@ -1735,15 +1445,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1769,9 +1480,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1790,8 +1501,7 @@ public com.google.cloud.security.privateca.v1.CertificateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateConfig result =
-          new com.google.cloud.security.privateca.v1.CertificateConfig(this);
+      com.google.cloud.security.privateca.v1.CertificateConfig result = new com.google.cloud.security.privateca.v1.CertificateConfig(this);
       if (subjectConfigBuilder_ == null) {
         result.subjectConfig_ = subjectConfig_;
       } else {
@@ -1815,39 +1525,38 @@ public com.google.cloud.security.privateca.v1.CertificateConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1855,8 +1564,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateConfig other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance()) return this;
       if (other.hasSubjectConfig()) {
         mergeSubjectConfig(other.getSubjectConfig());
       }
@@ -1885,8 +1593,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1898,66 +1605,44 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subjectConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig,
-            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder,
-            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder>
-        subjectConfigBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder> subjectConfigBuilder_;
     /**
-     *
-     *
      * 
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subjectConfig field is set. */ public boolean hasSubjectConfig() { return subjectConfigBuilder_ != null || subjectConfig_ != null; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subjectConfig. */ - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - getSubjectConfig() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getSubjectConfig() { if (subjectConfigBuilder_ == null) { - return subjectConfig_ == null - ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - .getDefaultInstance() - : subjectConfig_; + return subjectConfig_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; } else { return subjectConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSubjectConfig( - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { + public Builder setSubjectConfig(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1971,20 +1656,15 @@ public Builder setSubjectConfig( return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubjectConfig( - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder builderForValue) { if (subjectConfigBuilder_ == null) { subjectConfig_ = builderForValue.build(); onChanged(); @@ -1995,26 +1675,18 @@ public Builder setSubjectConfig( return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSubjectConfig( - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { + public Builder mergeSubjectConfig(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (subjectConfig_ != null) { subjectConfig_ = - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder( - subjectConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder(subjectConfig_).mergeFrom(value).buildPartial(); } else { subjectConfig_ = value; } @@ -2026,16 +1698,12 @@ public Builder mergeSubjectConfig( return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubjectConfig() { if (subjectConfigBuilder_ == null) { @@ -2049,70 +1717,51 @@ public Builder clearSubjectConfig() { return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder - getSubjectConfigBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder getSubjectConfigBuilder() { + onChanged(); return getSubjectConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder - getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { if (subjectConfigBuilder_ != null) { return subjectConfigBuilder_.getMessageOrBuilder(); } else { - return subjectConfig_ == null - ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig - .getDefaultInstance() - : subjectConfig_; + return subjectConfig_ == null ? + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; } } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder> + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder> getSubjectConfigFieldBuilder() { if (subjectConfigBuilder_ == null) { - subjectConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder>( - getSubjectConfig(), getParentForChildren(), isClean()); + subjectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder>( + getSubjectConfig(), + getParentForChildren(), + isClean()); subjectConfig_ = null; } return subjectConfigBuilder_; @@ -2120,61 +1769,42 @@ public Builder clearSubjectConfig() { private com.google.cloud.security.privateca.v1.X509Parameters x509Config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> - x509ConfigBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> x509ConfigBuilder_; /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the x509Config field is set. */ public boolean hasX509Config() { return x509ConfigBuilder_ != null || x509Config_ != null; } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The x509Config. */ public com.google.cloud.security.privateca.v1.X509Parameters getX509Config() { if (x509ConfigBuilder_ == null) { - return x509Config_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : x509Config_; + return x509Config_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Config_; } else { return x509ConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setX509Config(com.google.cloud.security.privateca.v1.X509Parameters value) { if (x509ConfigBuilder_ == null) { @@ -2190,16 +1820,12 @@ public Builder setX509Config(com.google.cloud.security.privateca.v1.X509Paramete return this; } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setX509Config( com.google.cloud.security.privateca.v1.X509Parameters.Builder builderForValue) { @@ -2213,24 +1839,18 @@ public Builder setX509Config( return this; } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeX509Config(com.google.cloud.security.privateca.v1.X509Parameters value) { if (x509ConfigBuilder_ == null) { if (x509Config_ != null) { x509Config_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Config_).mergeFrom(value).buildPartial(); } else { x509Config_ = value; } @@ -2242,16 +1862,12 @@ public Builder mergeX509Config(com.google.cloud.security.privateca.v1.X509Parame return this; } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearX509Config() { if (x509ConfigBuilder_ == null) { @@ -2265,67 +1881,51 @@ public Builder clearX509Config() { return this; } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.X509Parameters.Builder getX509ConfigBuilder() { - + onChanged(); return getX509ConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509ConfigOrBuilder() { if (x509ConfigBuilder_ != null) { return x509ConfigBuilder_.getMessageOrBuilder(); } else { - return x509Config_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : x509Config_; + return x509Config_ == null ? + com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Config_; } } /** - * - * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getX509ConfigFieldBuilder() { if (x509ConfigBuilder_ == null) { - x509ConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getX509Config(), getParentForChildren(), isClean()); + x509ConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getX509Config(), + getParentForChildren(), + isClean()); x509Config_ = null; } return x509ConfigBuilder_; @@ -2333,64 +1933,45 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509Con private com.google.cloud.security.privateca.v1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, - com.google.cloud.security.privateca.v1.PublicKey.Builder, - com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> - publicKeyBuilder_; + com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> publicKeyBuilder_; /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The publicKey. */ public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKey(com.google.cloud.security.privateca.v1.PublicKey value) { if (publicKeyBuilder_ == null) { @@ -2406,17 +1987,13 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1.PublicKey val return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKey( com.google.cloud.security.privateca.v1.PublicKey.Builder builderForValue) { @@ -2430,25 +2007,19 @@ public Builder setPublicKey( return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey value) { if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); } else { publicKey_ = value; } @@ -2460,17 +2031,13 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey v return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPublicKey() { if (publicKeyBuilder_ == null) { @@ -2484,77 +2051,61 @@ public Builder clearPublicKey() { return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder() { if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? + com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; } } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, - com.google.cloud.security.privateca.v1.PublicKey.Builder, - com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, - com.google.cloud.security.privateca.v1.PublicKey.Builder, - com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( - getPublicKey(), getParentForChildren(), isClean()); + publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( + getPublicKey(), + getParentForChildren(), + isClean()); publicKey_ = null; } return publicKeyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2564,12 +2115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateConfig) private static final com.google.cloud.security.privateca.v1.CertificateConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateConfig(); } @@ -2578,16 +2129,16 @@ public static com.google.cloud.security.privateca.v1.CertificateConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2602,4 +2153,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java similarity index 60% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java index 3e676a18..c8d58f8d 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java @@ -1,161 +1,102 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateConfigOrBuilder - extends +public interface CertificateConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subjectConfig field is set. */ boolean hasSubjectConfig(); /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subjectConfig. */ com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getSubjectConfig(); /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder - getSubjectConfigOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder(); /** - * - * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the x509Config field is set. */ boolean hasX509Config(); /** - * - * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The x509Config. */ com.google.cloud.security.privateca.v1.X509Parameters getX509Config(); /** - * - * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509ConfigOrBuilder(); /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The publicKey. */ com.google.cloud.security.privateca.v1.PublicKey getPublicKey(); /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java index 450a2e4c..186a61bb 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription] describes an X.509 certificate or CSR that has
  * been issued, as an alternative to using ASN.1 / X.509.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription}
  */
-public final class CertificateDescription extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateDescription extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription)
     CertificateDescriptionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateDescription.newBuilder() to construct.
   private CertificateDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateDescription() {
     crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -45,15 +27,16 @@ private CertificateDescription() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateDescription();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateDescription(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,142 +56,109 @@ private CertificateDescription(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-                      .Builder
-                  subBuilder = null;
-              if (subjectDescription_ != null) {
-                subBuilder = subjectDescription_.toBuilder();
-              }
-              subjectDescription_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateDescription
-                          .SubjectDescription.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectDescription_);
-                subjectDescription_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder subBuilder = null;
+            if (subjectDescription_ != null) {
+              subBuilder = subjectDescription_.toBuilder();
+            }
+            subjectDescription_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subjectDescription_);
+              subjectDescription_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
+            if (x509Description_ != null) {
+              subBuilder = x509Description_.toBuilder();
+            }
+            x509Description_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(x509Description_);
+              x509Description_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
-              if (x509Description_ != null) {
-                subBuilder = x509Description_.toBuilder();
-              }
-              x509Description_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.X509Parameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(x509Description_);
-                x509Description_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
+            if (publicKey_ != null) {
+              subBuilder = publicKey_.toBuilder();
+            }
+            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publicKey_);
+              publicKey_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
-              if (publicKey_ != null) {
-                subBuilder = publicKey_.toBuilder();
-              }
-              publicKey_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publicKey_);
-                publicKey_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder subBuilder = null;
+            if (subjectKeyId_ != null) {
+              subBuilder = subjectKeyId_.toBuilder();
+            }
+            subjectKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subjectKeyId_);
+              subjectKeyId_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder
-                  subBuilder = null;
-              if (subjectKeyId_ != null) {
-                subBuilder = subjectKeyId_.toBuilder();
-              }
-              subjectKeyId_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectKeyId_);
-                subjectKeyId_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 42: {
+            com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder subBuilder = null;
+            if (authorityKeyId_ != null) {
+              subBuilder = authorityKeyId_.toBuilder();
+            }
+            authorityKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(authorityKeyId_);
+              authorityKeyId_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder
-                  subBuilder = null;
-              if (authorityKeyId_ != null) {
-                subBuilder = authorityKeyId_.toBuilder();
-              }
-              authorityKeyId_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(authorityKeyId_);
-                authorityKeyId_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              crlDistributionPoints_.add(s);
-              break;
+            crlDistributionPoints_.add(s);
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              aiaIssuingCertificateUrls_.add(s);
-              break;
+            aiaIssuingCertificateUrls_.add(s);
+            break;
+          }
+          case 66: {
+            com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder subBuilder = null;
+            if (certFingerprint_ != null) {
+              subBuilder = certFingerprint_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint
-                      .Builder
-                  subBuilder = null;
-              if (certFingerprint_ != null) {
-                subBuilder = certFingerprint_.toBuilder();
-              }
-              certFingerprint_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateDescription
-                          .CertificateFingerprint.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certFingerprint_);
-                certFingerprint_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certFingerprint_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certFingerprint_);
+              certFingerprint_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -216,7 +166,8 @@ private CertificateDescription(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         crlDistributionPoints_ = crlDistributionPoints_.getUnmodifiableView();
@@ -228,56 +179,44 @@ private CertificateDescription(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateDescription.class,
-            com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
   }
 
-  public interface SubjectDescriptionOrBuilder
-      extends
+  public interface SubjectDescriptionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; - * * @return Whether the subject field is set. */ boolean hasSubject(); /** - * - * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; - * * @return The subject. */ com.google.cloud.security.privateca.v1.Subject getSubject(); /** - * - * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
@@ -288,32 +227,24 @@ public interface SubjectDescriptionOrBuilder
     com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder();
 
     /**
-     *
-     *
      * 
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; - * * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; - * * @return The subjectAltName. */ com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName(); /** - * - * *
      * The subject alternative name fields.
      * 
@@ -323,57 +254,44 @@ public interface SubjectDescriptionOrBuilder com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; - * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; - * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString getHexSerialNumberBytes(); + com.google.protobuf.ByteString + getHexSerialNumberBytes(); /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; - * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; - * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
@@ -383,32 +301,24 @@ public interface SubjectDescriptionOrBuilder com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** - * - * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; - * * @return Whether the notBeforeTime field is set. */ boolean hasNotBeforeTime(); /** - * - * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; - * * @return The notBeforeTime. */ com.google.protobuf.Timestamp getNotBeforeTime(); /** - * - * *
      * The time at which the certificate becomes valid.
      * 
@@ -418,8 +328,6 @@ public interface SubjectDescriptionOrBuilder com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder(); /** - * - * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -428,13 +336,10 @@ public interface SubjectDescriptionOrBuilder
      * 
* * .google.protobuf.Timestamp not_after_time = 6; - * * @return Whether the notAfterTime field is set. */ boolean hasNotAfterTime(); /** - * - * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -443,13 +348,10 @@ public interface SubjectDescriptionOrBuilder
      * 
* * .google.protobuf.Timestamp not_after_time = 6; - * * @return The notAfterTime. */ com.google.protobuf.Timestamp getNotAfterTime(); /** - * - * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -462,41 +364,38 @@ public interface SubjectDescriptionOrBuilder
     com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder();
   }
   /**
-   *
-   *
    * 
    * These values describe fields in an issued X.509 certificate such as the
    * distinguished name, subject alternative names, serial number, and lifetime.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} */ - public static final class SubjectDescription extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SubjectDescription extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) SubjectDescriptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubjectDescription.newBuilder() to construct. private SubjectDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubjectDescription() { hexSerialNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubjectDescription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubjectDescription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -515,98 +414,84 @@ private SubjectDescription( case 0: done = true; break; - case 10: - { - com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null; - if (subject_ != null) { - subBuilder = subject_.toBuilder(); - } - subject_ = - input.readMessage( - com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subject_); - subject_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null; + if (subject_ != null) { + subBuilder = subject_.toBuilder(); + } + subject_ = input.readMessage(com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subject_); + subject_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null; + if (subjectAltName_ != null) { + subBuilder = subjectAltName_.toBuilder(); + } + subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1.SubjectAltNames.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subjectAltName_); + subjectAltName_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + hexSerialNumber_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (lifetime_ != null) { + subBuilder = lifetime_.toBuilder(); } - case 18: - { - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null; - if (subjectAltName_ != null) { - subBuilder = subjectAltName_.toBuilder(); - } - subjectAltName_ = - input.readMessage( - com.google.cloud.security.privateca.v1.SubjectAltNames.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subjectAltName_); - subjectAltName_ = subBuilder.buildPartial(); - } - - break; + lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lifetime_); + lifetime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - hexSerialNumber_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notBeforeTime_ != null) { + subBuilder = notBeforeTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (lifetime_ != null) { - subBuilder = lifetime_.toBuilder(); - } - lifetime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lifetime_); - lifetime_ = subBuilder.buildPartial(); - } - - break; + notBeforeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notBeforeTime_); + notBeforeTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notBeforeTime_ != null) { - subBuilder = notBeforeTime_.toBuilder(); - } - notBeforeTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notBeforeTime_); - notBeforeTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notAfterTime_ != null) { + subBuilder = notAfterTime_.toBuilder(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notAfterTime_ != null) { - subBuilder = notAfterTime_.toBuilder(); - } - notAfterTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notAfterTime_); - notAfterTime_ = subBuilder.buildPartial(); - } - - break; + notAfterTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notAfterTime_); + notAfterTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,42 +499,35 @@ private SubjectDescription( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .class, - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder.class); } public static final int SUBJECT_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.Subject subject_; /** - * - * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; - * * @return Whether the subject field is set. */ @java.lang.Override @@ -657,26 +535,19 @@ public boolean hasSubject() { return subject_ != null; } /** - * - * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; - * * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Subject getSubject() { - return subject_ == null - ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; } /** - * - * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
@@ -692,14 +563,11 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
     public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 2;
     private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_;
     /**
-     *
-     *
      * 
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; - * * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -707,25 +575,18 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; - * * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } /** - * - * *
      * The subject alternative name fields.
      * 
@@ -733,22 +594,18 @@ public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName( * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { return getSubjectAltName(); } public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 3; private volatile java.lang.Object hexSerialNumber_; /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; - * * @return The hexSerialNumber. */ @java.lang.Override @@ -757,29 +614,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; - * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -790,14 +647,11 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { public static final int LIFETIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration lifetime_; /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; - * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -805,14 +659,11 @@ public boolean hasLifetime() { return lifetime_ != null; } /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; - * * @return The lifetime. */ @java.lang.Override @@ -820,8 +671,6 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
@@ -836,14 +685,11 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { public static final int NOT_BEFORE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp notBeforeTime_; /** - * - * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; - * * @return Whether the notBeforeTime field is set. */ @java.lang.Override @@ -851,25 +697,18 @@ public boolean hasNotBeforeTime() { return notBeforeTime_ != null; } /** - * - * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; - * * @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_; } /** - * - * *
      * The time at which the certificate becomes valid.
      * 
@@ -884,8 +723,6 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { public static final int NOT_AFTER_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp notAfterTime_; /** - * - * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -894,7 +731,6 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp not_after_time = 6; - * * @return Whether the notAfterTime field is set. */ @java.lang.Override @@ -902,8 +738,6 @@ public boolean hasNotAfterTime() { return notAfterTime_ != null; } /** - * - * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -912,18 +746,13 @@ public boolean hasNotAfterTime() {
      * 
* * .google.protobuf.Timestamp not_after_time = 6; - * * @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_; } /** - * - * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -939,7 +768,6 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -951,7 +779,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (subject_ != null) {
         output.writeMessage(1, getSubject());
       }
@@ -980,22 +809,27 @@ public int getSerializedSize() {
 
       size = 0;
       if (subject_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getSubject());
       }
       if (subjectAltName_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubjectAltName());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getSubjectAltName());
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hexSerialNumber_);
       }
       if (lifetime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLifetime());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, getLifetime());
       }
       if (notBeforeTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getNotBeforeTime());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, getNotBeforeTime());
       }
       if (notAfterTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotAfterTime());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, getNotAfterTime());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1005,36 +839,39 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
-      if (!(obj
-          instanceof
-          com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)) {
+      if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)) {
         return super.equals(obj);
       }
-      com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other =
-          (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) obj;
+      com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other = (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) obj;
 
       if (hasSubject() != other.hasSubject()) return false;
       if (hasSubject()) {
-        if (!getSubject().equals(other.getSubject())) return false;
+        if (!getSubject()
+            .equals(other.getSubject())) return false;
       }
       if (hasSubjectAltName() != other.hasSubjectAltName()) return false;
       if (hasSubjectAltName()) {
-        if (!getSubjectAltName().equals(other.getSubjectAltName())) return false;
+        if (!getSubjectAltName()
+            .equals(other.getSubjectAltName())) return false;
       }
-      if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false;
+      if (!getHexSerialNumber()
+          .equals(other.getHexSerialNumber())) return false;
       if (hasLifetime() != other.hasLifetime()) return false;
       if (hasLifetime()) {
-        if (!getLifetime().equals(other.getLifetime())) return false;
+        if (!getLifetime()
+            .equals(other.getLifetime())) 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 (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -1074,102 +911,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        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.security.privateca.v1.CertificateDescription.SubjectDescription 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.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-            prototype) {
+    public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1179,53 +1002,45 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * These values describe fields in an issued X.509 certificate such as the
      * distinguished name, subject alternative names, serial number, and lifetime.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .class, - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1265,23 +1080,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - build() { - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = - buildPartial(); + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription build() { + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1289,11 +1100,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - buildPartial() { - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = - new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription( - this); + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription buildPartial() { + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription(this); if (subjectBuilder_ == null) { result.subject_ = subject_; } else { @@ -1328,56 +1136,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateDescription.SubjectDescription) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) - other); + if (other instanceof com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) { + return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other) { - if (other - == com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other) { + if (other == com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance()) return this; if (other.hasSubject()) { mergeSubject(other.getSubject()); } @@ -1412,14 +1210,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1431,49 +1226,36 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1.Subject subject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Subject, - com.google.cloud.security.privateca.v1.Subject.Builder, - com.google.cloud.security.privateca.v1.SubjectOrBuilder> - subjectBuilder_; + com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> subjectBuilder_; /** - * - * *
        * Contains distinguished name fields such as the common name, location and
        * / organization.
        * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; - * * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** - * - * *
        * Contains distinguished name fields such as the common name, location and
        * / organization.
        * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; - * * @return The subject. */ public com.google.cloud.security.privateca.v1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null - ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; } else { return subjectBuilder_.getMessage(); } } /** - * - * *
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1495,8 +1277,6 @@ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1516,8 +1296,6 @@ public Builder setSubject(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1529,9 +1307,7 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value
         if (subjectBuilder_ == null) {
           if (subject_ != null) {
             subject_ =
-                com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial();
           } else {
             subject_ = value;
           }
@@ -1543,8 +1319,6 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1564,8 +1338,6 @@ public Builder clearSubject() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1574,13 +1346,11 @@ public Builder clearSubject() {
        * .google.cloud.security.privateca.v1.Subject subject = 1;
        */
       public com.google.cloud.security.privateca.v1.Subject.Builder getSubjectBuilder() {
-
+        
         onChanged();
         return getSubjectFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1592,14 +1362,11 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
         if (subjectBuilder_ != null) {
           return subjectBuilder_.getMessageOrBuilder();
         } else {
-          return subject_ == null
-              ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance()
-              : subject_;
+          return subject_ == null ?
+              com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_;
         }
       }
       /**
-       *
-       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1608,17 +1375,14 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
        * .google.cloud.security.privateca.v1.Subject subject = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.security.privateca.v1.Subject,
-              com.google.cloud.security.privateca.v1.Subject.Builder,
-              com.google.cloud.security.privateca.v1.SubjectOrBuilder>
+          com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> 
           getSubjectFieldBuilder() {
         if (subjectBuilder_ == null) {
-          subjectBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.security.privateca.v1.Subject,
-                  com.google.cloud.security.privateca.v1.Subject.Builder,
-                  com.google.cloud.security.privateca.v1.SubjectOrBuilder>(
-                  getSubject(), getParentForChildren(), isClean());
+          subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder>(
+                  getSubject(),
+                  getParentForChildren(),
+                  isClean());
           subject_ = null;
         }
         return subjectBuilder_;
@@ -1626,55 +1390,41 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
 
       private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.security.privateca.v1.SubjectAltNames,
-              com.google.cloud.security.privateca.v1.SubjectAltNames.Builder,
-              com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>
-          subjectAltNameBuilder_;
+          com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_;
       /**
-       *
-       *
        * 
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; - * * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; - * * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public Builder setSubjectAltName( - com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder setSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1688,8 +1438,6 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * The subject alternative name fields.
        * 
@@ -1708,22 +1456,17 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public Builder mergeSubjectAltName( - com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); } else { subjectAltName_ = value; } @@ -1735,8 +1478,6 @@ public Builder mergeSubjectAltName( return this; } /** - * - * *
        * The subject alternative name fields.
        * 
@@ -1755,42 +1496,33 @@ public Builder clearSubjectAltName() { return this; } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder - getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? + com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } } /** - * - * *
        * The subject alternative name fields.
        * 
@@ -1798,17 +1530,14 @@ public Builder clearSubjectAltName() { * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), getParentForChildren(), isClean()); + subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), + getParentForChildren(), + isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; @@ -1816,20 +1545,18 @@ public Builder clearSubjectAltName() { private java.lang.Object hexSerialNumber_ = ""; /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; - * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1838,21 +1565,20 @@ public java.lang.String getHexSerialNumber() { } } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; - * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1860,61 +1586,54 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { } } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; - * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber(java.lang.String value) { + public Builder setHexSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; - * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; - * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1922,33 +1641,24 @@ public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - lifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
* * .google.protobuf.Duration lifetime = 4; - * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
* * .google.protobuf.Duration lifetime = 4; - * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -1959,8 +1669,6 @@ public com.google.protobuf.Duration getLifetime() { } } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1981,15 +1689,14 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
* * .google.protobuf.Duration lifetime = 4; */ - public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -2000,8 +1707,6 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -2012,7 +1717,7 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -2024,8 +1729,6 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -2044,8 +1747,6 @@ public Builder clearLifetime() { return this; } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -2053,13 +1754,11 @@ public Builder clearLifetime() { * .google.protobuf.Duration lifetime = 4; */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -2070,12 +1769,11 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -2083,17 +1781,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { * .google.protobuf.Duration lifetime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLifetime(), getParentForChildren(), isClean()); + lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getLifetime(), + getParentForChildren(), + isClean()); lifetime_ = null; } return lifetimeBuilder_; @@ -2101,47 +1796,34 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { 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_; /** - * - * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 5; - * * @return Whether the notBeforeTime field is set. */ public boolean hasNotBeforeTime() { return notBeforeTimeBuilder_ != null || notBeforeTime_ != null; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 5; - * * @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(); } } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2162,15 +1844,14 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 5; */ - 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(); @@ -2181,8 +1862,6 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2193,9 +1872,7 @@ 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; } @@ -2207,8 +1884,6 @@ public Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2227,8 +1902,6 @@ public Builder clearNotBeforeTime() { return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2236,13 +1909,11 @@ public Builder clearNotBeforeTime() { * .google.protobuf.Timestamp not_before_time = 5; */ public com.google.protobuf.Timestamp.Builder getNotBeforeTimeBuilder() { - + onChanged(); return getNotBeforeTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2253,14 +1924,11 @@ 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_; } } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2268,17 +1936,14 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { * .google.protobuf.Timestamp not_before_time = 5; */ 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_; @@ -2286,13 +1951,8 @@ 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_; /** - * - * *
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2301,15 +1961,12 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() {
        * 
* * .google.protobuf.Timestamp not_after_time = 6; - * * @return Whether the notAfterTime field is set. */ public boolean hasNotAfterTime() { return notAfterTimeBuilder_ != null || notAfterTime_ != null; } /** - * - * *
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2318,21 +1975,16 @@ public boolean hasNotAfterTime() {
        * 
* * .google.protobuf.Timestamp not_after_time = 6; - * * @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(); } } /** - * - * *
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2356,8 +2008,6 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2367,7 +2017,8 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp not_after_time = 6;
        */
-      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();
@@ -2378,8 +2029,6 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2393,9 +2042,7 @@ 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;
           }
@@ -2407,8 +2054,6 @@ public Builder mergeNotAfterTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2430,8 +2075,6 @@ public Builder clearNotAfterTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2442,13 +2085,11 @@ public Builder clearNotAfterTime() {
        * .google.protobuf.Timestamp not_after_time = 6;
        */
       public com.google.protobuf.Timestamp.Builder getNotAfterTimeBuilder() {
-
+        
         onChanged();
         return getNotAfterTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2462,14 +2103,11 @@ 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_;
         }
       }
       /**
-       *
-       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2480,22 +2118,18 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() {
        * .google.protobuf.Timestamp not_after_time = 6;
        */
       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_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2508,34 +2142,30 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)
-    private static final com.google.cloud.security.privateca.v1.CertificateDescription
-            .SubjectDescription
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription();
+      DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription();
     }
 
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        getDefaultInstance() {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public SubjectDescription parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new SubjectDescription(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public SubjectDescription parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new SubjectDescription(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2547,47 +2177,39 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface KeyIdOrBuilder
-      extends
+  public interface KeyIdOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription.KeyId)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyId. */ java.lang.String getKeyId(); /** - * - * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyId. */ - com.google.protobuf.ByteString getKeyIdBytes(); + com.google.protobuf.ByteString + getKeyIdBytes(); } /** - * - * *
    * A KeyId identifies a specific public key, usually by hashing the public
    * key.
@@ -2595,31 +2217,31 @@ public interface KeyIdOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.KeyId}
    */
-  public static final class KeyId extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class KeyId extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription.KeyId)
       KeyIdOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use KeyId.newBuilder() to construct.
     private KeyId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private KeyId() {
       keyId_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new KeyId();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private KeyId(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2638,20 +2260,19 @@ private KeyId(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                keyId_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              keyId_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2659,40 +2280,35 @@ private KeyId(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class,
-              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
     }
 
     public static final int KEY_ID_FIELD_NUMBER = 1;
     private volatile java.lang.Object keyId_;
     /**
-     *
-     *
      * 
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyId. */ @java.lang.Override @@ -2701,30 +2317,30 @@ public java.lang.String getKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** - * - * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyId. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyIdBytes() { + public com.google.protobuf.ByteString + getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyId_ = b; return b; } else { @@ -2733,7 +2349,6 @@ public com.google.protobuf.ByteString getKeyIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2745,7 +2360,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); } @@ -2769,15 +2385,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.security.privateca.v1.CertificateDescription.KeyId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other = - (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) obj; + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other = (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) obj; - if (!getKeyId().equals(other.getKeyId())) return false; + if (!getKeyId() + .equals(other.getKeyId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2797,95 +2413,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId 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.security.privateca.v1.CertificateDescription.KeyId parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - 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.security.privateca.v1.CertificateDescription.KeyId 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.security.privateca.v1.CertificateDescription.KeyId parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2895,8 +2503,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A KeyId identifies a specific public key, usually by hashing the public
      * key.
@@ -2904,41 +2510,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.KeyId}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription.KeyId)
         com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class,
-                com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
+                com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2948,16 +2551,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId
-          getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1.CertificateDescription.KeyId
-            .getDefaultInstance();
+      public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -2971,8 +2572,7 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId build
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId buildPartial() {
-        com.google.cloud.security.privateca.v1.CertificateDescription.KeyId result =
-            new com.google.cloud.security.privateca.v1.CertificateDescription.KeyId(this);
+        com.google.cloud.security.privateca.v1.CertificateDescription.KeyId result = new com.google.cloud.security.privateca.v1.CertificateDescription.KeyId(this);
         result.keyId_ = keyId_;
         onBuilt();
         return result;
@@ -2982,53 +2582,46 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId build
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateDescription.KeyId) {
-          return mergeFrom(
-              (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) other);
+          return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription.KeyId)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other) {
-        if (other
-            == com.google.cloud.security.privateca.v1.CertificateDescription.KeyId
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other) {
+        if (other == com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance()) return this;
         if (!other.getKeyId().isEmpty()) {
           keyId_ = other.keyId_;
           onChanged();
@@ -3052,9 +2645,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3066,21 +2657,19 @@ public Builder mergeFrom(
 
       private java.lang.Object keyId_ = "";
       /**
-       *
-       *
        * 
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; @@ -3089,22 +2678,21 @@ public java.lang.String getKeyId() { } } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyId. */ - public com.google.protobuf.ByteString getKeyIdBytes() { + public com.google.protobuf.ByteString + getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyId_ = b; return b; } else { @@ -3112,69 +2700,61 @@ public com.google.protobuf.ByteString getKeyIdBytes() { } } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The keyId to set. * @return This builder for chaining. */ - public Builder setKeyId(java.lang.String value) { + public Builder setKeyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyId_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKeyId() { - + keyId_ = getDefaultInstance().getKeyId(); onChanged(); return this; } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for keyId to set. * @return This builder for chaining. */ - public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { + public Builder setKeyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3187,32 +2767,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription.KeyId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription.KeyId) - private static final com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateDescription.KeyId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription.KeyId(); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3224,77 +2802,68 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CertificateFingerprintOrBuilder - extends + public interface CertificateFingerprintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The sha256Hash. */ java.lang.String getSha256Hash(); /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The bytes for sha256Hash. */ - com.google.protobuf.ByteString getSha256HashBytes(); + com.google.protobuf.ByteString + getSha256HashBytes(); } /** - * - * *
    * A group of fingerprints for the x509 certificate.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} */ - public static final class CertificateFingerprint extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CertificateFingerprint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) CertificateFingerprintOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertificateFingerprint.newBuilder() to construct. private CertificateFingerprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CertificateFingerprint() { sha256Hash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CertificateFingerprint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CertificateFingerprint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3313,20 +2882,19 @@ private CertificateFingerprint( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sha256Hash_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sha256Hash_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3334,41 +2902,34 @@ private CertificateFingerprint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .class, - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder.class); } public static final int SHA256_HASH_FIELD_NUMBER = 1; private volatile java.lang.Object sha256Hash_; /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The sha256Hash. */ @java.lang.Override @@ -3377,29 +2938,29 @@ public java.lang.String getSha256Hash() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; } } /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The bytes for sha256Hash. */ @java.lang.Override - public com.google.protobuf.ByteString getSha256HashBytes() { + public com.google.protobuf.ByteString + getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -3408,7 +2969,6 @@ public com.google.protobuf.ByteString getSha256HashBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3420,7 +2980,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256Hash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sha256Hash_); } @@ -3444,18 +3005,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.security.privateca.v1.CertificateDescription.CertificateFingerprint)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint other = - (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - obj; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint other = (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) obj; - if (!getSha256Hash().equals(other.getSha256Hash())) return false; + if (!getSha256Hash() + .equals(other.getSha256Hash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3474,114 +3032,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - 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.security.privateca.v1.CertificateDescription.CertificateFingerprint 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.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3591,53 +3123,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A group of fingerprints for the x509 certificate.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .class, - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3647,23 +3170,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - build() { - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - result = buildPartial(); + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint build() { + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3671,12 +3190,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - buildPartial() { - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - result = - new com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint(this); + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint buildPartial() { + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint result = new com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint(this); result.sha256Hash_ = sha256Hash_; onBuilt(); return result; @@ -3686,57 +3201,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateDescription.CertificateFingerprint) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - other); + if (other instanceof com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) { + return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - other) { - if (other - == com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint other) { + if (other == com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance()) return this; if (!other.getSha256Hash().isEmpty()) { sha256Hash_ = other.sha256Hash_; onChanged(); @@ -3756,14 +3260,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3775,20 +3276,18 @@ public Builder mergeFrom( private java.lang.Object sha256Hash_ = ""; /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @return The sha256Hash. */ public java.lang.String getSha256Hash() { java.lang.Object ref = sha256Hash_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; @@ -3797,21 +3296,20 @@ public java.lang.String getSha256Hash() { } } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @return The bytes for sha256Hash. */ - public com.google.protobuf.ByteString getSha256HashBytes() { + public com.google.protobuf.ByteString + getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -3819,66 +3317,58 @@ public com.google.protobuf.ByteString getSha256HashBytes() { } } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @param value The sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256Hash(java.lang.String value) { + public Builder setSha256Hash( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256Hash_ = value; onChanged(); return this; } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @return This builder for chaining. */ public Builder clearSha256Hash() { - + sha256Hash_ = getDefaultInstance().getSha256Hash(); onChanged(); return this; } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @param value The bytes for sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256HashBytes(com.google.protobuf.ByteString value) { + public Builder setSha256HashBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256Hash_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3891,36 +3381,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - private static final com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint(); } - public static com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateFingerprint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateFingerprint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateFingerprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateFingerprint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3932,27 +3416,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - subjectDescription_; + private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subjectDescription_; /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; * @return Whether the subjectDescription field is set. */ @java.lang.Override @@ -3960,56 +3438,39 @@ public boolean hasSubjectDescription() { return subjectDescription_ != null; } /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; * @return The subjectDescription. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - getSubjectDescription() { - return subjectDescription_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .getDefaultInstance() - : subjectDescription_; + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getSubjectDescription() { + return subjectDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; } /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder - getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { return getSubjectDescription(); } public static final int X509_DESCRIPTION_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters x509Description_; /** - * - * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; - * * @return Whether the x509Description field is set. */ @java.lang.Override @@ -4017,25 +3478,18 @@ public boolean hasX509Description() { return x509Description_ != null; } /** - * - * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; - * * @return The x509Description. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getX509Description() { - return x509Description_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : x509Description_; + return x509Description_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Description_; } /** - * - * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
@@ -4043,22 +3497,18 @@ public com.google.cloud.security.privateca.v1.X509Parameters getX509Description( * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder - getX509DescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder() { return getX509Description(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.PublicKey publicKey_; /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; - * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -4066,25 +3516,18 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; - * * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; } /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -4099,16 +3542,12 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB public static final int SUBJECT_KEY_ID_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId subjectKeyId_; /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; * @return Whether the subjectKeyId field is set. */ @java.lang.Override @@ -4116,54 +3555,40 @@ public boolean hasSubjectKeyId() { return subjectKeyId_ != null; } /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; * @return The subjectKeyId. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId() { - return subjectKeyId_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() - : subjectKeyId_; + return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; } /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder - getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { return getSubjectKeyId(); } public static final int AUTHORITY_KEY_ID_FIELD_NUMBER = 5; private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId authorityKeyId_; /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; * @return Whether the authorityKeyId field is set. */ @java.lang.Override @@ -4171,46 +3596,34 @@ public boolean hasAuthorityKeyId() { return authorityKeyId_ != null; } /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; * @return The authorityKeyId. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId() { - return authorityKeyId_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() - : authorityKeyId_; + return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; } /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder - getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { return getAuthorityKeyId(); } public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList crlDistributionPoints_; /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4218,15 +3631,13 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAu
    * 
* * repeated string crl_distribution_points = 6; - * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList + getCrlDistributionPointsList() { return crlDistributionPoints_; } /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4234,15 +3645,12 @@ public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() {
    * 
* * repeated string crl_distribution_points = 6; - * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4250,7 +3658,6 @@ public int getCrlDistributionPointsCount() {
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -4258,8 +3665,6 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4267,56 +3672,48 @@ public java.lang.String getCrlDistributionPoints(int index) {
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString + getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_; /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList + getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_; } /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -4324,36 +3721,28 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString + getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } public static final int CERT_FINGERPRINT_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - certFingerprint_; + private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint certFingerprint_; /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return Whether the certFingerprint field is set. */ @java.lang.Override @@ -4361,46 +3750,30 @@ public boolean hasCertFingerprint() { return certFingerprint_ != null; } /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return The certFingerprint. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - getCertFingerprint() { - return certFingerprint_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .getDefaultInstance() - : certFingerprint_; + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getCertFingerprint() { + return certFingerprint_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; } /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprintOrBuilder - getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { return getCertFingerprint(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4412,7 +3785,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subjectDescription_ != null) { output.writeMessage(1, getSubjectDescription()); } @@ -4429,12 +3803,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(5, getAuthorityKeyId()); } for (int i = 0; i < crlDistributionPoints_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 6, crlDistributionPoints_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, crlDistributionPoints_.getRaw(i)); } for (int i = 0; i < aiaIssuingCertificateUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 7, aiaIssuingCertificateUrls_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, aiaIssuingCertificateUrls_.getRaw(i)); } if (certFingerprint_ != null) { output.writeMessage(8, getCertFingerprint()); @@ -4449,19 +3821,24 @@ public int getSerializedSize() { size = 0; if (subjectDescription_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectDescription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubjectDescription()); } if (x509Description_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getX509Description()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getX509Description()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPublicKey()); } if (subjectKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubjectKeyId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSubjectKeyId()); } if (authorityKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorityKeyId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthorityKeyId()); } { int dataSize = 0; @@ -4480,7 +3857,8 @@ public int getSerializedSize() { size += 1 * getAiaIssuingCertificateUrlsList().size(); } if (certFingerprint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCertFingerprint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCertFingerprint()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4490,40 +3868,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateDescription)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateDescription other = - (com.google.cloud.security.privateca.v1.CertificateDescription) obj; + com.google.cloud.security.privateca.v1.CertificateDescription other = (com.google.cloud.security.privateca.v1.CertificateDescription) obj; if (hasSubjectDescription() != other.hasSubjectDescription()) return false; if (hasSubjectDescription()) { - if (!getSubjectDescription().equals(other.getSubjectDescription())) return false; + if (!getSubjectDescription() + .equals(other.getSubjectDescription())) return false; } if (hasX509Description() != other.hasX509Description()) return false; if (hasX509Description()) { - if (!getX509Description().equals(other.getX509Description())) return false; + if (!getX509Description() + .equals(other.getX509Description())) 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 (hasSubjectKeyId() != other.hasSubjectKeyId()) return false; if (hasSubjectKeyId()) { - if (!getSubjectKeyId().equals(other.getSubjectKeyId())) return false; + if (!getSubjectKeyId() + .equals(other.getSubjectKeyId())) return false; } if (hasAuthorityKeyId() != other.hasAuthorityKeyId()) return false; if (hasAuthorityKeyId()) { - if (!getAuthorityKeyId().equals(other.getAuthorityKeyId())) return false; + if (!getAuthorityKeyId() + .equals(other.getAuthorityKeyId())) return false; } - if (!getCrlDistributionPointsList().equals(other.getCrlDistributionPointsList())) return false; - if (!getAiaIssuingCertificateUrlsList().equals(other.getAiaIssuingCertificateUrlsList())) - return false; + if (!getCrlDistributionPointsList() + .equals(other.getCrlDistributionPointsList())) return false; + if (!getAiaIssuingCertificateUrlsList() + .equals(other.getAiaIssuingCertificateUrlsList())) return false; if (hasCertFingerprint() != other.hasCertFingerprint()) return false; if (hasCertFingerprint()) { - if (!getCertFingerprint().equals(other.getCertFingerprint())) return false; + if (!getCertFingerprint() + .equals(other.getCertFingerprint())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4574,104 +3958,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateDescription 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.security.privateca.v1.CertificateDescription parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateDescription parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateDescription parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateDescription prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription] describes an X.509 certificate or CSR that has
    * been issued, as an alternative to using ASN.1 / X.509.
@@ -4679,23 +4055,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription)
       com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateDescription.class,
-              com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.newBuilder()
@@ -4703,15 +4077,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4759,14 +4134,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateDescription
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.CertificateDescription getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance();
     }
 
@@ -4781,8 +4155,7 @@ public com.google.cloud.security.privateca.v1.CertificateDescription build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateDescription buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateDescription result =
-          new com.google.cloud.security.privateca.v1.CertificateDescription(this);
+      com.google.cloud.security.privateca.v1.CertificateDescription result = new com.google.cloud.security.privateca.v1.CertificateDescription(this);
       int from_bitField0_ = bitField0_;
       if (subjectDescriptionBuilder_ == null) {
         result.subjectDescription_ = subjectDescription_;
@@ -4832,39 +4205,38 @@ public com.google.cloud.security.privateca.v1.CertificateDescription buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateDescription) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4872,9 +4244,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()) return this;
       if (other.hasSubjectDescription()) {
         mergeSubjectDescription(other.getSubjectDescription());
       }
@@ -4932,9 +4302,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateDescription)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -4943,74 +4311,48 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-        subjectDescription_;
+    private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subjectDescription_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription,
-            com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
-                .Builder,
-            com.google.cloud.security.privateca.v1.CertificateDescription
-                .SubjectDescriptionOrBuilder>
-        subjectDescriptionBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder> subjectDescriptionBuilder_;
     /**
-     *
-     *
      * 
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; * @return Whether the subjectDescription field is set. */ public boolean hasSubjectDescription() { return subjectDescriptionBuilder_ != null || subjectDescription_ != null; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; * @return The subjectDescription. */ - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - getSubjectDescription() { + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getSubjectDescription() { if (subjectDescriptionBuilder_ == null) { - return subjectDescription_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .getDefaultInstance() - : subjectDescription_; + return subjectDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; } else { return subjectDescriptionBuilder_.getMessage(); } } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ - public Builder setSubjectDescription( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { + public Builder setSubjectDescription(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { if (subjectDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5024,20 +4366,15 @@ public Builder setSubjectDescription( return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ public Builder setSubjectDescription( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder builderForValue) { if (subjectDescriptionBuilder_ == null) { subjectDescription_ = builderForValue.build(); onChanged(); @@ -5048,26 +4385,18 @@ public Builder setSubjectDescription( return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ - public Builder mergeSubjectDescription( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { + public Builder mergeSubjectDescription(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { if (subjectDescriptionBuilder_ == null) { if (subjectDescription_ != null) { subjectDescription_ = - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .newBuilder(subjectDescription_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.newBuilder(subjectDescription_).mergeFrom(value).buildPartial(); } else { subjectDescription_ = value; } @@ -5079,16 +4408,12 @@ public Builder mergeSubjectDescription( return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ public Builder clearSubjectDescription() { if (subjectDescriptionBuilder_ == null) { @@ -5102,74 +4427,51 @@ public Builder clearSubjectDescription() { return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder - getSubjectDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder getSubjectDescriptionBuilder() { + onChanged(); return getSubjectDescriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder - getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { if (subjectDescriptionBuilder_ != null) { return subjectDescriptionBuilder_.getMessageOrBuilder(); } else { - return subjectDescription_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .getDefaultInstance() - : subjectDescription_; + return subjectDescription_ == null ? + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; } } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .Builder, - com.google.cloud.security.privateca.v1.CertificateDescription - .SubjectDescriptionOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder> getSubjectDescriptionFieldBuilder() { if (subjectDescriptionBuilder_ == null) { - subjectDescriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - .Builder, - com.google.cloud.security.privateca.v1.CertificateDescription - .SubjectDescriptionOrBuilder>( - getSubjectDescription(), getParentForChildren(), isClean()); + subjectDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder>( + getSubjectDescription(), + getParentForChildren(), + isClean()); subjectDescription_ = null; } return subjectDescriptionBuilder_; @@ -5177,47 +4479,34 @@ public Builder clearSubjectDescription() { private com.google.cloud.security.privateca.v1.X509Parameters x509Description_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> - x509DescriptionBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> x509DescriptionBuilder_; /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; - * * @return Whether the x509Description field is set. */ public boolean hasX509Description() { return x509DescriptionBuilder_ != null || x509Description_ != null; } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; - * * @return The x509Description. */ public com.google.cloud.security.privateca.v1.X509Parameters getX509Description() { if (x509DescriptionBuilder_ == null) { - return x509Description_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : x509Description_; + return x509Description_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Description_; } else { return x509DescriptionBuilder_.getMessage(); } } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -5238,8 +4527,6 @@ public Builder setX509Description(com.google.cloud.security.privateca.v1.X509Par return this; } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -5258,22 +4545,17 @@ public Builder setX509Description( return this; } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ - public Builder mergeX509Description( - com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder mergeX509Description(com.google.cloud.security.privateca.v1.X509Parameters value) { if (x509DescriptionBuilder_ == null) { if (x509Description_ != null) { x509Description_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Description_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Description_).mergeFrom(value).buildPartial(); } else { x509Description_ = value; } @@ -5285,8 +4567,6 @@ public Builder mergeX509Description( return this; } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -5305,42 +4585,33 @@ public Builder clearX509Description() { return this; } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ - public com.google.cloud.security.privateca.v1.X509Parameters.Builder - getX509DescriptionBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.Builder getX509DescriptionBuilder() { + onChanged(); return getX509DescriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder - getX509DescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder() { if (x509DescriptionBuilder_ != null) { return x509DescriptionBuilder_.getMessageOrBuilder(); } else { - return x509Description_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : x509Description_; + return x509Description_ == null ? + com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Description_; } } /** - * - * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -5348,17 +4619,14 @@ public Builder clearX509Description() { * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getX509DescriptionFieldBuilder() { if (x509DescriptionBuilder_ == null) { - x509DescriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getX509Description(), getParentForChildren(), isClean()); + x509DescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getX509Description(), + getParentForChildren(), + isClean()); x509Description_ = null; } return x509DescriptionBuilder_; @@ -5366,47 +4634,34 @@ public Builder clearX509Description() { private com.google.cloud.security.privateca.v1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, - com.google.cloud.security.privateca.v1.PublicKey.Builder, - com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> - publicKeyBuilder_; + com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> publicKeyBuilder_; /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; - * * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; - * * @return The publicKey. */ public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5427,8 +4682,6 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1.PublicKey val return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5447,8 +4700,6 @@ public Builder setPublicKey( return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5459,9 +4710,7 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey v if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); } else { publicKey_ = value; } @@ -5473,8 +4722,6 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey v return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5493,8 +4740,6 @@ public Builder clearPublicKey() { return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5502,13 +4747,11 @@ public Builder clearPublicKey() { * .google.cloud.security.privateca.v1.PublicKey public_key = 3; */ public com.google.cloud.security.privateca.v1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5519,14 +4762,11 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? + com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; } } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5534,17 +4774,14 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB * .google.cloud.security.privateca.v1.PublicKey public_key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, - com.google.cloud.security.privateca.v1.PublicKey.Builder, - com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, - com.google.cloud.security.privateca.v1.PublicKey.Builder, - com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( - getPublicKey(), getParentForChildren(), isClean()); + publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( + getPublicKey(), + getParentForChildren(), + isClean()); publicKey_ = null; } return publicKeyBuilder_; @@ -5552,62 +4789,44 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId subjectKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> - subjectKeyIdBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> subjectKeyIdBuilder_; /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; * @return Whether the subjectKeyId field is set. */ public boolean hasSubjectKeyId() { return subjectKeyIdBuilder_ != null || subjectKeyId_ != null; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; * @return The subjectKeyId. */ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { - return subjectKeyId_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - .getDefaultInstance() - : subjectKeyId_; + return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; } else { return subjectKeyIdBuilder_.getMessage(); } } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ - public Builder setSubjectKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder setSubjectKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5621,19 +4840,15 @@ public Builder setSubjectKeyId( return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ public Builder setSubjectKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder builderForValue) { if (subjectKeyIdBuilder_ == null) { subjectKeyId_ = builderForValue.build(); onChanged(); @@ -5644,25 +4859,18 @@ public Builder setSubjectKeyId( return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ - public Builder mergeSubjectKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder mergeSubjectKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (subjectKeyId_ != null) { subjectKeyId_ = - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder( - subjectKeyId_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder(subjectKeyId_).mergeFrom(value).buildPartial(); } else { subjectKeyId_ = value; } @@ -5674,15 +4882,12 @@ public Builder mergeSubjectKeyId( return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ public Builder clearSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { @@ -5696,67 +4901,51 @@ public Builder clearSubjectKeyId() { return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder - getSubjectKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder getSubjectKeyIdBuilder() { + onChanged(); return getSubjectKeyIdFieldBuilder().getBuilder(); } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder - getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { if (subjectKeyIdBuilder_ != null) { return subjectKeyIdBuilder_.getMessageOrBuilder(); } else { - return subjectKeyId_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - .getDefaultInstance() - : subjectKeyId_; + return subjectKeyId_ == null ? + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; } } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> getSubjectKeyIdFieldBuilder() { if (subjectKeyIdBuilder_ == null) { - subjectKeyIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( - getSubjectKeyId(), getParentForChildren(), isClean()); + subjectKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( + getSubjectKeyId(), + getParentForChildren(), + isClean()); subjectKeyId_ = null; } return subjectKeyIdBuilder_; @@ -5764,62 +4953,44 @@ public Builder clearSubjectKeyId() { private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId authorityKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> - authorityKeyIdBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> authorityKeyIdBuilder_; /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; * @return Whether the authorityKeyId field is set. */ public boolean hasAuthorityKeyId() { return authorityKeyIdBuilder_ != null || authorityKeyId_ != null; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; * @return The authorityKeyId. */ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { - return authorityKeyId_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - .getDefaultInstance() - : authorityKeyId_; + return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; } else { return authorityKeyIdBuilder_.getMessage(); } } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ - public Builder setAuthorityKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder setAuthorityKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5833,19 +5004,15 @@ public Builder setAuthorityKeyId( return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ public Builder setAuthorityKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder builderForValue) { if (authorityKeyIdBuilder_ == null) { authorityKeyId_ = builderForValue.build(); onChanged(); @@ -5856,25 +5023,18 @@ public Builder setAuthorityKeyId( return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ - public Builder mergeAuthorityKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder mergeAuthorityKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (authorityKeyId_ != null) { authorityKeyId_ = - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder( - authorityKeyId_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder(authorityKeyId_).mergeFrom(value).buildPartial(); } else { authorityKeyId_ = value; } @@ -5886,15 +5046,12 @@ public Builder mergeAuthorityKeyId( return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ public Builder clearAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { @@ -5908,85 +5065,64 @@ public Builder clearAuthorityKeyId() { return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder - getAuthorityKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder getAuthorityKeyIdBuilder() { + onChanged(); return getAuthorityKeyIdFieldBuilder().getBuilder(); } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder - getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { if (authorityKeyIdBuilder_ != null) { return authorityKeyIdBuilder_.getMessageOrBuilder(); } else { - return authorityKeyId_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId - .getDefaultInstance() - : authorityKeyId_; + return authorityKeyId_ == null ? + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; } } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> getAuthorityKeyIdFieldBuilder() { if (authorityKeyIdBuilder_ == null) { - authorityKeyIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( - getAuthorityKeyId(), getParentForChildren(), isClean()); + authorityKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( + getAuthorityKeyId(), + getParentForChildren(), + isClean()); authorityKeyId_ = null; } return authorityKeyIdBuilder_; } - private com.google.protobuf.LazyStringList crlDistributionPoints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCrlDistributionPointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crlDistributionPoints_ = - new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); + crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5994,15 +5130,13 @@ private void ensureCrlDistributionPointsIsMutable() {
      * 
* * repeated string crl_distribution_points = 6; - * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList + getCrlDistributionPointsList() { return crlDistributionPoints_.getUnmodifiableView(); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6010,15 +5144,12 @@ public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() {
      * 
* * repeated string crl_distribution_points = 6; - * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6026,7 +5157,6 @@ public int getCrlDistributionPointsCount() {
      * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -6034,8 +5164,6 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6043,16 +5171,14 @@ public java.lang.String getCrlDistributionPoints(int index) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString + getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6060,23 +5186,21 @@ public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param index The index to set the value at. * @param value The crlDistributionPoints to set. * @return This builder for chaining. */ - public Builder setCrlDistributionPoints(int index, java.lang.String value) { + public Builder setCrlDistributionPoints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.set(index, value); onChanged(); return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6084,22 +5208,20 @@ public Builder setCrlDistributionPoints(int index, java.lang.String value) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param value The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPoints(java.lang.String value) { + public Builder addCrlDistributionPoints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6107,19 +5229,18 @@ public Builder addCrlDistributionPoints(java.lang.String value) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param values The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addAllCrlDistributionPoints(java.lang.Iterable values) { + public Builder addAllCrlDistributionPoints( + java.lang.Iterable values) { ensureCrlDistributionPointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlDistributionPoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crlDistributionPoints_); onChanged(); return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6127,7 +5248,6 @@ public Builder addAllCrlDistributionPoints(java.lang.Iterable
      * 
* * repeated string crl_distribution_points = 6; - * * @return This builder for chaining. */ public Builder clearCrlDistributionPoints() { @@ -6137,8 +5257,6 @@ public Builder clearCrlDistributionPoints() { return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6146,71 +5264,60 @@ public Builder clearCrlDistributionPoints() {
      * 
* * repeated string crl_distribution_points = 6; - * * @param value The bytes of the crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPointsBytes(com.google.protobuf.ByteString value) { + public Builder addCrlDistributionPointsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAiaIssuingCertificateUrlsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aiaIssuingCertificateUrls_ = - new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); + aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList + getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_.getUnmodifiableView(); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -6218,95 +5325,85 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString + getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index to set the value at. * @param value The aiaIssuingCertificateUrls to set. * @return This builder for chaining. */ - public Builder setAiaIssuingCertificateUrls(int index, java.lang.String value) { + public Builder setAiaIssuingCertificateUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param value The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrls(java.lang.String value) { + public Builder addAiaIssuingCertificateUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param values The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAllAiaIssuingCertificateUrls(java.lang.Iterable values) { + public Builder addAllAiaIssuingCertificateUrls( + java.lang.Iterable values) { ensureAiaIssuingCertificateUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaIssuingCertificateUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aiaIssuingCertificateUrls_); onChanged(); return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return This builder for chaining. */ public Builder clearAiaIssuingCertificateUrls() { @@ -6316,92 +5413,64 @@ public Builder clearAiaIssuingCertificateUrls() { return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param value The bytes of the aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addAiaIssuingCertificateUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } - private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - certFingerprint_; + private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint certFingerprint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .Builder, - com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprintOrBuilder> - certFingerprintBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder> certFingerprintBuilder_; /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return Whether the certFingerprint field is set. */ public boolean hasCertFingerprint() { return certFingerprintBuilder_ != null || certFingerprint_ != null; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return The certFingerprint. */ - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - getCertFingerprint() { + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getCertFingerprint() { if (certFingerprintBuilder_ == null) { - return certFingerprint_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .getDefaultInstance() - : certFingerprint_; + return certFingerprint_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; } else { return certFingerprintBuilder_.getMessage(); } } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public Builder setCertFingerprint( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - value) { + public Builder setCertFingerprint(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint value) { if (certFingerprintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6415,19 +5484,14 @@ public Builder setCertFingerprint( return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ public Builder setCertFingerprint( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder builderForValue) { if (certFingerprintBuilder_ == null) { certFingerprint_ = builderForValue.build(); onChanged(); @@ -6438,26 +5502,17 @@ public Builder setCertFingerprint( return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public Builder mergeCertFingerprint( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - value) { + public Builder mergeCertFingerprint(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint value) { if (certFingerprintBuilder_ == null) { if (certFingerprint_ != null) { certFingerprint_ = - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .newBuilder(certFingerprint_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.newBuilder(certFingerprint_).mergeFrom(value).buildPartial(); } else { certFingerprint_ = value; } @@ -6469,15 +5524,11 @@ public Builder mergeCertFingerprint( return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ public Builder clearCertFingerprint() { if (certFingerprintBuilder_ == null) { @@ -6491,81 +5542,55 @@ public Builder clearCertFingerprint() { return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .Builder - getCertFingerprintBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder getCertFingerprintBuilder() { + onChanged(); return getCertFingerprintFieldBuilder().getBuilder(); } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprintOrBuilder - getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { if (certFingerprintBuilder_ != null) { return certFingerprintBuilder_.getMessageOrBuilder(); } else { - return certFingerprint_ == null - ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .getDefaultInstance() - : certFingerprint_; + return certFingerprint_ == null ? + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; } } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .Builder, - com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprintOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder> getCertFingerprintFieldBuilder() { if (certFingerprintBuilder_ == null) { - certFingerprintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprint, - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - .Builder, - com.google.cloud.security.privateca.v1.CertificateDescription - .CertificateFingerprintOrBuilder>( - getCertFingerprint(), getParentForChildren(), isClean()); + certFingerprintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder>( + getCertFingerprint(), + getParentForChildren(), + isClean()); certFingerprint_ = null; } return certFingerprintBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6575,13 +5600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription) - private static final com.google.cloud.security.privateca.v1.CertificateDescription - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateDescription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription(); } @@ -6590,16 +5614,16 @@ public static com.google.cloud.security.privateca.v1.CertificateDescription getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateDescription(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateDescription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6614,4 +5638,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java index 882cc31e..f8fe8c63 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java @@ -1,101 +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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateDescriptionOrBuilder - extends +public interface CertificateDescriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; * @return Whether the subjectDescription field is set. */ boolean hasSubjectDescription(); /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; * @return The subjectDescription. */ - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription - getSubjectDescription(); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getSubjectDescription(); /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; */ - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder - getSubjectDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder(); /** - * - * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; - * * @return Whether the x509Description field is set. */ boolean hasX509Description(); /** - * - * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; - * * @return The x509Description. */ com.google.cloud.security.privateca.v1.X509Parameters getX509Description(); /** - * - * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
@@ -105,32 +65,24 @@ public interface CertificateDescriptionOrBuilder com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder(); /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; - * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; - * * @return The publicKey. */ com.google.cloud.security.privateca.v1.PublicKey getPublicKey(); /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -140,92 +92,66 @@ public interface CertificateDescriptionOrBuilder com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder(); /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; * @return Whether the subjectKeyId field is set. */ boolean hasSubjectKeyId(); /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; * @return The subjectKeyId. */ com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId(); /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; */ - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder - getSubjectKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder(); /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; * @return Whether the authorityKeyId field is set. */ boolean hasAuthorityKeyId(); /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; * @return The authorityKeyId. */ com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId(); /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; */ - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder - getAuthorityKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder(); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -233,13 +159,11 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @return A list containing the crlDistributionPoints. */ - java.util.List getCrlDistributionPointsList(); + java.util.List + getCrlDistributionPointsList(); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -247,13 +171,10 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @return The count of crlDistributionPoints. */ int getCrlDistributionPointsCount(); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -261,14 +182,11 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ java.lang.String getCrlDistributionPoints(int index); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -276,107 +194,81 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index); + com.google.protobuf.ByteString + getCrlDistributionPointsBytes(int index); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return A list containing the aiaIssuingCertificateUrls. */ - java.util.List getAiaIssuingCertificateUrlsList(); + java.util.List + getAiaIssuingCertificateUrlsList(); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return The count of aiaIssuingCertificateUrls. */ int getAiaIssuingCertificateUrlsCount(); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ java.lang.String getAiaIssuingCertificateUrls(int index); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index); + com.google.protobuf.ByteString + getAiaIssuingCertificateUrlsBytes(int index); /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return Whether the certFingerprint field is set. */ boolean hasCertFingerprint(); /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return The certFingerprint. */ - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint - getCertFingerprint(); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getCertFingerprint(); /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder - getCertFingerprintOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java index 05926099..3642c186 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Describes a set of X.509 extensions that may be part of some certificate
  * issuance controls.
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateExtensionConstraints}
  */
-public final class CertificateExtensionConstraints extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateExtensionConstraints extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateExtensionConstraints)
     CertificateExtensionConstraintsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateExtensionConstraints.newBuilder() to construct.
-  private CertificateExtensionConstraints(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CertificateExtensionConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateExtensionConstraints() {
     knownExtensions_ = java.util.Collections.emptyList();
     additionalExtensions_ = java.util.Collections.emptyList();
@@ -46,15 +27,16 @@ private CertificateExtensionConstraints() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateExtensionConstraints();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateExtensionConstraints(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,50 +56,45 @@ private CertificateExtensionConstraints(
           case 0:
             done = true;
             break;
-          case 8:
-            {
+          case 8: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              knownExtensions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            knownExtensions_.add(rawValue);
+            break;
+          }
+          case 10: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 knownExtensions_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               knownExtensions_.add(rawValue);
-              break;
-            }
-          case 10:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  knownExtensions_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                knownExtensions_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                additionalExtensions_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              additionalExtensions_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              additionalExtensions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            additionalExtensions_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,7 +102,8 @@ private CertificateExtensionConstraints(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         knownExtensions_ = java.util.Collections.unmodifiableList(knownExtensions_);
@@ -137,37 +115,30 @@ private CertificateExtensionConstraints(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class,
-            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Describes well-known X.509 extensions that can appear in a [Certificate][google.cloud.security.privateca.v1.Certificate],
    * not including the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension.
    * 
* - * Protobuf enum {@code - * google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension} + * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension} */ - public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMessageEnum { + public enum KnownCertificateExtension + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -176,8 +147,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes */ KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED(0), /** - * - * *
      * Refers to a certificate's Key Usage extension, as described in [RFC 5280
      * section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3).
@@ -188,8 +157,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     BASE_KEY_USAGE(1),
     /**
-     *
-     *
      * 
      * Refers to a certificate's Extended Key Usage extension, as described in
      * [RFC 5280
@@ -201,8 +168,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     EXTENDED_KEY_USAGE(2),
     /**
-     *
-     *
      * 
      * Refers to a certificate's Basic Constraints extension, as described in
      * [RFC 5280
@@ -214,8 +179,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     CA_OPTIONS(3),
     /**
-     *
-     *
      * 
      * Refers to a certificate's Policy object identifiers, as described in
      * [RFC 5280
@@ -227,8 +190,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     POLICY_IDS(4),
     /**
-     *
-     *
      * 
      * Refers to OCSP servers in a certificate's Authority Information Access
      * extension, as described in
@@ -244,8 +205,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -254,8 +213,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes */ public static final int KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Refers to a certificate's Key Usage extension, as described in [RFC 5280
      * section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3).
@@ -266,8 +223,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     public static final int BASE_KEY_USAGE_VALUE = 1;
     /**
-     *
-     *
      * 
      * Refers to a certificate's Extended Key Usage extension, as described in
      * [RFC 5280
@@ -279,8 +234,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     public static final int EXTENDED_KEY_USAGE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Refers to a certificate's Basic Constraints extension, as described in
      * [RFC 5280
@@ -292,8 +245,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     public static final int CA_OPTIONS_VALUE = 3;
     /**
-     *
-     *
      * 
      * Refers to a certificate's Policy object identifiers, as described in
      * [RFC 5280
@@ -305,8 +256,6 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     public static final int POLICY_IDS_VALUE = 4;
     /**
-     *
-     *
      * 
      * Refers to OCSP servers in a certificate's Authority Information Access
      * extension, as described in
@@ -319,6 +268,7 @@ public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMes
      */
     public static final int AIA_OCSP_SERVERS_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -343,20 +293,13 @@ public static KnownCertificateExtension valueOf(int value) {
      */
     public static KnownCertificateExtension forNumber(int value) {
       switch (value) {
-        case 0:
-          return KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED;
-        case 1:
-          return BASE_KEY_USAGE;
-        case 2:
-          return EXTENDED_KEY_USAGE;
-        case 3:
-          return CA_OPTIONS;
-        case 4:
-          return POLICY_IDS;
-        case 5:
-          return AIA_OCSP_SERVERS;
-        default:
-          return null;
+        case 0: return KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED;
+        case 1: return BASE_KEY_USAGE;
+        case 2: return EXTENDED_KEY_USAGE;
+        case 3: return CA_OPTIONS;
+        case 4: return POLICY_IDS;
+        case 5: return AIA_OCSP_SERVERS;
+        default: return null;
       }
     }
 
@@ -364,31 +307,29 @@ public static KnownCertificateExtension forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        KnownCertificateExtension> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public KnownCertificateExtension findValueByNumber(int number) {
+              return KnownCertificateExtension.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public KnownCertificateExtension findValueByNumber(int number) {
-                return KnownCertificateExtension.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final KnownCertificateExtension[] VALUES = values();
@@ -396,7 +337,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static KnownCertificateExtension 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;
@@ -416,65 +358,36 @@ private KnownCertificateExtension(int value) {
   public static final int KNOWN_EXTENSIONS_FIELD_NUMBER = 1;
   private java.util.List knownExtensions_;
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-          java.lang.Integer,
-          com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-              .KnownCertificateExtension>
-      knownExtensions_converter_ =
+      java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension> knownExtensions_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer,
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-                  .KnownCertificateExtension>() {
-            public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-                    .KnownCertificateExtension
-                convert(java.lang.Integer from) {
+              java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>() {
+            public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension convert(java.lang.Integer from) {
               @SuppressWarnings("deprecation")
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-                      .KnownCertificateExtension
-                  result =
-                      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-                          .KnownCertificateExtension.valueOf(from);
-              return result == null
-                  ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-                      .KnownCertificateExtension.UNRECOGNIZED
-                  : result;
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension result = com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension.valueOf(from);
+              return result == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension.UNRECOGNIZED : result;
             }
           };
   /**
-   *
-   *
    * 
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the knownExtensions. */ @java.lang.Override - public java.util.List< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension> - getKnownExtensionsList() { + public java.util.List getKnownExtensionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); + java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); } /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of knownExtensions. */ @java.lang.Override @@ -482,56 +395,40 @@ public int getKnownExtensionsCount() { return knownExtensions_.size(); } /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The knownExtensions at the given index. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension - getKnownExtensions(int index) { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index) { return knownExtensions_converter_.convert(knownExtensions_.get(index)); } /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for knownExtensions. */ @java.lang.Override - public java.util.List getKnownExtensionsValueList() { + public java.util.List + getKnownExtensionsValueList() { return knownExtensions_; } /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. */ @@ -539,93 +436,71 @@ public java.util.List getKnownExtensionsValueList() { public int getKnownExtensionsValue(int index) { return knownExtensions_.get(index); } - private int knownExtensionsMemoizedSerializedSize; public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 2; private java.util.List additionalExtensions_; /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getAdditionalExtensionsList() { + public java.util.List getAdditionalExtensionsList() { return additionalExtensions_; } /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getAdditionalExtensionsOrBuilderList() { return additionalExtensions_; } /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAdditionalExtensionsCount() { return additionalExtensions_.size(); } /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(int index) { return additionalExtensions_.get(index); } /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExtensionsOrBuilder( @@ -634,7 +509,6 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExt } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -646,7 +520,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getKnownExtensionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -670,19 +545,18 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < knownExtensions_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(knownExtensions_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(knownExtensions_.get(i)); } size += dataSize; - if (!getKnownExtensionsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - knownExtensionsMemoizedSerializedSize = dataSize; + if (!getKnownExtensionsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }knownExtensionsMemoizedSerializedSize = dataSize; } for (int i = 0; i < additionalExtensions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, additionalExtensions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, additionalExtensions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -692,16 +566,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateExtensionConstraints)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other = - (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) obj; + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other = (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) obj; if (!knownExtensions_.equals(other.knownExtensions_)) return false; - if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false; + if (!getAdditionalExtensionsList() + .equals(other.getAdditionalExtensionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -727,105 +601,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints 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.security.privateca.v1.CertificateExtensionConstraints parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - 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.security.privateca.v1.CertificateExtensionConstraints 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.security.privateca.v1.CertificateExtensionConstraints parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a set of X.509 extensions that may be part of some certificate
    * issuance controls.
@@ -833,42 +698,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateExtensionConstraints}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateExtensionConstraints)
       com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class,
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAdditionalExtensionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -884,22 +746,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints build() {
-      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -908,8 +767,7 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints bu
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result =
-          new com.google.cloud.security.privateca.v1.CertificateExtensionConstraints(this);
+      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result = new com.google.cloud.security.privateca.v1.CertificateExtensionConstraints(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         knownExtensions_ = java.util.Collections.unmodifiableList(knownExtensions_);
@@ -933,51 +791,46 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints bu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateExtensionConstraints)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other) {
+      if (other == com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance()) return this;
       if (!other.knownExtensions_.isEmpty()) {
         if (knownExtensions_.isEmpty()) {
           knownExtensions_ = other.knownExtensions_;
@@ -1006,10 +859,9 @@ public Builder mergeFrom(
             additionalExtensionsBuilder_ = null;
             additionalExtensions_ = other.additionalExtensions_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            additionalExtensionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAdditionalExtensionsFieldBuilder()
-                    : null;
+            additionalExtensionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAdditionalExtensionsFieldBuilder() : null;
           } else {
             additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
           }
@@ -1034,9 +886,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1045,11 +895,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List knownExtensions_ = java.util.Collections.emptyList();
-
+    private java.util.List knownExtensions_ =
+      java.util.Collections.emptyList();
     private void ensureKnownExtensionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         knownExtensions_ = new java.util.ArrayList(knownExtensions_);
@@ -1057,86 +906,56 @@ private void ensureKnownExtensionsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the knownExtensions. */ - public java.util.List< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension> - getKnownExtensionsList() { + public java.util.List getKnownExtensionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); + java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of knownExtensions. */ public int getKnownExtensionsCount() { return knownExtensions_.size(); } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The knownExtensions at the given index. */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension - getKnownExtensions(int index) { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index) { return knownExtensions_converter_.convert(knownExtensions_.get(index)); } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The knownExtensions to set. * @return This builder for chaining. */ public Builder setKnownExtensions( - int index, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension - value) { + int index, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension value) { if (value == null) { throw new NullPointerException(); } @@ -1146,24 +965,16 @@ public Builder setKnownExtensions( return this; } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The knownExtensions to add. * @return This builder for chaining. */ - public Builder addKnownExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension - value) { + public Builder addKnownExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension value) { if (value == null) { throw new NullPointerException(); } @@ -1173,47 +984,31 @@ public Builder addKnownExtensions( return this; } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param values The knownExtensions to add. * @return This builder for chaining. */ public Builder addAllKnownExtensions( - java.lang.Iterable< - ? extends - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension> - values) { + java.lang.Iterable values) { ensureKnownExtensionsIsMutable(); - for (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension - value : values) { + for (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension value : values) { knownExtensions_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearKnownExtensions() { @@ -1223,34 +1018,25 @@ public Builder clearKnownExtensions() { return this; } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for knownExtensions. */ - public java.util.List getKnownExtensionsValueList() { + public java.util.List + getKnownExtensionsValueList() { return java.util.Collections.unmodifiableList(knownExtensions_); } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. */ @@ -1258,39 +1044,30 @@ public int getKnownExtensionsValue(int index) { return knownExtensions_.get(index); } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. * @return This builder for chaining. */ - public Builder setKnownExtensionsValue(int index, int value) { + public Builder setKnownExtensionsValue( + int index, int value) { ensureKnownExtensionsIsMutable(); knownExtensions_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for knownExtensions to add. * @return This builder for chaining. */ @@ -1301,21 +1078,17 @@ public Builder addKnownExtensionsValue(int value) { return this; } /** - * - * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param values The enum numeric values on the wire for knownExtensions to add. * @return This builder for chaining. */ - public Builder addAllKnownExtensionsValue(java.lang.Iterable values) { + public Builder addAllKnownExtensionsValue( + java.lang.Iterable values) { ensureKnownExtensionsIsMutable(); for (int value : values) { knownExtensions_.add(value); @@ -1325,38 +1098,27 @@ public Builder addAllKnownExtensionsValue(java.lang.Iterable } private java.util.List additionalExtensions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAdditionalExtensionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - additionalExtensions_ = - new java.util.ArrayList( - additionalExtensions_); + additionalExtensions_ = new java.util.ArrayList(additionalExtensions_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> - additionalExtensionsBuilder_; + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> additionalExtensionsBuilder_; /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsList() { + public java.util.List getAdditionalExtensionsList() { if (additionalExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalExtensions_); } else { @@ -1364,17 +1126,13 @@ private void ensureAdditionalExtensionsIsMutable() { } } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAdditionalExtensionsCount() { if (additionalExtensionsBuilder_ == null) { @@ -1384,17 +1142,13 @@ public int getAdditionalExtensionsCount() { } } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -1404,17 +1158,13 @@ public com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(i } } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -1431,17 +1181,13 @@ public Builder setAdditionalExtensions( return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -1455,17 +1201,13 @@ public Builder setAdditionalExtensions( return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.ObjectId value) { if (additionalExtensionsBuilder_ == null) { @@ -1481,17 +1223,13 @@ public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.Ob return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -1508,17 +1246,13 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -1532,17 +1266,13 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -1556,23 +1286,20 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAdditionalExtensions( java.lang.Iterable values) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalExtensions_); onChanged(); } else { additionalExtensionsBuilder_.addAllMessages(values); @@ -1580,17 +1307,13 @@ public Builder addAllAdditionalExtensions( return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdditionalExtensions() { if (additionalExtensionsBuilder_ == null) { @@ -1603,17 +1326,13 @@ public Builder clearAdditionalExtensions() { return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -1626,58 +1345,45 @@ public Builder removeAdditionalExtensions(int index) { return this; } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.ObjectId.Builder getAdditionalExtensionsBuilder( int index) { return getAdditionalExtensionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder - getAdditionalExtensionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExtensionsOrBuilder( + int index) { if (additionalExtensionsBuilder_ == null) { - return additionalExtensions_.get(index); - } else { + return additionalExtensions_.get(index); } else { return additionalExtensionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsOrBuilderList() { + public java.util.List + getAdditionalExtensionsOrBuilderList() { if (additionalExtensionsBuilder_ != null) { return additionalExtensionsBuilder_.getMessageOrBuilderList(); } else { @@ -1685,70 +1391,51 @@ public com.google.cloud.security.privateca.v1.ObjectId.Builder getAdditionalExte } } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder - addAdditionalExtensionsBuilder() { - return getAdditionalExtensionsFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder addAdditionalExtensionsBuilder() { + return getAdditionalExtensionsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.ObjectId.Builder addAdditionalExtensionsBuilder( int index) { - return getAdditionalExtensionsFieldBuilder() - .addBuilder(index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + return getAdditionalExtensionsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsBuilderList() { + public java.util.List + getAdditionalExtensionsBuilderList() { return getAdditionalExtensionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getAdditionalExtensionsFieldBuilder() { if (additionalExtensionsBuilder_ == null) { - additionalExtensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + additionalExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( additionalExtensions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1757,9 +1444,9 @@ public com.google.cloud.security.privateca.v1.ObjectId.Builder addAdditionalExte } return additionalExtensionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1769,32 +1456,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateExtensionConstraints) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateExtensionConstraints) - private static final com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateExtensionConstraints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateExtensionConstraints(); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateExtensionConstraints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateExtensionConstraints(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateExtensionConstraints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateExtensionConstraints(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1806,8 +1491,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java similarity index 60% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java index 44135a17..9801760e 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java @@ -1,179 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateExtensionConstraintsOrBuilder - extends +public interface CertificateExtensionConstraintsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateExtensionConstraints) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the knownExtensions. */ - java.util.List< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .KnownCertificateExtension> - getKnownExtensionsList(); + java.util.List getKnownExtensionsList(); /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of knownExtensions. */ int getKnownExtensionsCount(); /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The knownExtensions at the given index. */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension - getKnownExtensions(int index); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index); /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for knownExtensions. */ - java.util.List getKnownExtensionsValueList(); + java.util.List + getKnownExtensionsValueList(); /** - * - * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. */ int getKnownExtensionsValue(int index); /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getAdditionalExtensionsList(); + java.util.List + getAdditionalExtensionsList(); /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(int index); /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getAdditionalExtensionsCount(); /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAdditionalExtensionsOrBuilderList(); /** - * - * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExtensionsOrBuilder( int index); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java index dbc2cd82..4cc5ea83 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Describes constraints on a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and
  * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].
@@ -28,30 +11,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateIdentityConstraints}
  */
-public final class CertificateIdentityConstraints extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateIdentityConstraints extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateIdentityConstraints)
     CertificateIdentityConstraintsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateIdentityConstraints.newBuilder() to construct.
-  private CertificateIdentityConstraints(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CertificateIdentityConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CertificateIdentityConstraints() {}
+  private CertificateIdentityConstraints() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateIdentityConstraints();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateIdentityConstraints(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,39 +54,36 @@ private CertificateIdentityConstraints(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.type.Expr.Builder subBuilder = null;
-              if (celExpression_ != null) {
-                subBuilder = celExpression_.toBuilder();
-              }
-              celExpression_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(celExpression_);
-                celExpression_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 16:
-            {
-              bitField0_ |= 0x00000001;
-              allowSubjectPassthrough_ = input.readBool();
-              break;
+          case 10: {
+            com.google.type.Expr.Builder subBuilder = null;
+            if (celExpression_ != null) {
+              subBuilder = celExpression_.toBuilder();
             }
-          case 24:
-            {
-              bitField0_ |= 0x00000002;
-              allowSubjectAltNamesPassthrough_ = input.readBool();
-              break;
+            celExpression_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(celExpression_);
+              celExpression_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 16: {
+            bitField0_ |= 0x00000001;
+            allowSubjectPassthrough_ = input.readBool();
+            break;
+          }
+          case 24: {
+            bitField0_ |= 0x00000002;
+            allowSubjectAltNamesPassthrough_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,34 +91,30 @@ private CertificateIdentityConstraints(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class,
-            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
   }
 
   private int bitField0_;
   public static final int CEL_EXPRESSION_FIELD_NUMBER = 1;
   private com.google.type.Expr celExpression_;
   /**
-   *
-   *
    * 
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -147,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the celExpression field is set. */ @java.lang.Override @@ -155,8 +130,6 @@ public boolean hasCelExpression() { return celExpression_ != null; } /** - * - * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -165,7 +138,6 @@ public boolean hasCelExpression() {
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The celExpression. */ @java.lang.Override @@ -173,8 +145,6 @@ public com.google.type.Expr getCelExpression() { return celExpression_ == null ? com.google.type.Expr.getDefaultInstance() : celExpression_; } /** - * - * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -192,17 +162,13 @@ public com.google.type.ExprOrBuilder getCelExpressionOrBuilder() {
   public static final int ALLOW_SUBJECT_PASSTHROUGH_FIELD_NUMBER = 2;
   private boolean allowSubjectPassthrough_;
   /**
-   *
-   *
    * 
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the allowSubjectPassthrough field is set. */ @java.lang.Override @@ -210,17 +176,13 @@ public boolean hasAllowSubjectPassthrough() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The allowSubjectPassthrough. */ @java.lang.Override @@ -231,18 +193,13 @@ public boolean getAllowSubjectPassthrough() { public static final int ALLOW_SUBJECT_ALT_NAMES_PASSTHROUGH_FIELD_NUMBER = 3; private boolean allowSubjectAltNamesPassthrough_; /** - * - * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the allowSubjectAltNamesPassthrough field is set. */ @java.lang.Override @@ -250,18 +207,13 @@ public boolean hasAllowSubjectAltNamesPassthrough() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The allowSubjectAltNamesPassthrough. */ @java.lang.Override @@ -270,7 +222,6 @@ public boolean getAllowSubjectAltNamesPassthrough() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (celExpression_ != null) { output.writeMessage(1, getCelExpression()); } @@ -302,15 +254,16 @@ public int getSerializedSize() { size = 0; if (celExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCelExpression()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCelExpression()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowSubjectPassthrough_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowSubjectPassthrough_); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, allowSubjectAltNamesPassthrough_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, allowSubjectAltNamesPassthrough_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -320,27 +273,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateIdentityConstraints)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other = - (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) obj; + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other = (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) obj; if (hasCelExpression() != other.hasCelExpression()) return false; if (hasCelExpression()) { - if (!getCelExpression().equals(other.getCelExpression())) return false; + if (!getCelExpression() + .equals(other.getCelExpression())) return false; } if (hasAllowSubjectPassthrough() != other.hasAllowSubjectPassthrough()) return false; if (hasAllowSubjectPassthrough()) { - if (getAllowSubjectPassthrough() != other.getAllowSubjectPassthrough()) return false; + if (getAllowSubjectPassthrough() + != other.getAllowSubjectPassthrough()) return false; } - if (hasAllowSubjectAltNamesPassthrough() != other.hasAllowSubjectAltNamesPassthrough()) - return false; + if (hasAllowSubjectAltNamesPassthrough() != other.hasAllowSubjectAltNamesPassthrough()) return false; if (hasAllowSubjectAltNamesPassthrough()) { - if (getAllowSubjectAltNamesPassthrough() != other.getAllowSubjectAltNamesPassthrough()) - return false; + if (getAllowSubjectAltNamesPassthrough() + != other.getAllowSubjectAltNamesPassthrough()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -359,13 +312,13 @@ public int hashCode() { } if (hasAllowSubjectPassthrough()) { hash = (37 * hash) + ALLOW_SUBJECT_PASSTHROUGH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSubjectPassthrough()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowSubjectPassthrough()); } if (hasAllowSubjectAltNamesPassthrough()) { hash = (37 * hash) + ALLOW_SUBJECT_ALT_NAMES_PASSTHROUGH_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getAllowSubjectAltNamesPassthrough()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowSubjectAltNamesPassthrough()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -373,105 +326,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints 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.security.privateca.v1.CertificateIdentityConstraints parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - 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.security.privateca.v1.CertificateIdentityConstraints 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.security.privateca.v1.CertificateIdentityConstraints parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes constraints on a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].
@@ -479,40 +423,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateIdentityConstraints}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateIdentityConstraints)
       com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class,
-              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -530,16 +472,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -553,8 +493,7 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints bui
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateIdentityConstraints result =
-          new com.google.cloud.security.privateca.v1.CertificateIdentityConstraints(this);
+      com.google.cloud.security.privateca.v1.CertificateIdentityConstraints result = new com.google.cloud.security.privateca.v1.CertificateIdentityConstraints(this);
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (celExpressionBuilder_ == null) {
@@ -579,51 +518,46 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints bui
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateIdentityConstraints)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other) {
+      if (other == com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance()) return this;
       if (other.hasCelExpression()) {
         mergeCelExpression(other.getCelExpression());
       }
@@ -652,9 +586,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -663,16 +595,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.type.Expr celExpression_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
-        celExpressionBuilder_;
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> celExpressionBuilder_;
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -681,15 +609,12 @@ public Builder mergeFrom(
      * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the celExpression field is set. */ public boolean hasCelExpression() { return celExpressionBuilder_ != null || celExpression_ != null; } /** - * - * *
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -698,7 +623,6 @@ public boolean hasCelExpression() {
      * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The celExpression. */ public com.google.type.Expr getCelExpression() { @@ -709,8 +633,6 @@ public com.google.type.Expr getCelExpression() { } } /** - * - * *
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -734,8 +656,6 @@ public Builder setCelExpression(com.google.type.Expr value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -745,7 +665,8 @@ public Builder setCelExpression(com.google.type.Expr value) {
      *
      * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setCelExpression(com.google.type.Expr.Builder builderForValue) {
+    public Builder setCelExpression(
+        com.google.type.Expr.Builder builderForValue) {
       if (celExpressionBuilder_ == null) {
         celExpression_ = builderForValue.build();
         onChanged();
@@ -756,8 +677,6 @@ public Builder setCelExpression(com.google.type.Expr.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -771,7 +690,7 @@ public Builder mergeCelExpression(com.google.type.Expr value) {
       if (celExpressionBuilder_ == null) {
         if (celExpression_ != null) {
           celExpression_ =
-              com.google.type.Expr.newBuilder(celExpression_).mergeFrom(value).buildPartial();
+            com.google.type.Expr.newBuilder(celExpression_).mergeFrom(value).buildPartial();
         } else {
           celExpression_ = value;
         }
@@ -783,8 +702,6 @@ public Builder mergeCelExpression(com.google.type.Expr value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -806,8 +723,6 @@ public Builder clearCelExpression() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -818,13 +733,11 @@ public Builder clearCelExpression() {
      * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     public com.google.type.Expr.Builder getCelExpressionBuilder() {
-
+      
       onChanged();
       return getCelExpressionFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -838,12 +751,11 @@ public com.google.type.ExprOrBuilder getCelExpressionOrBuilder() {
       if (celExpressionBuilder_ != null) {
         return celExpressionBuilder_.getMessageOrBuilder();
       } else {
-        return celExpression_ == null ? com.google.type.Expr.getDefaultInstance() : celExpression_;
+        return celExpression_ == null ?
+            com.google.type.Expr.getDefaultInstance() : celExpression_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -854,31 +766,28 @@ public com.google.type.ExprOrBuilder getCelExpressionOrBuilder() {
      * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
         getCelExpressionFieldBuilder() {
       if (celExpressionBuilder_ == null) {
-        celExpressionBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getCelExpression(), getParentForChildren(), isClean());
+        celExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getCelExpression(),
+                getParentForChildren(),
+                isClean());
         celExpression_ = null;
       }
       return celExpressionBuilder_;
     }
 
-    private boolean allowSubjectPassthrough_;
+    private boolean allowSubjectPassthrough_ ;
     /**
-     *
-     *
      * 
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the allowSubjectPassthrough field is set. */ @java.lang.Override @@ -886,17 +795,13 @@ public boolean hasAllowSubjectPassthrough() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The allowSubjectPassthrough. */ @java.lang.Override @@ -904,17 +809,13 @@ public boolean getAllowSubjectPassthrough() { return allowSubjectPassthrough_; } /** - * - * *
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The allowSubjectPassthrough to set. * @return This builder for chaining. */ @@ -925,17 +826,13 @@ public Builder setAllowSubjectPassthrough(boolean value) { return this; } /** - * - * *
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAllowSubjectPassthrough() { @@ -945,20 +842,15 @@ public Builder clearAllowSubjectPassthrough() { return this; } - private boolean allowSubjectAltNamesPassthrough_; + private boolean allowSubjectAltNamesPassthrough_ ; /** - * - * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the allowSubjectAltNamesPassthrough field is set. */ @java.lang.Override @@ -966,18 +858,13 @@ public boolean hasAllowSubjectAltNamesPassthrough() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The allowSubjectAltNamesPassthrough. */ @java.lang.Override @@ -985,18 +872,13 @@ public boolean getAllowSubjectAltNamesPassthrough() { return allowSubjectAltNamesPassthrough_; } /** - * - * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The allowSubjectAltNamesPassthrough to set. * @return This builder for chaining. */ @@ -1007,18 +889,13 @@ public Builder setAllowSubjectAltNamesPassthrough(boolean value) { return this; } /** - * - * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAllowSubjectAltNamesPassthrough() { @@ -1027,9 +904,9 @@ public Builder clearAllowSubjectAltNamesPassthrough() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1039,32 +916,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateIdentityConstraints) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateIdentityConstraints) - private static final com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateIdentityConstraints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateIdentityConstraints(); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateIdentityConstraints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateIdentityConstraints(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateIdentityConstraints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateIdentityConstraints(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,8 +951,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java index c517b250..fd6ca114 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateIdentityConstraintsOrBuilder - extends +public interface CertificateIdentityConstraintsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateIdentityConstraints) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -34,13 +16,10 @@ public interface CertificateIdentityConstraintsOrBuilder
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the celExpression field is set. */ boolean hasCelExpression(); /** - * - * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -49,13 +28,10 @@ public interface CertificateIdentityConstraintsOrBuilder
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The celExpression. */ com.google.type.Expr getCelExpression(); /** - * - * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -68,65 +44,47 @@ public interface CertificateIdentityConstraintsOrBuilder
   com.google.type.ExprOrBuilder getCelExpressionOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the allowSubjectPassthrough field is set. */ boolean hasAllowSubjectPassthrough(); /** - * - * *
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The allowSubjectPassthrough. */ boolean getAllowSubjectPassthrough(); /** - * - * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the allowSubjectAltNamesPassthrough field is set. */ boolean hasAllowSubjectAltNamesPassthrough(); /** - * - * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The allowSubjectAltNamesPassthrough. */ boolean getAllowSubjectAltNamesPassthrough(); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java index 72b0bd7d..9fc8fd6e 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java @@ -1,174 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateOrBuilder - extends +public interface CertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.Certificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return Whether the pemCsr field is set. */ boolean hasPemCsr(); /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pemCsr. */ java.lang.String getPemCsr(); /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString getPemCsrBytes(); + com.google.protobuf.ByteString + getPemCsrBytes(); /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ com.google.cloud.security.privateca.v1.CertificateConfig getConfig(); /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The issuerCertificateAuthority. */ java.lang.String getIssuerCertificateAuthority(); /** - * - * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for issuerCertificateAuthority. */ - com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes(); + com.google.protobuf.ByteString + getIssuerCertificateAuthorityBytes(); /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -176,16 +118,11 @@ public interface CertificateOrBuilder
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -193,16 +130,11 @@ public interface CertificateOrBuilder
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -210,15 +142,11 @@ public interface CertificateOrBuilder
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** - * - * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -228,16 +156,11 @@ public interface CertificateOrBuilder
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The certificateTemplate. */ java.lang.String getCertificateTemplate(); /** - * - * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -247,295 +170,210 @@ public interface CertificateOrBuilder
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for certificateTemplate. */ - com.google.protobuf.ByteString getCertificateTemplateBytes(); + com.google.protobuf.ByteString + getCertificateTemplateBytes(); /** - * - * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for subjectMode. */ int getSubjectModeValue(); /** - * - * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The subjectMode. */ com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode(); /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revocationDetails field is set. */ boolean hasRevocationDetails(); /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revocationDetails. */ com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getRevocationDetails(); /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder - getRevocationDetailsOrBuilder(); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder(); /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ java.lang.String getPemCertificate(); /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCertificate. */ - com.google.protobuf.ByteString getPemCertificateBytes(); + com.google.protobuf.ByteString + getPemCertificateBytes(); /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certificateDescription field is set. */ boolean hasCertificateDescription(); /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certificateDescription. */ com.google.cloud.security.privateca.v1.CertificateDescription getCertificateDescription(); /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder - getCertificateDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder(); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCertificateChain. */ - java.util.List getPemCertificateChainList(); + java.util.List + getPemCertificateChainList(); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCertificateChain. */ int getPemCertificateChainCount(); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ java.lang.String getPemCertificateChain(int index); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - com.google.protobuf.ByteString getPemCertificateChainBytes(int index); + com.google.protobuf.ByteString + getPemCertificateChainBytes(int index); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -544,31 +382,30 @@ public interface CertificateOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -577,21 +414,20 @@ public interface CertificateOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); - public com.google.cloud.security.privateca.v1.Certificate.CertificateConfigCase - getCertificateConfigCase(); + java.lang.String getLabelsOrThrow( + java.lang.String key); + + public com.google.cloud.security.privateca.v1.Certificate.CertificateConfigCase getCertificateConfigCase(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java index c2a261b7..39bdf8f2 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] corresponds to a signed X.509 certificate
  * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList}
  */
-public final class CertificateRevocationList extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateRevocationList extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateRevocationList)
     CertificateRevocationListOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateRevocationList.newBuilder() to construct.
   private CertificateRevocationList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateRevocationList() {
     name_ = "";
     revokedCertificates_ = java.util.Collections.emptyList();
@@ -50,15 +32,16 @@ private CertificateRevocationList() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateRevocationList();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateRevocationList(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,112 +61,96 @@ private CertificateRevocationList(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              sequenceNumber_ = input.readInt64();
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                revokedCertificates_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1.CertificateRevocationList
-                            .RevokedCertificate>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              revokedCertificates_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateRevocationList
-                          .RevokedCertificate.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 16: {
 
-              pemCrl_ = s;
-              break;
+            sequenceNumber_ = input.readInt64();
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              revokedCertificates_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            revokedCertificates_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              accessUrl_ = s;
-              break;
-            }
-          case 48:
-            {
-              int rawValue = input.readEnum();
+            pemCrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              state_ = rawValue;
-              break;
-            }
-          case 58:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
+            accessUrl_ = s;
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
 
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 66:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              revisionId_ = s;
-              break;
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 82:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            revisionId_ = s;
+            break;
+          }
+          case 82: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -191,7 +158,8 @@ private CertificateRevocationList(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         revokedCertificates_ = java.util.Collections.unmodifiableList(revokedCertificates_);
@@ -200,46 +168,41 @@ private CertificateRevocationList(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_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.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateRevocationList.class,
-            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The state of a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList], indicating if it is current.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateRevocationList.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -248,8 +211,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is up to date.
      * 
@@ -258,8 +219,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is no longer current.
      * 
@@ -271,8 +230,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -281,8 +238,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is up to date.
      * 
@@ -291,8 +246,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is no longer current.
      * 
@@ -301,6 +254,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUPERSEDED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -325,51 +279,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return SUPERSEDED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return SUPERSEDED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.CertificateRevocationList.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.CertificateRevocationList.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -386,108 +338,87 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.CertificateRevocationList.State) } - public interface RevokedCertificateOrBuilder - extends + public interface RevokedCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return The certificate. */ java.lang.String getCertificate(); /** - * - * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for certificate. */ - com.google.protobuf.ByteString getCertificateBytes(); + com.google.protobuf.ByteString + getCertificateBytes(); /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString getHexSerialNumberBytes(); + com.google.protobuf.ByteString + getHexSerialNumberBytes(); /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return The enum numeric value on the wire for revocationReason. */ int getRevocationReasonValue(); /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return The revocationReason. */ com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason(); } /** - * - * *
    * Describes a revoked [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} */ - public static final class RevokedCertificate extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RevokedCertificate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) RevokedCertificateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevokedCertificate.newBuilder() to construct. private RevokedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RevokedCertificate() { certificate_ = ""; hexSerialNumber_ = ""; @@ -496,15 +427,16 @@ private RevokedCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RevokedCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RevokedCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -523,34 +455,31 @@ private RevokedCertificate( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - certificate_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + certificate_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - hexSerialNumber_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + hexSerialNumber_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - revocationReason_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + revocationReason_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,42 +487,35 @@ private RevokedCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .class, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder.class); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private volatile java.lang.Object certificate_; /** - * - * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return The certificate. */ @java.lang.Override @@ -602,30 +524,30 @@ public java.lang.String getCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; } } /** - * - * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for certificate. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateBytes() { + public com.google.protobuf.ByteString + getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificate_ = b; return b; } else { @@ -636,14 +558,11 @@ public com.google.protobuf.ByteString getCertificateBytes() { public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 2; private volatile java.lang.Object hexSerialNumber_; /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The hexSerialNumber. */ @java.lang.Override @@ -652,29 +571,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -685,43 +604,31 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { public static final int REVOCATION_REASON_FIELD_NUMBER = 3; private int revocationReason_; /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override - public int getRevocationReasonValue() { + @java.lang.Override public int getRevocationReasonValue() { return revocationReason_; } /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return The revocationReason. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason() { + @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = - com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); - return result == null - ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); + return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -733,16 +640,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(certificate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hexSerialNumber_); } - if (revocationReason_ - != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED - .getNumber()) { + if (revocationReason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(3, revocationReason_); } unknownFields.writeTo(output); @@ -760,10 +666,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hexSerialNumber_); } - if (revocationReason_ - != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, revocationReason_); + if (revocationReason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, revocationReason_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -773,18 +678,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.security.privateca.v1.CertificateRevocationList.RevokedCertificate)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate other = - (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) obj; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate other = (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) obj; - if (!getCertificate().equals(other.getCertificate())) return false; - if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false; + if (!getCertificate() + .equals(other.getCertificate())) return false; + if (!getHexSerialNumber() + .equals(other.getHexSerialNumber())) return false; if (revocationReason_ != other.revocationReason_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -808,114 +712,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - 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.security.privateca.v1.CertificateRevocationList.RevokedCertificate 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.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -925,53 +803,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a revoked [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .class, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder.class); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -985,23 +854,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - build() { - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = - buildPartial(); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate build() { + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1009,11 +874,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - buildPartial() { - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = - new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate( - this); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate buildPartial() { + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate(this); result.certificate_ = certificate_; result.hexSerialNumber_ = hexSerialNumber_; result.revocationReason_ = revocationReason_; @@ -1025,57 +887,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateRevocationList.RevokedCertificate) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) - other); + if (other instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) { + return mergeFrom((com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - other) { - if (other - == com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate other) { + if (other == com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()) return this; if (!other.getCertificate().isEmpty()) { certificate_ = other.certificate_; onChanged(); @@ -1102,14 +953,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1121,21 +969,19 @@ public Builder mergeFrom( private java.lang.Object certificate_ = ""; /** - * - * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return The certificate. */ public java.lang.String getCertificate() { java.lang.Object ref = certificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; @@ -1144,22 +990,21 @@ public java.lang.String getCertificate() { } } /** - * - * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for certificate. */ - public com.google.protobuf.ByteString getCertificateBytes() { + public com.google.protobuf.ByteString + getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificate_ = b; return b; } else { @@ -1167,64 +1012,57 @@ public com.google.protobuf.ByteString getCertificateBytes() { } } /** - * - * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @param value The certificate to set. * @return This builder for chaining. */ - public Builder setCertificate(java.lang.String value) { + public Builder setCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificate_ = value; onChanged(); return this; } /** - * - * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearCertificate() { - + certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } /** - * - * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for certificate to set. * @return This builder for chaining. */ - public Builder setCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificate_ = value; onChanged(); return this; @@ -1232,20 +1070,18 @@ public Builder setCertificateBytes(com.google.protobuf.ByteString value) { private java.lang.Object hexSerialNumber_ = ""; /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1254,21 +1090,20 @@ public java.lang.String getHexSerialNumber() { } } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1276,61 +1111,54 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { } } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber(java.lang.String value) { + public Builder setHexSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1338,98 +1166,77 @@ public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { private int revocationReason_ = 0; /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override - public int getRevocationReasonValue() { + @java.lang.Override public int getRevocationReasonValue() { return revocationReason_; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @param value The enum numeric value on the wire for revocationReason to set. * @return This builder for chaining. */ public Builder setRevocationReasonValue(int value) { - + revocationReason_ = value; onChanged(); return this; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return The revocationReason. */ @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = - com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); - return result == null - ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); + return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @param value The revocationReason to set. * @return This builder for chaining. */ - public Builder setRevocationReason( - com.google.cloud.security.privateca.v1.RevocationReason value) { + public Builder setRevocationReason(com.google.cloud.security.privateca.v1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationReason_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; - * * @return This builder for chaining. */ public Builder clearRevocationReason() { - + revocationReason_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1442,35 +1249,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) - private static final com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate(); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokedCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokedCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokedCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokedCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1482,17 +1284,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate 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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -1501,7 +1301,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1510,15 +1309,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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -1527,15 +1325,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 { @@ -1546,14 +1345,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long sequenceNumber_; /** - * - * *
    * Output only. The CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sequenceNumber. */ @java.lang.Override @@ -1562,105 +1358,73 @@ public long getSequenceNumber() { } public static final int REVOKED_CERTIFICATES_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> - revokedCertificates_; + private java.util.List revokedCertificates_; /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> - getRevokedCertificatesList() { + public java.util.List getRevokedCertificatesList() { return revokedCertificates_; } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder> + public java.util.List getRevokedCertificatesOrBuilderList() { return revokedCertificates_; } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRevokedCertificatesCount() { return revokedCertificates_.size(); } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { return revokedCertificates_.get(index); } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder - getRevokedCertificatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( + int index) { return revokedCertificates_.get(index); } public static final int PEM_CRL_FIELD_NUMBER = 4; private volatile java.lang.Object pemCrl_; /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCrl. */ @java.lang.Override @@ -1669,29 +1433,29 @@ public java.lang.String getPemCrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; } } /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCrl. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCrlBytes() { + public com.google.protobuf.ByteString + getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -1702,14 +1466,11 @@ public com.google.protobuf.ByteString getPemCrlBytes() { public static final int ACCESS_URL_FIELD_NUMBER = 5; private volatile java.lang.Object accessUrl_; /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accessUrl. */ @java.lang.Override @@ -1718,29 +1479,29 @@ public java.lang.String getAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; } } /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessUrlBytes() { + public com.google.protobuf.ByteString + getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -1751,57 +1512,38 @@ public com.google.protobuf.ByteString getAccessUrlBytes() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState() { + @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = - com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1809,15 +1551,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1825,14 +1563,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1842,15 +1577,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1858,15 +1589,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1874,14 +1601,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1891,8 +1615,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int REVISION_ID_FIELD_NUMBER = 9; private volatile java.lang.Object revisionId_; /** - * - * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -1900,7 +1622,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ @java.lang.Override @@ -1909,15 +1630,14 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** - * - * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -1925,15 +1645,16 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1942,23 +1663,24 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { } 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.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_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_; } @@ -1967,30 +1689,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1998,12 +1718,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -2011,16 +1730,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -2028,11 +1747,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -2040,7 +1760,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2052,7 +1771,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -2068,9 +1788,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, accessUrl_); } - if (state_ - != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (createTime_ != null) { @@ -2082,8 +1800,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, revisionId_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 10); unknownFields.writeTo(output); } @@ -2097,11 +1819,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sequenceNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, sequenceNumber_); } for (int i = 0; i < revokedCertificates_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, revokedCertificates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, revokedCertificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pemCrl_); @@ -2109,29 +1832,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, accessUrl_); } - if (state_ - != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, revisionId_); } - 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__); + 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2141,30 +1865,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateRevocationList other = - (com.google.cloud.security.privateca.v1.CertificateRevocationList) obj; - - if (!getName().equals(other.getName())) return false; - if (getSequenceNumber() != other.getSequenceNumber()) return false; - if (!getRevokedCertificatesList().equals(other.getRevokedCertificatesList())) return false; - if (!getPemCrl().equals(other.getPemCrl())) return false; - if (!getAccessUrl().equals(other.getAccessUrl())) return false; + com.google.cloud.security.privateca.v1.CertificateRevocationList other = (com.google.cloud.security.privateca.v1.CertificateRevocationList) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getSequenceNumber() + != other.getSequenceNumber()) return false; + if (!getRevokedCertificatesList() + .equals(other.getRevokedCertificatesList())) return false; + if (!getPemCrl() + .equals(other.getPemCrl())) return false; + if (!getAccessUrl() + .equals(other.getAccessUrl())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getRevisionId().equals(other.getRevisionId())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getRevisionId() + .equals(other.getRevisionId())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2179,7 +1911,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSequenceNumber()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSequenceNumber()); if (getRevokedCertificatesCount() > 0) { hash = (37 * hash) + REVOKED_CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getRevokedCertificatesList().hashCode(); @@ -2210,104 +1943,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateRevocationList 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.security.privateca.v1.CertificateRevocationList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateRevocationList prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateRevocationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] corresponds to a signed X.509 certificate
    * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -2316,43 +2041,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateRevocationList)
       com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_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.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateRevocationList.class,
-              com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateRevocationList.newBuilder()
@@ -2360,17 +2085,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRevokedCertificatesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2409,14 +2134,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateRevocationList
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.CertificateRevocationList getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance();
     }
 
@@ -2431,8 +2155,7 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateRevocationList buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateRevocationList result =
-          new com.google.cloud.security.privateca.v1.CertificateRevocationList(this);
+      com.google.cloud.security.privateca.v1.CertificateRevocationList result = new com.google.cloud.security.privateca.v1.CertificateRevocationList(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.sequenceNumber_ = sequenceNumber_;
@@ -2469,50 +2192,46 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateRevocationList) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateRevocationList)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.CertificateRevocationList other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateRevocationList other) {
+      if (other == com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2538,10 +2257,9 @@ public Builder mergeFrom(
             revokedCertificatesBuilder_ = null;
             revokedCertificates_ = other.revokedCertificates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            revokedCertificatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRevokedCertificatesFieldBuilder()
-                    : null;
+            revokedCertificatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRevokedCertificatesFieldBuilder() : null;
           } else {
             revokedCertificatesBuilder_.addAllMessages(other.revokedCertificates_);
           }
@@ -2568,7 +2286,8 @@ public Builder mergeFrom(
         revisionId_ = other.revisionId_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -2588,9 +2307,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateRevocationList)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateRevocationList) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2599,13 +2316,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2614,13 +2328,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; @@ -2629,8 +2343,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2639,14 +2351,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 { @@ -2654,8 +2367,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2664,22 +2375,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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2688,18 +2397,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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2708,31 +2414,28 @@ 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; } - private long sequenceNumber_; + private long sequenceNumber_ ; /** - * - * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sequenceNumber. */ @java.lang.Override @@ -2740,77 +2443,55 @@ public long getSequenceNumber() { return sequenceNumber_; } /** - * - * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { - + sequenceNumber_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSequenceNumber() { - + sequenceNumber_ = 0L; onChanged(); return this; } - private java.util.List< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> - revokedCertificates_ = java.util.Collections.emptyList(); - + private java.util.List revokedCertificates_ = + java.util.Collections.emptyList(); private void ensureRevokedCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - revokedCertificates_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate>(revokedCertificates_); + revokedCertificates_ = new java.util.ArrayList(revokedCertificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder> - revokedCertificatesBuilder_; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder> revokedCertificatesBuilder_; /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> - getRevokedCertificatesList() { + public java.util.List getRevokedCertificatesList() { if (revokedCertificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(revokedCertificates_); } else { @@ -2818,15 +2499,11 @@ private void ensureRevokedCertificatesIsMutable() { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRevokedCertificatesCount() { if (revokedCertificatesBuilder_ == null) { @@ -2836,18 +2513,13 @@ public int getRevokedCertificatesCount() { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { return revokedCertificates_.get(index); } else { @@ -2855,19 +2527,14 @@ public int getRevokedCertificatesCount() { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { + int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2881,20 +2548,14 @@ public Builder setRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.set(index, builderForValue.build()); @@ -2905,18 +2566,13 @@ public Builder setRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addRevokedCertificates( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { + public Builder addRevokedCertificates(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2930,19 +2586,14 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { + int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2956,19 +2607,14 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRevokedCertificates( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(builderForValue.build()); @@ -2979,20 +2625,14 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(index, builderForValue.build()); @@ -3003,25 +2643,18 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRevokedCertificates( - java.lang.Iterable< - ? extends - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificate> - values) { + java.lang.Iterable values) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revokedCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, revokedCertificates_); onChanged(); } else { revokedCertificatesBuilder_.addAllMessages(values); @@ -3029,15 +2662,11 @@ public Builder addAllRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRevokedCertificates() { if (revokedCertificatesBuilder_ == null) { @@ -3050,15 +2679,11 @@ public Builder clearRevokedCertificates() { return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { @@ -3071,57 +2696,39 @@ public Builder removeRevokedCertificates(int index) { return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder - getRevokedCertificatesBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder getRevokedCertificatesBuilder( + int index) { return getRevokedCertificatesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder - getRevokedCertificatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( + int index) { if (revokedCertificatesBuilder_ == null) { - return revokedCertificates_.get(index); - } else { + return revokedCertificates_.get(index); } else { return revokedCertificatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder> - getRevokedCertificatesOrBuilderList() { + public java.util.List + getRevokedCertificatesOrBuilderList() { if (revokedCertificatesBuilder_ != null) { return revokedCertificatesBuilder_.getMessageOrBuilderList(); } else { @@ -3129,77 +2736,45 @@ public Builder removeRevokedCertificates(int index) { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder - addRevokedCertificatesBuilder() { - return getRevokedCertificatesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder() { + return getRevokedCertificatesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder - addRevokedCertificatesBuilder(int index) { - return getRevokedCertificatesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder( + int index) { + return getRevokedCertificatesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder> - getRevokedCertificatesBuilderList() { + public java.util.List + getRevokedCertificatesBuilderList() { return getRevokedCertificatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder> getRevokedCertificatesFieldBuilder() { if (revokedCertificatesBuilder_ == null) { - revokedCertificatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - .Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder>( + revokedCertificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder>( revokedCertificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3211,20 +2786,18 @@ public Builder removeRevokedCertificates(int index) { private java.lang.Object pemCrl_ = ""; /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCrl. */ public java.lang.String getPemCrl() { java.lang.Object ref = pemCrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; @@ -3233,21 +2806,20 @@ public java.lang.String getPemCrl() { } } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCrl. */ - public com.google.protobuf.ByteString getPemCrlBytes() { + public com.google.protobuf.ByteString + getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -3255,61 +2827,54 @@ public com.google.protobuf.ByteString getPemCrlBytes() { } } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrl(java.lang.String value) { + public Builder setPemCrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCrl() { - + pemCrl_ = getDefaultInstance().getPemCrl(); onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrlBytes(com.google.protobuf.ByteString value) { + public Builder setPemCrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCrl_ = value; onChanged(); return this; @@ -3317,20 +2882,18 @@ public Builder setPemCrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object accessUrl_ = ""; /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accessUrl. */ public java.lang.String getAccessUrl() { java.lang.Object ref = accessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; @@ -3339,21 +2902,20 @@ public java.lang.String getAccessUrl() { } } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accessUrl. */ - public com.google.protobuf.ByteString getAccessUrlBytes() { + public com.google.protobuf.ByteString + getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -3361,61 +2923,54 @@ public com.google.protobuf.ByteString getAccessUrlBytes() { } } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrl(java.lang.String value) { + public Builder setAccessUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accessUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAccessUrl() { - + accessUrl_ = getDefaultInstance().getAccessUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrlBytes(com.google.protobuf.ByteString value) { + public Builder setAccessUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessUrl_ = value; onChanged(); return this; @@ -3423,103 +2978,73 @@ public Builder setAccessUrlBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = - com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.security.privateca.v1.CertificateRevocationList.State value) { + public Builder setState(com.google.cloud.security.privateca.v1.CertificateRevocationList.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3527,58 +3052,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3594,17 +3100,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3615,21 +3118,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3641,15 +3140,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3663,64 +3158,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3728,58 +3207,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3795,17 +3255,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3816,21 +3273,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3842,15 +3295,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3864,64 +3313,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3929,8 +3362,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object revisionId_ = ""; /** - * - * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3938,13 +3369,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -3953,8 +3384,6 @@ public java.lang.String getRevisionId() { } } /** - * - * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3962,14 +3391,15 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -3977,8 +3407,6 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { } } /** - * - * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3986,22 +3414,20 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId(java.lang.String value) { + public Builder setRevisionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revisionId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -4009,18 +3435,15 @@ public Builder setRevisionId(java.lang.String value) {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRevisionId() { - + revisionId_ = getDefaultInstance().getRevisionId(); onChanged(); return this; } /** - * - * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -4028,36 +3451,37 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + public Builder setRevisionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4069,30 +3493,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4100,12 +3522,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4113,17 +3534,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4131,11 +3551,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -4143,66 +3564,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4212,32 +3636,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateRevocationList) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateRevocationList) - private static final com.google.cloud.security.privateca.v1.CertificateRevocationList - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CertificateRevocationList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateRevocationList(); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateRevocationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateRevocationList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateRevocationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateRevocationList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4249,8 +3671,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateRevocationList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java index 129997d5..e40ff16f 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateRevocationListOrBuilder - extends +public interface CertificateRevocationListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateRevocationList) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -34,13 +16,10 @@ public interface CertificateRevocationListOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -49,251 +28,179 @@ public interface CertificateRevocationListOrBuilder
    * 
* * 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 CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sequenceNumber. */ long getSequenceNumber(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> + java.util.List getRevokedCertificatesList(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate - getRevokedCertificates(int index); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRevokedCertificatesCount(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends - com.google.cloud.security.privateca.v1.CertificateRevocationList - .RevokedCertificateOrBuilder> + java.util.List getRevokedCertificatesOrBuilderList(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder - getRevokedCertificatesOrBuilder(int index); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( + int index); /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCrl. */ java.lang.String getPemCrl(); /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCrl. */ - com.google.protobuf.ByteString getPemCrlBytes(); + com.google.protobuf.ByteString + getPemCrlBytes(); /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accessUrl. */ java.lang.String getAccessUrl(); /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accessUrl. */ - com.google.protobuf.ByteString getAccessUrlBytes(); + com.google.protobuf.ByteString + getAccessUrlBytes(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -301,13 +208,10 @@ public interface CertificateRevocationListOrBuilder
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ java.lang.String getRevisionId(); /** - * - * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -315,14 +219,12 @@ public interface CertificateRevocationListOrBuilder
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString getRevisionIdBytes(); + com.google.protobuf.ByteString + getRevisionIdBytes(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -331,31 +233,30 @@ public interface CertificateRevocationListOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -364,18 +265,18 @@ public interface CertificateRevocationListOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java index 166da6c2..c0cc42e3 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] refers to a managed template for certificate
  * issuance.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateTemplate}
  */
-public final class CertificateTemplate extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateTemplate extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateTemplate)
     CertificateTemplateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateTemplate.newBuilder() to construct.
   private CertificateTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateTemplate() {
     name_ = "";
     description_ = "";
@@ -45,15 +27,16 @@ private CertificateTemplate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateTemplate();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateTemplate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,125 +56,103 @@ private CertificateTemplate(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
+            if (predefinedValues_ != null) {
+              subBuilder = predefinedValues_.toBuilder();
+            }
+            predefinedValues_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(predefinedValues_);
+              predefinedValues_ = subBuilder.buildPartial();
+            }
 
-              name_ = s;
-              break;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder subBuilder = null;
+            if (identityConstraints_ != null) {
+              subBuilder = identityConstraints_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
-              if (predefinedValues_ != null) {
-                subBuilder = predefinedValues_.toBuilder();
-              }
-              predefinedValues_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.X509Parameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(predefinedValues_);
-                predefinedValues_ = subBuilder.buildPartial();
-              }
-
-              break;
+            identityConstraints_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(identityConstraints_);
+              identityConstraints_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder
-                  subBuilder = null;
-              if (identityConstraints_ != null) {
-                subBuilder = identityConstraints_.toBuilder();
-              }
-              identityConstraints_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(identityConstraints_);
-                identityConstraints_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 34: {
+            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder subBuilder = null;
+            if (passthroughExtensions_ != null) {
+              subBuilder = passthroughExtensions_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder
-                  subBuilder = null;
-              if (passthroughExtensions_ != null) {
-                subBuilder = passthroughExtensions_.toBuilder();
-              }
-              passthroughExtensions_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(passthroughExtensions_);
-                passthroughExtensions_ = subBuilder.buildPartial();
-              }
-
-              break;
+            passthroughExtensions_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(passthroughExtensions_);
+              passthroughExtensions_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 50: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 50:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -199,53 +160,47 @@ private CertificateTemplate(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 8:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateTemplate.class,
-            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateTemplate.class, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -254,32 +209,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -290,8 +243,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PREDEFINED_VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters predefinedValues_; /** - * - * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -302,10 +253,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * properties, the certificate issuance request will fail.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the predefinedValues field is set. */ @java.lang.Override @@ -313,8 +261,6 @@ public boolean hasPredefinedValues() { return predefinedValues_ != null; } /** - * - * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -325,21 +271,14 @@ public boolean hasPredefinedValues() {
    * properties, the certificate issuance request will fail.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The predefinedValues. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues() { - return predefinedValues_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : predefinedValues_; + return predefinedValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : predefinedValues_; } /** - * - * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -350,32 +289,23 @@ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues
    * properties, the certificate issuance request will fail.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder - getPredefinedValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefinedValuesOrBuilder() { return getPredefinedValues(); } public static final int IDENTITY_CONSTRAINTS_FIELD_NUMBER = 3; - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; /** - * - * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConstraints field is set. */ @java.lang.Override @@ -383,52 +313,36 @@ public boolean hasIdentityConstraints() { return identityConstraints_ != null; } /** - * - * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConstraints. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - getIdentityConstraints() { - return identityConstraints_ == null - ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() - : identityConstraints_; + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { + return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; } /** - * - * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder - getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { return getIdentityConstraints(); } public static final int PASSTHROUGH_EXTENSIONS_FIELD_NUMBER = 4; - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; /** - * - * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -442,10 +356,7 @@ public boolean hasIdentityConstraints() {
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the passthroughExtensions field is set. */ @java.lang.Override @@ -453,8 +364,6 @@ public boolean hasPassthroughExtensions() { return passthroughExtensions_ != null; } /** - * - * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -468,23 +377,14 @@ public boolean hasPassthroughExtensions() {
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The passthroughExtensions. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getPassthroughExtensions() { - return passthroughExtensions_ == null - ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .getDefaultInstance() - : passthroughExtensions_; + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { + return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; } /** - * - * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -498,27 +398,21 @@ public boolean hasPassthroughExtensions() {
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder - getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { return getPassthroughExtensions(); } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -527,29 +421,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -560,15 +454,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -576,15 +466,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -592,14 +478,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -609,15 +492,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -625,15 +504,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -641,14 +516,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -656,23 +528,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -681,30 +554,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -712,12 +583,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -725,16 +595,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -742,11 +612,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -754,7 +625,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -766,7 +636,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -788,8 +659,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); unknownFields.writeTo(output); } @@ -803,33 +678,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (predefinedValues_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPredefinedValues()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPredefinedValues()); } if (identityConstraints_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIdentityConstraints()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getIdentityConstraints()); } if (passthroughExtensions_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPassthroughExtensions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPassthroughExtensions()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -839,37 +718,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateTemplate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateTemplate other = - (com.google.cloud.security.privateca.v1.CertificateTemplate) obj; + com.google.cloud.security.privateca.v1.CertificateTemplate other = (com.google.cloud.security.privateca.v1.CertificateTemplate) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasPredefinedValues() != other.hasPredefinedValues()) return false; if (hasPredefinedValues()) { - if (!getPredefinedValues().equals(other.getPredefinedValues())) return false; + if (!getPredefinedValues() + .equals(other.getPredefinedValues())) return false; } if (hasIdentityConstraints() != other.hasIdentityConstraints()) return false; if (hasIdentityConstraints()) { - if (!getIdentityConstraints().equals(other.getIdentityConstraints())) return false; + if (!getIdentityConstraints() + .equals(other.getIdentityConstraints())) return false; } if (hasPassthroughExtensions() != other.hasPassthroughExtensions()) return false; if (hasPassthroughExtensions()) { - if (!getPassthroughExtensions().equals(other.getPassthroughExtensions())) return false; + if (!getPassthroughExtensions() + .equals(other.getPassthroughExtensions())) return false; } - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -915,104 +801,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateTemplate 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.security.privateca.v1.CertificateTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CertificateTemplate prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] refers to a managed template for certificate
    * issuance.
@@ -1020,43 +898,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateTemplate}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateTemplate)
       com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 8:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 8:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateTemplate.class,
-              com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateTemplate.class, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder()
@@ -1064,15 +942,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1115,9 +994,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -1136,8 +1015,7 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateTemplate buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateTemplate result =
-          new com.google.cloud.security.privateca.v1.CertificateTemplate(this);
+      com.google.cloud.security.privateca.v1.CertificateTemplate result = new com.google.cloud.security.privateca.v1.CertificateTemplate(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (predefinedValuesBuilder_ == null) {
@@ -1176,39 +1054,38 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateTemplate) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateTemplate) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateTemplate)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1216,8 +1093,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTemplate other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1241,7 +1117,8 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTempl
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -1261,8 +1138,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CertificateTemplate) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateTemplate) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1271,28 +1147,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -1301,24 +1172,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -1326,70 +1194,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** - * - * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -1397,13 +1252,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1.X509Parameters predefinedValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> - predefinedValuesBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> predefinedValuesBuilder_; /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1414,18 +1264,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the predefinedValues field is set. */ public boolean hasPredefinedValues() { return predefinedValuesBuilder_ != null || predefinedValues_ != null; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1436,24 +1281,17 @@ public boolean hasPredefinedValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The predefinedValues. */ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues() { if (predefinedValuesBuilder_ == null) { - return predefinedValues_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : predefinedValues_; + return predefinedValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : predefinedValues_; } else { return predefinedValuesBuilder_.getMessage(); } } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1464,12 +1302,9 @@ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPredefinedValues( - com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder setPredefinedValues(com.google.cloud.security.privateca.v1.X509Parameters value) { if (predefinedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1483,8 +1318,6 @@ public Builder setPredefinedValues( return this; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1495,9 +1328,7 @@ public Builder setPredefinedValues(
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPredefinedValues( com.google.cloud.security.privateca.v1.X509Parameters.Builder builderForValue) { @@ -1511,8 +1342,6 @@ public Builder setPredefinedValues( return this; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1523,18 +1352,13 @@ public Builder setPredefinedValues(
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePredefinedValues( - com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder mergePredefinedValues(com.google.cloud.security.privateca.v1.X509Parameters value) { if (predefinedValuesBuilder_ == null) { if (predefinedValues_ != null) { predefinedValues_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(predefinedValues_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(predefinedValues_).mergeFrom(value).buildPartial(); } else { predefinedValues_ = value; } @@ -1546,8 +1370,6 @@ public Builder mergePredefinedValues( return this; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1558,9 +1380,7 @@ public Builder mergePredefinedValues(
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPredefinedValues() { if (predefinedValuesBuilder_ == null) { @@ -1574,8 +1394,6 @@ public Builder clearPredefinedValues() { return this; } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1586,19 +1404,14 @@ public Builder clearPredefinedValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Parameters.Builder - getPredefinedValuesBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.Builder getPredefinedValuesBuilder() { + onChanged(); return getPredefinedValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1609,23 +1422,17 @@ public Builder clearPredefinedValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder - getPredefinedValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefinedValuesOrBuilder() { if (predefinedValuesBuilder_ != null) { return predefinedValuesBuilder_.getMessageOrBuilder(); } else { - return predefinedValues_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() - : predefinedValues_; + return predefinedValues_ == null ? + com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : predefinedValues_; } } /** - * - * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1636,93 +1443,65 @@ public Builder clearPredefinedValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getPredefinedValuesFieldBuilder() { if (predefinedValuesBuilder_ == null) { - predefinedValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, - com.google.cloud.security.privateca.v1.X509Parameters.Builder, - com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getPredefinedValues(), getParentForChildren(), isClean()); + predefinedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getPredefinedValues(), + getParentForChildren(), + isClean()); predefinedValues_ = null; } return predefinedValuesBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> - identityConstraintsBuilder_; + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> identityConstraintsBuilder_; /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConstraints field is set. */ public boolean hasIdentityConstraints() { return identityConstraintsBuilder_ != null || identityConstraints_ != null; } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConstraints. */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - getIdentityConstraints() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { if (identityConstraintsBuilder_ == null) { - return identityConstraints_ == null - ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - .getDefaultInstance() - : identityConstraints_; + return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; } else { return identityConstraintsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1736,21 +1515,16 @@ public Builder setIdentityConstraints( return this; } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder builderForValue) { if (identityConstraintsBuilder_ == null) { identityConstraints_ = builderForValue.build(); onChanged(); @@ -1761,27 +1535,19 @@ public Builder setIdentityConstraints( return this; } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (identityConstraints_ != null) { identityConstraints_ = - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder( - identityConstraints_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder(identityConstraints_).mergeFrom(value).buildPartial(); } else { identityConstraints_ = value; } @@ -1793,17 +1559,13 @@ public Builder mergeIdentityConstraints( return this; } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdentityConstraints() { if (identityConstraintsBuilder_ == null) { @@ -1817,88 +1579,63 @@ public Builder clearIdentityConstraints() { return this; } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder - getIdentityConstraintsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder getIdentityConstraintsBuilder() { + onChanged(); return getIdentityConstraintsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder - getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { if (identityConstraintsBuilder_ != null) { return identityConstraintsBuilder_.getMessageOrBuilder(); } else { - return identityConstraints_ == null - ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints - .getDefaultInstance() - : identityConstraints_; + return identityConstraints_ == null ? + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; } } /** - * - * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> getIdentityConstraintsFieldBuilder() { if (identityConstraintsBuilder_ == null) { - identityConstraintsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( - getIdentityConstraints(), getParentForChildren(), isClean()); + identityConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( + getIdentityConstraints(), + getParentForChildren(), + isClean()); identityConstraints_ = null; } return identityConstraintsBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> - passthroughExtensionsBuilder_; + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> passthroughExtensionsBuilder_; /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1912,18 +1649,13 @@ public Builder clearIdentityConstraints() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the passthroughExtensions field is set. */ public boolean hasPassthroughExtensions() { return passthroughExtensionsBuilder_ != null || passthroughExtensions_ != null; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1937,26 +1669,17 @@ public boolean hasPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The passthroughExtensions. */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - getPassthroughExtensions() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { - return passthroughExtensions_ == null - ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .getDefaultInstance() - : passthroughExtensions_; + return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; } else { return passthroughExtensionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1970,12 +1693,9 @@ public boolean hasPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1989,8 +1709,6 @@ public Builder setPassthroughExtensions( return this; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -2004,13 +1722,10 @@ public Builder setPassthroughExtensions(
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder builderForValue) { if (passthroughExtensionsBuilder_ == null) { passthroughExtensions_ = builderForValue.build(); onChanged(); @@ -2021,8 +1736,6 @@ public Builder setPassthroughExtensions( return this; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -2036,19 +1749,13 @@ public Builder setPassthroughExtensions(
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (passthroughExtensions_ != null) { passthroughExtensions_ = - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder( - passthroughExtensions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder(passthroughExtensions_).mergeFrom(value).buildPartial(); } else { passthroughExtensions_ = value; } @@ -2060,8 +1767,6 @@ public Builder mergePassthroughExtensions( return this; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -2075,9 +1780,7 @@ public Builder mergePassthroughExtensions(
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { @@ -2091,8 +1794,6 @@ public Builder clearPassthroughExtensions() { return this; } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -2106,19 +1807,14 @@ public Builder clearPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder - getPassthroughExtensionsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder getPassthroughExtensionsBuilder() { + onChanged(); return getPassthroughExtensionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -2132,24 +1828,17 @@ public Builder clearPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder - getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { if (passthroughExtensionsBuilder_ != null) { return passthroughExtensionsBuilder_.getMessageOrBuilder(); } else { - return passthroughExtensions_ == null - ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints - .getDefaultInstance() - : passthroughExtensions_; + return passthroughExtensions_ == null ? + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; } } /** - * - * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -2163,22 +1852,17 @@ public Builder clearPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> getPassthroughExtensionsFieldBuilder() { if (passthroughExtensionsBuilder_ == null) { - passthroughExtensionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( - getPassthroughExtensions(), getParentForChildren(), isClean()); + passthroughExtensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( + getPassthroughExtensions(), + getParentForChildren(), + isClean()); passthroughExtensions_ = null; } return passthroughExtensionsBuilder_; @@ -2186,20 +1870,18 @@ public Builder clearPassthroughExtensions() { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2208,21 +1890,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2230,61 +1911,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2292,58 +1966,39 @@ public Builder setDescriptionBytes(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 [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2359,17 +2014,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2380,21 +2032,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2406,15 +2054,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2428,64 +2072,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2493,58 +2121,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2560,17 +2169,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2581,21 +2187,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2607,15 +2209,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2629,84 +2227,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - 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(); @@ -2718,30 +2301,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -2749,12 +2330,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -2762,17 +2342,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -2780,11 +2359,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -2792,66 +2372,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2861,12 +2444,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateTemplate) private static final com.google.cloud.security.privateca.v1.CertificateTemplate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateTemplate(); } @@ -2875,16 +2458,16 @@ public static com.google.cloud.security.privateca.v1.CertificateTemplate getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2899,4 +2482,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java index f2787079..555cad86 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateTemplateOrBuilder - extends +public interface CertificateTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -67,16 +40,11 @@ public interface CertificateTemplateOrBuilder
    * properties, the certificate issuance request will fail.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the predefinedValues field is set. */ boolean hasPredefinedValues(); /** - * - * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -87,16 +55,11 @@ public interface CertificateTemplateOrBuilder
    * properties, the certificate issuance request will fail.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The predefinedValues. */ com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues(); /** - * - * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -107,63 +70,44 @@ public interface CertificateTemplateOrBuilder
    * properties, the certificate issuance request will fail.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefinedValuesOrBuilder(); /** - * - * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identityConstraints field is set. */ boolean hasIdentityConstraints(); /** - * - * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The identityConstraints. */ com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints(); /** - * - * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder - getIdentityConstraintsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder(); /** - * - * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -177,16 +121,11 @@ public interface CertificateTemplateOrBuilder
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the passthroughExtensions field is set. */ boolean hasPassthroughExtensions(); /** - * - * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -200,16 +139,11 @@ public interface CertificateTemplateOrBuilder
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The passthroughExtensions. */ com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions(); /** - * - * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -223,117 +157,85 @@ public interface CertificateTemplateOrBuilder
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder - getPassthroughExtensionsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder(); /** - * - * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -342,31 +244,30 @@ public interface CertificateTemplateOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -375,18 +276,18 @@ public interface CertificateTemplateOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java index f8e72a1f..3608ad62 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.CreateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CreateCaPoolRequest}
  */
-public final class CreateCaPoolRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateCaPoolRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCaPoolRequest)
     CreateCaPoolRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateCaPoolRequest.newBuilder() to construct.
   private CreateCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateCaPoolRequest() {
     parent_ = "";
     caPoolId_ = "";
@@ -46,15 +28,16 @@ private CreateCaPoolRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateCaPoolRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateCaPoolRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,50 +56,44 @@ private CreateCaPoolRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              caPoolId_ = s;
-              break;
+            caPoolId_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
+            if (caPool_ != null) {
+              subBuilder = caPool_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
-              if (caPool_ != null) {
-                subBuilder = caPool_.toBuilder();
-              }
-              caPool_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(caPool_);
-                caPool_ = subBuilder.buildPartial();
-              }
-
-              break;
+            caPool_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(caPool_);
+              caPool_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -124,42 +101,35 @@ private CreateCaPoolRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class,
-            com.google.cloud.security.privateca.v1.CreateCaPoolRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, com.google.cloud.security.privateca.v1.CreateCaPoolRequest.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
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 @@ -168,32 +138,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 location associated with the
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 { @@ -204,15 +172,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CA_POOL_ID_FIELD_NUMBER = 2; private volatile java.lang.Object caPoolId_; /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The caPoolId. */ @java.lang.Override @@ -221,30 +186,30 @@ public java.lang.String getCaPoolId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPoolId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for caPoolId. */ @java.lang.Override - public com.google.protobuf.ByteString getCaPoolIdBytes() { + public com.google.protobuf.ByteString + getCaPoolIdBytes() { java.lang.Object ref = caPoolId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caPoolId_ = b; return b; } else { @@ -255,16 +220,11 @@ public com.google.protobuf.ByteString getCaPoolIdBytes() { public static final int CA_POOL_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CaPool caPool_; /** - * - * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the caPool field is set. */ @java.lang.Override @@ -272,34 +232,23 @@ public boolean hasCaPool() { return caPool_ != null; } /** - * - * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The caPool. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool getCaPool() { - return caPool_ == null - ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() - : caPool_; + return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; } /** - * - * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { @@ -309,8 +258,6 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -326,7 +273,6 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -335,15 +281,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -359,15 +304,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -376,7 +322,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -417,7 +363,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caPoolId_); } if (caPool_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCaPool()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCaPool()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -430,21 +377,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.security.privateca.v1.CreateCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCaPoolRequest other = - (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.CreateCaPoolRequest other = (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCaPoolId().equals(other.getCaPoolId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCaPoolId() + .equals(other.getCaPoolId())) return false; if (hasCaPool() != other.hasCaPool()) return false; if (hasCaPool()) { - if (!getCaPool().equals(other.getCaPool())) return false; + if (!getCaPool() + .equals(other.getCaPool())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,104 +422,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest 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.security.privateca.v1.CreateCaPoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool].
@@ -577,23 +519,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CreateCaPoolRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCaPoolRequest)
       com.google.cloud.security.privateca.v1.CreateCaPoolRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class,
-              com.google.cloud.security.privateca.v1.CreateCaPoolRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, com.google.cloud.security.privateca.v1.CreateCaPoolRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CreateCaPoolRequest.newBuilder()
@@ -601,15 +541,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -629,9 +570,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
@@ -650,8 +591,7 @@ public com.google.cloud.security.privateca.v1.CreateCaPoolRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCaPoolRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.CreateCaPoolRequest result =
-          new com.google.cloud.security.privateca.v1.CreateCaPoolRequest(this);
+      com.google.cloud.security.privateca.v1.CreateCaPoolRequest result = new com.google.cloud.security.privateca.v1.CreateCaPoolRequest(this);
       result.parent_ = parent_;
       result.caPoolId_ = caPoolId_;
       if (caPoolBuilder_ == null) {
@@ -668,39 +608,38 @@ public com.google.cloud.security.privateca.v1.CreateCaPoolRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CreateCaPoolRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCaPoolRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCaPoolRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -708,8 +647,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCaPoolRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.CreateCaPoolRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.CreateCaPoolRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -744,8 +682,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -757,23 +694,19 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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; @@ -782,24 +715,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 { @@ -807,70 +737,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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; @@ -878,21 +795,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object caPoolId_ = ""; /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The caPoolId. */ public java.lang.String getCaPoolId() { java.lang.Object ref = caPoolId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPoolId_ = s; return s; @@ -901,22 +816,21 @@ public java.lang.String getCaPoolId() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for caPoolId. */ - public com.google.protobuf.ByteString getCaPoolIdBytes() { + public com.google.protobuf.ByteString + getCaPoolIdBytes() { java.lang.Object ref = caPoolId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caPoolId_ = b; return b; } else { @@ -924,64 +838,57 @@ public com.google.protobuf.ByteString getCaPoolIdBytes() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The caPoolId to set. * @return This builder for chaining. */ - public Builder setCaPoolId(java.lang.String value) { + public Builder setCaPoolId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caPoolId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCaPoolId() { - + caPoolId_ = getDefaultInstance().getCaPoolId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for caPoolId to set. * @return This builder for chaining. */ - public Builder setCaPoolIdBytes(com.google.protobuf.ByteString value) { + public Builder setCaPoolIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPoolId_ = value; onChanged(); return this; @@ -989,58 +896,39 @@ public Builder setCaPoolIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1.CaPool caPool_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder> - caPoolBuilder_; + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> caPoolBuilder_; /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the caPool field is set. */ public boolean hasCaPool() { return caPoolBuilder_ != null || caPool_ != null; } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The caPool. */ public com.google.cloud.security.privateca.v1.CaPool getCaPool() { if (caPoolBuilder_ == null) { - return caPool_ == null - ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() - : caPool_; + return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; } else { return caPoolBuilder_.getMessage(); } } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { @@ -1056,15 +944,11 @@ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { return this; } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCaPool( com.google.cloud.security.privateca.v1.CaPool.Builder builderForValue) { @@ -1078,23 +962,17 @@ public Builder setCaPool( return this; } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { if (caPool_ != null) { caPool_ = - com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_).mergeFrom(value).buildPartial(); } else { caPool_ = value; } @@ -1106,15 +984,11 @@ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) return this; } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCaPool() { if (caPoolBuilder_ == null) { @@ -1128,64 +1002,48 @@ public Builder clearCaPool() { return this; } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolBuilder() { - + onChanged(); return getCaPoolFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { if (caPoolBuilder_ != null) { return caPoolBuilder_.getMessageOrBuilder(); } else { - return caPool_ == null - ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() - : caPool_; + return caPool_ == null ? + com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; } } /** - * - * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> getCaPoolFieldBuilder() { if (caPoolBuilder_ == null) { - caPoolBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( - getCaPool(), getParentForChildren(), isClean()); + caPoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( + getCaPool(), + getParentForChildren(), + isClean()); caPool_ = null; } return caPoolBuilder_; @@ -1193,8 +1051,6 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1210,13 +1066,13 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1225,8 +1081,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1242,14 +1096,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1257,8 +1112,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1274,22 +1127,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1305,18 +1156,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1332,23 +1180,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1358,12 +1206,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCaPoolRequest) private static final com.google.cloud.security.privateca.v1.CreateCaPoolRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCaPoolRequest(); } @@ -1372,16 +1220,16 @@ public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1396,4 +1244,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CreateCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java index 9abe15b3..9c7ceb94 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java @@ -1,130 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCaPoolRequestOrBuilder - extends +public interface CreateCaPoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCaPoolRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The caPoolId. */ java.lang.String getCaPoolId(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for caPoolId. */ - com.google.protobuf.ByteString getCaPoolIdBytes(); + com.google.protobuf.ByteString + getCaPoolIdBytes(); /** - * - * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the caPool field is set. */ boolean hasCaPool(); /** - * - * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The caPool. */ com.google.cloud.security.privateca.v1.CaPool getCaPool(); /** - * - * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -140,13 +94,10 @@ public interface CreateCaPoolRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -162,8 +113,8 @@ public interface CreateCaPoolRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java index 78d6b23a..c0b3b51b 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest}
  */
-public final class CreateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)
     CreateCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateCertificateAuthorityRequest.newBuilder() to construct.
-  private CreateCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateCertificateAuthorityRequest() {
     parent_ = "";
     certificateAuthorityId_ = "";
@@ -47,15 +28,16 @@ private CreateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,51 +56,44 @@ private CreateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              certificateAuthorityId_ = s;
-              break;
+            certificateAuthorityId_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
+            if (certificateAuthority_ != null) {
+              subBuilder = certificateAuthority_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
-              if (certificateAuthority_ != null) {
-                subBuilder = certificateAuthority_.toBuilder();
-              }
-              certificateAuthority_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateAuthority.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateAuthority_);
-                certificateAuthority_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateAuthority_);
+              certificateAuthority_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -126,43 +101,36 @@ private CreateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 @@ -171,33 +139,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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 { @@ -208,15 +174,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateAuthorityId_; /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthorityId. */ @java.lang.Override @@ -225,30 +188,30 @@ public java.lang.String getCertificateAuthorityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthorityId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -259,16 +222,11 @@ public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_; /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -276,46 +234,32 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -331,7 +275,6 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -340,15 +283,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -364,15 +306,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -381,7 +324,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +335,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -422,8 +365,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateAuthorityId_); } if (certificateAuthority_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificateAuthority()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -436,22 +379,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.security.privateca.v1.CreateCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateAuthorityId().equals(other.getCertificateAuthorityId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateAuthorityId() + .equals(other.getCertificateAuthorityId())) return false; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority() + .equals(other.getCertificateAuthority())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -479,105 +424,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest 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.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest - 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.security.privateca.v1.CreateCertificateAuthorityRequest 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.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -585,41 +521,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -639,22 +572,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -663,8 +593,7 @@ public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(this);
       result.parent_ = parent_;
       result.certificateAuthorityId_ = certificateAuthorityId_;
       if (certificateAuthorityBuilder_ == null) {
@@ -681,52 +610,46 @@ public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -761,9 +684,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -775,24 +696,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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; @@ -801,25 +718,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -827,73 +741,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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; @@ -901,21 +802,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateAuthorityId_ = ""; /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthorityId. */ public java.lang.String getCertificateAuthorityId() { java.lang.Object ref = certificateAuthorityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; @@ -924,22 +823,21 @@ public java.lang.String getCertificateAuthorityId() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthorityId. */ - public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -947,64 +845,57 @@ public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityId(java.lang.String value) { + public Builder setCertificateAuthorityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateAuthorityId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateAuthorityId() { - + certificateAuthorityId_ = getDefaultInstance().getCertificateAuthorityId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateAuthorityId_ = value; onChanged(); return this; @@ -1012,61 +903,41 @@ public Builder setCertificateAuthorityIdBytes(com.google.protobuf.ByteString val private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> - certificateAuthorityBuilder_; + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_; /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateAuthority( - com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1080,15 +951,11 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { @@ -1102,25 +969,17 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateAuthority( - com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder( - certificateAuthority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); } else { certificateAuthority_ = value; } @@ -1132,15 +991,11 @@ public Builder mergeCertificateAuthority( return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -1154,66 +1009,48 @@ public Builder clearCertificateAuthority() { return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder - getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? + com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), getParentForChildren(), isClean()); + certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), + getParentForChildren(), + isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -1221,8 +1058,6 @@ public Builder clearCertificateAuthority() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1238,13 +1073,13 @@ public Builder clearCertificateAuthority() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1253,8 +1088,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1270,14 +1103,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1285,8 +1119,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1302,22 +1134,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1333,18 +1163,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1360,23 +1187,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1386,33 +1213,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1424,8 +1248,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java index a41b9602..6d93b956 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCertificateAuthorityRequestOrBuilder - extends +public interface CreateCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthorityId. */ java.lang.String getCertificateAuthorityId(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthorityId. */ - com.google.protobuf.ByteString getCertificateAuthorityIdBytes(); + com.google.protobuf.ByteString + getCertificateAuthorityIdBytes(); /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority(); /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,13 +96,10 @@ public interface CreateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -165,8 +115,8 @@ public interface CreateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java index 38f9d7ee..ead07878 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateRequest} */ -public final class CreateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCertificateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCertificateRequest) CreateCertificateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCertificateRequest.newBuilder() to construct. private CreateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCertificateRequest() { parent_ = ""; certificateId_ = ""; @@ -46,15 +28,16 @@ private CreateCertificateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,63 +56,55 @@ private CreateCertificateRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - certificateId_ = s; - break; + certificateId_ = s; + break; + } + case 26: { + com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); } - case 26: - { - com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.security.privateca.v1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - - break; + certificate_ = input.readMessage(com.google.cloud.security.privateca.v1.Certificate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 40: - { - validateOnly_ = input.readBool(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - issuingCertificateAuthorityId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + case 40: { + + validateOnly_ = input.readBool(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + issuingCertificateAuthorityId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,42 +112,35 @@ private CreateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, - com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 @@ -181,32 +149,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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 { @@ -217,8 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateId_; /** - * - * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -227,7 +191,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The certificateId. */ @java.lang.Override @@ -236,15 +199,14 @@ public java.lang.String getCertificateId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } } /** - * - * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -253,15 +215,16 @@ public java.lang.String getCertificateId() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for certificateId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateIdBytes() { + public com.google.protobuf.ByteString + getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateId_ = b; return b; } else { @@ -272,16 +235,11 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { public static final int CERTIFICATE_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.Certificate certificate_; /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ @java.lang.Override @@ -289,34 +247,23 @@ public boolean hasCertificate() { return certificate_ != null; } /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate getCertificate() { - return certificate_ == null - ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; } /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { @@ -326,8 +273,6 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -343,7 +288,6 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -352,15 +296,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -376,15 +319,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -395,8 +339,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_; /** - * - * *
    * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
    * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -404,7 +346,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -415,8 +356,6 @@ public boolean getValidateOnly() { public static final int ISSUING_CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER = 6; private volatile java.lang.Object issuingCertificateAuthorityId_; /** - * - * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -431,9 +370,7 @@ public boolean getValidateOnly() {
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuingCertificateAuthorityId. */ @java.lang.Override @@ -442,15 +379,14 @@ public java.lang.String getIssuingCertificateAuthorityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuingCertificateAuthorityId_ = s; return s; } } /** - * - * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -465,17 +401,17 @@ public java.lang.String getIssuingCertificateAuthorityId() {
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for issuingCertificateAuthorityId. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString + getIssuingCertificateAuthorityIdBytes() { java.lang.Object ref = issuingCertificateAuthorityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuingCertificateAuthorityId_ = b; return b; } else { @@ -484,7 +420,6 @@ public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -496,7 +431,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -531,18 +467,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateId_); } if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuingCertificateAuthorityId_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 6, issuingCertificateAuthorityId_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, issuingCertificateAuthorityId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -552,24 +488,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.security.privateca.v1.CreateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCertificateRequest other = - (com.google.cloud.security.privateca.v1.CreateCertificateRequest) obj; + com.google.cloud.security.privateca.v1.CreateCertificateRequest other = (com.google.cloud.security.privateca.v1.CreateCertificateRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateId().equals(other.getCertificateId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateId() + .equals(other.getCertificateId())) return false; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate().equals(other.getCertificate())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getIssuingCertificateAuthorityId().equals(other.getIssuingCertificateAuthorityId())) - return false; + if (!getCertificate() + .equals(other.getCertificate())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getIssuingCertificateAuthorityId() + .equals(other.getIssuingCertificateAuthorityId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -592,7 +532,8 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ISSUING_CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER; hash = (53 * hash) + getIssuingCertificateAuthorityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -601,127 +542,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCertificateRequest 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.security.privateca.v1.CreateCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CreateCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCertificateRequest) com.google.cloud.security.privateca.v1.CreateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, - com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.CreateCertificateRequest.newBuilder() @@ -729,15 +660,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -761,14 +693,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateRequest getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance(); } @@ -783,8 +714,7 @@ public com.google.cloud.security.privateca.v1.CreateCertificateRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.CreateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1.CreateCertificateRequest result = - new com.google.cloud.security.privateca.v1.CreateCertificateRequest(this); + com.google.cloud.security.privateca.v1.CreateCertificateRequest result = new com.google.cloud.security.privateca.v1.CreateCertificateRequest(this); result.parent_ = parent_; result.certificateId_ = certificateId_; if (certificateBuilder_ == null) { @@ -803,50 +733,46 @@ public com.google.cloud.security.privateca.v1.CreateCertificateRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.CreateCertificateRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.CreateCertificateRequest other) { - if (other - == com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCertificateRequest other) { + if (other == com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -888,9 +814,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.CreateCertificateRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.CreateCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -902,23 +826,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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; @@ -927,24 +847,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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 { @@ -952,70 +869,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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; @@ -1023,8 +927,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateId_ = ""; /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1033,13 +935,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; @@ -1048,8 +950,6 @@ public java.lang.String getCertificateId() { } } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1058,14 +958,15 @@ public java.lang.String getCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for certificateId. */ - public com.google.protobuf.ByteString getCertificateIdBytes() { + public com.google.protobuf.ByteString + getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateId_ = b; return b; } else { @@ -1073,8 +974,6 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { } } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1083,22 +982,20 @@ public com.google.protobuf.ByteString getCertificateIdBytes() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateId(java.lang.String value) { + public Builder setCertificateId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1107,18 +1004,15 @@ public Builder setCertificateId(java.lang.String value) {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCertificateId() { - + certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1127,16 +1021,16 @@ public Builder clearCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateId_ = value; onChanged(); return this; @@ -1144,58 +1038,39 @@ public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder> - certificateBuilder_; + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> certificateBuilder_; /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ public com.google.cloud.security.privateca.v1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null - ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { @@ -1211,15 +1086,11 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate( com.google.cloud.security.privateca.v1.Certificate.Builder builderForValue) { @@ -1233,23 +1104,17 @@ public Builder setCertificate( return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); } else { certificate_ = value; } @@ -1261,15 +1126,11 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certifica return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -1283,64 +1144,48 @@ public Builder clearCertificate() { return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null - ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; } } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder>( - getCertificate(), getParentForChildren(), isClean()); + certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder>( + getCertificate(), + getParentForChildren(), + isClean()); certificate_ = null; } return certificateBuilder_; @@ -1348,8 +1193,6 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1365,13 +1208,13 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1380,8 +1223,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1397,14 +1238,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1412,8 +1254,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1429,22 +1269,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1460,18 +1298,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1487,25 +1322,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
      * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -1513,7 +1346,6 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1521,8 +1353,6 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
      * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -1530,19 +1360,16 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
      * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -1550,11 +1377,10 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -1562,8 +1388,6 @@ public Builder clearValidateOnly() { private java.lang.Object issuingCertificateAuthorityId_ = ""; /** - * - * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1578,15 +1402,14 @@ public Builder clearValidateOnly() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuingCertificateAuthorityId. */ public java.lang.String getIssuingCertificateAuthorityId() { java.lang.Object ref = issuingCertificateAuthorityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuingCertificateAuthorityId_ = s; return s; @@ -1595,8 +1418,6 @@ public java.lang.String getIssuingCertificateAuthorityId() { } } /** - * - * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1611,16 +1432,16 @@ public java.lang.String getIssuingCertificateAuthorityId() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for issuingCertificateAuthorityId. */ - public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString + getIssuingCertificateAuthorityIdBytes() { java.lang.Object ref = issuingCertificateAuthorityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuingCertificateAuthorityId_ = b; return b; } else { @@ -1628,8 +1449,6 @@ public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() { } } /** - * - * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1644,24 +1463,21 @@ public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The issuingCertificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setIssuingCertificateAuthorityId(java.lang.String value) { + public Builder setIssuingCertificateAuthorityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuingCertificateAuthorityId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1676,20 +1492,16 @@ public Builder setIssuingCertificateAuthorityId(java.lang.String value) {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearIssuingCertificateAuthorityId() { - + issuingCertificateAuthorityId_ = getDefaultInstance().getIssuingCertificateAuthorityId(); onChanged(); return this; } /** - * - * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1704,25 +1516,24 @@ public Builder clearIssuingCertificateAuthorityId() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for issuingCertificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setIssuingCertificateAuthorityIdBytes(com.google.protobuf.ByteString value) { + public Builder setIssuingCertificateAuthorityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuingCertificateAuthorityId_ = 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); } @@ -1732,32 +1543,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCertificateRequest) - private static final com.google.cloud.security.privateca.v1.CreateCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CreateCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1769,8 +1578,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java index b2ee534f..e8528df7 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCertificateRequestOrBuilder - extends +public interface CreateCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -65,13 +38,10 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The certificateId. */ java.lang.String getCertificateId(); /** - * - * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -80,55 +50,39 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for certificateId. */ - com.google.protobuf.ByteString getCertificateIdBytes(); + com.google.protobuf.ByteString + getCertificateIdBytes(); /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ boolean hasCertificate(); /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ com.google.cloud.security.privateca.v1.Certificate getCertificate(); /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -144,13 +98,10 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -166,14 +117,12 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
    * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -181,14 +130,11 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -203,15 +149,11 @@ public interface CreateCertificateRequestOrBuilder
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuingCertificateAuthorityId. */ java.lang.String getIssuingCertificateAuthorityId(); /** - * - * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -226,10 +168,9 @@ public interface CreateCertificateRequestOrBuilder
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for issuingCertificateAuthorityId. */ - com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes(); + com.google.protobuf.ByteString + getIssuingCertificateAuthorityIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java index 0f722b2e..7fe1311d 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.CreateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateTemplateRequest}
  */
-public final class CreateCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateCertificateTemplateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)
     CreateCertificateTemplateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateCertificateTemplateRequest.newBuilder() to construct.
-  private CreateCertificateTemplateRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateCertificateTemplateRequest() {
     parent_ = "";
     certificateTemplateId_ = "";
@@ -47,15 +28,16 @@ private CreateCertificateTemplateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,51 +56,44 @@ private CreateCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              certificateTemplateId_ = s;
-              break;
+            certificateTemplateId_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
+            if (certificateTemplate_ != null) {
+              subBuilder = certificateTemplate_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
-              if (certificateTemplate_ != null) {
-                subBuilder = certificateTemplate_.toBuilder();
-              }
-              certificateTemplate_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateTemplate.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateTemplate_);
-                certificateTemplate_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateTemplate_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateTemplate.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateTemplate_);
+              certificateTemplate_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -126,43 +101,36 @@ private CreateCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class,
-            com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.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
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 @@ -171,33 +139,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
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -208,15 +174,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_TEMPLATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateTemplateId_; /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateTemplateId. */ @java.lang.Override @@ -225,30 +188,30 @@ public java.lang.String getCertificateTemplateId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplateId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateTemplateId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateTemplateIdBytes() { + public com.google.protobuf.ByteString + getCertificateTemplateIdBytes() { java.lang.Object ref = certificateTemplateId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateTemplateId_ = b; return b; } else { @@ -259,16 +222,11 @@ public com.google.protobuf.ByteString getCertificateTemplateIdBytes() { public static final int CERTIFICATE_TEMPLATE_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_; /** - * - * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateTemplate field is set. */ @java.lang.Override @@ -276,46 +234,32 @@ public boolean hasCertificateTemplate() { return certificateTemplate_ != null; } /** - * - * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateTemplate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { - return certificateTemplate_ == null - ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() - : certificateTemplate_; + return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; } /** - * - * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { return getCertificateTemplate(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -331,7 +275,6 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -340,15 +283,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -364,15 +306,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -381,7 +324,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +335,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -422,7 +365,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateTemplateId_); } if (certificateTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificateTemplate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -435,21 +379,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.security.privateca.v1.CreateCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other = - (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateTemplateId().equals(other.getCertificateTemplateId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateTemplateId() + .equals(other.getCertificateTemplateId())) return false; if (hasCertificateTemplate() != other.hasCertificateTemplate()) return false; if (hasCertificateTemplate()) { - if (!getCertificateTemplate().equals(other.getCertificateTemplate())) return false; + if (!getCertificateTemplate() + .equals(other.getCertificateTemplate())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -477,105 +424,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest 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.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest - 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.security.privateca.v1.CreateCertificateTemplateRequest 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.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate].
@@ -583,41 +521,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateTemplateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class,
-              com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -637,22 +572,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest build() {
-      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -661,8 +593,7 @@ public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result =
-          new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(this);
       result.parent_ = parent_;
       result.certificateTemplateId_ = certificateTemplateId_;
       if (certificateTemplateBuilder_ == null) {
@@ -679,52 +610,46 @@ public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest b
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -759,9 +684,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -773,24 +696,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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; @@ -799,25 +718,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -825,73 +741,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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; @@ -899,21 +802,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateTemplateId_ = ""; /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateTemplateId. */ public java.lang.String getCertificateTemplateId() { java.lang.Object ref = certificateTemplateId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplateId_ = s; return s; @@ -922,22 +823,21 @@ public java.lang.String getCertificateTemplateId() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateTemplateId. */ - public com.google.protobuf.ByteString getCertificateTemplateIdBytes() { + public com.google.protobuf.ByteString + getCertificateTemplateIdBytes() { java.lang.Object ref = certificateTemplateId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateTemplateId_ = b; return b; } else { @@ -945,64 +845,57 @@ public com.google.protobuf.ByteString getCertificateTemplateIdBytes() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The certificateTemplateId to set. * @return This builder for chaining. */ - public Builder setCertificateTemplateId(java.lang.String value) { + public Builder setCertificateTemplateId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateTemplateId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateTemplateId() { - + certificateTemplateId_ = getDefaultInstance().getCertificateTemplateId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for certificateTemplateId to set. * @return This builder for chaining. */ - public Builder setCertificateTemplateIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateTemplateIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateTemplateId_ = value; onChanged(); return this; @@ -1010,61 +903,41 @@ public Builder setCertificateTemplateIdBytes(com.google.protobuf.ByteString valu private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> - certificateTemplateBuilder_; + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> certificateTemplateBuilder_; /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateTemplate field is set. */ public boolean hasCertificateTemplate() { return certificateTemplateBuilder_ != null || certificateTemplate_ != null; } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateTemplate. */ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { if (certificateTemplateBuilder_ == null) { - return certificateTemplate_ == null - ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() - : certificateTemplate_; + return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; } else { return certificateTemplateBuilder_.getMessage(); } } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateTemplate( - com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder setCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1078,15 +951,11 @@ public Builder setCertificateTemplate( return this; } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateTemplate( com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { @@ -1100,25 +969,17 @@ public Builder setCertificateTemplate( return this; } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateTemplate( - com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder mergeCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (certificateTemplate_ != null) { certificateTemplate_ = - com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder( - certificateTemplate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder(certificateTemplate_).mergeFrom(value).buildPartial(); } else { certificateTemplate_ = value; } @@ -1130,15 +991,11 @@ public Builder mergeCertificateTemplate( return this; } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateTemplate() { if (certificateTemplateBuilder_ == null) { @@ -1152,66 +1009,48 @@ public Builder clearCertificateTemplate() { return this; } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder - getCertificateTemplateBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder getCertificateTemplateBuilder() { + onChanged(); return getCertificateTemplateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { if (certificateTemplateBuilder_ != null) { return certificateTemplateBuilder_.getMessageOrBuilder(); } else { - return certificateTemplate_ == null - ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() - : certificateTemplate_; + return certificateTemplate_ == null ? + com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; } } /** - * - * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplateFieldBuilder() { if (certificateTemplateBuilder_ == null) { - certificateTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( - getCertificateTemplate(), getParentForChildren(), isClean()); + certificateTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( + getCertificateTemplate(), + getParentForChildren(), + isClean()); certificateTemplate_ = null; } return certificateTemplateBuilder_; @@ -1219,8 +1058,6 @@ public Builder clearCertificateTemplate() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1236,13 +1073,13 @@ public Builder clearCertificateTemplate() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1251,8 +1088,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1268,14 +1103,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1283,8 +1119,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1300,22 +1134,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1331,18 +1163,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1358,23 +1187,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1384,33 +1213,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1422,8 +1248,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java index e2b08066..96991137 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCertificateTemplateRequestOrBuilder - extends +public interface CreateCertificateTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateTemplateId. */ java.lang.String getCertificateTemplateId(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateTemplateId. */ - com.google.protobuf.ByteString getCertificateTemplateIdBytes(); + com.google.protobuf.ByteString + getCertificateTemplateIdBytes(); /** - * - * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateTemplate field is set. */ boolean hasCertificateTemplate(); /** - * - * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateTemplate. */ com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate(); /** - * - * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplateOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,13 +96,10 @@ public interface CreateCertificateTemplateRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -165,8 +115,8 @@ public interface CreateCertificateTemplateRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java index cde96b93..6d75ae07 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.DeleteCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCaPoolRequest}
  */
-public final class DeleteCaPoolRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteCaPoolRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DeleteCaPoolRequest)
     DeleteCaPoolRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteCaPoolRequest.newBuilder() to construct.
   private DeleteCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteCaPoolRequest() {
     name_ = "";
     requestId_ = "";
@@ -45,15 +27,16 @@ private DeleteCaPoolRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteCaPoolRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteCaPoolRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private DeleteCaPoolRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,42 +81,35 @@ private DeleteCaPoolRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class,
-            com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string name = 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 @@ -144,32 +118,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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string name = 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 { @@ -180,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -206,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -230,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -247,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -289,16 +258,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.security.privateca.v1.DeleteCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest other = - (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest other = (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,104 +290,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest 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.security.privateca.v1.DeleteCaPoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DeleteCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool].
@@ -425,23 +387,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCaPoolRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DeleteCaPoolRequest)
       com.google.cloud.security.privateca.v1.DeleteCaPoolRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class,
-              com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.newBuilder()
@@ -449,15 +409,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -469,9 +430,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
@@ -490,8 +451,7 @@ public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DeleteCaPoolRequest result =
-          new com.google.cloud.security.privateca.v1.DeleteCaPoolRequest(this);
+      com.google.cloud.security.privateca.v1.DeleteCaPoolRequest result = new com.google.cloud.security.privateca.v1.DeleteCaPoolRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -502,39 +462,38 @@ public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCaPoolRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -571,8 +529,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -584,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string name = 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; @@ -609,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string name = 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 { @@ -634,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string 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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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; @@ -705,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -722,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -737,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -754,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -769,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -786,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -817,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -844,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -870,12 +797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DeleteCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DeleteCaPoolRequest) private static final com.google.cloud.security.privateca.v1.DeleteCaPoolRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DeleteCaPoolRequest(); } @@ -884,16 +811,16 @@ public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java index 3b956b0d..0b3f263f 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DeleteCaPoolRequestOrBuilder - extends +public interface DeleteCaPoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DeleteCaPoolRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string name = 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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface DeleteCaPoolRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface DeleteCaPoolRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java index 17208303..96085ca0 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.DeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest}
  */
-public final class DeleteCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)
     DeleteCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteCertificateAuthorityRequest.newBuilder() to construct.
-  private DeleteCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private DeleteCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,37 +55,35 @@ private DeleteCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          case 32:
-            {
-              ignoreActiveCertificates_ = input.readBool();
-              break;
-            }
-          case 40:
-            {
-              skipGracePeriod_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          case 32: {
+
+            ignoreActiveCertificates_ = input.readBool();
+            break;
+          }
+          case 40: {
+
+            skipGracePeriod_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,42 +91,35 @@ private DeleteCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -155,32 +128,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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -191,8 +162,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -208,7 +177,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -217,15 +185,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -241,15 +208,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -260,15 +228,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int IGNORE_ACTIVE_CERTIFICATES_FIELD_NUMBER = 4; private boolean ignoreActiveCertificates_; /** - * - * *
    * Optional. This field allows the CA to be deleted even if the CA has
    * active certs. Active certs include both unrevoked and unexpired certs.
    * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreActiveCertificates. */ @java.lang.Override @@ -279,8 +244,6 @@ public boolean getIgnoreActiveCertificates() { public static final int SKIP_GRACE_PERIOD_FIELD_NUMBER = 5; private boolean skipGracePeriod_; /** - * - * *
    * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
    * possible without a 30-day grace period where undeletion would have been
@@ -288,7 +251,6 @@ public boolean getIgnoreActiveCertificates() {
    * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The skipGracePeriod. */ @java.lang.Override @@ -297,7 +259,6 @@ public boolean getSkipGracePeriod() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +270,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -338,10 +300,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (ignoreActiveCertificates_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, ignoreActiveCertificates_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, ignoreActiveCertificates_); } if (skipGracePeriod_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipGracePeriod_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, skipGracePeriod_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,19 +315,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.security.privateca.v1.DeleteCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (getIgnoreActiveCertificates() != other.getIgnoreActiveCertificates()) return false; - if (getSkipGracePeriod() != other.getSkipGracePeriod()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getIgnoreActiveCertificates() + != other.getIgnoreActiveCertificates()) return false; + if (getSkipGracePeriod() + != other.getSkipGracePeriod()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -380,114 +346,107 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + IGNORE_ACTIVE_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreActiveCertificates()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreActiveCertificates()); hash = (37 * hash) + SKIP_GRACE_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipGracePeriod()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipGracePeriod()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest 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.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest - 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.security.privateca.v1.DeleteCertificateAuthorityRequest 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.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority].
@@ -495,41 +454,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -545,22 +501,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -569,8 +522,7 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       result.ignoreActiveCertificates_ = ignoreActiveCertificates_;
@@ -583,52 +535,46 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -662,9 +608,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -676,23 +620,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -701,24 +641,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -726,70 +663,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -797,8 +721,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -814,13 +736,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -829,8 +751,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -846,14 +766,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -861,8 +782,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -878,22 +797,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -909,18 +826,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -936,32 +850,29 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean ignoreActiveCertificates_; + private boolean ignoreActiveCertificates_ ; /** - * - * *
      * Optional. This field allows the CA to be deleted even if the CA has
      * active certs. Active certs include both unrevoked and unexpired certs.
      * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreActiveCertificates. */ @java.lang.Override @@ -969,47 +880,39 @@ public boolean getIgnoreActiveCertificates() { return ignoreActiveCertificates_; } /** - * - * *
      * Optional. This field allows the CA to be deleted even if the CA has
      * active certs. Active certs include both unrevoked and unexpired certs.
      * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ignoreActiveCertificates to set. * @return This builder for chaining. */ public Builder setIgnoreActiveCertificates(boolean value) { - + ignoreActiveCertificates_ = value; onChanged(); return this; } /** - * - * *
      * Optional. This field allows the CA to be deleted even if the CA has
      * active certs. Active certs include both unrevoked and unexpired certs.
      * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIgnoreActiveCertificates() { - + ignoreActiveCertificates_ = false; onChanged(); return this; } - private boolean skipGracePeriod_; + private boolean skipGracePeriod_ ; /** - * - * *
      * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
      * possible without a 30-day grace period where undeletion would have been
@@ -1017,7 +920,6 @@ public Builder clearIgnoreActiveCertificates() {
      * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The skipGracePeriod. */ @java.lang.Override @@ -1025,8 +927,6 @@ public boolean getSkipGracePeriod() { return skipGracePeriod_; } /** - * - * *
      * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
      * possible without a 30-day grace period where undeletion would have been
@@ -1034,19 +934,16 @@ public boolean getSkipGracePeriod() {
      * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The skipGracePeriod to set. * @return This builder for chaining. */ public Builder setSkipGracePeriod(boolean value) { - + skipGracePeriod_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
      * possible without a 30-day grace period where undeletion would have been
@@ -1054,18 +951,17 @@ public Builder setSkipGracePeriod(boolean value) {
      * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSkipGracePeriod() { - + skipGracePeriod_ = 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); } @@ -1075,33 +971,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1113,8 +1006,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java index 931fccf0..c7052388 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DeleteCertificateAuthorityRequestOrBuilder - extends +public interface DeleteCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface DeleteCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,28 +64,23 @@ public interface DeleteCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. This field allows the CA to be deleted even if the CA has
    * active certs. Active certs include both unrevoked and unexpired certs.
    * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ignoreActiveCertificates. */ boolean getIgnoreActiveCertificates(); /** - * - * *
    * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
    * possible without a 30-day grace period where undeletion would have been
@@ -123,7 +88,6 @@ public interface DeleteCertificateAuthorityRequestOrBuilder
    * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The skipGracePeriod. */ boolean getSkipGracePeriod(); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java index 902dff4f..6a158171 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.DeleteCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest}
  */
-public final class DeleteCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteCertificateTemplateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)
     DeleteCertificateTemplateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteCertificateTemplateRequest.newBuilder() to construct.
-  private DeleteCertificateTemplateRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteCertificateTemplateRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private DeleteCertificateTemplateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,25 @@ private DeleteCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,42 +81,35 @@ private DeleteCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class,
-            com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 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 @@ -145,32 +118,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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 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 { @@ -181,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -207,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -231,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -248,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -290,16 +258,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.security.privateca.v1.DeleteCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other = - (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,105 +290,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest 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.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest - 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.security.privateca.v1.DeleteCertificateTemplateRequest 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.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DeleteCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate].
@@ -427,41 +387,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class,
-              com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -473,22 +430,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest build() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -497,8 +451,7 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result =
-          new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -509,52 +462,46 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest b
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -582,9 +529,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -596,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 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; @@ -621,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string name = 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 { @@ -646,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * 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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * string 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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * - * 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; @@ -717,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -734,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -749,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -766,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -781,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -798,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -829,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -856,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -882,33 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,8 +832,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java index f61466ab..c4239380 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DeleteCertificateTemplateRequestOrBuilder - extends +public interface DeleteCertificateTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface DeleteCertificateTemplateRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface DeleteCertificateTemplateRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java index f5100c67..4a8638cf 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest}
  */
-public final class DisableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DisableCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)
     DisableCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DisableCertificateAuthorityRequest.newBuilder() to construct.
-  private DisableCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DisableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DisableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private DisableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DisableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DisableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,25 @@ private DisableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,43 +81,35 @@ private DisableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -146,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -182,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -199,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -208,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -232,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,17 +258,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.security.privateca.v1.DisableCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,105 +290,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest 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.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest - 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.security.privateca.v1.DisableCertificateAuthorityRequest 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.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority].
@@ -429,41 +387,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -475,22 +430,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -498,10 +450,8 @@ public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -512,52 +462,46 @@ public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -581,14 +525,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -600,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -625,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -650,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -721,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -738,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -753,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -770,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -785,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -802,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -833,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -860,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -886,33 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,8 +832,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java index 7d918046..1d5ef54d 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DisableCertificateAuthorityRequestOrBuilder - extends +public interface DisableCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface DisableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface DisableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java index 7e184139..f243f7e9 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest}
  */
-public final class EnableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EnableCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)
     EnableCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EnableCertificateAuthorityRequest.newBuilder() to construct.
-  private EnableCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private EnableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EnableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private EnableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EnableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EnableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,25 @@ private EnableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,42 +81,35 @@ private EnableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -145,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -181,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -207,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -231,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -248,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -290,17 +258,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.security.privateca.v1.EnableCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,105 +290,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest 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.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest - 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.security.privateca.v1.EnableCertificateAuthorityRequest 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.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -428,41 +387,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -474,22 +430,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -498,8 +451,7 @@ public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -510,52 +462,46 @@ public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -583,9 +529,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -597,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -622,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -647,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -718,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -735,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -750,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -767,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -782,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -799,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -830,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -857,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -883,33 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -921,8 +832,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java index db3255d9..ecb2fae4 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface EnableCertificateAuthorityRequestOrBuilder - extends +public interface EnableCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface EnableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface EnableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java index b7cafb36..a27ad87e 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsRequest}
  */
-public final class FetchCaCertsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FetchCaCertsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCaCertsRequest)
     FetchCaCertsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FetchCaCertsRequest.newBuilder() to construct.
   private FetchCaCertsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FetchCaCertsRequest() {
     caPool_ = "";
     requestId_ = "";
@@ -45,15 +27,16 @@ private FetchCaCertsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FetchCaCertsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FetchCaCertsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private FetchCaCertsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              caPool_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            caPool_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,42 +81,35 @@ private FetchCaCertsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class,
-            com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
   }
 
   public static final int CA_POOL_FIELD_NUMBER = 1;
   private volatile java.lang.Object caPool_;
   /**
-   *
-   *
    * 
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The caPool. */ @java.lang.Override @@ -144,32 +118,30 @@ public java.lang.String getCaPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPool_ = s; return s; } } /** - * - * *
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for caPool. */ @java.lang.Override - public com.google.protobuf.ByteString getCaPoolBytes() { + public com.google.protobuf.ByteString + getCaPoolBytes() { java.lang.Object ref = caPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caPool_ = b; return b; } else { @@ -180,8 +152,6 @@ public com.google.protobuf.ByteString getCaPoolBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getCaPoolBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -206,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -230,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -247,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caPool_); } @@ -289,16 +258,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.security.privateca.v1.FetchCaCertsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCaCertsRequest other = - (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) obj; + com.google.cloud.security.privateca.v1.FetchCaCertsRequest other = (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) obj; - if (!getCaPool().equals(other.getCaPool())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getCaPool() + .equals(other.getCaPool())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,104 +290,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest 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.security.privateca.v1.FetchCaCertsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCaCertsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -425,23 +387,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCaCertsRequest)
       com.google.cloud.security.privateca.v1.FetchCaCertsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class,
-              com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.FetchCaCertsRequest.newBuilder()
@@ -449,15 +409,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -469,9 +430,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -490,8 +451,7 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCaCertsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCaCertsRequest result =
-          new com.google.cloud.security.privateca.v1.FetchCaCertsRequest(this);
+      com.google.cloud.security.privateca.v1.FetchCaCertsRequest result = new com.google.cloud.security.privateca.v1.FetchCaCertsRequest(this);
       result.caPool_ = caPool_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -502,39 +462,38 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.FetchCaCertsRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsRequest.getDefaultInstance()) return this;
       if (!other.getCaPool().isEmpty()) {
         caPool_ = other.caPool_;
         onChanged();
@@ -571,8 +529,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -584,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object caPool_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The caPool. */ public java.lang.String getCaPool() { java.lang.Object ref = caPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPool_ = s; return s; @@ -609,24 +562,21 @@ public java.lang.String getCaPool() { } } /** - * - * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for caPool. */ - public com.google.protobuf.ByteString getCaPoolBytes() { + public com.google.protobuf.ByteString + getCaPoolBytes() { java.lang.Object ref = caPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caPool_ = b; return b; } else { @@ -634,70 +584,57 @@ public com.google.protobuf.ByteString getCaPoolBytes() { } } /** - * - * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The caPool to set. * @return This builder for chaining. */ - public Builder setCaPool(java.lang.String value) { + public Builder setCaPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caPool_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCaPool() { - + caPool_ = getDefaultInstance().getCaPool(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for caPool to set. * @return This builder for chaining. */ - public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { + public Builder setCaPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPool_ = value; onChanged(); return this; @@ -705,8 +642,6 @@ public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -722,13 +657,13 @@ public Builder setCaPoolBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -737,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -754,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -769,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -786,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -817,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -844,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -870,12 +797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCaCertsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCaCertsRequest) private static final com.google.cloud.security.privateca.v1.FetchCaCertsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCaCertsRequest(); } @@ -884,16 +811,16 @@ public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCaCertsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCaCertsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCaCertsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCaCertsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.FetchCaCertsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java index 93037db3..d5c05a00 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface FetchCaCertsRequestOrBuilder - extends +public interface FetchCaCertsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCaCertsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The caPool. */ java.lang.String getCaPool(); /** - * - * *
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for caPool. */ - com.google.protobuf.ByteString getCaPoolBytes(); + com.google.protobuf.ByteString + getCaPoolBytes(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface FetchCaCertsRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface FetchCaCertsRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java index fc5fb498..20dcc72b 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse}
  */
-public final class FetchCaCertsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FetchCaCertsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse)
     FetchCaCertsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FetchCaCertsResponse.newBuilder() to construct.
   private FetchCaCertsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FetchCaCertsResponse() {
     caCerts_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FetchCaCertsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FetchCaCertsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,28 +55,22 @@ private FetchCaCertsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                caCerts_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              caCerts_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain
-                          .parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              caCerts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            caCerts_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +78,8 @@ private FetchCaCertsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         caCerts_ = java.util.Collections.unmodifiableList(caCerts_);
@@ -110,104 +88,92 @@ private FetchCaCertsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class,
-            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
   }
 
-  public interface CertChainOrBuilder
-      extends
+  public interface CertChainOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @return A list containing the certificates. */ - java.util.List getCertificatesList(); + java.util.List + getCertificatesList(); /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @return The count of certificates. */ int getCertificatesCount(); /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @param index The index of the element to return. * @return The certificates at the given index. */ java.lang.String getCertificates(int index); /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @param index The index of the value to return. * @return The bytes of the certificates at the given index. */ - com.google.protobuf.ByteString getCertificatesBytes(int index); + com.google.protobuf.ByteString + getCertificatesBytes(int index); } - /** Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} */ - public static final class CertChain extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} + */ + public static final class CertChain extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) CertChainOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertChain.newBuilder() to construct. private CertChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CertChain() { certificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CertChain(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CertChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -227,23 +193,22 @@ private CertChain( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificates_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + certificates_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -251,7 +216,8 @@ private CertChain( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = certificates_.getUnmodifiableView(); @@ -260,61 +226,50 @@ private CertChain( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder.class); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList certificates_; /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @return A list containing the certificates. */ - public com.google.protobuf.ProtocolStringList getCertificatesList() { + public com.google.protobuf.ProtocolStringList + getCertificatesList() { return certificates_; } /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @return The count of certificates. */ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @param index The index of the element to return. * @return The certificates at the given index. */ @@ -322,23 +277,20 @@ public java.lang.String getCertificates(int index) { return certificates_.get(index); } /** - * - * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; - * * @param index The index of the value to return. * @return The bytes of the certificates at the given index. */ - public com.google.protobuf.ByteString getCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getCertificatesBytes(int index) { return certificates_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,7 +302,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificates_.getRaw(i)); } @@ -379,15 +332,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.security.privateca.v1.FetchCaCertsResponse.CertChain)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other = - (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) obj; + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) obj; - if (!getCertificatesList().equals(other.getCertificatesList())) return false; + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -409,95 +362,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain 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.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - 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.security.privateca.v1.FetchCaCertsResponse.CertChain 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.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -506,43 +451,41 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - .class); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -552,22 +495,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain build() { - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = - buildPartial(); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -576,8 +516,7 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain bui @java.lang.Override public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain buildPartial() { - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = - new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(this); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { certificates_ = certificates_.getUnmodifiableView(); @@ -592,54 +531,46 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.FetchCaCertsResponse.CertChain) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) other); + if (other instanceof com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) { + return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other) { - if (other - == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other) { + if (other == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance()) return this; if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { certificates_ = other.certificates_; @@ -669,9 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,55 +609,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList certificates_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList certificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new com.google.protobuf.LazyStringArrayList(certificates_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @return A list containing the certificates. */ - public com.google.protobuf.ProtocolStringList getCertificatesList() { + public com.google.protobuf.ProtocolStringList + getCertificatesList() { return certificates_.getUnmodifiableView(); } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @return The count of certificates. */ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @param index The index of the element to return. * @return The certificates at the given index. */ @@ -736,90 +654,80 @@ public java.lang.String getCertificates(int index) { return certificates_.get(index); } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @param index The index of the value to return. * @return The bytes of the certificates at the given index. */ - public com.google.protobuf.ByteString getCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getCertificatesBytes(int index) { return certificates_.getByteString(index); } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @param index The index to set the value at. * @param value The certificates to set. * @return This builder for chaining. */ - public Builder setCertificates(int index, java.lang.String value) { + public Builder setCertificates( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCertificatesIsMutable(); + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); certificates_.set(index, value); onChanged(); return this; } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @param value The certificates to add. * @return This builder for chaining. */ - public Builder addCertificates(java.lang.String value) { + public Builder addCertificates( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCertificatesIsMutable(); + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); return this; } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @param values The certificates to add. * @return This builder for chaining. */ - public Builder addAllCertificates(java.lang.Iterable values) { + public Builder addAllCertificates( + java.lang.Iterable values) { ensureCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificates_); onChanged(); return this; } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @return This builder for chaining. */ public Builder clearCertificates() { @@ -829,28 +737,25 @@ public Builder clearCertificates() { return this; } /** - * - * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; - * * @param value The bytes of the certificates to add. * @return This builder for chaining. */ - public Builder addCertificatesBytes(com.google.protobuf.ByteString value) { + public Builder addCertificatesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -863,33 +768,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) - private static final com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertChain(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertChain(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -901,103 +803,83 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CA_CERTS_FIELD_NUMBER = 1; - private java.util.List - caCerts_; + private java.util.List caCerts_; /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ @java.lang.Override - public java.util.List - getCaCertsList() { + public java.util.List getCaCertsList() { return caCerts_; } /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> + public java.util.List getCaCertsOrBuilderList() { return caCerts_; } /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ @java.lang.Override public int getCaCertsCount() { return caCerts_.size(); } /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts( - int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts(int index) { return caCerts_.get(index); } /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder - getCaCertsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder getCaCertsOrBuilder( + int index) { return caCerts_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1009,7 +891,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < caCerts_.size(); i++) { output.writeMessage(1, caCerts_.get(i)); } @@ -1023,7 +906,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < caCerts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caCerts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, caCerts_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1033,15 +917,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.security.privateca.v1.FetchCaCertsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCaCertsResponse other = - (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) obj; + com.google.cloud.security.privateca.v1.FetchCaCertsResponse other = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) obj; - if (!getCaCertsList().equals(other.getCaCertsList())) return false; + if (!getCaCertsList() + .equals(other.getCaCertsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1063,104 +947,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse 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.security.privateca.v1.FetchCaCertsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCaCertsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -1168,23 +1044,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse)
       com.google.cloud.security.privateca.v1.FetchCaCertsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class,
-              com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.FetchCaCertsResponse.newBuilder()
@@ -1192,17 +1066,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCaCertsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1216,9 +1090,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -1237,8 +1111,7 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCaCertsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCaCertsResponse result =
-          new com.google.cloud.security.privateca.v1.FetchCaCertsResponse(this);
+      com.google.cloud.security.privateca.v1.FetchCaCertsResponse result = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse(this);
       int from_bitField0_ = bitField0_;
       if (caCertsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1257,39 +1130,38 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.FetchCaCertsResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsResponse) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1297,8 +1169,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.getDefaultInstance()) return this;
       if (caCertsBuilder_ == null) {
         if (!other.caCerts_.isEmpty()) {
           if (caCerts_.isEmpty()) {
@@ -1317,10 +1188,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsResp
             caCertsBuilder_ = null;
             caCerts_ = other.caCerts_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            caCertsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCaCertsFieldBuilder()
-                    : null;
+            caCertsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCaCertsFieldBuilder() : null;
           } else {
             caCertsBuilder_.addAllMessages(other.caCerts_);
           }
@@ -1345,8 +1215,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1355,42 +1224,30 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        caCerts_ = java.util.Collections.emptyList();
-
+    private java.util.List caCerts_ =
+      java.util.Collections.emptyList();
     private void ensureCaCertsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        caCerts_ =
-            new java.util.ArrayList<
-                com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain>(caCerts_);
+        caCerts_ = new java.util.ArrayList(caCerts_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain,
-            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder,
-            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder>
-        caCertsBuilder_;
+        com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> caCertsBuilder_;
 
     /**
-     *
-     *
      * 
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public java.util.List - getCaCertsList() { + public java.util.List getCaCertsList() { if (caCertsBuilder_ == null) { return java.util.Collections.unmodifiableList(caCerts_); } else { @@ -1398,17 +1255,13 @@ private void ensureCaCertsIsMutable() { } } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public int getCaCertsCount() { if (caCertsBuilder_ == null) { @@ -1418,20 +1271,15 @@ public int getCaCertsCount() { } } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts( - int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts(int index) { if (caCertsBuilder_ == null) { return caCerts_.get(index); } else { @@ -1439,17 +1287,13 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain get } } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder setCaCerts( int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { @@ -1466,22 +1310,16 @@ public Builder setCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder setCaCerts( - int index, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder builderForValue) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); caCerts_.set(index, builderForValue.build()); @@ -1492,20 +1330,15 @@ public Builder setCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public Builder addCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { + public Builder addCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { if (caCertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1519,17 +1352,13 @@ public Builder addCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder addCaCerts( int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { @@ -1546,21 +1375,16 @@ public Builder addCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder addCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder builderForValue) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); caCerts_.add(builderForValue.build()); @@ -1571,22 +1395,16 @@ public Builder addCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder addCaCerts( - int index, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder builderForValue) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); caCerts_.add(index, builderForValue.build()); @@ -1597,25 +1415,20 @@ public Builder addCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder addAllCaCerts( - java.lang.Iterable< - ? extends com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain> - values) { + java.lang.Iterable values) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, caCerts_); onChanged(); } else { caCertsBuilder_.addAllMessages(values); @@ -1623,17 +1436,13 @@ public Builder addAllCaCerts( return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder clearCaCerts() { if (caCertsBuilder_ == null) { @@ -1646,17 +1455,13 @@ public Builder clearCaCerts() { return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ public Builder removeCaCerts(int index) { if (caCertsBuilder_ == null) { @@ -1669,60 +1474,45 @@ public Builder removeCaCerts(int index) { return this; } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - getCaCertsBuilder(int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder getCaCertsBuilder( + int index) { return getCaCertsFieldBuilder().getBuilder(index); } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder - getCaCertsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder getCaCertsOrBuilder( + int index) { if (caCertsBuilder_ == null) { - return caCerts_.get(index); - } else { + return caCerts_.get(index); } else { return caCertsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> - getCaCertsOrBuilderList() { + public java.util.List + getCaCertsOrBuilderList() { if (caCertsBuilder_ != null) { return caCertsBuilder_.getMessageOrBuilderList(); } else { @@ -1730,84 +1520,62 @@ public Builder removeCaCerts(int index) { } } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - addCaCertsBuilder() { - return getCaCertsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder addCaCertsBuilder() { + return getCaCertsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance()); } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder - addCaCertsBuilder(int index) { - return getCaCertsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder addCaCertsBuilder( + int index) { + return getCaCertsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance()); } /** - * - * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - public java.util.List< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder> - getCaCertsBuilderList() { + public java.util.List + getCaCertsBuilderList() { return getCaCertsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> getCaCertsFieldBuilder() { if (caCertsBuilder_ == null) { - caCertsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder>( - caCerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + caCertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder>( + caCerts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); caCerts_ = null; } return caCertsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1817,12 +1585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse) private static final com.google.cloud.security.privateca.v1.FetchCaCertsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse(); } @@ -1831,16 +1599,16 @@ public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCaCertsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCaCertsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCaCertsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCaCertsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1855,4 +1623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.FetchCaCertsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java index c1157ebc..97e507fd 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java @@ -1,95 +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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface FetchCaCertsResponseOrBuilder - extends +public interface FetchCaCertsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCaCertsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - java.util.List + java.util.List getCaCertsList(); /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts(int index); /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ int getCaCertsCount(); /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - java.util.List< - ? extends com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> + java.util.List getCaCertsOrBuilderList(); /** - * - * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; - * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; */ - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder - getCaCertsOrBuilder(int index); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder getCaCertsOrBuilder( + int index); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java similarity index 57% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java index c3f37614..3246480c 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest}
  */
-public final class FetchCertificateAuthorityCsrRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FetchCertificateAuthorityCsrRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)
     FetchCertificateAuthorityCsrRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FetchCertificateAuthorityCsrRequest.newBuilder() to construct.
-  private FetchCertificateAuthorityCsrRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private FetchCertificateAuthorityCsrRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FetchCertificateAuthorityCsrRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FetchCertificateAuthorityCsrRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FetchCertificateAuthorityCsrRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +54,19 @@ private FetchCertificateAuthorityCsrRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,43 +74,35 @@ private FetchCertificateAuthorityCsrRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class,
-            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -139,32 +111,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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -173,7 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,16 +179,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other = - (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) obj; + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,111 +206,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - 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.security.privateca.v1.FetchCertificateAuthorityCsrRequest 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.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -349,41 +304,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)
       com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class,
-              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -393,22 +345,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest build() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -416,10 +365,8 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result =
-          new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(this);
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -429,52 +376,46 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrReques
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -494,14 +435,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -513,23 +451,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -538,24 +472,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -563,77 +494,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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); } @@ -643,33 +561,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) - private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,8 +596,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java new file mode 100644 index 00000000..9c7f4d56 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface FetchCertificateAuthorityCsrRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
+   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
+   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java similarity index 59% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java index 6ed09dc0..105a972a 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse}
  */
-public final class FetchCertificateAuthorityCsrResponse
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FetchCertificateAuthorityCsrResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)
     FetchCertificateAuthorityCsrResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FetchCertificateAuthorityCsrResponse.newBuilder() to construct.
-  private FetchCertificateAuthorityCsrResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private FetchCertificateAuthorityCsrResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FetchCertificateAuthorityCsrResponse() {
     pemCsr_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FetchCertificateAuthorityCsrResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FetchCertificateAuthorityCsrResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +54,19 @@ private FetchCertificateAuthorityCsrResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pemCsr_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            pemCsr_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,40 +74,34 @@ private FetchCertificateAuthorityCsrResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class,
-            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder.class);
   }
 
   public static final int PEM_CSR_FIELD_NUMBER = 1;
   private volatile java.lang.Object pemCsr_;
   /**
-   *
-   *
    * 
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCsr. */ @java.lang.Override @@ -136,29 +110,29 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; } } /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -167,7 +141,6 @@ public com.google.protobuf.ByteString getPemCsrBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,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(pemCsr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCsr_); } @@ -203,16 +177,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.security.privateca.v1.FetchCertificateAuthorityCsrResponse)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other = - (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) obj; + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) obj; - if (!getPemCsr().equals(other.getPemCsr())) return false; + if (!getPemCsr() + .equals(other.getPemCsr())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,111 +204,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - 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.security.privateca.v1.FetchCertificateAuthorityCsrResponse 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.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -343,41 +302,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)
       com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class,
-              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -387,22 +343,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse build() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -410,10 +363,8 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRespon
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result =
-          new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(this);
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse buildPartial() {
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(this);
       result.pemCsr_ = pemCsr_;
       onBuilt();
       return result;
@@ -423,52 +374,46 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRespon
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other) {
+      if (other == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.getDefaultInstance()) return this;
       if (!other.getPemCsr().isEmpty()) {
         pemCsr_ = other.pemCsr_;
         onChanged();
@@ -488,14 +433,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -507,20 +449,18 @@ public Builder mergeFrom(
 
     private java.lang.Object pemCsr_ = "";
     /**
-     *
-     *
      * 
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCsr. */ public java.lang.String getPemCsr() { java.lang.Object ref = pemCsr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; @@ -529,21 +469,20 @@ public java.lang.String getPemCsr() { } } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -551,68 +490,61 @@ public com.google.protobuf.ByteString getPemCsrBytes() { } } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr(java.lang.String value) { + public Builder setPemCsr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCsr_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCsr() { - + pemCsr_ = getDefaultInstance().getPemCsr(); onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCsr_ = 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); } @@ -622,33 +554,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) - private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +589,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java similarity index 52% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java index fc17d310..97d529f2 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface FetchCertificateAuthorityCsrResponseOrBuilder - extends +public interface FetchCertificateAuthorityCsrResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCsr. */ java.lang.String getPemCsr(); /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString getPemCsrBytes(); + com.google.protobuf.ByteString + getPemCsrBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java index 061bac70..5d601574 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for [CertificateAuthorityService.GetCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCaPoolRequest} */ -public final class GetCaPoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCaPoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCaPoolRequest) GetCaPoolRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCaPoolRequest.newBuilder() to construct. private GetCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCaPoolRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCaPoolRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCaPoolRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetCaPoolRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetCaPoolRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, - com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,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.security.privateca.v1.GetCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCaPoolRequest other = - (com.google.cloud.security.privateca.v1.GetCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.GetCaPoolRequest other = (com.google.cloud.security.privateca.v1.GetCaPoolRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCaPoolRequest 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.security.privateca.v1.GetCaPoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.GetCaPoolRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.GetCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCaPoolRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCaPoolRequest) com.google.cloud.security.privateca.v1.GetCaPoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, - com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.GetCaPoolRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.security.privateca.v1.GetCaPoolRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.GetCaPoolRequest buildPartial() { - com.google.cloud.security.privateca.v1.GetCaPoolRequest result = - new com.google.cloud.security.privateca.v1.GetCaPoolRequest(this); + com.google.cloud.security.privateca.v1.GetCaPoolRequest result = new com.google.cloud.security.privateca.v1.GetCaPoolRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.security.privateca.v1.GetCaPoolRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.GetCaPoolRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.GetCaPoolRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1.GetCaPoolRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCaPoolRequest other) { - if (other == com.google.cloud.security.privateca.v1.GetCaPoolRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1.GetCaPoolRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.GetCaPoolRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.GetCaPoolRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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 { @@ -535,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCaPoolRequest) private static final com.google.cloud.security.privateca.v1.GetCaPoolRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCaPoolRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.security.privateca.v1.GetCaPoolRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.GetCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java new file mode 100644 index 00000000..62d767c7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCaPoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCaPoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java index ec1c5b67..9a81ce35 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateAuthorityRequest} */ -public final class GetCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCertificateAuthorityRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) GetCertificateAuthorityRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCertificateAuthorityRequest.newBuilder() to construct. - private GetCertificateAuthorityRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCertificateAuthorityRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCertificateAuthorityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCertificateAuthorityRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private GetCertificateAuthorityRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,42 +73,35 @@ private GetCertificateAuthorityRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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 @@ -136,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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 { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest 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.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - 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.security.privateca.v1.GetCertificateAuthorityRequest 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.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateAuthorityRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.getDefaultInstance(); } @java.lang.Override @@ -405,8 +364,7 @@ public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest bui @java.lang.Override public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest result = - new com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest(this); + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other) { - if (other - == com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other) { + if (other == com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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 { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java new file mode 100644 index 00000000..e3e41304 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateAuthorityRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java index 3ffc68d0..fb96c801 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRequest}
  */
-public final class GetCertificateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCertificateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateRequest)
     GetCertificateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCertificateRequest.newBuilder() to construct.
   private GetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCertificateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GetCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private GetCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,41 +74,34 @@ private GetCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.GetCertificateRequest.class,
-            com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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 @@ -135,31 +110,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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 { @@ -168,7 +141,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,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_); } @@ -204,15 +177,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.security.privateca.v1.GetCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateRequest other = - (com.google.cloud.security.privateca.v1.GetCertificateRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateRequest other = (com.google.cloud.security.privateca.v1.GetCertificateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,104 +205,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCertificateRequest 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.security.privateca.v1.GetCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.GetCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate].
@@ -337,23 +302,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateRequest)
       com.google.cloud.security.privateca.v1.GetCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.GetCertificateRequest.class,
-              com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.GetCertificateRequest.newBuilder()
@@ -361,15 +324,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -379,14 +343,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.GetCertificateRequest getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance();
     }
 
@@ -401,8 +364,7 @@ public com.google.cloud.security.privateca.v1.GetCertificateRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.GetCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.GetCertificateRequest result =
-          new com.google.cloud.security.privateca.v1.GetCertificateRequest(this);
+      com.google.cloud.security.privateca.v1.GetCertificateRequest result = new com.google.cloud.security.privateca.v1.GetCertificateRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -412,39 +374,38 @@ public com.google.cloud.security.privateca.v1.GetCertificateRequest buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -478,8 +437,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.GetCertificateRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -491,22 +449,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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; @@ -515,23 +469,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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 { @@ -539,74 +490,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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); } @@ -616,13 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.GetCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateRequest(); } @@ -631,16 +568,16 @@ public static com.google.cloud.security.privateca.v1.GetCertificateRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.GetCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java new file mode 100644 index 00000000..2a36fe9f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java similarity index 57% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java index a53ffa19..1a0d9f01 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList].
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRevocationListRequest}
  */
-public final class GetCertificateRevocationListRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCertificateRevocationListRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)
     GetCertificateRevocationListRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCertificateRevocationListRequest.newBuilder() to construct.
-  private GetCertificateRevocationListRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GetCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCertificateRevocationListRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCertificateRevocationListRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GetCertificateRevocationListRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +54,19 @@ private GetCertificateRevocationListRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,43 +74,35 @@ private GetCertificateRevocationListRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class,
-            com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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 @@ -139,32 +111,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.security.privateca.v1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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 { @@ -173,7 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,16 +179,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other = - (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,111 +206,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - 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.security.privateca.v1.GetCertificateRevocationListRequest 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.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList].
@@ -349,41 +304,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRevocationListRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)
       com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class,
-              com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -393,22 +345,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest build() {
-      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -416,10 +365,8 @@ public com.google.cloud.security.privateca.v1.GetCertificateRevocationListReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result =
-          new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(this);
+    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -429,52 +376,46 @@ public com.google.cloud.security.privateca.v1.GetCertificateRevocationListReques
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -494,14 +435,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -513,23 +451,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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; @@ -538,24 +472,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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 { @@ -563,77 +494,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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); } @@ -643,33 +561,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,8 +596,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java new file mode 100644 index 00000000..e5d579ec --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateRevocationListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java index 3a13cd9e..feb4d078 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.GetCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateTemplateRequest}
  */
-public final class GetCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCertificateTemplateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateTemplateRequest)
     GetCertificateTemplateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCertificateTemplateRequest.newBuilder() to construct.
   private GetCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCertificateTemplateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GetCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private GetCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,42 +74,35 @@ private GetCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class,
-            com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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 @@ -136,32 +111,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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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 { @@ -170,7 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,15 +179,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other = - (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,105 +207,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest 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.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest - 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.security.privateca.v1.GetCertificateTemplateRequest 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.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate].
@@ -340,40 +304,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateTemplateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.GetCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class,
-              com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,16 +345,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -406,8 +366,7 @@ public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest buil
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest result =
-          new com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -417,51 +376,46 @@ public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest buil
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -485,9 +439,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -499,23 +451,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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; @@ -524,24 +472,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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 { @@ -549,77 +494,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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); } @@ -629,32 +561,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,8 +596,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java new file mode 100644 index 00000000..e2fad44d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateTemplateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java index 723ad3f4..658f0308 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [KeyUsage][google.cloud.security.privateca.v1.KeyUsage] describes key usage values that may appear in an X.509
  * certificate.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage}
  */
-public final class KeyUsage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KeyUsage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.KeyUsage)
     KeyUsageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KeyUsage.newBuilder() to construct.
   private KeyUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KeyUsage() {
     unknownExtendedKeyUsages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KeyUsage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KeyUsage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,62 +55,48 @@ private KeyUsage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder subBuilder =
-                  null;
-              if (baseKeyUsage_ != null) {
-                subBuilder = baseKeyUsage_.toBuilder();
-              }
-              baseKeyUsage_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(baseKeyUsage_);
-                baseKeyUsage_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder subBuilder = null;
+            if (baseKeyUsage_ != null) {
+              subBuilder = baseKeyUsage_.toBuilder();
+            }
+            baseKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(baseKeyUsage_);
+              baseKeyUsage_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
-                  subBuilder = null;
-              if (extendedKeyUsage_ != null) {
-                subBuilder = extendedKeyUsage_.toBuilder();
-              }
-              extendedKeyUsage_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(extendedKeyUsage_);
-                extendedKeyUsage_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder subBuilder = null;
+            if (extendedKeyUsage_ != null) {
+              subBuilder = extendedKeyUsage_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                unknownExtendedKeyUsages_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              unknownExtendedKeyUsages_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
-              break;
+            extendedKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(extendedKeyUsage_);
+              extendedKeyUsage_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              unknownExtendedKeyUsages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            unknownExtendedKeyUsages_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -135,158 +104,125 @@ private KeyUsage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        unknownExtendedKeyUsages_ =
-            java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+        unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.KeyUsage.class,
-            com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
+            com.google.cloud.security.privateca.v1.KeyUsage.class, com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
   }
 
-  public interface KeyUsageOptionsOrBuilder
-      extends
+  public interface KeyUsageOptionsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; - * * @return The digitalSignature. */ boolean getDigitalSignature(); /** - * - * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; - * * @return The contentCommitment. */ boolean getContentCommitment(); /** - * - * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; - * * @return The keyEncipherment. */ boolean getKeyEncipherment(); /** - * - * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; - * * @return The dataEncipherment. */ boolean getDataEncipherment(); /** - * - * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; - * * @return The keyAgreement. */ boolean getKeyAgreement(); /** - * - * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; - * * @return The certSign. */ boolean getCertSign(); /** - * - * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; - * * @return The crlSign. */ boolean getCrlSign(); /** - * - * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; - * * @return The encipherOnly. */ boolean getEncipherOnly(); /** - * - * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; - * * @return The decipherOnly. */ boolean getDecipherOnly(); } /** - * - * *
    * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
    * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -294,29 +230,30 @@ public interface KeyUsageOptionsOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions}
    */
-  public static final class KeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class KeyUsageOptions extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
       KeyUsageOptionsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use KeyUsageOptions.newBuilder() to construct.
     private KeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private KeyUsageOptions() {}
+    private KeyUsageOptions() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new KeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private KeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -335,58 +272,58 @@ private KeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                digitalSignature_ = input.readBool();
-                break;
-              }
-            case 16:
-              {
-                contentCommitment_ = input.readBool();
-                break;
-              }
-            case 24:
-              {
-                keyEncipherment_ = input.readBool();
-                break;
-              }
-            case 32:
-              {
-                dataEncipherment_ = input.readBool();
-                break;
-              }
-            case 40:
-              {
-                keyAgreement_ = input.readBool();
-                break;
-              }
-            case 48:
-              {
-                certSign_ = input.readBool();
-                break;
-              }
-            case 56:
-              {
-                crlSign_ = input.readBool();
-                break;
-              }
-            case 64:
-              {
-                encipherOnly_ = input.readBool();
-                break;
-              }
-            case 72:
-              {
-                decipherOnly_ = input.readBool();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 8: {
+
+              digitalSignature_ = input.readBool();
+              break;
+            }
+            case 16: {
+
+              contentCommitment_ = input.readBool();
+              break;
+            }
+            case 24: {
+
+              keyEncipherment_ = input.readBool();
+              break;
+            }
+            case 32: {
+
+              dataEncipherment_ = input.readBool();
+              break;
+            }
+            case 40: {
+
+              keyAgreement_ = input.readBool();
+              break;
+            }
+            case 48: {
+
+              certSign_ = input.readBool();
+              break;
+            }
+            case 56: {
+
+              crlSign_ = input.readBool();
+              break;
+            }
+            case 64: {
+
+              encipherOnly_ = input.readBool();
+              break;
+            }
+            case 72: {
+
+              decipherOnly_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -394,39 +331,34 @@ private KeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class,
-              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
+              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
     }
 
     public static final int DIGITAL_SIGNATURE_FIELD_NUMBER = 1;
     private boolean digitalSignature_;
     /**
-     *
-     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; - * * @return The digitalSignature. */ @java.lang.Override @@ -437,15 +369,12 @@ public boolean getDigitalSignature() { public static final int CONTENT_COMMITMENT_FIELD_NUMBER = 2; private boolean contentCommitment_; /** - * - * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; - * * @return The contentCommitment. */ @java.lang.Override @@ -456,14 +385,11 @@ public boolean getContentCommitment() { public static final int KEY_ENCIPHERMENT_FIELD_NUMBER = 3; private boolean keyEncipherment_; /** - * - * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; - * * @return The keyEncipherment. */ @java.lang.Override @@ -474,14 +400,11 @@ public boolean getKeyEncipherment() { public static final int DATA_ENCIPHERMENT_FIELD_NUMBER = 4; private boolean dataEncipherment_; /** - * - * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; - * * @return The dataEncipherment. */ @java.lang.Override @@ -492,14 +415,11 @@ public boolean getDataEncipherment() { public static final int KEY_AGREEMENT_FIELD_NUMBER = 5; private boolean keyAgreement_; /** - * - * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; - * * @return The keyAgreement. */ @java.lang.Override @@ -510,14 +430,11 @@ public boolean getKeyAgreement() { public static final int CERT_SIGN_FIELD_NUMBER = 6; private boolean certSign_; /** - * - * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; - * * @return The certSign. */ @java.lang.Override @@ -528,14 +445,11 @@ public boolean getCertSign() { public static final int CRL_SIGN_FIELD_NUMBER = 7; private boolean crlSign_; /** - * - * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; - * * @return The crlSign. */ @java.lang.Override @@ -546,14 +460,11 @@ public boolean getCrlSign() { public static final int ENCIPHER_ONLY_FIELD_NUMBER = 8; private boolean encipherOnly_; /** - * - * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; - * * @return The encipherOnly. */ @java.lang.Override @@ -564,14 +475,11 @@ public boolean getEncipherOnly() { public static final int DECIPHER_ONLY_FIELD_NUMBER = 9; private boolean decipherOnly_; /** - * - * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; - * * @return The decipherOnly. */ @java.lang.Override @@ -580,7 +488,6 @@ public boolean getDecipherOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -592,7 +499,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (digitalSignature_ != false) { output.writeBool(1, digitalSignature_); } @@ -630,31 +538,40 @@ public int getSerializedSize() { size = 0; if (digitalSignature_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, digitalSignature_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, digitalSignature_); } if (contentCommitment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contentCommitment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, contentCommitment_); } if (keyEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, keyEncipherment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, keyEncipherment_); } if (dataEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dataEncipherment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, dataEncipherment_); } if (keyAgreement_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, keyAgreement_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, keyAgreement_); } if (certSign_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, certSign_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, certSign_); } if (crlSign_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, crlSign_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, crlSign_); } if (encipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, encipherOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, encipherOnly_); } if (decipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, decipherOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, decipherOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -664,23 +581,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.security.privateca.v1.KeyUsage.KeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other = - (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) obj; - - if (getDigitalSignature() != other.getDigitalSignature()) return false; - if (getContentCommitment() != other.getContentCommitment()) return false; - if (getKeyEncipherment() != other.getKeyEncipherment()) return false; - if (getDataEncipherment() != other.getDataEncipherment()) return false; - if (getKeyAgreement() != other.getKeyAgreement()) return false; - if (getCertSign() != other.getCertSign()) return false; - if (getCrlSign() != other.getCrlSign()) return false; - if (getEncipherOnly() != other.getEncipherOnly()) return false; - if (getDecipherOnly() != other.getDecipherOnly()) return false; + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other = (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) obj; + + if (getDigitalSignature() + != other.getDigitalSignature()) return false; + if (getContentCommitment() + != other.getContentCommitment()) return false; + if (getKeyEncipherment() + != other.getKeyEncipherment()) return false; + if (getDataEncipherment() + != other.getDataEncipherment()) return false; + if (getKeyAgreement() + != other.getKeyAgreement()) return false; + if (getCertSign() + != other.getCertSign()) return false; + if (getCrlSign() + != other.getCrlSign()) return false; + if (getEncipherOnly() + != other.getEncipherOnly()) return false; + if (getDecipherOnly() + != other.getDecipherOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -693,118 +618,119 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIGITAL_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDigitalSignature()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDigitalSignature()); hash = (37 * hash) + CONTENT_COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContentCommitment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContentCommitment()); hash = (37 * hash) + KEY_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKeyEncipherment()); hash = (37 * hash) + DATA_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDataEncipherment()); hash = (37 * hash) + KEY_AGREEMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyAgreement()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKeyAgreement()); hash = (37 * hash) + CERT_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCertSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCertSign()); hash = (37 * hash) + CRL_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCrlSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCrlSign()); hash = (37 * hash) + ENCIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEncipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEncipherOnly()); hash = (37 * hash) + DECIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDecipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDecipherOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions 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.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions - 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.security.privateca.v1.KeyUsage.KeyUsageOptions 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.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -814,8 +740,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
      * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -823,41 +747,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
         com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class,
-                com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
+                com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -883,14 +804,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions
-          getDefaultInstanceForType() {
+      public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() {
         return com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance();
       }
 
@@ -905,8 +825,7 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions build() {
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions buildPartial() {
-        com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions result =
-            new com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions(this);
+        com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions result = new com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions(this);
         result.digitalSignature_ = digitalSignature_;
         result.contentCommitment_ = contentCommitment_;
         result.keyEncipherment_ = keyEncipherment_;
@@ -924,52 +843,46 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions buildPart
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1.KeyUsage.KeyUsageOptions) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) other);
+          return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other) {
-        if (other
-            == com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other) {
+        if (other == com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance()) return this;
         if (other.getDigitalSignature() != false) {
           setDigitalSignature(other.getDigitalSignature());
         }
@@ -1016,9 +929,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1028,16 +939,13 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean digitalSignature_;
+      private boolean digitalSignature_ ;
       /**
-       *
-       *
        * 
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; - * * @return The digitalSignature. */ @java.lang.Override @@ -1045,52 +953,43 @@ public boolean getDigitalSignature() { return digitalSignature_; } /** - * - * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; - * * @param value The digitalSignature to set. * @return This builder for chaining. */ public Builder setDigitalSignature(boolean value) { - + digitalSignature_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; - * * @return This builder for chaining. */ public Builder clearDigitalSignature() { - + digitalSignature_ = false; onChanged(); return this; } - private boolean contentCommitment_; + private boolean contentCommitment_ ; /** - * - * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; - * * @return The contentCommitment. */ @java.lang.Override @@ -1098,53 +997,44 @@ public boolean getContentCommitment() { return contentCommitment_; } /** - * - * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; - * * @param value The contentCommitment to set. * @return This builder for chaining. */ public Builder setContentCommitment(boolean value) { - + contentCommitment_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; - * * @return This builder for chaining. */ public Builder clearContentCommitment() { - + contentCommitment_ = false; onChanged(); return this; } - private boolean keyEncipherment_; + private boolean keyEncipherment_ ; /** - * - * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; - * * @return The keyEncipherment. */ @java.lang.Override @@ -1152,51 +1042,42 @@ public boolean getKeyEncipherment() { return keyEncipherment_; } /** - * - * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; - * * @param value The keyEncipherment to set. * @return This builder for chaining. */ public Builder setKeyEncipherment(boolean value) { - + keyEncipherment_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; - * * @return This builder for chaining. */ public Builder clearKeyEncipherment() { - + keyEncipherment_ = false; onChanged(); return this; } - private boolean dataEncipherment_; + private boolean dataEncipherment_ ; /** - * - * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; - * * @return The dataEncipherment. */ @java.lang.Override @@ -1204,51 +1085,42 @@ public boolean getDataEncipherment() { return dataEncipherment_; } /** - * - * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; - * * @param value The dataEncipherment to set. * @return This builder for chaining. */ public Builder setDataEncipherment(boolean value) { - + dataEncipherment_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; - * * @return This builder for chaining. */ public Builder clearDataEncipherment() { - + dataEncipherment_ = false; onChanged(); return this; } - private boolean keyAgreement_; + private boolean keyAgreement_ ; /** - * - * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; - * * @return The keyAgreement. */ @java.lang.Override @@ -1256,51 +1128,42 @@ public boolean getKeyAgreement() { return keyAgreement_; } /** - * - * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; - * * @param value The keyAgreement to set. * @return This builder for chaining. */ public Builder setKeyAgreement(boolean value) { - + keyAgreement_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; - * * @return This builder for chaining. */ public Builder clearKeyAgreement() { - + keyAgreement_ = false; onChanged(); return this; } - private boolean certSign_; + private boolean certSign_ ; /** - * - * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; - * * @return The certSign. */ @java.lang.Override @@ -1308,51 +1171,42 @@ public boolean getCertSign() { return certSign_; } /** - * - * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; - * * @param value The certSign to set. * @return This builder for chaining. */ public Builder setCertSign(boolean value) { - + certSign_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; - * * @return This builder for chaining. */ public Builder clearCertSign() { - + certSign_ = false; onChanged(); return this; } - private boolean crlSign_; + private boolean crlSign_ ; /** - * - * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; - * * @return The crlSign. */ @java.lang.Override @@ -1360,51 +1214,42 @@ public boolean getCrlSign() { return crlSign_; } /** - * - * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; - * * @param value The crlSign to set. * @return This builder for chaining. */ public Builder setCrlSign(boolean value) { - + crlSign_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; - * * @return This builder for chaining. */ public Builder clearCrlSign() { - + crlSign_ = false; onChanged(); return this; } - private boolean encipherOnly_; + private boolean encipherOnly_ ; /** - * - * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; - * * @return The encipherOnly. */ @java.lang.Override @@ -1412,51 +1257,42 @@ public boolean getEncipherOnly() { return encipherOnly_; } /** - * - * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; - * * @param value The encipherOnly to set. * @return This builder for chaining. */ public Builder setEncipherOnly(boolean value) { - + encipherOnly_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; - * * @return This builder for chaining. */ public Builder clearEncipherOnly() { - + encipherOnly_ = false; onChanged(); return this; } - private boolean decipherOnly_; + private boolean decipherOnly_ ; /** - * - * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; - * * @return The decipherOnly. */ @java.lang.Override @@ -1464,41 +1300,34 @@ public boolean getDecipherOnly() { return decipherOnly_; } /** - * - * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; - * * @param value The decipherOnly to set. * @return This builder for chaining. */ public Builder setDecipherOnly(boolean value) { - + decipherOnly_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; - * * @return This builder for chaining. */ public Builder clearDecipherOnly() { - + decipherOnly_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1511,32 +1340,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) - private static final com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1548,104 +1375,83 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ExtendedKeyUsageOptionsOrBuilder - extends + public interface ExtendedKeyUsageOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; - * * @return The serverAuth. */ boolean getServerAuth(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; - * * @return The clientAuth. */ boolean getClientAuth(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; - * * @return The codeSigning. */ boolean getCodeSigning(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; - * * @return The emailProtection. */ boolean getEmailProtection(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; - * * @return The timeStamping. */ boolean getTimeStamping(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; - * * @return The ocspSigning. */ boolean getOcspSigning(); } /** - * - * *
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
    * certain common OIDs that could be specified as an extended key usage value.
@@ -1653,29 +1459,30 @@ public interface ExtendedKeyUsageOptionsOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions}
    */
-  public static final class ExtendedKeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ExtendedKeyUsageOptions extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)
       ExtendedKeyUsageOptionsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ExtendedKeyUsageOptions.newBuilder() to construct.
     private ExtendedKeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private ExtendedKeyUsageOptions() {}
+    private ExtendedKeyUsageOptions() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ExtendedKeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ExtendedKeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1694,43 +1501,43 @@ private ExtendedKeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                serverAuth_ = input.readBool();
-                break;
-              }
-            case 16:
-              {
-                clientAuth_ = input.readBool();
-                break;
-              }
-            case 24:
-              {
-                codeSigning_ = input.readBool();
-                break;
-              }
-            case 32:
-              {
-                emailProtection_ = input.readBool();
-                break;
-              }
-            case 40:
-              {
-                timeStamping_ = input.readBool();
-                break;
-              }
-            case 48:
-              {
-                ocspSigning_ = input.readBool();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 8: {
+
+              serverAuth_ = input.readBool();
+              break;
+            }
+            case 16: {
+
+              clientAuth_ = input.readBool();
+              break;
+            }
+            case 24: {
+
+              codeSigning_ = input.readBool();
+              break;
+            }
+            case 32: {
+
+              emailProtection_ = input.readBool();
+              break;
+            }
+            case 40: {
+
+              timeStamping_ = input.readBool();
+              break;
+            }
+            case 48: {
+
+              ocspSigning_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1738,41 +1545,35 @@ private ExtendedKeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class,
-              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder.class);
     }
 
     public static final int SERVER_AUTH_FIELD_NUMBER = 1;
     private boolean serverAuth_;
     /**
-     *
-     *
      * 
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; - * * @return The serverAuth. */ @java.lang.Override @@ -1783,15 +1584,12 @@ public boolean getServerAuth() { public static final int CLIENT_AUTH_FIELD_NUMBER = 2; private boolean clientAuth_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; - * * @return The clientAuth. */ @java.lang.Override @@ -1802,15 +1600,12 @@ public boolean getClientAuth() { public static final int CODE_SIGNING_FIELD_NUMBER = 3; private boolean codeSigning_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; - * * @return The codeSigning. */ @java.lang.Override @@ -1821,15 +1616,12 @@ public boolean getCodeSigning() { public static final int EMAIL_PROTECTION_FIELD_NUMBER = 4; private boolean emailProtection_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; - * * @return The emailProtection. */ @java.lang.Override @@ -1840,15 +1632,12 @@ public boolean getEmailProtection() { public static final int TIME_STAMPING_FIELD_NUMBER = 5; private boolean timeStamping_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; - * * @return The timeStamping. */ @java.lang.Override @@ -1859,15 +1648,12 @@ public boolean getTimeStamping() { public static final int OCSP_SIGNING_FIELD_NUMBER = 6; private boolean ocspSigning_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; - * * @return The ocspSigning. */ @java.lang.Override @@ -1876,7 +1662,6 @@ public boolean getOcspSigning() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1888,7 +1673,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (serverAuth_ != false) { output.writeBool(1, serverAuth_); } @@ -1917,22 +1703,28 @@ public int getSerializedSize() { size = 0; if (serverAuth_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, serverAuth_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, serverAuth_); } if (clientAuth_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientAuth_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clientAuth_); } if (codeSigning_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, codeSigning_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, codeSigning_); } if (emailProtection_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, emailProtection_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, emailProtection_); } if (timeStamping_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, timeStamping_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, timeStamping_); } if (ocspSigning_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, ocspSigning_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, ocspSigning_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1942,21 +1734,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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other = - (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) obj; - - if (getServerAuth() != other.getServerAuth()) return false; - if (getClientAuth() != other.getClientAuth()) return false; - if (getCodeSigning() != other.getCodeSigning()) return false; - if (getEmailProtection() != other.getEmailProtection()) return false; - if (getTimeStamping() != other.getTimeStamping()) return false; - if (getOcspSigning() != other.getOcspSigning()) return false; + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other = (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) obj; + + if (getServerAuth() + != other.getServerAuth()) return false; + if (getClientAuth() + != other.getClientAuth()) return false; + if (getCodeSigning() + != other.getCodeSigning()) return false; + if (getEmailProtection() + != other.getEmailProtection()) return false; + if (getTimeStamping() + != other.getTimeStamping()) return false; + if (getOcspSigning() + != other.getOcspSigning()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1969,112 +1765,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVER_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServerAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getServerAuth()); hash = (37 * hash) + CLIENT_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientAuth()); hash = (37 * hash) + CODE_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCodeSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCodeSigning()); hash = (37 * hash) + EMAIL_PROTECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailProtection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEmailProtection()); hash = (37 * hash) + TIME_STAMPING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTimeStamping()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTimeStamping()); hash = (37 * hash) + OCSP_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOcspSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOcspSigning()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions 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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - 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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions 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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2084,8 +1878,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
      * certain common OIDs that could be specified as an extended key usage value.
@@ -2093,42 +1885,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)
         com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class,
-                com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
-                    .class);
+                com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2148,22 +1936,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
-          getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
-            .getDefaultInstance();
+      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions build() {
-        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result =
-            buildPartial();
+        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2171,10 +1956,8 @@ public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions b
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
-          buildPartial() {
-        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result =
-            new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(this);
+      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions buildPartial() {
+        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result = new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(this);
         result.serverAuth_ = serverAuth_;
         result.clientAuth_ = clientAuth_;
         result.codeSigning_ = codeSigning_;
@@ -2189,54 +1972,46 @@ public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions b
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) {
-          return mergeFrom(
-              (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) other);
+        if (other instanceof com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) {
+          return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other) {
-        if (other
-            == com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other) {
+        if (other == com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance()) return this;
         if (other.getServerAuth() != false) {
           setServerAuth(other.getServerAuth());
         }
@@ -2270,14 +2045,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parsedMessage =
-            null;
+        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2287,17 +2059,14 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean serverAuth_;
+      private boolean serverAuth_ ;
       /**
-       *
-       *
        * 
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; - * * @return The serverAuth. */ @java.lang.Override @@ -2305,54 +2074,45 @@ public boolean getServerAuth() { return serverAuth_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; - * * @param value The serverAuth to set. * @return This builder for chaining. */ public Builder setServerAuth(boolean value) { - + serverAuth_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; - * * @return This builder for chaining. */ public Builder clearServerAuth() { - + serverAuth_ = false; onChanged(); return this; } - private boolean clientAuth_; + private boolean clientAuth_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; - * * @return The clientAuth. */ @java.lang.Override @@ -2360,54 +2120,45 @@ public boolean getClientAuth() { return clientAuth_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; - * * @param value The clientAuth to set. * @return This builder for chaining. */ public Builder setClientAuth(boolean value) { - + clientAuth_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; - * * @return This builder for chaining. */ public Builder clearClientAuth() { - + clientAuth_ = false; onChanged(); return this; } - private boolean codeSigning_; + private boolean codeSigning_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; - * * @return The codeSigning. */ @java.lang.Override @@ -2415,54 +2166,45 @@ public boolean getCodeSigning() { return codeSigning_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; - * * @param value The codeSigning to set. * @return This builder for chaining. */ public Builder setCodeSigning(boolean value) { - + codeSigning_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; - * * @return This builder for chaining. */ public Builder clearCodeSigning() { - + codeSigning_ = false; onChanged(); return this; } - private boolean emailProtection_; + private boolean emailProtection_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; - * * @return The emailProtection. */ @java.lang.Override @@ -2470,54 +2212,45 @@ public boolean getEmailProtection() { return emailProtection_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; - * * @param value The emailProtection to set. * @return This builder for chaining. */ public Builder setEmailProtection(boolean value) { - + emailProtection_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; - * * @return This builder for chaining. */ public Builder clearEmailProtection() { - + emailProtection_ = false; onChanged(); return this; } - private boolean timeStamping_; + private boolean timeStamping_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; - * * @return The timeStamping. */ @java.lang.Override @@ -2525,54 +2258,45 @@ public boolean getTimeStamping() { return timeStamping_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; - * * @param value The timeStamping to set. * @return This builder for chaining. */ public Builder setTimeStamping(boolean value) { - + timeStamping_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; - * * @return This builder for chaining. */ public Builder clearTimeStamping() { - + timeStamping_ = false; onChanged(); return this; } - private boolean ocspSigning_; + private boolean ocspSigning_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; - * * @return The ocspSigning. */ @java.lang.Override @@ -2580,43 +2304,36 @@ public boolean getOcspSigning() { return ocspSigning_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; - * * @param value The ocspSigning to set. * @return This builder for chaining. */ public Builder setOcspSigning(boolean value) { - + ocspSigning_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; - * * @return This builder for chaining. */ public Builder clearOcspSigning() { - + ocspSigning_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2629,33 +2346,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) - private static final com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtendedKeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtendedKeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendedKeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtendedKeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2667,23 +2381,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BASE_KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions baseKeyUsage_; /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * * @return Whether the baseKeyUsage field is set. */ @java.lang.Override @@ -2691,25 +2402,18 @@ public boolean hasBaseKeyUsage() { return baseKeyUsage_ != null; } /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * * @return The baseKeyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { - return baseKeyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() - : baseKeyUsage_; + return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; } /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
@@ -2717,24 +2421,18 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKe * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder - getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { return getBaseKeyUsage(); } public static final int EXTENDED_KEY_USAGE_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return Whether the extendedKeyUsage field is set. */ @java.lang.Override @@ -2742,126 +2440,95 @@ public boolean hasExtendedKeyUsage() { return extendedKeyUsage_ != null; } /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return The extendedKeyUsage. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - getExtendedKeyUsage() { - return extendedKeyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance() - : extendedKeyUsage_; + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { + return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; } /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder - getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { return getExtendedKeyUsage(); } public static final int UNKNOWN_EXTENDED_KEY_USAGES_FIELD_NUMBER = 3; private java.util.List unknownExtendedKeyUsages_; /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public java.util.List - getUnknownExtendedKeyUsagesList() { + public java.util.List getUnknownExtendedKeyUsagesList() { return unknownExtendedKeyUsages_; } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public java.util.List + public java.util.List getUnknownExtendedKeyUsagesOrBuilderList() { return unknownExtendedKeyUsages_; } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override public int getUnknownExtendedKeyUsagesCount() { return unknownExtendedKeyUsages_.size(); } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index) { return unknownExtendedKeyUsages_.get(index); } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder - getUnknownExtendedKeyUsagesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( + int index) { return unknownExtendedKeyUsages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2873,7 +2540,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (baseKeyUsage_ != null) { output.writeMessage(1, getBaseKeyUsage()); } @@ -2893,15 +2561,16 @@ public int getSerializedSize() { size = 0; if (baseKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBaseKeyUsage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBaseKeyUsage()); } if (extendedKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExtendedKeyUsage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExtendedKeyUsage()); } for (int i = 0; i < unknownExtendedKeyUsages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, unknownExtendedKeyUsages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, unknownExtendedKeyUsages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2911,24 +2580,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.security.privateca.v1.KeyUsage)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.KeyUsage other = - (com.google.cloud.security.privateca.v1.KeyUsage) obj; + com.google.cloud.security.privateca.v1.KeyUsage other = (com.google.cloud.security.privateca.v1.KeyUsage) obj; if (hasBaseKeyUsage() != other.hasBaseKeyUsage()) return false; if (hasBaseKeyUsage()) { - if (!getBaseKeyUsage().equals(other.getBaseKeyUsage())) return false; + if (!getBaseKeyUsage() + .equals(other.getBaseKeyUsage())) return false; } if (hasExtendedKeyUsage() != other.hasExtendedKeyUsage()) return false; if (hasExtendedKeyUsage()) { - if (!getExtendedKeyUsage().equals(other.getExtendedKeyUsage())) return false; + if (!getExtendedKeyUsage() + .equals(other.getExtendedKeyUsage())) return false; } - if (!getUnknownExtendedKeyUsagesList().equals(other.getUnknownExtendedKeyUsagesList())) - return false; + if (!getUnknownExtendedKeyUsagesList() + .equals(other.getUnknownExtendedKeyUsagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2957,104 +2627,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom(java.io.InputStream input) 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.security.privateca.v1.KeyUsage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.KeyUsage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.KeyUsage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.KeyUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [KeyUsage][google.cloud.security.privateca.v1.KeyUsage] describes key usage values that may appear in an X.509
    * certificate.
@@ -3062,23 +2725,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.KeyUsage)
       com.google.cloud.security.privateca.v1.KeyUsageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.KeyUsage.class,
-              com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
+              com.google.cloud.security.privateca.v1.KeyUsage.class, com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.KeyUsage.newBuilder()
@@ -3086,17 +2747,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getUnknownExtendedKeyUsagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3122,9 +2783,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
@@ -3143,8 +2804,7 @@ public com.google.cloud.security.privateca.v1.KeyUsage build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.KeyUsage buildPartial() {
-      com.google.cloud.security.privateca.v1.KeyUsage result =
-          new com.google.cloud.security.privateca.v1.KeyUsage(this);
+      com.google.cloud.security.privateca.v1.KeyUsage result = new com.google.cloud.security.privateca.v1.KeyUsage(this);
       int from_bitField0_ = bitField0_;
       if (baseKeyUsageBuilder_ == null) {
         result.baseKeyUsage_ = baseKeyUsage_;
@@ -3158,8 +2818,7 @@ public com.google.cloud.security.privateca.v1.KeyUsage buildPartial() {
       }
       if (unknownExtendedKeyUsagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          unknownExtendedKeyUsages_ =
-              java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+          unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.unknownExtendedKeyUsages_ = unknownExtendedKeyUsages_;
@@ -3174,39 +2833,38 @@ public com.google.cloud.security.privateca.v1.KeyUsage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.KeyUsage) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3214,8 +2872,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage other) {
-      if (other == com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance()) return this;
       if (other.hasBaseKeyUsage()) {
         mergeBaseKeyUsage(other.getBaseKeyUsage());
       }
@@ -3240,10 +2897,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage other)
             unknownExtendedKeyUsagesBuilder_ = null;
             unknownExtendedKeyUsages_ = other.unknownExtendedKeyUsages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            unknownExtendedKeyUsagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getUnknownExtendedKeyUsagesFieldBuilder()
-                    : null;
+            unknownExtendedKeyUsagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getUnknownExtendedKeyUsagesFieldBuilder() : null;
           } else {
             unknownExtendedKeyUsagesBuilder_.addAllMessages(other.unknownExtendedKeyUsages_);
           }
@@ -3277,60 +2933,45 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions baseKeyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions,
-            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder,
-            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder>
-        baseKeyUsageBuilder_;
+        com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder> baseKeyUsageBuilder_;
     /**
-     *
-     *
      * 
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * * @return Whether the baseKeyUsage field is set. */ public boolean hasBaseKeyUsage() { return baseKeyUsageBuilder_ != null || baseKeyUsage_ != null; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * * @return The baseKeyUsage. */ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { if (baseKeyUsageBuilder_ == null) { - return baseKeyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() - : baseKeyUsage_; + return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; } else { return baseKeyUsageBuilder_.getMessage(); } } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public Builder setBaseKeyUsage( - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { + public Builder setBaseKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3344,8 +2985,6 @@ public Builder setBaseKeyUsage( return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
@@ -3364,23 +3003,17 @@ public Builder setBaseKeyUsage( return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public Builder mergeBaseKeyUsage( - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { + public Builder mergeBaseKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (baseKeyUsage_ != null) { baseKeyUsage_ = - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder( - baseKeyUsage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder(baseKeyUsage_).mergeFrom(value).buildPartial(); } else { baseKeyUsage_ = value; } @@ -3392,8 +3025,6 @@ public Builder mergeBaseKeyUsage( return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
@@ -3412,42 +3043,33 @@ public Builder clearBaseKeyUsage() { return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder - getBaseKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder getBaseKeyUsageBuilder() { + onChanged(); return getBaseKeyUsageFieldBuilder().getBuilder(); } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder - getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { if (baseKeyUsageBuilder_ != null) { return baseKeyUsageBuilder_.getMessageOrBuilder(); } else { - return baseKeyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() - : baseKeyUsage_; + return baseKeyUsage_ == null ? + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; } } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
@@ -3455,82 +3077,56 @@ public Builder clearBaseKeyUsage() { * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder> getBaseKeyUsageFieldBuilder() { if (baseKeyUsageBuilder_ == null) { - baseKeyUsageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder>( - getBaseKeyUsage(), getParentForChildren(), isClean()); + baseKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder>( + getBaseKeyUsage(), + getParentForChildren(), + isClean()); baseKeyUsage_ = null; } return baseKeyUsageBuilder_; } - private com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - extendedKeyUsage_; + private com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> - extendedKeyUsageBuilder_; + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> extendedKeyUsageBuilder_; /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return Whether the extendedKeyUsage field is set. */ public boolean hasExtendedKeyUsage() { return extendedKeyUsageBuilder_ != null || extendedKeyUsage_ != null; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return The extendedKeyUsage. */ - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - getExtendedKeyUsage() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { - return extendedKeyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance() - : extendedKeyUsage_; + return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; } else { return extendedKeyUsageBuilder_.getMessage(); } } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public Builder setExtendedKeyUsage( - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder setExtendedKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3544,19 +3140,14 @@ public Builder setExtendedKeyUsage( return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ public Builder setExtendedKeyUsage( - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder builderForValue) { if (extendedKeyUsageBuilder_ == null) { extendedKeyUsage_ = builderForValue.build(); onChanged(); @@ -3567,25 +3158,17 @@ public Builder setExtendedKeyUsage( return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public Builder mergeExtendedKeyUsage( - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder mergeExtendedKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (extendedKeyUsage_ != null) { extendedKeyUsage_ = - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder( - extendedKeyUsage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder(extendedKeyUsage_).mergeFrom(value).buildPartial(); } else { extendedKeyUsage_ = value; } @@ -3597,15 +3180,11 @@ public Builder mergeExtendedKeyUsage( return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ public Builder clearExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { @@ -3619,103 +3198,74 @@ public Builder clearExtendedKeyUsage() { return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder - getExtendedKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder getExtendedKeyUsageBuilder() { + onChanged(); return getExtendedKeyUsageFieldBuilder().getBuilder(); } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder - getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { if (extendedKeyUsageBuilder_ != null) { return extendedKeyUsageBuilder_.getMessageOrBuilder(); } else { - return extendedKeyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance() - : extendedKeyUsage_; + return extendedKeyUsage_ == null ? + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; } } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> getExtendedKeyUsageFieldBuilder() { if (extendedKeyUsageBuilder_ == null) { - extendedKeyUsageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder>( - getExtendedKeyUsage(), getParentForChildren(), isClean()); + extendedKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder>( + getExtendedKeyUsage(), + getParentForChildren(), + isClean()); extendedKeyUsage_ = null; } return extendedKeyUsageBuilder_; } - private java.util.List - unknownExtendedKeyUsages_ = java.util.Collections.emptyList(); - + private java.util.List unknownExtendedKeyUsages_ = + java.util.Collections.emptyList(); private void ensureUnknownExtendedKeyUsagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - unknownExtendedKeyUsages_ = - new java.util.ArrayList( - unknownExtendedKeyUsages_); + unknownExtendedKeyUsages_ = new java.util.ArrayList(unknownExtendedKeyUsages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> - unknownExtendedKeyUsagesBuilder_; + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> unknownExtendedKeyUsagesBuilder_; /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public java.util.List - getUnknownExtendedKeyUsagesList() { + public java.util.List getUnknownExtendedKeyUsagesList() { if (unknownExtendedKeyUsagesBuilder_ == null) { return java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_); } else { @@ -3723,15 +3273,12 @@ private void ensureUnknownExtendedKeyUsagesIsMutable() { } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public int getUnknownExtendedKeyUsagesCount() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3741,15 +3288,12 @@ public int getUnknownExtendedKeyUsagesCount() { } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3759,15 +3303,12 @@ public com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsag } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -3784,15 +3325,12 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -3806,18 +3344,14 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public Builder addUnknownExtendedKeyUsages( - com.google.cloud.security.privateca.v1.ObjectId value) { + public Builder addUnknownExtendedKeyUsages(com.google.cloud.security.privateca.v1.ObjectId value) { if (unknownExtendedKeyUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3831,15 +3365,12 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -3856,15 +3387,12 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder addUnknownExtendedKeyUsages( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -3878,15 +3406,12 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -3900,21 +3425,19 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder addAllUnknownExtendedKeyUsages( java.lang.Iterable values) { if (unknownExtendedKeyUsagesBuilder_ == null) { ensureUnknownExtendedKeyUsagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unknownExtendedKeyUsages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unknownExtendedKeyUsages_); onChanged(); } else { unknownExtendedKeyUsagesBuilder_.addAllMessages(values); @@ -3922,15 +3445,12 @@ public Builder addAllUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder clearUnknownExtendedKeyUsages() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3943,15 +3463,12 @@ public Builder clearUnknownExtendedKeyUsages() { return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ public Builder removeUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3964,52 +3481,42 @@ public Builder removeUnknownExtendedKeyUsages(int index) { return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder - getUnknownExtendedKeyUsagesBuilder(int index) { + public com.google.cloud.security.privateca.v1.ObjectId.Builder getUnknownExtendedKeyUsagesBuilder( + int index) { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder - getUnknownExtendedKeyUsagesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( + int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { - return unknownExtendedKeyUsages_.get(index); - } else { + return unknownExtendedKeyUsages_.get(index); } else { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public java.util.List - getUnknownExtendedKeyUsagesOrBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesOrBuilderList() { if (unknownExtendedKeyUsagesBuilder_ != null) { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilderList(); } else { @@ -4017,64 +3524,48 @@ public Builder removeUnknownExtendedKeyUsages(int index) { } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder - addUnknownExtendedKeyUsagesBuilder() { - return getUnknownExtendedKeyUsagesFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder() { + return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder - addUnknownExtendedKeyUsagesBuilder(int index) { - return getUnknownExtendedKeyUsagesFieldBuilder() - .addBuilder(index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder( + int index) { + return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - public java.util.List - getUnknownExtendedKeyUsagesBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesBuilderList() { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getUnknownExtendedKeyUsagesFieldBuilder() { if (unknownExtendedKeyUsagesBuilder_ == null) { - unknownExtendedKeyUsagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + unknownExtendedKeyUsagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( unknownExtendedKeyUsages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4083,9 +3574,9 @@ public Builder removeUnknownExtendedKeyUsages(int index) { } return unknownExtendedKeyUsagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4095,12 +3586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.KeyUsage) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.KeyUsage) private static final com.google.cloud.security.privateca.v1.KeyUsage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.KeyUsage(); } @@ -4109,16 +3600,16 @@ public static com.google.cloud.security.privateca.v1.KeyUsage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4133,4 +3624,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.KeyUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java index ad250fea..904abe14 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java @@ -1,165 +1,111 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface KeyUsageOrBuilder - extends +public interface KeyUsageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * * @return Whether the baseKeyUsage field is set. */ boolean hasBaseKeyUsage(); /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * * @return The baseKeyUsage. */ com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage(); /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder - getBaseKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder(); /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return Whether the extendedKeyUsage field is set. */ boolean hasExtendedKeyUsage(); /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return The extendedKeyUsage. */ com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage(); /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder - getExtendedKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - java.util.List getUnknownExtendedKeyUsagesList(); + java.util.List + getUnknownExtendedKeyUsagesList(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ int getUnknownExtendedKeyUsagesCount(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ - java.util.List + java.util.List getUnknownExtendedKeyUsagesOrBuilderList(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; */ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( int index); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java index f758ee83..49a7728a 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsRequest}
  */
-public final class ListCaPoolsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCaPoolsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCaPoolsRequest)
     ListCaPoolsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCaPoolsRequest.newBuilder() to construct.
   private ListCaPoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCaPoolsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -47,15 +29,16 @@ private ListCaPoolsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCaPoolsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCaPoolsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,46 +57,42 @@ private ListCaPoolsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageToken_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              orderBy_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderBy_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,43 +100,36 @@ private ListCaPoolsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class,
-            com.google.cloud.security.privateca.v1.ListCaPoolsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, com.google.cloud.security.privateca.v1.ListCaPoolsRequest.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
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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 @@ -166,33 +138,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
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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 { @@ -203,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
    * include in the response.
@@ -215,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -226,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -243,30 +207,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. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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 { @@ -277,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -293,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -326,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -342,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -373,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -385,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -414,7 +372,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_); @@ -433,19 +392,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.security.privateca.v1.ListCaPoolsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCaPoolsRequest other = - (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) 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.security.privateca.v1.ListCaPoolsRequest other = (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -473,104 +436,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest 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.security.privateca.v1.ListCaPoolsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCaPoolsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -578,23 +533,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCaPoolsRequest)
       com.google.cloud.security.privateca.v1.ListCaPoolsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class,
-              com.google.cloud.security.privateca.v1.ListCaPoolsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, com.google.cloud.security.privateca.v1.ListCaPoolsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.ListCaPoolsRequest.newBuilder()
@@ -602,15 +555,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -628,9 +582,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -649,8 +603,7 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCaPoolsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCaPoolsRequest result =
-          new com.google.cloud.security.privateca.v1.ListCaPoolsRequest(this);
+      com.google.cloud.security.privateca.v1.ListCaPoolsRequest result = new com.google.cloud.security.privateca.v1.ListCaPoolsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -664,39 +617,38 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ListCaPoolsRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -704,8 +656,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCaPoolsRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -744,8 +695,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -757,24 +707,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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; @@ -783,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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 { @@ -809,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
      * include in the response.
@@ -895,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -903,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
      * include in the response.
@@ -915,19 +840,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. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
      * include in the response.
@@ -938,11 +860,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; @@ -950,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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; @@ -973,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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 { @@ -996,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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; @@ -1061,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1083,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1105,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1167,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1189,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1211,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1282,12 +1173,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCaPoolsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCaPoolsRequest) private static final com.google.cloud.security.privateca.v1.ListCaPoolsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCaPoolsRequest(); } @@ -1296,16 +1187,16 @@ public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCaPoolsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCaPoolsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCaPoolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCaPoolsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1320,4 +1211,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.ListCaPoolsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java index 4af67afb..b9b440f1 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCaPoolsRequestOrBuilder - extends +public interface ListCaPoolsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCaPoolsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
    * include in the response.
@@ -69,85 +42,69 @@ public interface ListCaPoolsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java index a0e09f4b..a235439a 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsResponse}
  */
-public final class ListCaPoolsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCaPoolsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCaPoolsResponse)
     ListCaPoolsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCaPoolsResponse.newBuilder() to construct.
   private ListCaPoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCaPoolsResponse() {
     caPools_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,15 +28,16 @@ private ListCaPoolsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCaPoolsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCaPoolsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,41 +57,37 @@ private ListCaPoolsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                caPools_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              caPools_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              caPools_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            caPools_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                unreachable_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              unreachable_.add(s);
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              unreachable_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            unreachable_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +95,8 @@ private ListCaPoolsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         caPools_ = java.util.Collections.unmodifiableList(caPools_);
@@ -128,27 +108,22 @@ private ListCaPoolsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class,
-            com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
   }
 
   public static final int CA_POOLS_FIELD_NUMBER = 1;
   private java.util.List caPools_;
   /**
-   *
-   *
    * 
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -160,8 +135,6 @@ public java.util.List getCaPoolsL return caPools_; } /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -169,13 +142,11 @@ public java.util.List getCaPoolsL * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCaPoolsOrBuilderList() { return caPools_; } /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -187,8 +158,6 @@ public int getCaPoolsCount() { return caPools_.size(); } /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -200,8 +169,6 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPools(int index) { return caPools_.get(index); } /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -209,15 +176,14 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPools(int index) { * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder( + int index) { return caPools_.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
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -225,7 +191,6 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -234,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -250,15 +214,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 { @@ -269,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -312,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < caPools_.size(); i++) { output.writeMessage(1, caPools_.get(i)); } @@ -360,7 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < caPools_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caPools_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, caPools_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -381,17 +337,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.security.privateca.v1.ListCaPoolsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCaPoolsResponse other = - (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) obj; + com.google.cloud.security.privateca.v1.ListCaPoolsResponse other = (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) obj; - if (!getCaPoolsList().equals(other.getCaPoolsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCaPoolsList() + .equals(other.getCaPoolsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -419,104 +377,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse 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.security.privateca.v1.ListCaPoolsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCaPoolsResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCaPoolsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -524,23 +474,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCaPoolsResponse)
       com.google.cloud.security.privateca.v1.ListCaPoolsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class,
-              com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.ListCaPoolsResponse.newBuilder()
@@ -548,17 +496,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCaPoolsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -576,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -597,8 +545,7 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCaPoolsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCaPoolsResponse result =
-          new com.google.cloud.security.privateca.v1.ListCaPoolsResponse(this);
+      com.google.cloud.security.privateca.v1.ListCaPoolsResponse result = new com.google.cloud.security.privateca.v1.ListCaPoolsResponse(this);
       int from_bitField0_ = bitField0_;
       if (caPoolsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -623,39 +570,38 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsResponse buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ListCaPoolsResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsResponse) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -663,8 +609,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCaPoolsResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsResponse.getDefaultInstance()) return this;
       if (caPoolsBuilder_ == null) {
         if (!other.caPools_.isEmpty()) {
           if (caPools_.isEmpty()) {
@@ -683,10 +628,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCaPoolsRespo
             caPoolsBuilder_ = null;
             caPools_ = other.caPools_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            caPoolsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCaPoolsFieldBuilder()
-                    : null;
+            caPoolsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCaPoolsFieldBuilder() : null;
           } else {
             caPoolsBuilder_.addAllMessages(other.caPools_);
           }
@@ -725,8 +669,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -735,28 +678,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List caPools_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureCaPoolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         caPools_ = new java.util.ArrayList(caPools_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CaPool,
-            com.google.cloud.security.privateca.v1.CaPool.Builder,
-            com.google.cloud.security.privateca.v1.CaPoolOrBuilder>
-        caPoolsBuilder_;
+        com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> caPoolsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -771,8 +707,6 @@ public java.util.List getCaPoolsL } } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -787,8 +721,6 @@ public int getCaPoolsCount() { } } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -803,15 +735,14 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPools(int index) { } } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public Builder setCaPools(int index, com.google.cloud.security.privateca.v1.CaPool value) { + public Builder setCaPools( + int index, com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -825,8 +756,6 @@ public Builder setCaPools(int index, com.google.cloud.security.privateca.v1.CaPo return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -845,8 +774,6 @@ public Builder setCaPools( return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -867,15 +794,14 @@ public Builder addCaPools(com.google.cloud.security.privateca.v1.CaPool value) { return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public Builder addCaPools(int index, com.google.cloud.security.privateca.v1.CaPool value) { + public Builder addCaPools( + int index, com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -889,8 +815,6 @@ public Builder addCaPools(int index, com.google.cloud.security.privateca.v1.CaPo return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -909,8 +833,6 @@ public Builder addCaPools( return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -929,8 +851,6 @@ public Builder addCaPools( return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -941,7 +861,8 @@ public Builder addAllCaPools( java.lang.Iterable values) { if (caPoolsBuilder_ == null) { ensureCaPoolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caPools_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, caPools_); onChanged(); } else { caPoolsBuilder_.addAllMessages(values); @@ -949,8 +870,6 @@ public Builder addAllCaPools( return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -968,8 +887,6 @@ public Builder clearCaPools() { return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -987,44 +904,39 @@ public Builder removeCaPools(int index) { return this; } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolsBuilder(int index) { + public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolsBuilder( + int index) { return getCaPoolsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder( + int index) { if (caPoolsBuilder_ == null) { - return caPools_.get(index); - } else { + return caPools_.get(index); } else { return caPoolsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public java.util.List - getCaPoolsOrBuilderList() { + public java.util.List + getCaPoolsOrBuilderList() { if (caPoolsBuilder_ != null) { return caPoolsBuilder_.getMessageOrBuilderList(); } else { @@ -1032,8 +944,6 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde } } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -1041,48 +951,42 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder() { - return getCaPoolsFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); + return getCaPoolsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder(int index) { - return getCaPoolsFieldBuilder() - .addBuilder(index, com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder( + int index) { + return getCaPoolsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); } /** - * - * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public java.util.List - getCaPoolsBuilderList() { + public java.util.List + getCaPoolsBuilderList() { return getCaPoolsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> getCaPoolsFieldBuilder() { if (caPoolsBuilder_ == null) { - caPoolsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( - caPools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + caPoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( + caPools_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); caPools_ = null; } return caPoolsBuilder_; @@ -1090,8 +994,6 @@ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder(i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1099,13 +1001,13 @@ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder(i
      * 
* * 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; @@ -1114,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1123,14 +1023,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 { @@ -1138,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1147,22 +1046,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
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1170,18 +1067,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
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1189,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1257,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1350,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1383,12 +1255,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCaPoolsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCaPoolsResponse) private static final com.google.cloud.security.privateca.v1.ListCaPoolsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCaPoolsResponse(); } @@ -1397,16 +1269,16 @@ public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCaPoolsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCaPoolsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCaPoolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCaPoolsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1421,4 +1293,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.ListCaPoolsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java index 1da02859..ce441388 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCaPoolsResponseOrBuilder - extends +public interface ListCaPoolsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCaPoolsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - java.util.List getCaPoolsList(); + java.util.List + getCaPoolsList(); /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -44,8 +25,6 @@ public interface ListCaPoolsResponseOrBuilder */ com.google.cloud.security.privateca.v1.CaPool getCaPools(int index); /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -54,30 +33,25 @@ public interface ListCaPoolsResponseOrBuilder */ int getCaPoolsCount(); /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - java.util.List + java.util.List getCaPoolsOrBuilderList(); /** - * - * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(int index); + com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -85,13 +59,10 @@ public interface ListCaPoolsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -99,59 +70,49 @@ public interface ListCaPoolsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java index d4d4dc05..8dc08176 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest}
  */
-public final class ListCertificateAuthoritiesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateAuthoritiesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)
     ListCertificateAuthoritiesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesRequest.newBuilder() to construct.
-  private ListCertificateAuthoritiesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateAuthoritiesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,15 +29,16 @@ private ListCertificateAuthoritiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateAuthoritiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,46 +57,42 @@ private ListCertificateAuthoritiesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageToken_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              orderBy_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderBy_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -122,43 +100,36 @@ private ListCertificateAuthoritiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class,
-            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 @@ -167,33 +138,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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 { @@ -204,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
    * include in the response.
@@ -216,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -227,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -244,30 +207,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. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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 { @@ -278,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -294,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -327,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -343,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -374,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -415,7 +372,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_); @@ -434,20 +392,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.security.privateca.v1.ListCertificateAuthoritiesRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest other = - (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) 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.security.privateca.v1.ListCertificateAuthoritiesRequest other = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -475,105 +436,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest 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.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest - 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.security.privateca.v1.ListCertificateAuthoritiesRequest 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.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -581,41 +533,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)
       com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class,
-              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -633,22 +582,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest build() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -657,8 +603,7 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result =
-          new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(this);
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -672,52 +617,46 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -756,9 +695,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -770,24 +707,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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; @@ -796,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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 { @@ -822,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
      * include in the response.
@@ -908,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -916,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
      * include in the response.
@@ -928,19 +840,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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
      * include in the response.
@@ -951,11 +860,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; @@ -963,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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; @@ -986,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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 { @@ -1009,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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; @@ -1074,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1096,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1118,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1180,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1202,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1224,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1295,33 +1173,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1333,8 +1208,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java index caca9737..c9a1371f 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateAuthoritiesRequestOrBuilder - extends +public interface ListCertificateAuthoritiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
    * include in the response.
@@ -69,85 +42,69 @@ public interface ListCertificateAuthoritiesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java index ab88a883..8120f571 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse}
  */
-public final class ListCertificateAuthoritiesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateAuthoritiesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)
     ListCertificateAuthoritiesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesResponse.newBuilder() to construct.
-  private ListCertificateAuthoritiesResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateAuthoritiesResponse() {
     certificateAuthorities_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -47,15 +28,16 @@ private ListCertificateAuthoritiesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateAuthoritiesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,44 +57,37 @@ private ListCertificateAuthoritiesResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                certificateAuthorities_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1.CertificateAuthority>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              certificateAuthorities_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateAuthority.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              certificateAuthorities_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            certificateAuthorities_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                unreachable_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              unreachable_.add(s);
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              unreachable_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            unreachable_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,7 +95,8 @@ private ListCertificateAuthoritiesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         certificateAuthorities_ = java.util.Collections.unmodifiableList(certificateAuthorities_);
@@ -132,112 +108,82 @@ private ListCertificateAuthoritiesResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class,
-            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder.class);
   }
 
   public static final int CERTIFICATE_AUTHORITIES_FIELD_NUMBER = 1;
-  private java.util.List
-      certificateAuthorities_;
+  private java.util.List certificateAuthorities_;
   /**
-   *
-   *
    * 
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public java.util.List - getCertificateAuthoritiesList() { + public java.util.List getCertificateAuthoritiesList() { return certificateAuthorities_; } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + public java.util.List getCertificateAuthoritiesOrBuilderList() { return certificateAuthorities_; } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override public int getCertificateAuthoritiesCount() { return certificateAuthorities_.size(); } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities( - int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities(int index) { return certificateAuthorities_.get(index); } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthoritiesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( + int index) { return certificateAuthorities_.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
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -245,7 +191,6 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -254,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -270,15 +214,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 { @@ -289,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -332,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateAuthorities_.size(); i++) { output.writeMessage(1, certificateAuthorities_.get(i)); } @@ -380,9 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateAuthorities_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, certificateAuthorities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateAuthorities_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -403,19 +337,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.security.privateca.v1.ListCertificateAuthoritiesResponse)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other = - (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) obj; - if (!getCertificateAuthoritiesList().equals(other.getCertificateAuthoritiesList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificateAuthoritiesList() + .equals(other.getCertificateAuthoritiesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -443,105 +377,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse 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.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse - 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.security.privateca.v1.ListCertificateAuthoritiesResponse 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.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -549,43 +474,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)
       com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class,
-              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCertificateAuthoritiesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -603,22 +524,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse build() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -626,10 +544,8 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result =
-          new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(this);
+    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse buildPartial() {
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(this);
       int from_bitField0_ = bitField0_;
       if (certificateAuthoritiesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -654,52 +570,46 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other) {
+      if (other == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.getDefaultInstance()) return this;
       if (certificateAuthoritiesBuilder_ == null) {
         if (!other.certificateAuthorities_.isEmpty()) {
           if (certificateAuthorities_.isEmpty()) {
@@ -718,10 +628,9 @@ public Builder mergeFrom(
             certificateAuthoritiesBuilder_ = null;
             certificateAuthorities_ = other.certificateAuthorities_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            certificateAuthoritiesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCertificateAuthoritiesFieldBuilder()
-                    : null;
+            certificateAuthoritiesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCertificateAuthoritiesFieldBuilder() : null;
           } else {
             certificateAuthoritiesBuilder_.addAllMessages(other.certificateAuthorities_);
           }
@@ -756,14 +665,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -772,40 +678,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        certificateAuthorities_ = java.util.Collections.emptyList();
-
+    private java.util.List certificateAuthorities_ =
+      java.util.Collections.emptyList();
     private void ensureCertificateAuthoritiesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        certificateAuthorities_ =
-            new java.util.ArrayList(
-                certificateAuthorities_);
+        certificateAuthorities_ = new java.util.ArrayList(certificateAuthorities_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateAuthority,
-            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder,
-            com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>
-        certificateAuthoritiesBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> certificateAuthoritiesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public java.util.List - getCertificateAuthoritiesList() { + public java.util.List getCertificateAuthoritiesList() { if (certificateAuthoritiesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateAuthorities_); } else { @@ -813,15 +707,11 @@ private void ensureCertificateAuthoritiesIsMutable() { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public int getCertificateAuthoritiesCount() { if (certificateAuthoritiesBuilder_ == null) { @@ -831,18 +721,13 @@ public int getCertificateAuthoritiesCount() { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities( - int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { return certificateAuthorities_.get(index); } else { @@ -850,15 +735,11 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder setCertificateAuthorities( int index, com.google.cloud.security.privateca.v1.CertificateAuthority value) { @@ -875,19 +756,14 @@ public Builder setCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder setCertificateAuthorities( - int index, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.set(index, builderForValue.build()); @@ -898,18 +774,13 @@ public Builder setCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public Builder addCertificateAuthorities( - com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder addCertificateAuthorities(com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthoritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -923,15 +794,11 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder addCertificateAuthorities( int index, com.google.cloud.security.privateca.v1.CertificateAuthority value) { @@ -948,15 +815,11 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder addCertificateAuthorities( com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { @@ -970,19 +833,14 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder addCertificateAuthorities( - int index, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.add(index, builderForValue.build()); @@ -993,22 +851,18 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder addAllCertificateAuthorities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateAuthorities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateAuthorities_); onChanged(); } else { certificateAuthoritiesBuilder_.addAllMessages(values); @@ -1016,15 +870,11 @@ public Builder addAllCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder clearCertificateAuthorities() { if (certificateAuthoritiesBuilder_ == null) { @@ -1037,15 +887,11 @@ public Builder clearCertificateAuthorities() { return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ public Builder removeCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { @@ -1058,53 +904,39 @@ public Builder removeCertificateAuthorities(int index) { return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder - getCertificateAuthoritiesBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder getCertificateAuthoritiesBuilder( + int index) { return getCertificateAuthoritiesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthoritiesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( + int index) { if (certificateAuthoritiesBuilder_ == null) { - return certificateAuthorities_.get(index); - } else { + return certificateAuthorities_.get(index); } else { return certificateAuthoritiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> - getCertificateAuthoritiesOrBuilderList() { + public java.util.List + getCertificateAuthoritiesOrBuilderList() { if (certificateAuthoritiesBuilder_ != null) { return certificateAuthoritiesBuilder_.getMessageOrBuilderList(); } else { @@ -1112,67 +944,45 @@ public Builder removeCertificateAuthorities(int index) { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder - addCertificateAuthoritiesBuilder() { - return getCertificateAuthoritiesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder() { + return getCertificateAuthoritiesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder - addCertificateAuthoritiesBuilder(int index) { - return getCertificateAuthoritiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder( + int index) { + return getCertificateAuthoritiesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - public java.util.List - getCertificateAuthoritiesBuilderList() { + public java.util.List + getCertificateAuthoritiesBuilderList() { return getCertificateAuthoritiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesFieldBuilder() { if (certificateAuthoritiesBuilder_ == null) { - certificateAuthoritiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( + certificateAuthoritiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( certificateAuthorities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1184,8 +994,6 @@ public Builder removeCertificateAuthorities(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1193,13 +1001,13 @@ public Builder removeCertificateAuthorities(int index) {
      * 
* * 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; @@ -1208,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1217,14 +1023,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 { @@ -1232,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1241,22 +1046,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
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1264,18 +1067,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
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1283,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1351,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1444,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1477,33 +1255,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1515,8 +1290,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java index 7250603c..b7e038cd 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java @@ -1,95 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateAuthoritiesResponseOrBuilder - extends +public interface ListCertificateAuthoritiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - java.util.List + java.util.List getCertificateAuthoritiesList(); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities(int index); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ int getCertificateAuthoritiesCount(); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - java.util.List + java.util.List getCertificateAuthoritiesOrBuilderList(); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; */ - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthoritiesOrBuilder(int index); + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -97,13 +59,10 @@ public interface ListCertificateAuthoritiesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -111,59 +70,49 @@ public interface ListCertificateAuthoritiesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java index 9e94c903..d4f024d3 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest}
  */
-public final class ListCertificateRevocationListsRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateRevocationListsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)
     ListCertificateRevocationListsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateRevocationListsRequest.newBuilder() to construct.
-  private ListCertificateRevocationListsRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateRevocationListsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateRevocationListsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -49,15 +29,16 @@ private ListCertificateRevocationListsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateRevocationListsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateRevocationListsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,46 +57,42 @@ private ListCertificateRevocationListsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageToken_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              orderBy_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderBy_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,44 +100,36 @@ private ListCertificateRevocationListsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class,
-            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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 @@ -169,33 +138,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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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 { @@ -206,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -218,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -229,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -246,30 +207,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. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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 { @@ -280,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -296,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -329,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -345,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -376,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -417,7 +372,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_); @@ -436,20 +392,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.security.privateca.v1.ListCertificateRevocationListsRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest other = - (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) 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.security.privateca.v1.ListCertificateRevocationListsRequest other = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -476,111 +435,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - 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.security.privateca.v1.ListCertificateRevocationListsRequest 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.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -588,41 +533,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)
       com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class,
-              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -640,22 +582,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest build() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -663,10 +602,8 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequ
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result =
-          new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(this);
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -680,52 +617,46 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequ
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -760,14 +691,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -779,24 +707,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string parent = 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; @@ -805,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string parent = 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 { @@ -831,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -917,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -925,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -937,19 +840,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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -960,11 +860,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; @@ -972,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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; @@ -995,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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 { @@ -1018,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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; @@ -1083,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1105,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1127,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1189,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1211,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1233,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1304,33 +1173,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1342,8 +1208,9 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java index a841291f..e119593c 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateRevocationListsRequestOrBuilder - extends +public interface ListCertificateRevocationListsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -69,85 +42,69 @@ public interface ListCertificateRevocationListsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java index ff0d9922..e2df8c89 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse}
  */
-public final class ListCertificateRevocationListsResponse
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateRevocationListsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)
     ListCertificateRevocationListsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateRevocationListsResponse.newBuilder() to construct.
-  private ListCertificateRevocationListsResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateRevocationListsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateRevocationListsResponse() {
     certificateRevocationLists_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -48,15 +28,16 @@ private ListCertificateRevocationListsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateRevocationListsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateRevocationListsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,44 +57,37 @@ private ListCertificateRevocationListsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                certificateRevocationLists_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1.CertificateRevocationList>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              certificateRevocationLists_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              certificateRevocationLists_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            certificateRevocationLists_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                unreachable_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              unreachable_.add(s);
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              unreachable_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            unreachable_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,11 +95,11 @@ private ListCertificateRevocationListsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        certificateRevocationLists_ =
-            java.util.Collections.unmodifiableList(certificateRevocationLists_);
+        certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_);
       }
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         unreachable_ = unreachable_.getUnmodifiableView();
@@ -134,112 +108,82 @@ private ListCertificateRevocationListsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class,
-            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder.class);
   }
 
   public static final int CERTIFICATE_REVOCATION_LISTS_FIELD_NUMBER = 1;
-  private java.util.List
-      certificateRevocationLists_;
+  private java.util.List certificateRevocationLists_;
   /**
-   *
-   *
    * 
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public java.util.List - getCertificateRevocationListsList() { + public java.util.List getCertificateRevocationListsList() { return certificateRevocationLists_; } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + public java.util.List getCertificateRevocationListsOrBuilderList() { return certificateRevocationLists_; } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override public int getCertificateRevocationListsCount() { return certificateRevocationLists_.size(); } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList - getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists(int index) { return certificateRevocationLists_.get(index); } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder - getCertificateRevocationListsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( + int index) { return certificateRevocationLists_.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
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -247,7 +191,6 @@ public int getCertificateRevocationListsCount() {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -256,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -272,15 +214,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 { @@ -291,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -334,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -362,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateRevocationLists_.size(); i++) { output.writeMessage(1, certificateRevocationLists_.get(i)); } @@ -382,9 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateRevocationLists_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, certificateRevocationLists_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateRevocationLists_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -405,19 +337,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.security.privateca.v1.ListCertificateRevocationListsResponse)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other = - (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) obj; - if (!getCertificateRevocationListsList().equals(other.getCertificateRevocationListsList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificateRevocationListsList() + .equals(other.getCertificateRevocationListsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -444,111 +376,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - 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.security.privateca.v1.ListCertificateRevocationListsResponse 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.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -556,43 +474,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)
       com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class,
-              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCertificateRevocationListsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -610,22 +524,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse build() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -633,15 +544,12 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResp
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result =
-          new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(this);
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse buildPartial() {
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(this);
       int from_bitField0_ = bitField0_;
       if (certificateRevocationListsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          certificateRevocationLists_ =
-              java.util.Collections.unmodifiableList(certificateRevocationLists_);
+          certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.certificateRevocationLists_ = certificateRevocationLists_;
@@ -662,53 +570,46 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResp
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof
-          com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other) {
+      if (other == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.getDefaultInstance()) return this;
       if (certificateRevocationListsBuilder_ == null) {
         if (!other.certificateRevocationLists_.isEmpty()) {
           if (certificateRevocationLists_.isEmpty()) {
@@ -727,10 +628,9 @@ public Builder mergeFrom(
             certificateRevocationListsBuilder_ = null;
             certificateRevocationLists_ = other.certificateRevocationLists_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            certificateRevocationListsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCertificateRevocationListsFieldBuilder()
-                    : null;
+            certificateRevocationListsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCertificateRevocationListsFieldBuilder() : null;
           } else {
             certificateRevocationListsBuilder_.addAllMessages(other.certificateRevocationLists_);
           }
@@ -765,14 +665,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -781,41 +678,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        certificateRevocationLists_ = java.util.Collections.emptyList();
-
+    private java.util.List certificateRevocationLists_ =
+      java.util.Collections.emptyList();
     private void ensureCertificateRevocationListsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        certificateRevocationLists_ =
-            new java.util.ArrayList<
-                com.google.cloud.security.privateca.v1.CertificateRevocationList>(
-                certificateRevocationLists_);
+        certificateRevocationLists_ = new java.util.ArrayList(certificateRevocationLists_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateRevocationList,
-            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder,
-            com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>
-        certificateRevocationListsBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> certificateRevocationListsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public java.util.List - getCertificateRevocationListsList() { + public java.util.List getCertificateRevocationListsList() { if (certificateRevocationListsBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateRevocationLists_); } else { @@ -823,15 +707,11 @@ private void ensureCertificateRevocationListsIsMutable() { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public int getCertificateRevocationListsCount() { if (certificateRevocationListsBuilder_ == null) { @@ -841,18 +721,13 @@ public int getCertificateRevocationListsCount() { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList - getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { return certificateRevocationLists_.get(index); } else { @@ -860,15 +735,11 @@ public int getCertificateRevocationListsCount() { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder setCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1.CertificateRevocationList value) { @@ -885,19 +756,14 @@ public Builder setCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder setCertificateRevocationLists( - int index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.set(index, builderForValue.build()); @@ -908,18 +774,13 @@ public Builder setCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public Builder addCertificateRevocationLists( - com.google.cloud.security.privateca.v1.CertificateRevocationList value) { + public Builder addCertificateRevocationLists(com.google.cloud.security.privateca.v1.CertificateRevocationList value) { if (certificateRevocationListsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -933,15 +794,11 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1.CertificateRevocationList value) { @@ -958,15 +815,11 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addCertificateRevocationLists( com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { @@ -980,19 +833,14 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addCertificateRevocationLists( - int index, - com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.add(index, builderForValue.build()); @@ -1003,23 +851,18 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addAllCertificateRevocationLists( - java.lang.Iterable< - ? extends com.google.cloud.security.privateca.v1.CertificateRevocationList> - values) { + java.lang.Iterable values) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateRevocationLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateRevocationLists_); onChanged(); } else { certificateRevocationListsBuilder_.addAllMessages(values); @@ -1027,15 +870,11 @@ public Builder addAllCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder clearCertificateRevocationLists() { if (certificateRevocationListsBuilder_ == null) { @@ -1048,15 +887,11 @@ public Builder clearCertificateRevocationLists() { return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder removeCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { @@ -1069,53 +904,39 @@ public Builder removeCertificateRevocationLists(int index) { return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder - getCertificateRevocationListsBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder getCertificateRevocationListsBuilder( + int index) { return getCertificateRevocationListsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder - getCertificateRevocationListsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( + int index) { if (certificateRevocationListsBuilder_ == null) { - return certificateRevocationLists_.get(index); - } else { + return certificateRevocationLists_.get(index); } else { return certificateRevocationListsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> - getCertificateRevocationListsOrBuilderList() { + public java.util.List + getCertificateRevocationListsOrBuilderList() { if (certificateRevocationListsBuilder_ != null) { return certificateRevocationListsBuilder_.getMessageOrBuilderList(); } else { @@ -1123,69 +944,45 @@ public Builder removeCertificateRevocationLists(int index) { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder - addCertificateRevocationListsBuilder() { - return getCertificateRevocationListsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.CertificateRevocationList - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder() { + return getCertificateRevocationListsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder - addCertificateRevocationListsBuilder(int index) { - return getCertificateRevocationListsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.CertificateRevocationList - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder( + int index) { + return getCertificateRevocationListsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - public java.util.List - getCertificateRevocationListsBuilderList() { + public java.util.List + getCertificateRevocationListsBuilderList() { return getCertificateRevocationListsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, - com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> getCertificateRevocationListsFieldBuilder() { if (certificateRevocationListsBuilder_ == null) { - certificateRevocationListsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, - com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( + certificateRevocationListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( certificateRevocationLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1197,8 +994,6 @@ public Builder removeCertificateRevocationLists(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1206,13 +1001,13 @@ public Builder removeCertificateRevocationLists(int index) {
      * 
* * 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; @@ -1221,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1230,14 +1023,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 { @@ -1245,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1254,22 +1046,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
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1277,18 +1067,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
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1296,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1364,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1457,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1490,33 +1255,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1528,8 +1290,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java index 659f61a7..5e6b7f8a 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java @@ -1,97 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateRevocationListsResponseOrBuilder - extends +public interface ListCertificateRevocationListsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - java.util.List + java.util.List getCertificateRevocationListsList(); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists( - int index); + com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists(int index); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ int getCertificateRevocationListsCount(); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + java.util.List getCertificateRevocationListsOrBuilderList(); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; */ - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder - getCertificateRevocationListsOrBuilder(int index); + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -99,13 +59,10 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateR
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -113,59 +70,49 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateR
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java index 086c9d73..3cbb6b03 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesRequest}
  */
-public final class ListCertificateTemplatesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateTemplatesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)
     ListCertificateTemplatesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateTemplatesRequest.newBuilder() to construct.
-  private ListCertificateTemplatesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateTemplatesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,15 +29,16 @@ private ListCertificateTemplatesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateTemplatesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateTemplatesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,46 +57,42 @@ private ListCertificateTemplatesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageToken_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              orderBy_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderBy_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -122,43 +100,36 @@ private ListCertificateTemplatesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class,
-            com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.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
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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 @@ -167,33 +138,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
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -204,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -216,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -227,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -244,30 +207,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. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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 { @@ -278,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -294,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -327,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -343,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -374,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -415,7 +372,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_); @@ -434,19 +392,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.security.privateca.v1.ListCertificateTemplatesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest other = - (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) 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.security.privateca.v1.ListCertificateTemplatesRequest other = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -474,105 +436,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest 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.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest - 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.security.privateca.v1.ListCertificateTemplatesRequest 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.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -580,40 +533,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)
       com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class,
-              com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -631,22 +582,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest build() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -655,8 +603,7 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest bu
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result =
-          new com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest(this);
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -670,51 +617,46 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest bu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -753,9 +695,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -767,24 +707,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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; @@ -793,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -819,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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. Limit on the number of
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -905,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -913,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -925,19 +840,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. Limit on the number of
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -948,11 +860,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; @@ -960,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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; @@ -983,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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 { @@ -1006,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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; @@ -1071,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1093,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1115,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1177,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1199,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1221,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1292,32 +1173,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateTemplatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateTemplatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateTemplatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1329,8 +1208,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java index f05faf3c..71a6c166 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateTemplatesRequestOrBuilder - extends +public interface ListCertificateTemplatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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. Limit on the number of
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -69,85 +42,69 @@ public interface ListCertificateTemplatesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java index 166d2424..4e51316c 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesResponse}
  */
-public final class ListCertificateTemplatesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateTemplatesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)
     ListCertificateTemplatesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateTemplatesResponse.newBuilder() to construct.
-  private ListCertificateTemplatesResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateTemplatesResponse() {
     certificateTemplates_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -47,15 +28,16 @@ private ListCertificateTemplatesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateTemplatesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateTemplatesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,44 +57,37 @@ private ListCertificateTemplatesResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                certificateTemplates_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1.CertificateTemplate>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              certificateTemplates_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateTemplate.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              certificateTemplates_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            certificateTemplates_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.CertificateTemplate.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                unreachable_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              unreachable_.add(s);
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              unreachable_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            unreachable_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,7 +95,8 @@ private ListCertificateTemplatesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         certificateTemplates_ = java.util.Collections.unmodifiableList(certificateTemplates_);
@@ -132,111 +108,82 @@ private ListCertificateTemplatesResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class,
-            com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder.class);
   }
 
   public static final int CERTIFICATE_TEMPLATES_FIELD_NUMBER = 1;
-  private java.util.List
-      certificateTemplates_;
+  private java.util.List certificateTemplates_;
   /**
-   *
-   *
    * 
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ @java.lang.Override - public java.util.List - getCertificateTemplatesList() { + public java.util.List getCertificateTemplatesList() { return certificateTemplates_; } /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + public java.util.List getCertificateTemplatesOrBuilderList() { return certificateTemplates_; } /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ @java.lang.Override public int getCertificateTemplatesCount() { return certificateTemplates_.size(); } /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates( - int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates(int index) { return certificateTemplates_.get(index); } /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder( + int index) { return certificateTemplates_.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
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -244,7 +191,6 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -253,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -269,15 +214,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 { @@ -288,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -331,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateTemplates_.size(); i++) { output.writeMessage(1, certificateTemplates_.get(i)); } @@ -379,8 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateTemplates_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificateTemplates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateTemplates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -401,17 +337,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.security.privateca.v1.ListCertificateTemplatesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other = - (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) obj; - if (!getCertificateTemplatesList().equals(other.getCertificateTemplatesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificateTemplatesList() + .equals(other.getCertificateTemplatesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -439,105 +377,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse 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.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse - 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.security.privateca.v1.ListCertificateTemplatesResponse 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.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -545,43 +474,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)
       com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class,
-              com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCertificateTemplatesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -599,22 +524,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse build() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -623,8 +545,7 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result =
-          new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(this);
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(this);
       int from_bitField0_ = bitField0_;
       if (certificateTemplatesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -649,52 +570,46 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse b
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other) {
+      if (other == com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.getDefaultInstance()) return this;
       if (certificateTemplatesBuilder_ == null) {
         if (!other.certificateTemplates_.isEmpty()) {
           if (certificateTemplates_.isEmpty()) {
@@ -713,10 +628,9 @@ public Builder mergeFrom(
             certificateTemplatesBuilder_ = null;
             certificateTemplates_ = other.certificateTemplates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            certificateTemplatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCertificateTemplatesFieldBuilder()
-                    : null;
+            certificateTemplatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCertificateTemplatesFieldBuilder() : null;
           } else {
             certificateTemplatesBuilder_.addAllMessages(other.certificateTemplates_);
           }
@@ -755,9 +669,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -766,40 +678,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        certificateTemplates_ = java.util.Collections.emptyList();
-
+    private java.util.List certificateTemplates_ =
+      java.util.Collections.emptyList();
     private void ensureCertificateTemplatesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        certificateTemplates_ =
-            new java.util.ArrayList(
-                certificateTemplates_);
+        certificateTemplates_ = new java.util.ArrayList(certificateTemplates_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateTemplate,
-            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder,
-            com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>
-        certificateTemplatesBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> certificateTemplatesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public java.util.List - getCertificateTemplatesList() { + public java.util.List getCertificateTemplatesList() { if (certificateTemplatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateTemplates_); } else { @@ -807,15 +707,11 @@ private void ensureCertificateTemplatesIsMutable() { } } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public int getCertificateTemplatesCount() { if (certificateTemplatesBuilder_ == null) { @@ -825,18 +721,13 @@ public int getCertificateTemplatesCount() { } } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates( - int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates(int index) { if (certificateTemplatesBuilder_ == null) { return certificateTemplates_.get(index); } else { @@ -844,15 +735,11 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate } } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder setCertificateTemplates( int index, com.google.cloud.security.privateca.v1.CertificateTemplate value) { @@ -869,19 +756,14 @@ public Builder setCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder setCertificateTemplates( - int index, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { if (certificateTemplatesBuilder_ == null) { ensureCertificateTemplatesIsMutable(); certificateTemplates_.set(index, builderForValue.build()); @@ -892,18 +774,13 @@ public Builder setCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public Builder addCertificateTemplates( - com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder addCertificateTemplates(com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -917,15 +794,11 @@ public Builder addCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder addCertificateTemplates( int index, com.google.cloud.security.privateca.v1.CertificateTemplate value) { @@ -942,15 +815,11 @@ public Builder addCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder addCertificateTemplates( com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { @@ -964,19 +833,14 @@ public Builder addCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder addCertificateTemplates( - int index, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { if (certificateTemplatesBuilder_ == null) { ensureCertificateTemplatesIsMutable(); certificateTemplates_.add(index, builderForValue.build()); @@ -987,22 +851,18 @@ public Builder addCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder addAllCertificateTemplates( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (certificateTemplatesBuilder_ == null) { ensureCertificateTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateTemplates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateTemplates_); onChanged(); } else { certificateTemplatesBuilder_.addAllMessages(values); @@ -1010,15 +870,11 @@ public Builder addAllCertificateTemplates( return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder clearCertificateTemplates() { if (certificateTemplatesBuilder_ == null) { @@ -1031,15 +887,11 @@ public Builder clearCertificateTemplates() { return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ public Builder removeCertificateTemplates(int index) { if (certificateTemplatesBuilder_ == null) { @@ -1052,53 +904,39 @@ public Builder removeCertificateTemplates(int index) { return this; } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder - getCertificateTemplatesBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder getCertificateTemplatesBuilder( + int index) { return getCertificateTemplatesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder( + int index) { if (certificateTemplatesBuilder_ == null) { - return certificateTemplates_.get(index); - } else { + return certificateTemplates_.get(index); } else { return certificateTemplatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> - getCertificateTemplatesOrBuilderList() { + public java.util.List + getCertificateTemplatesOrBuilderList() { if (certificateTemplatesBuilder_ != null) { return certificateTemplatesBuilder_.getMessageOrBuilderList(); } else { @@ -1106,67 +944,45 @@ public Builder removeCertificateTemplates(int index) { } } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder - addCertificateTemplatesBuilder() { - return getCertificateTemplatesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder addCertificateTemplatesBuilder() { + return getCertificateTemplatesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder - addCertificateTemplatesBuilder(int index) { - return getCertificateTemplatesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder addCertificateTemplatesBuilder( + int index) { + return getCertificateTemplatesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - public java.util.List - getCertificateTemplatesBuilderList() { + public java.util.List + getCertificateTemplatesBuilderList() { return getCertificateTemplatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplatesFieldBuilder() { if (certificateTemplatesBuilder_ == null) { - certificateTemplatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( + certificateTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( certificateTemplates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1178,8 +994,6 @@ public Builder removeCertificateTemplates(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1187,13 +1001,13 @@ public Builder removeCertificateTemplates(int index) {
      * 
* * 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; @@ -1202,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1211,14 +1023,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 { @@ -1226,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1235,22 +1046,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
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1258,18 +1067,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
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1277,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1345,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1438,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1471,33 +1255,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateTemplatesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateTemplatesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1509,8 +1290,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java index 638295ca..78c336ce 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java @@ -1,95 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateTemplatesResponseOrBuilder - extends +public interface ListCertificateTemplatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - java.util.List + java.util.List getCertificateTemplatesList(); /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates(int index); /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ int getCertificateTemplatesCount(); /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - java.util.List + java.util.List getCertificateTemplatesOrBuilderList(); /** - * - * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; - * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; */ - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplatesOrBuilder(int index); + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -97,13 +59,10 @@ public interface ListCertificateTemplatesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -111,59 +70,49 @@ public interface ListCertificateTemplatesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java similarity index 74% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java index bc111625..75dcbea3 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesRequest} */ -public final class ListCertificatesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificatesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificatesRequest) ListCertificatesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificatesRequest.newBuilder() to construct. private ListCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificatesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListCertificatesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCertificatesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListCertificatesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,43 +99,36 @@ private ListCertificatesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, - com.google.cloud.security.privateca.v1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificatesRequest.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
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 @@ -165,33 +137,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
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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 { @@ -202,8 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -225,15 +192,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -242,30 +206,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. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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 { @@ -276,8 +240,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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -285,7 +247,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -294,15 +255,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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -310,15 +270,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 { @@ -329,8 +290,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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -338,7 +297,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -347,15 +305,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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -363,15 +320,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 { @@ -380,7 +338,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -421,7 +379,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_); @@ -440,19 +399,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.security.privateca.v1.ListCertificatesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificatesRequest other = - (com.google.cloud.security.privateca.v1.ListCertificatesRequest) 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.security.privateca.v1.ListCertificatesRequest other = (com.google.cloud.security.privateca.v1.ListCertificatesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,127 +443,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificatesRequest 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.security.privateca.v1.ListCertificatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificatesRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificatesRequest) com.google.cloud.security.privateca.v1.ListCertificatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, - com.google.cloud.security.privateca.v1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificatesRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.ListCertificatesRequest.newBuilder() @@ -608,15 +561,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,14 +588,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesRequest getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance(); } @@ -656,8 +609,7 @@ public com.google.cloud.security.privateca.v1.ListCertificatesRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.ListCertificatesRequest buildPartial() { - com.google.cloud.security.privateca.v1.ListCertificatesRequest result = - new com.google.cloud.security.privateca.v1.ListCertificatesRequest(this); + com.google.cloud.security.privateca.v1.ListCertificatesRequest result = new com.google.cloud.security.privateca.v1.ListCertificatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -671,39 +623,38 @@ public com.google.cloud.security.privateca.v1.ListCertificatesRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.ListCertificatesRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesRequest)other); } else { super.mergeFrom(other); return this; @@ -711,9 +662,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificatesRequest other) { - if (other - == com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -752,9 +701,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.ListCertificatesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificatesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -766,24 +713,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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; @@ -792,25 +735,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string parent = 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 { @@ -818,82 +758,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * string 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
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * - * 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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -904,7 +829,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -912,8 +836,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -924,19 +846,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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -947,11 +866,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; @@ -959,21 +877,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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; @@ -982,22 +898,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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 { @@ -1005,64 +920,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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; @@ -1070,8 +978,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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1079,13 +985,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; @@ -1094,8 +1000,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1103,14 +1007,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 { @@ -1118,8 +1023,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1127,22 +1030,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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1150,18 +1051,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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1169,16 +1067,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; @@ -1186,8 +1084,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1195,13 +1091,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; @@ -1210,8 +1106,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1219,14 +1113,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 { @@ -1234,8 +1129,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1243,22 +1136,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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1266,18 +1157,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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1285,23 +1173,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); } @@ -1311,32 +1199,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificatesRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificatesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificatesRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1348,8 +1234,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java index 08628f74..2e66486f 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificatesRequestOrBuilder - extends +public interface ListCertificatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificatesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * - * string parent = 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. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -69,41 +42,33 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -111,13 +76,10 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -125,14 +87,12 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * 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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -140,13 +100,10 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -154,8 +111,8 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java index ac25bcbc..61f529b4 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Response message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesResponse} */ -public final class ListCertificatesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificatesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificatesResponse) ListCertificatesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificatesResponse.newBuilder() to construct. private ListCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificatesResponse() { certificates_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListCertificatesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCertificatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,43 +56,37 @@ private ListCertificatesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add( - input.readMessage( - com.google.cloud.security.privateca.v1.Certificate.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + certificates_.add( + input.readMessage(com.google.cloud.security.privateca.v1.Certificate.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,7 +94,8 @@ private ListCertificatesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); @@ -129,27 +107,22 @@ private ListCertificatesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, - com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private java.util.List certificates_; /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -161,8 +134,6 @@ public java.util.List getCer return certificates_; } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -170,13 +141,11 @@ public java.util.List getCer * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -188,8 +157,6 @@ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -201,8 +168,6 @@ public com.google.cloud.security.privateca.v1.Certificate getCertificates(int in return certificates_.get(index); } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -218,8 +183,6 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat 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
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -227,7 +190,6 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -236,15 +198,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
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -252,15 +213,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 { @@ -271,42 +233,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -314,23 +268,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } @@ -362,7 +314,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -383,17 +336,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.security.privateca.v1.ListCertificatesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificatesResponse other = - (com.google.cloud.security.privateca.v1.ListCertificatesResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificatesResponse other = (com.google.cloud.security.privateca.v1.ListCertificatesResponse) obj; - if (!getCertificatesList().equals(other.getCertificatesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -421,127 +376,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificatesResponse 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.security.privateca.v1.ListCertificatesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.ListCertificatesResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificatesResponse) com.google.cloud.security.privateca.v1.ListCertificatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, - com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.ListCertificatesResponse.newBuilder() @@ -549,17 +494,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -577,14 +522,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesResponse getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance(); } @@ -599,8 +543,7 @@ public com.google.cloud.security.privateca.v1.ListCertificatesResponse build() { @java.lang.Override public com.google.cloud.security.privateca.v1.ListCertificatesResponse buildPartial() { - com.google.cloud.security.privateca.v1.ListCertificatesResponse result = - new com.google.cloud.security.privateca.v1.ListCertificatesResponse(this); + com.google.cloud.security.privateca.v1.ListCertificatesResponse result = new com.google.cloud.security.privateca.v1.ListCertificatesResponse(this); int from_bitField0_ = bitField0_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -625,50 +568,46 @@ public com.google.cloud.security.privateca.v1.ListCertificatesResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.ListCertificatesResponse) { - return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesResponse) other); + return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.ListCertificatesResponse other) { - if (other - == com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificatesResponse other) { + if (other == com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance()) return this; if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { @@ -687,10 +626,9 @@ public Builder mergeFrom( certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); - certificatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificatesFieldBuilder() - : null; + certificatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificatesFieldBuilder() : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } @@ -729,9 +667,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.ListCertificatesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificatesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -740,38 +676,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List certificates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificates_ = - new java.util.ArrayList( - certificates_); + certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder> - certificatesBuilder_; + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> certificatesBuilder_; /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - public java.util.List - getCertificatesList() { + public java.util.List getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { @@ -779,8 +705,6 @@ private void ensureCertificatesIsMutable() { } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -795,8 +719,6 @@ public int getCertificatesCount() { } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -811,8 +733,6 @@ public com.google.cloud.security.privateca.v1.Certificate getCertificates(int in } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -834,8 +754,6 @@ public Builder setCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -854,8 +772,6 @@ public Builder setCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -876,8 +792,6 @@ public Builder addCertificates(com.google.cloud.security.privateca.v1.Certificat return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -899,8 +813,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -919,8 +831,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -939,8 +849,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -951,7 +859,8 @@ public Builder addAllCertificates( java.lang.Iterable values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); @@ -959,8 +868,6 @@ public Builder addAllCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -978,8 +885,6 @@ public Builder clearCertificates() { return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -997,8 +902,6 @@ public Builder removeCertificates(int index) { return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -1010,8 +913,6 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificate return getCertificatesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -1021,22 +922,19 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificate public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBuilder( int index) { if (certificatesBuilder_ == null) { - return certificates_.get(index); - } else { + return certificates_.get(index); } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - public java.util.List - getCertificatesOrBuilderList() { + public java.util.List + getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { @@ -1044,8 +942,6 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -1053,12 +949,10 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificatesBuilder() { - return getCertificatesFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -1067,36 +961,30 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate */ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificatesBuilder( int index) { - return getCertificatesFieldBuilder() - .addBuilder( - index, com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - public java.util.List - getCertificatesBuilderList() { + public java.util.List + getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { - certificatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder>( - certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder>( + certificates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); certificates_ = null; } return certificatesBuilder_; @@ -1104,8 +992,6 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1113,13 +999,13 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate
      * 
* * 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; @@ -1128,8 +1014,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1137,14 +1021,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 { @@ -1152,8 +1037,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1161,22 +1044,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
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1184,18 +1065,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
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1203,67 +1081,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1271,90 +1139,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1364,30 +1222,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1397,32 +1253,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificatesResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificatesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.ListCertificatesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificatesResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1434,8 +1288,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java index 7b1ce1eb..1eec6f99 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificatesResponseOrBuilder - extends +public interface ListCertificatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificatesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - java.util.List getCertificatesList(); + java.util.List + getCertificatesList(); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -44,8 +25,6 @@ public interface ListCertificatesResponseOrBuilder */ com.google.cloud.security.privateca.v1.Certificate getCertificates(int index); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -54,30 +33,25 @@ public interface ListCertificatesResponseOrBuilder */ int getCertificatesCount(); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - java.util.List + java.util.List getCertificatesOrBuilderList(); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBuilder(int index); + com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -85,13 +59,10 @@ public interface ListCertificatesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -99,59 +70,49 @@ public interface ListCertificatesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java index 6be6cdd5..be074197 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * An [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an object identifier (OID). These provide context
  * and describe types in ASN.1 messages.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ObjectId}
  */
-public final class ObjectId extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ObjectId extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ObjectId)
     ObjectIdOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ObjectId.newBuilder() to construct.
   private ObjectId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ObjectId() {
     objectIdPath_ = emptyIntList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ObjectId();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ObjectId(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,36 +55,34 @@ private ObjectId(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                objectIdPath_ = newIntList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              objectIdPath_.addInt(input.readInt32());
-              break;
+          case 8: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              objectIdPath_ = newIntList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            objectIdPath_.addInt(input.readInt32());
+            break;
+          }
+          case 10: {
+            int length = input.readRawVarint32();
+            int limit = input.pushLimit(length);
+            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+              objectIdPath_ = newIntList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 10:
-            {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
-                objectIdPath_ = newIntList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              while (input.getBytesUntilLimit() > 0) {
-                objectIdPath_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
+            while (input.getBytesUntilLimit() > 0) {
+              objectIdPath_.addInt(input.readInt32());
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            input.popLimit(limit);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,7 +90,8 @@ private ObjectId(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable(); // C
@@ -118,76 +100,63 @@ private ObjectId(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ObjectId.class,
-            com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
+            com.google.cloud.security.privateca.v1.ObjectId.class, com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
   }
 
   public static final int OBJECT_ID_PATH_FIELD_NUMBER = 1;
   private com.google.protobuf.Internal.IntList objectIdPath_;
   /**
-   *
-   *
    * 
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the objectIdPath. */ @java.lang.Override - public java.util.List getObjectIdPathList() { + public java.util.List + getObjectIdPathList() { return objectIdPath_; } /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } - private int objectIdPathMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getObjectIdPathList().size() > 0) { output.writeUInt32NoTag(10); @@ -220,13 +190,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < objectIdPath_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(objectIdPath_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(objectIdPath_.getInt(i)); } size += dataSize; if (!getObjectIdPathList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } objectIdPathMemoizedSerializedSize = dataSize; } @@ -238,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.ObjectId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ObjectId other = - (com.google.cloud.security.privateca.v1.ObjectId) obj; + com.google.cloud.security.privateca.v1.ObjectId other = (com.google.cloud.security.privateca.v1.ObjectId) obj; - if (!getObjectIdPathList().equals(other.getObjectIdPathList())) return false; + if (!getObjectIdPathList() + .equals(other.getObjectIdPathList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,104 +238,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom(java.io.InputStream input) 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.security.privateca.v1.ObjectId parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.ObjectId parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.ObjectId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ObjectId parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ObjectId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an object identifier (OID). These provide context
    * and describe types in ASN.1 messages.
@@ -372,23 +336,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ObjectId}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ObjectId)
       com.google.cloud.security.privateca.v1.ObjectIdOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ObjectId.class,
-              com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
+              com.google.cloud.security.privateca.v1.ObjectId.class, com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.ObjectId.newBuilder()
@@ -396,15 +358,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +398,7 @@ public com.google.cloud.security.privateca.v1.ObjectId build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ObjectId buildPartial() {
-      com.google.cloud.security.privateca.v1.ObjectId result =
-          new com.google.cloud.security.privateca.v1.ObjectId(this);
+      com.google.cloud.security.privateca.v1.ObjectId result = new com.google.cloud.security.privateca.v1.ObjectId(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable();
@@ -451,39 +413,38 @@ public com.google.cloud.security.privateca.v1.ObjectId buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ObjectId) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ObjectId) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ObjectId)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -491,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.ObjectId other) {
-      if (other == com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()) return this;
       if (!other.objectIdPath_.isEmpty()) {
         if (objectIdPath_.isEmpty()) {
           objectIdPath_ = other.objectIdPath_;
@@ -531,59 +491,48 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Internal.IntList objectIdPath_ = emptyIntList();
-
     private void ensureObjectIdPathIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_ = mutableCopy(objectIdPath_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the objectIdPath. */ - public java.util.List getObjectIdPathList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(objectIdPath_) - : objectIdPath_; + public java.util.List + getObjectIdPathList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(objectIdPath_) : objectIdPath_; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ @@ -591,35 +540,30 @@ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The objectIdPath to set. * @return This builder for chaining. */ - public Builder setObjectIdPath(int index, int value) { + public Builder setObjectIdPath( + int index, int value) { ensureObjectIdPathIsMutable(); objectIdPath_.setInt(index, value); onChanged(); return this; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The objectIdPath to add. * @return This builder for chaining. */ @@ -630,34 +574,30 @@ public Builder addObjectIdPath(int value) { return this; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The objectIdPath to add. * @return This builder for chaining. */ - public Builder addAllObjectIdPath(java.lang.Iterable values) { + public Builder addAllObjectIdPath( + java.lang.Iterable values) { ensureObjectIdPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectIdPath_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectIdPath_); onChanged(); return this; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObjectIdPath() { @@ -666,9 +606,9 @@ public Builder clearObjectIdPath() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -678,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ObjectId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ObjectId) private static final com.google.cloud.security.privateca.v1.ObjectId DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ObjectId(); } @@ -692,16 +632,16 @@ public static com.google.cloud.security.privateca.v1.ObjectId getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -716,4 +656,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.ObjectId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java index d1720388..ea9cda3e 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java @@ -1,64 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface ObjectIdOrBuilder - extends +public interface ObjectIdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ObjectId) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the objectIdPath. */ java.util.List getObjectIdPathList(); /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of objectIdPath. */ int getObjectIdPathCount(); /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java index d8c59c24..32dc8657 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.OperationMetadata.class, - com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1.OperationMetadata.class, com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.OperationMetadata other = - (com.google.cloud.security.privateca.v1.OperationMetadata) obj; + com.google.cloud.security.privateca.v1.OperationMetadata other = (com.google.cloud.security.privateca.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +562,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.OperationMetadata 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.security.privateca.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.OperationMetadata) com.google.cloud.security.privateca.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.OperationMetadata.class, - com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1.OperationMetadata.class, com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.OperationMetadata.newBuilder() @@ -744,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -803,8 +740,7 @@ public com.google.cloud.security.privateca.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.security.privateca.v1.OperationMetadata buildPartial() { - com.google.cloud.security.privateca.v1.OperationMetadata result = - new com.google.cloud.security.privateca.v1.OperationMetadata(this); + com.google.cloud.security.privateca.v1.OperationMetadata result = new com.google.cloud.security.privateca.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -828,39 +764,38 @@ public com.google.cloud.security.privateca.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.security.privateca.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.security.privateca.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -868,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.OperationMetadata other) { - if (other == com.google.cloud.security.privateca.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,8 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -994,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1015,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1041,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1063,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1128,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1167,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1190,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1210,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1235,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1256,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1316,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1338,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1360,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1422,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1444,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1466,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1528,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1550,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1572,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1644,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1652,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1662,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1683,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1695,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1717,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1739,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.OperationMetadata) private static final com.google.cloud.security.privateca.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.OperationMetadata(); } @@ -1824,16 +1629,16 @@ public static com.google.cloud.security.privateca.v1.OperationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1848,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java index ea977b3c..d60d5a41 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java new file mode 100644 index 00000000..a44741d8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java @@ -0,0 +1,841 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public final class PrivateCaProto { + private PrivateCaProto() {} + 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_security_privateca_v1_CreateCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/security/privateca/v1/ser" + + "vice.proto\022\"google.cloud.security.privat" + + "eca.v1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\0322google/cloud/security/privateca/v1/re" + + "sources.proto\032#google/longrunning/operat" + + "ions.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\237\002" + + "\n\030CreateCertificateRequest\0227\n\006parent\030\001 \001" + + "(\tB\'\340A\002\372A!\n\037privateca.googleapis.com/CaP" + + "ool\022\033\n\016certificate_id\030\002 \001(\tB\003\340A\001\022I\n\013cert" + + "ificate\030\003 \001(\0132/.google.cloud.security.pr" + + "ivateca.v1.CertificateB\003\340A\002\022\027\n\nrequest_i" + + "d\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001" + + "\022-\n issuing_certificate_authority_id\030\006 \001" + + "(\tB\003\340A\001\"S\n\025GetCertificateRequest\022:\n\004name" + + "\030\001 \001(\tB,\340A\002\372A&\n$privateca.googleapis.com" + + "/Certificate\"\257\001\n\027ListCertificatesRequest" + + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goog" + + "leapis.com/CaPool\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\"\217\001\n\030ListC" + + "ertificatesResponse\022E\n\014certificates\030\001 \003(" + + "\0132/.google.cloud.security.privateca.v1.C" + + "ertificate\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"\272\001\n\030RevokeCertificateRe" + + "quest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$privateca.g" + + "oogleapis.com/Certificate\022I\n\006reason\030\002 \001(" + + "\01624.google.cloud.security.privateca.v1.R" + + "evocationReasonB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" + + "B\003\340A\001\"\264\001\n\030UpdateCertificateRequest\022I\n\013ce" + + "rtificate\030\001 \001(\0132/.google.cloud.security." + + "privateca.v1.CertificateB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\374\001\n#Activat" + + "eCertificateAuthorityRequest\022C\n\004name\030\001 \001" + + "(\tB5\340A\002\372A/\n-privateca.googleapis.com/Cer" + + "tificateAuthority\022\037\n\022pem_ca_certificate\030" + + "\002 \001(\tB\003\340A\002\022V\n\022subordinate_config\030\003 \001(\01325" + + ".google.cloud.security.privateca.v1.Subo" + + "rdinateConfigB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + + "\340A\001\"\372\001\n!CreateCertificateAuthorityReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goo" + + "gleapis.com/CaPool\022%\n\030certificate_author" + + "ity_id\030\002 \001(\tB\003\340A\002\022\\\n\025certificate_authori" + + "ty\030\003 \001(\01328.google.cloud.security.private" + + "ca.v1.CertificateAuthorityB\003\340A\002\022\027\n\nreque" + + "st_id\030\004 \001(\tB\003\340A\001\"\202\001\n\"DisableCertificateA" + + "uthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-p" + + "rivateca.googleapis.com/CertificateAutho" + + "rity\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\201\001\n!Enable" + + "CertificateAuthorityRequest\022C\n\004name\030\001 \001(" + + "\tB5\340A\002\372A/\n-privateca.googleapis.com/Cert" + + "ificateAuthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + + "\001\"j\n#FetchCertificateAuthorityCsrRequest" + + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.google" + + "apis.com/CertificateAuthority\"<\n$FetchCe" + + "rtificateAuthorityCsrResponse\022\024\n\007pem_csr" + + "\030\001 \001(\tB\003\340A\003\"e\n\036GetCertificateAuthorityRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.g" + + "oogleapis.com/CertificateAuthority\"\271\001\n!L" + + "istCertificateAuthoritiesRequest\0227\n\006pare" + + "nt\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.googleapis.c" + + "om/CaPool\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + + "e_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\"\255\001\n\"ListCertifica" + + "teAuthoritiesResponse\022Y\n\027certificate_aut" + + "horities\030\001 \003(\01328.google.cloud.security.p" + + "rivateca.v1.CertificateAuthority\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\203" + + "\001\n#UndeleteCertificateAuthorityRequest\022C" + + "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleap" + + "is.com/CertificateAuthority\022\027\n\nrequest_i" + + "d\030\002 \001(\tB\003\340A\001\"\312\001\n!DeleteCertificateAuthor" + + "ityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privat" + + "eca.googleapis.com/CertificateAuthority\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\'\n\032ignore_activ" + + "e_certificates\030\004 \001(\010B\003\340A\001\022\036\n\021skip_grace_" + + "period\030\005 \001(\010B\003\340A\001\"\320\001\n!UpdateCertificateA" + + "uthorityRequest\022\\\n\025certificate_authority" + + "\030\001 \001(\01328.google.cloud.security.privateca" + + ".v1.CertificateAuthorityB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\304\001\n\023CreateC" + + "aPoolRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" + + "cations.googleapis.com/Location\022\027\n\nca_po" + + "ol_id\030\002 \001(\tB\003\340A\002\022@\n\007ca_pool\030\003 \001(\0132*.goog" + + "le.cloud.security.privateca.v1.CaPoolB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\246\001\n\023UpdateCa" + + "PoolRequest\022@\n\007ca_pool\030\001 \001(\0132*.google.cl" + + "oud.security.privateca.v1.CaPoolB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"e\n\023" + + "DeleteCaPoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037privateca.googleapis.com/CaPool\022\027\n\nre" + + "quest_id\030\002 \001(\tB\003\340A\001\"h\n\023FetchCaCertsReque" + + "st\0228\n\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.g" + + "oogleapis.com/CaPool\022\027\n\nrequest_id\030\002 \001(\t" + + "B\003\340A\001\"\217\001\n\024FetchCaCertsResponse\022T\n\010ca_cer" + + "ts\030\001 \003(\0132B.google.cloud.security.private" + + "ca.v1.FetchCaCertsResponse.CertChain\032!\n\t" + + "CertChain\022\024\n\014certificates\030\001 \003(\t\"I\n\020GetCa" + + "PoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037priva" + + "teca.googleapis.com/CaPool\"\254\001\n\022ListCaPoo" + + "lsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A" + + "\001\"\201\001\n\023ListCaPoolsResponse\022<\n\010ca_pools\030\001 " + + "\003(\0132*.google.cloud.security.privateca.v1" + + ".CaPool\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"o\n#GetCertificateRevocatio" + + "nListRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2priv" + + "ateca.googleapis.com/CertificateRevocati" + + "onList\"\313\001\n%ListCertificateRevocationList" + + "sRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privat" + + "eca.googleapis.com/CertificateAuthority\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_b" + + "y\030\005 \001(\tB\003\340A\001\"\273\001\n&ListCertificateRevocati" + + "onListsResponse\022c\n\034certificate_revocatio" + + "n_lists\030\001 \003(\0132=.google.cloud.security.pr" + + "ivateca.v1.CertificateRevocationList\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"\340\001\n&UpdateCertificateRevocationListRe" + + "quest\022g\n\033certificate_revocation_list\030\001 \001" + + "(\0132=.google.cloud.security.privateca.v1." + + "CertificateRevocationListB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\370\001\n Create" + + "CertificateTemplateRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022$\n\027certificate_template_id\030\002 \001(\tB\003" + + "\340A\002\022Z\n\024certificate_template\030\003 \001(\01327.goog" + + "le.cloud.security.privateca.v1.Certifica" + + "teTemplateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\"\177\n DeleteCertificateTemplateRequest\022B\n\004" + + "name\030\001 \001(\tB4\340A\002\372A.\n,privateca.googleapis" + + ".com/CertificateTemplate\022\027\n\nrequest_id\030\002" + + " \001(\tB\003\340A\001\"c\n\035GetCertificateTemplateReque" + + "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,privateca.goog" + + "leapis.com/CertificateTemplate\"\271\001\n\037ListC" + + "ertificateTemplatesRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" + + "rder_by\030\005 \001(\tB\003\340A\001\"\250\001\n ListCertificateTe" + + "mplatesResponse\022V\n\025certificate_templates" + + "\030\001 \003(\01327.google.cloud.security.privateca" + + ".v1.CertificateTemplate\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\315\001\n Update" + + "CertificateTemplateRequest\022Z\n\024certificat" + + "e_template\030\001 \001(\01327.google.cloud.security" + + ".privateca.v1.CertificateTemplateB\003\340A\002\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\200\002" + + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + + "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\007 \001(\tB\003\340A\0032\372;\n\033CertificateAuthorit" + + "yService\022\367\001\n\021CreateCertificate\022<.google." + + "cloud.security.privateca.v1.CreateCertif" + + "icateRequest\032/.google.cloud.security.pri" + + "vateca.v1.Certificate\"s\202\323\344\223\002I\":/v1/{pare" + + "nt=projects/*/locations/*/caPools/*}/cer" + + "tificates:\013certificate\332A!parent,certific" + + "ate,certificate_id\022\307\001\n\016GetCertificate\0229." + + "google.cloud.security.privateca.v1.GetCe" + + "rtificateRequest\032/.google.cloud.security" + + ".privateca.v1.Certificate\"I\202\323\344\223\002<\022:/v1/{" + + "name=projects/*/locations/*/caPools/*/ce" + + "rtificates/*}\332A\004name\022\332\001\n\020ListCertificate" + + "s\022;.google.cloud.security.privateca.v1.L" + + "istCertificatesRequest\032<.google.cloud.se" + + "curity.privateca.v1.ListCertificatesResp" + + "onse\"K\202\323\344\223\002<\022:/v1/{parent=projects/*/loc" + + "ations/*/caPools/*}/certificates\332A\006paren" + + "t\022\327\001\n\021RevokeCertificate\022<.google.cloud.s" + + "ecurity.privateca.v1.RevokeCertificateRe" + + "quest\032/.google.cloud.security.privateca." + + "v1.Certificate\"S\202\323\344\223\002F\"A/v1/{name=projec" + + "ts/*/locations/*/caPools/*/certificates/" + + "*}:revoke:\001*\332A\004name\022\371\001\n\021UpdateCertificat" + + "e\022<.google.cloud.security.privateca.v1.U" + + "pdateCertificateRequest\032/.google.cloud.s" + + "ecurity.privateca.v1.Certificate\"u\202\323\344\223\002U" + + "2F/v1/{certificate.name=projects/*/locat" + + "ions/*/caPools/*/certificates/*}:\013certif" + + "icate\332A\027certificate,update_mask\022\224\002\n\034Acti" + + "vateCertificateAuthority\022G.google.cloud." + + "security.privateca.v1.ActivateCertificat" + + "eAuthorityRequest\032\035.google.longrunning.O" + + "peration\"\213\001\202\323\344\223\002R\"M/v1/{name=projects/*/" + + "locations/*/caPools/*/certificateAuthori" + + "ties/*}:activate:\001*\332A\004name\312A)\n\024Certifica" + + "teAuthority\022\021OperationMetadata\022\314\002\n\032Creat" + + "eCertificateAuthority\022E.google.cloud.sec" + + "urity.privateca.v1.CreateCertificateAuth" + + "orityRequest\032\035.google.longrunning.Operat" + + "ion\"\307\001\202\323\344\223\002]\"D/v1/{parent=projects/*/loc" + + "ations/*/caPools/*}/certificateAuthoriti" + + "es:\025certificate_authority\332A5parent,certi" + + "ficate_authority,certificate_authority_i" + + "d\312A)\n\024CertificateAuthority\022\021OperationMet" + + "adata\022\221\002\n\033DisableCertificateAuthority\022F." + + "google.cloud.security.privateca.v1.Disab" + + "leCertificateAuthorityRequest\032\035.google.l" + + "ongrunning.Operation\"\212\001\202\323\344\223\002Q\"L/v1/{name" + + "=projects/*/locations/*/caPools/*/certif" + + "icateAuthorities/*}:disable:\001*\332A\004name\312A)" + + "\n\024CertificateAuthority\022\021OperationMetadat" + + "a\022\216\002\n\032EnableCertificateAuthority\022E.googl" + + "e.cloud.security.privateca.v1.EnableCert" + + "ificateAuthorityRequest\032\035.google.longrun" + + "ning.Operation\"\211\001\202\323\344\223\002P\"K/v1/{name=proje" + + "cts/*/locations/*/caPools/*/certificateA" + + "uthorities/*}:enable:\001*\332A\004name\312A)\n\024Certi" + + "ficateAuthority\022\021OperationMetadata\022\214\002\n\034F" + + "etchCertificateAuthorityCsr\022G.google.clo" + + "ud.security.privateca.v1.FetchCertificat" + + "eAuthorityCsrRequest\032H.google.cloud.secu" + + "rity.privateca.v1.FetchCertificateAuthor" + + "ityCsrResponse\"Y\202\323\344\223\002L\022J/v1/{name=projec" + + "ts/*/locations/*/caPools/*/certificateAu" + + "thorities/*}:fetch\332A\004name\022\354\001\n\027GetCertifi" + + "cateAuthority\022B.google.cloud.security.pr" + + "ivateca.v1.GetCertificateAuthorityReques" + + "t\0328.google.cloud.security.privateca.v1.C" + + "ertificateAuthority\"S\202\323\344\223\002F\022D/v1/{name=p" + + "rojects/*/locations/*/caPools/*/certific" + + "ateAuthorities/*}\332A\004name\022\202\002\n\032ListCertifi" + + "cateAuthorities\022E.google.cloud.security." + + "privateca.v1.ListCertificateAuthoritiesR" + + "equest\032F.google.cloud.security.privateca" + + ".v1.ListCertificateAuthoritiesResponse\"U" + + "\202\323\344\223\002F\022D/v1/{parent=projects/*/locations" + + "/*/caPools/*}/certificateAuthorities\332A\006p" + + "arent\022\224\002\n\034UndeleteCertificateAuthority\022G" + + ".google.cloud.security.privateca.v1.Unde" + + "leteCertificateAuthorityRequest\032\035.google" + + ".longrunning.Operation\"\213\001\202\323\344\223\002R\"M/v1/{na" + + "me=projects/*/locations/*/caPools/*/cert" + + "ificateAuthorities/*}:undelete:\001*\332A\004name" + + "\312A)\n\024CertificateAuthority\022\021OperationMeta" + + "data\022\203\002\n\032DeleteCertificateAuthority\022E.go" + + "ogle.cloud.security.privateca.v1.DeleteC" + + "ertificateAuthorityRequest\032\035.google.long" + + "running.Operation\"\177\202\323\344\223\002F*D/v1/{name=pro" + + "jects/*/locations/*/caPools/*/certificat" + + "eAuthorities/*}\332A\004name\312A)\n\024CertificateAu" + + "thority\022\021OperationMetadata\022\316\002\n\032UpdateCer" + + "tificateAuthority\022E.google.cloud.securit" + + "y.privateca.v1.UpdateCertificateAuthorit" + + "yRequest\032\035.google.longrunning.Operation\"" + + "\311\001\202\323\344\223\002s2Z/v1/{certificate_authority.nam" + + "e=projects/*/locations/*/caPools/*/certi" + + "ficateAuthorities/*}:\025certificate_author" + + "ity\332A!certificate_authority,update_mask\312" + + "A)\n\024CertificateAuthority\022\021OperationMetad" + + "ata\022\336\001\n\014CreateCaPool\0227.google.cloud.secu" + + "rity.privateca.v1.CreateCaPoolRequest\032\035." + + "google.longrunning.Operation\"v\202\323\344\223\0026\"+/v" + + "1/{parent=projects/*/locations/*}/caPool" + + "s:\007ca_pool\332A\031parent,ca_pool,ca_pool_id\312A" + + "\033\n\006CaPool\022\021OperationMetadata\022\340\001\n\014UpdateC" + + "aPool\0227.google.cloud.security.privateca." + + "v1.UpdateCaPoolRequest\032\035.google.longrunn" + + "ing.Operation\"x\202\323\344\223\002>23/v1/{ca_pool.name" + + "=projects/*/locations/*/caPools/*}:\007ca_p" + + "ool\332A\023ca_pool,update_mask\312A\033\n\006CaPool\022\021Op" + + "erationMetadata\022\251\001\n\tGetCaPool\0224.google.c" + + "loud.security.privateca.v1.GetCaPoolRequ" + + "est\032*.google.cloud.security.privateca.v1" + + ".CaPool\":\202\323\344\223\002-\022+/v1/{name=projects/*/lo" + + "cations/*/caPools/*}\332A\004name\022\274\001\n\013ListCaPo" + + "ols\0226.google.cloud.security.privateca.v1" + + ".ListCaPoolsRequest\0327.google.cloud.secur" + + "ity.privateca.v1.ListCaPoolsResponse\"<\202\323" + + "\344\223\002-\022+/v1/{parent=projects/*/locations/*" + + "}/caPools\332A\006parent\022\317\001\n\014DeleteCaPool\0227.go" + + "ogle.cloud.security.privateca.v1.DeleteC" + + "aPoolRequest\032\035.google.longrunning.Operat" + + "ion\"g\202\323\344\223\002-*+/v1/{name=projects/*/locati" + + "ons/*/caPools/*}\332A\004name\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\022\323\001\n\014FetchCa" + + "Certs\0227.google.cloud.security.privateca." + + "v1.FetchCaCertsRequest\0328.google.cloud.se" + + "curity.privateca.v1.FetchCaCertsResponse" + + "\"P\202\323\344\223\002@\";/v1/{ca_pool=projects/*/locati" + + "ons/*/caPools/*}:fetchCaCerts:\001*\332A\007ca_po" + + "ol\022\230\002\n\034GetCertificateRevocationList\022G.go" + + "ogle.cloud.security.privateca.v1.GetCert" + + "ificateRevocationListRequest\032=.google.cl" + + "oud.security.privateca.v1.CertificateRev" + + "ocationList\"p\202\323\344\223\002c\022a/v1/{name=projects/" + + "*/locations/*/caPools/*/certificateAutho" + + "rities/*/certificateRevocationLists/*}\332A" + + "\004name\022\253\002\n\036ListCertificateRevocationLists" + + "\022I.google.cloud.security.privateca.v1.Li" + + "stCertificateRevocationListsRequest\032J.go" + + "ogle.cloud.security.privateca.v1.ListCer" + + "tificateRevocationListsResponse\"r\202\323\344\223\002c\022" + + "a/v1/{parent=projects/*/locations/*/caPo" + + "ols/*/certificateAuthorities/*}/certific" + + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + + "rtificateRevocationList\022J.google.cloud.s" + + "ecurity.privateca.v1.UpdateCertificateRe" + + "vocationListRequest\032\035.google.longrunning" + + ".Operation\"\376\001\202\323\344\223\002\234\0012}/v1/{certificate_r" + + "evocation_list.name=projects/*/locations" + + "/*/caPools/*/certificateAuthorities/*/ce" + + "rtificateRevocationLists/*}:\033certificate" + + "_revocation_list\332A\'certificate_revocatio" + + "n_list,update_mask\312A.\n\031CertificateRevoca" + + "tionList\022\021OperationMetadata\022\272\002\n\031CreateCe" + + "rtificateTemplate\022D.google.cloud.securit" + + "y.privateca.v1.CreateCertificateTemplate" + + "Request\032\035.google.longrunning.Operation\"\267" + + "\001\202\323\344\223\002P\"8/v1/{parent=projects/*/location" + + "s/*}/certificateTemplates:\024certificate_t" + + "emplate\332A3parent,certificate_template,ce" + + "rtificate_template_id\312A(\n\023CertificateTem" + + "plate\022\021OperationMetadata\022\232\002\n\031DeleteCerti" + + "ficateTemplate\022D.google.cloud.security.p" + + "rivateca.v1.DeleteCertificateTemplateReq" + + "uest\032\035.google.longrunning.Operation\"\227\001\202\323" + + "\344\223\002:*8/v1/{name=projects/*/locations/*/c" + + "ertificateTemplates/*}\332A\004name\312AM\n\025google" + + ".protobuf.Empty\0224google.cloud.security.p" + + "rivateca.v1.OperationMetadata\022\335\001\n\026GetCer" + + "tificateTemplate\022A.google.cloud.security" + + ".privateca.v1.GetCertificateTemplateRequ" + + "est\0327.google.cloud.security.privateca.v1" + + ".CertificateTemplate\"G\202\323\344\223\002:\0228/v1/{name=" + + "projects/*/locations/*/certificateTempla" + + "tes/*}\332A\004name\022\360\001\n\030ListCertificateTemplat" + + "es\022C.google.cloud.security.privateca.v1." + + "ListCertificateTemplatesRequest\032D.google" + + ".cloud.security.privateca.v1.ListCertifi" + + "cateTemplatesResponse\"I\202\323\344\223\002:\0228/v1/{pare" + + "nt=projects/*/locations/*}/certificateTe" + + "mplates\332A\006parent\022\274\002\n\031UpdateCertificateTe" + + "mplate\022D.google.cloud.security.privateca" + + ".v1.UpdateCertificateTemplateRequest\032\035.g" + + "oogle.longrunning.Operation\"\271\001\202\323\344\223\002e2M/v" + + "1/{certificate_template.name=projects/*/" + + "locations/*/certificateTemplates/*}:\024cer" + + "tificate_template\332A certificate_template" + + ",update_mask\312A(\n\023CertificateTemplate\022\021Op" + + "erationMetadata\032L\312A\030privateca.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\375\001\n&com.google.cloud.secur" + + "ity.privateca.v1B\016PrivateCaProtoP\001ZKgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "security/privateca/v1;privateca\370\001\001\252\002\"Goo" + + "gle.Cloud.Security.PrivateCA.V1\312\002\"Google" + + "\\Cloud\\Security\\PrivateCA\\V1\352\002&Google::C" + + "loud::Security::PrivateCA::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.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateId", "Certificate", "RequestId", "ValidateOnly", "IssuingCertificateAuthorityId", }); + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor, + new java.lang.String[] { "Certificates", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor, + new java.lang.String[] { "Name", "Reason", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor, + new java.lang.String[] { "Certificate", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor, + new java.lang.String[] { "PemCsr", }); + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor, + new java.lang.String[] { "CertificateAuthorities", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", "IgnoreActiveCertificates", "SkipGracePeriod", }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "CertificateAuthority", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor, + new java.lang.String[] { "Parent", "CaPoolId", "CaPool", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor, + new java.lang.String[] { "CaPool", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor, + new java.lang.String[] { "CaPool", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor, + new java.lang.String[] { "CaCerts", }); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor = + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor, + new java.lang.String[] { "Certificates", }); + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor, + new java.lang.String[] { "CaPools", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor, + new java.lang.String[] { "CertificateRevocationLists", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor, + new java.lang.String[] { "CertificateRevocationList", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateTemplateId", "CertificateTemplate", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor, + new java.lang.String[] { "CertificateTemplates", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor, + new java.lang.String[] { "CertificateTemplate", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java new file mode 100644 index 00000000..419106dd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java @@ -0,0 +1,799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +package com.google.cloud.security.privateca.v1; + +public final class PrivateCaResourcesProto { + private PrivateCaResourcesProto() {} + 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_security_privateca_v1_CertificateAuthority_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Subject_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/security/privateca/v1/res" + + "ources.proto\022\"google.cloud.security.priv" + + "ateca.v1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\036google/pro" + + "tobuf/duration.proto\032\037google/protobuf/ti" + + "mestamp.proto\032\026google/type/expr.proto\"\365\017" + + "\n\024CertificateAuthority\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022S\n\004type\030\002 \001(\0162=.google.cloud.security." + + "privateca.v1.CertificateAuthority.TypeB\006" + + "\340A\002\340A\005\022M\n\006config\030\003 \001(\01325.google.cloud.se" + + "curity.privateca.v1.CertificateConfigB\006\340" + + "A\002\340A\005\0223\n\010lifetime\030\004 \001(\0132\031.google.protobu" + + "f.DurationB\006\340A\002\340A\005\022a\n\010key_spec\030\005 \001(\0132G.g" + + "oogle.cloud.security.privateca.v1.Certif" + + "icateAuthority.KeyVersionSpecB\006\340A\002\340A\005\022V\n" + + "\022subordinate_config\030\006 \001(\01325.google.cloud" + + ".security.privateca.v1.SubordinateConfig" + + "B\003\340A\001\022B\n\004tier\030\007 \001(\0162/.google.cloud.secur" + + "ity.privateca.v1.CaPool.TierB\003\340A\003\022R\n\005sta" + + "te\030\010 \001(\0162>.google.cloud.security.private" + + "ca.v1.CertificateAuthority.StateB\003\340A\003\022 \n" + + "\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022d\n\033ca_ce" + + "rtificate_descriptions\030\n \003(\0132:.google.cl" + + "oud.security.privateca.v1.CertificateDes" + + "criptionB\003\340A\003\022\027\n\ngcs_bucket\030\013 \001(\tB\003\340A\005\022]" + + "\n\013access_urls\030\014 \001(\0132C.google.cloud.secur" + + "ity.privateca.v1.CertificateAuthority.Ac" + + "cessUrlsB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013delete_time\030\017 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013expire_time\030\020 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022Y\n\006labels\030" + + "\021 \003(\0132D.google.cloud.security.privateca." + + "v1.CertificateAuthority.LabelsEntryB\003\340A\001" + + "\032H\n\nAccessUrls\022!\n\031ca_certificate_access_" + + "url\030\001 \001(\t\022\027\n\017crl_access_urls\030\002 \003(\t\032\240\001\n\016K" + + "eyVersionSpec\022\037\n\025cloud_kms_key_version\030\001" + + " \001(\tH\000\022_\n\talgorithm\030\002 \001(\0162J.google.cloud" + + ".security.privateca.v1.CertificateAuthor" + + "ity.SignHashAlgorithmH\000B\014\n\nKeyVersion\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017\n\013SE" + + "LF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"p\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DIS" + + "ABLED\020\002\022\n\n\006STAGED\020\003\022\034\n\030AWAITING_USER_ACT" + + "IVATION\020\004\022\013\n\007DELETED\020\005\"\374\001\n\021SignHashAlgor" + + "ithm\022#\n\037SIGN_HASH_ALGORITHM_UNSPECIFIED\020" + + "\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022\027\n\023RSA_PSS_30" + + "72_SHA256\020\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\031\n\025" + + "RSA_PKCS1_2048_SHA256\020\006\022\031\n\025RSA_PKCS1_307" + + "2_SHA256\020\007\022\031\n\025RSA_PKCS1_4096_SHA256\020\010\022\022\n" + + "\016EC_P256_SHA256\020\004\022\022\n\016EC_P384_SHA384\020\005:\235\001" + + "\352A\231\001\n-privateca.googleapis.com/Certifica" + + "teAuthority\022hprojects/{project}/location" + + "s/{location}/caPools/{ca_pool}/certifica" + + "teAuthorities/{certificate_authority}\"\360\016" + + "\n\006CaPool\022\021\n\004name\030\001 \001(\tB\003\340A\003\022E\n\004tier\030\002 \001(" + + "\0162/.google.cloud.security.privateca.v1.C" + + "aPool.TierB\006\340A\002\340A\005\022W\n\017issuance_policy\030\003 " + + "\001(\01329.google.cloud.security.privateca.v1" + + ".CaPool.IssuancePolicyB\003\340A\001\022]\n\022publishin" + + "g_options\030\004 \001(\0132<.google.cloud.security." + + "privateca.v1.CaPool.PublishingOptionsB\003\340" + + "A\001\022K\n\006labels\030\005 \003(\01326.google.cloud.securi" + + "ty.privateca.v1.CaPool.LabelsEntryB\003\340A\001\032" + + "K\n\021PublishingOptions\022\034\n\017publish_ca_cert\030" + + "\001 \001(\010B\003\340A\001\022\030\n\013publish_crl\030\002 \001(\010B\003\340A\001\032\357\t\n" + + "\016IssuancePolicy\022h\n\021allowed_key_types\030\001 \003" + + "(\0132H.google.cloud.security.privateca.v1." + + "CaPool.IssuancePolicy.AllowedKeyTypeB\003\340A" + + "\001\0228\n\020maximum_lifetime\030\002 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\001\022l\n\026allowed_issuance_" + + "modes\030\003 \001(\0132G.google.cloud.security.priv" + + "ateca.v1.CaPool.IssuancePolicy.IssuanceM" + + "odesB\003\340A\001\022P\n\017baseline_values\030\004 \001(\01322.goo" + + "gle.cloud.security.privateca.v1.X509Para" + + "metersB\003\340A\001\022e\n\024identity_constraints\030\005 \001(" + + "\0132B.google.cloud.security.privateca.v1.C" + + "ertificateIdentityConstraintsB\003\340A\001\022h\n\026pa" + + "ssthrough_extensions\030\006 \001(\0132C.google.clou" + + "d.security.privateca.v1.CertificateExten" + + "sionConstraintsB\003\340A\001\032\305\004\n\016AllowedKeyType\022" + + "b\n\003rsa\030\001 \001(\0132S.google.cloud.security.pri" + + "vateca.v1.CaPool.IssuancePolicy.AllowedK" + + "eyType.RsaKeyTypeH\000\022l\n\016elliptic_curve\030\002 " + + "\001(\0132R.google.cloud.security.privateca.v1" + + ".CaPool.IssuancePolicy.AllowedKeyType.Ec" + + "KeyTypeH\000\032J\n\nRsaKeyType\022\035\n\020min_modulus_s" + + "ize\030\001 \001(\003B\003\340A\001\022\035\n\020max_modulus_size\030\002 \001(\003" + + "B\003\340A\001\032\210\002\n\tEcKeyType\022\211\001\n\023signature_algori" + + "thm\030\001 \001(\0162g.google.cloud.security.privat" + + "eca.v1.CaPool.IssuancePolicy.AllowedKeyT" + + "ype.EcKeyType.EcSignatureAlgorithmB\003\340A\001\"" + + "o\n\024EcSignatureAlgorithm\022&\n\"EC_SIGNATURE_" + + "ALGORITHM_UNSPECIFIED\020\000\022\016\n\nECDSA_P256\020\001\022" + + "\016\n\nECDSA_P384\020\002\022\017\n\013EDDSA_25519\020\003B\n\n\010key_" + + "type\032`\n\rIssuanceModes\022%\n\030allow_csr_based" + + "_issuance\030\001 \001(\010B\003\340A\001\022(\n\033allow_config_bas" + + "ed_issuance\030\002 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\004Tier\022\024\n" + + "\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n\n\006D" + + "EVOPS\020\002:_\352A\\\n\037privateca.googleapis.com/C" + + "aPool\0229projects/{project}/locations/{loc" + + "ation}/caPools/{ca_pool}\"\274\010\n\031Certificate" + + "RevocationList\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017seq" + + "uence_number\030\002 \001(\003B\003\340A\003\022s\n\024revoked_certi" + + "ficates\030\003 \003(\0132P.google.cloud.security.pr" + + "ivateca.v1.CertificateRevocationList.Rev" + + "okedCertificateB\003\340A\003\022\024\n\007pem_crl\030\004 \001(\tB\003\340" + + "A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003\022W\n\005state\030\006 \001" + + "(\0162C.google.cloud.security.privateca.v1." + + "CertificateRevocationList.StateB\003\340A\003\0224\n\013" + + "create_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022\030\n\013revision_id\030" + + "\t \001(\tB\003\340A\003\022^\n\006labels\030\n \003(\0132I.google.clou" + + "d.security.privateca.v1.CertificateRevoc" + + "ationList.LabelsEntryB\003\340A\001\032\300\001\n\022RevokedCe" + + "rtificate\022>\n\013certificate\030\001 \001(\tB)\372A&\n$pri" + + "vateca.googleapis.com/Certificate\022\031\n\021hex" + + "_serial_number\030\002 \001(\t\022O\n\021revocation_reaso" + + "n\030\003 \001(\01624.google.cloud.security.privatec" + + "a.v1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPE" + + "RSEDED\020\002:\334\001\352A\330\001\n2privateca.googleapis.co" + + "m/CertificateRevocationList\022\241\001projects/{" + + "project}/locations/{location}/caPools/{c" + + "a_pool}/certificateAuthorities/{certific" + + "ate_authority}/certificateRevocationList" + + "s/{certificate_revocation_list}\"\217\n\n\013Cert" + + "ificate\022:\n\004name\030\001 \001(\tB,\340A\003\372A&\n$privateca" + + ".googleapis.com/Certificate\022\026\n\007pem_csr\030\002" + + " \001(\tB\003\340A\005H\000\022L\n\006config\030\003 \001(\01325.google.clo" + + "ud.security.privateca.v1.CertificateConf" + + "igB\003\340A\005H\000\022[\n\034issuer_certificate_authorit" + + "y\030\004 \001(\tB5\340A\003\372A/\n-privateca.googleapis.co" + + "m/CertificateAuthority\0223\n\010lifetime\030\005 \001(\013" + + "2\031.google.protobuf.DurationB\006\340A\002\340A\005\022R\n\024c" + + "ertificate_template\030\006 \001(\tB4\340A\005\372A.\n,priva" + + "teca.googleapis.com/CertificateTemplate\022" + + "Q\n\014subject_mode\030\007 \001(\01626.google.cloud.sec" + + "urity.privateca.v1.SubjectRequestModeB\003\340" + + "A\005\022b\n\022revocation_details\030\010 \001(\0132A.google." + + "cloud.security.privateca.v1.Certificate." + + "RevocationDetailsB\003\340A\003\022\034\n\017pem_certificat" + + "e\030\t \001(\tB\003\340A\003\022`\n\027certificate_description\030" + + "\n \001(\0132:.google.cloud.security.privateca." + + "v1.CertificateDescriptionB\003\340A\003\022\"\n\025pem_ce" + + "rtificate_chain\030\013 \003(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\r \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022P\n\006labels\030\016 \003(\0132;.google." + + "cloud.security.privateca.v1.Certificate." + + "LabelsEntryB\003\340A\001\032\230\001\n\021RevocationDetails\022N" + + "\n\020revocation_state\030\001 \001(\01624.google.cloud." + + "security.privateca.v1.RevocationReason\0223" + + "\n\017revocation_time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\177\352A|\n$privateca.googl" + + "eapis.com/Certificate\022Tprojects/{project" + + "}/locations/{location}/caPools/{ca_pool}" + + "/certificates/{certificate}B\024\n\022certifica" + + "te_config\"\227\006\n\023CertificateTemplate\022B\n\004nam" + + "e\030\001 \001(\tB4\340A\003\372A.\n,privateca.googleapis.co" + + "m/CertificateTemplate\022R\n\021predefined_valu" + + "es\030\002 \001(\01322.google.cloud.security.private" + + "ca.v1.X509ParametersB\003\340A\001\022e\n\024identity_co" + + "nstraints\030\003 \001(\0132B.google.cloud.security." + + "privateca.v1.CertificateIdentityConstrai" + + "ntsB\003\340A\001\022h\n\026passthrough_extensions\030\004 \001(\013" + + "2C.google.cloud.security.privateca.v1.Ce" + + "rtificateExtensionConstraintsB\003\340A\001\022\030\n\013de" + + "scription\030\005 \001(\tB\003\340A\001\0224\n\013create_time\030\006 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022X\n\006labels\030\010 \003(\0132C.google.cloud." + + "security.privateca.v1.CertificateTemplat" + + "e.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n,privat" + + "eca.googleapis.com/CertificateTemplate\022S" + + "projects/{project}/locations/{location}/" + + "certificateTemplates/{certificate_templa" + + "te}\"\337\003\n\016X509Parameters\022D\n\tkey_usage\030\001 \001(" + + "\0132,.google.cloud.security.privateca.v1.K" + + "eyUsageB\003\340A\001\022U\n\nca_options\030\002 \001(\0132<.googl" + + "e.cloud.security.privateca.v1.X509Parame" + + "ters.CaOptionsB\003\340A\001\022E\n\npolicy_ids\030\003 \003(\0132" + + ",.google.cloud.security.privateca.v1.Obj" + + "ectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB\003\340A" + + "\001\022U\n\025additional_extensions\030\005 \003(\01321.googl" + + "e.cloud.security.privateca.v1.X509Extens" + + "ionB\003\340A\001\032s\n\tCaOptions\022\027\n\005is_ca\030\001 \001(\010B\003\340A" + + "\001H\000\210\001\001\022(\n\026max_issuer_path_length\030\002 \001(\005B\003" + + "\340A\001H\001\210\001\001B\010\n\006_is_caB\031\n\027_max_issuer_path_l" + + "ength\"\251\002\n\021SubordinateConfig\022V\n\025certifica" + + "te_authority\030\001 \001(\tB5\340A\002\372A/\n-privateca.go" + + "ogleapis.com/CertificateAuthorityH\000\022m\n\020p" + + "em_issuer_chain\030\002 \001(\0132L.google.cloud.sec" + + "urity.privateca.v1.SubordinateConfig.Sub" + + "ordinateConfigChainB\003\340A\002H\000\0327\n\026Subordinat" + + "eConfigChain\022\035\n\020pem_certificates\030\001 \003(\tB\003" + + "\340A\002B\024\n\022subordinate_config\"\235\001\n\tPublicKey\022" + + "\020\n\003key\030\001 \001(\014B\003\340A\002\022L\n\006format\030\002 \001(\01627.goog" + + "le.cloud.security.privateca.v1.PublicKey" + + ".KeyFormatB\003\340A\002\"0\n\tKeyFormat\022\032\n\026KEY_FORM" + + "AT_UNSPECIFIED\020\000\022\007\n\003PEM\020\001\"\264\003\n\021Certificat" + + "eConfig\022`\n\016subject_config\030\001 \001(\0132C.google" + + ".cloud.security.privateca.v1.Certificate" + + "Config.SubjectConfigB\003\340A\002\022L\n\013x509_config" + + "\030\002 \001(\01322.google.cloud.security.privateca" + + ".v1.X509ParametersB\003\340A\002\022F\n\npublic_key\030\003 " + + "\001(\0132-.google.cloud.security.privateca.v1" + + ".PublicKeyB\003\340A\001\032\246\001\n\rSubjectConfig\022A\n\007sub" + + "ject\030\001 \001(\0132+.google.cloud.security.priva" + + "teca.v1.SubjectB\003\340A\002\022R\n\020subject_alt_name" + + "\030\002 \001(\01323.google.cloud.security.privateca" + + ".v1.SubjectAltNamesB\003\340A\001\"\241\010\n\026Certificate" + + "Description\022j\n\023subject_description\030\001 \001(\013" + + "2M.google.cloud.security.privateca.v1.Ce" + + "rtificateDescription.SubjectDescription\022" + + "L\n\020x509_description\030\002 \001(\01322.google.cloud" + + ".security.privateca.v1.X509Parameters\022A\n" + + "\npublic_key\030\003 \001(\0132-.google.cloud.securit" + + "y.privateca.v1.PublicKey\022X\n\016subject_key_" + + "id\030\004 \001(\0132@.google.cloud.security.private" + + "ca.v1.CertificateDescription.KeyId\022Z\n\020au" + + "thority_key_id\030\005 \001(\0132@.google.cloud.secu" + + "rity.privateca.v1.CertificateDescription" + + ".KeyId\022\037\n\027crl_distribution_points\030\006 \003(\t\022" + + "$\n\034aia_issuing_certificate_urls\030\007 \003(\t\022k\n" + + "\020cert_fingerprint\030\010 \001(\0132Q.google.cloud.s" + + "ecurity.privateca.v1.CertificateDescript" + + "ion.CertificateFingerprint\032\322\002\n\022SubjectDe" + + "scription\022<\n\007subject\030\001 \001(\0132+.google.clou" + + "d.security.privateca.v1.Subject\022M\n\020subje" + + "ct_alt_name\030\002 \001(\01323.google.cloud.securit" + + "y.privateca.v1.SubjectAltNames\022\031\n\021hex_se" + + "rial_number\030\003 \001(\t\022+\n\010lifetime\030\004 \001(\0132\031.go" + + "ogle.protobuf.Duration\0223\n\017not_before_tim" + + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\0222\n\016n" + + "ot_after_time\030\006 \001(\0132\032.google.protobuf.Ti" + + "mestamp\032\034\n\005KeyId\022\023\n\006key_id\030\001 \001(\tB\003\340A\001\032-\n" + + "\026CertificateFingerprint\022\023\n\013sha256_hash\030\001" + + " \001(\t\"\'\n\010ObjectId\022\033\n\016object_id_path\030\001 \003(\005" + + "B\003\340A\002\"\200\001\n\rX509Extension\022D\n\tobject_id\030\001 \001" + + "(\0132,.google.cloud.security.privateca.v1." + + "ObjectIdB\003\340A\002\022\025\n\010critical\030\002 \001(\010B\003\340A\001\022\022\n\005" + + "value\030\003 \001(\014B\003\340A\002\"\242\005\n\010KeyUsage\022T\n\016base_ke" + + "y_usage\030\001 \001(\0132<.google.cloud.security.pr" + + "ivateca.v1.KeyUsage.KeyUsageOptions\022`\n\022e" + + "xtended_key_usage\030\002 \001(\0132D.google.cloud.s" + + "ecurity.privateca.v1.KeyUsage.ExtendedKe" + + "yUsageOptions\022Q\n\033unknown_extended_key_us" + + "ages\030\003 \003(\0132,.google.cloud.security.priva" + + "teca.v1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021" + + "digital_signature\030\001 \001(\010\022\032\n\022content_commi" + + "tment\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n" + + "\021data_encipherment\030\004 \001(\010\022\025\n\rkey_agreemen" + + "t\030\005 \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007" + + " \001(\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_" + + "only\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023" + + "\n\013server_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010" + + "\022\024\n\014code_signing\030\003 \001(\010\022\030\n\020email_protecti" + + "on\030\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_" + + "signing\030\006 \001(\010\"\270\001\n\007Subject\022\023\n\013common_name" + + "\030\001 \001(\t\022\024\n\014country_code\030\002 \001(\t\022\024\n\014organiza" + + "tion\030\003 \001(\t\022\033\n\023organizational_unit\030\004 \001(\t\022" + + "\020\n\010locality\030\005 \001(\t\022\020\n\010province\030\006 \001(\t\022\026\n\016s" + + "treet_address\030\007 \001(\t\022\023\n\013postal_code\030\010 \001(\t" + + "\"\251\001\n\017SubjectAltNames\022\021\n\tdns_names\030\001 \003(\t\022" + + "\014\n\004uris\030\002 \003(\t\022\027\n\017email_addresses\030\003 \003(\t\022\024" + + "\n\014ip_addresses\030\004 \003(\t\022F\n\013custom_sans\030\005 \003(" + + "\01321.google.cloud.security.privateca.v1.X" + + "509Extension\"\372\001\n\036CertificateIdentityCons" + + "traints\022.\n\016cel_expression\030\001 \001(\0132\021.google" + + ".type.ExprB\003\340A\001\022+\n\031allow_subject_passthr" + + "ough\030\002 \001(\010B\003\340A\002H\000\210\001\001\0225\n#allow_subject_al" + + "t_names_passthrough\030\003 \001(\010B\003\340A\002H\001\210\001\001B\034\n\032_" + + "allow_subject_passthroughB&\n$_allow_subj" + + "ect_alt_names_passthrough\"\236\003\n\037Certificat" + + "eExtensionConstraints\022|\n\020known_extension" + + "s\030\001 \003(\0162].google.cloud.security.privatec" + + "a.v1.CertificateExtensionConstraints.Kno" + + "wnCertificateExtensionB\003\340A\001\022P\n\025additiona" + + "l_extensions\030\002 \003(\0132,.google.cloud.securi" + + "ty.privateca.v1.ObjectIdB\003\340A\001\"\252\001\n\031KnownC" + + "ertificateExtension\022+\n\'KNOWN_CERTIFICATE" + + "_EXTENSION_UNSPECIFIED\020\000\022\022\n\016BASE_KEY_USA" + + "GE\020\001\022\026\n\022EXTENDED_KEY_USAGE\020\002\022\016\n\nCA_OPTIO" + + "NS\020\003\022\016\n\nPOLICY_IDS\020\004\022\024\n\020AIA_OCSP_SERVERS" + + "\020\005*\207\002\n\020RevocationReason\022!\n\035REVOCATION_RE" + + "ASON_UNSPECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$" + + "\n CERTIFICATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023" + + "AFFILIATION_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n" + + "\026CESSATION_OF_OPERATION\020\005\022\024\n\020CERTIFICATE" + + "_HOLD\020\006\022\027\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTR" + + "IBUTE_AUTHORITY_COMPROMISE\020\010*]\n\022SubjectR" + + "equestMode\022$\n SUBJECT_REQUEST_MODE_UNSPE" + + "CIFIED\020\000\022\013\n\007DEFAULT\020\001\022\024\n\020REFLECTED_SPIFF" + + "E\020\002B\206\002\n&com.google.cloud.security.privat" + + "eca.v1B\027PrivateCaResourcesProtoP\001ZKgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "ecurity/privateca/v1;privateca\370\001\001\252\002\"Goog" + + "le.Cloud.Security.PrivateCA.V1\312\002\"Google\\" + + "Cloud\\Security\\PrivateCA\\V1\352\002&Google::Cl" + + "oud::Security::PrivateCA::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.type.ExprProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor, + new java.lang.String[] { "Name", "Type", "Config", "Lifetime", "KeySpec", "SubordinateConfig", "Tier", "State", "PemCaCertificates", "CaCertificateDescriptions", "GcsBucket", "AccessUrls", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Labels", }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor, + new java.lang.String[] { "CaCertificateAccessUrl", "CrlAccessUrls", }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor, + new java.lang.String[] { "CloudKmsKeyVersion", "Algorithm", "KeyVersion", }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor, + new java.lang.String[] { "Name", "Tier", "IssuancePolicy", "PublishingOptions", "Labels", }); + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor, + new java.lang.String[] { "PublishCaCert", "PublishCrl", }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor, + new java.lang.String[] { "AllowedKeyTypes", "MaximumLifetime", "AllowedIssuanceModes", "BaselineValues", "IdentityConstraints", "PassthroughExtensions", }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor, + new java.lang.String[] { "Rsa", "EllipticCurve", "KeyType", }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor, + new java.lang.String[] { "MinModulusSize", "MaxModulusSize", }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor, + new java.lang.String[] { "SignatureAlgorithm", }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor, + new java.lang.String[] { "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", }); + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor, + new java.lang.String[] { "Name", "SequenceNumber", "RevokedCertificates", "PemCrl", "AccessUrl", "State", "CreateTime", "UpdateTime", "RevisionId", "Labels", }); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor, + new java.lang.String[] { "Certificate", "HexSerialNumber", "RevocationReason", }); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor, + new java.lang.String[] { "Name", "PemCsr", "Config", "IssuerCertificateAuthority", "Lifetime", "CertificateTemplate", "SubjectMode", "RevocationDetails", "PemCertificate", "CertificateDescription", "PemCertificateChain", "CreateTime", "UpdateTime", "Labels", "CertificateConfig", }); + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor = + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor, + new java.lang.String[] { "RevocationState", "RevocationTime", }); + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor, + new java.lang.String[] { "Name", "PredefinedValues", "IdentityConstraints", "PassthroughExtensions", "Description", "CreateTime", "UpdateTime", "Labels", }); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor, + new java.lang.String[] { "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", }); + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor, + new java.lang.String[] { "IsCa", "MaxIssuerPathLength", "IsCa", "MaxIssuerPathLength", }); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor, + new java.lang.String[] { "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", }); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor = + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor, + new java.lang.String[] { "PemCertificates", }); + internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor, + new java.lang.String[] { "Key", "Format", }); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor, + new java.lang.String[] { "SubjectConfig", "X509Config", "PublicKey", }); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor, + new java.lang.String[] { "Subject", "SubjectAltName", }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor, + new java.lang.String[] { "SubjectDescription", "X509Description", "PublicKey", "SubjectKeyId", "AuthorityKeyId", "CrlDistributionPoints", "AiaIssuingCertificateUrls", "CertFingerprint", }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor, + new java.lang.String[] { "Subject", "SubjectAltName", "HexSerialNumber", "Lifetime", "NotBeforeTime", "NotAfterTime", }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor, + new java.lang.String[] { "KeyId", }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor, + new java.lang.String[] { "Sha256Hash", }); + internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor, + new java.lang.String[] { "ObjectIdPath", }); + internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor, + new java.lang.String[] { "ObjectId", "Critical", "Value", }); + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor, + new java.lang.String[] { "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", }); + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor, + new java.lang.String[] { "DigitalSignature", "ContentCommitment", "KeyEncipherment", "DataEncipherment", "KeyAgreement", "CertSign", "CrlSign", "EncipherOnly", "DecipherOnly", }); + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor, + new java.lang.String[] { "ServerAuth", "ClientAuth", "CodeSigning", "EmailProtection", "TimeStamping", "OcspSigning", }); + internal_static_google_cloud_security_privateca_v1_Subject_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Subject_descriptor, + new java.lang.String[] { "CommonName", "CountryCode", "Organization", "OrganizationalUnit", "Locality", "Province", "StreetAddress", "PostalCode", }); + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor, + new java.lang.String[] { "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", }); + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor, + new java.lang.String[] { "CelExpression", "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough", "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough", }); + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor, + new java.lang.String[] { "KnownExtensions", "AdditionalExtensions", }); + 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.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java index b859e49a..54bc6980 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [PublicKey][google.cloud.security.privateca.v1.PublicKey] describes a public key.
  * 
* * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.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() { key_ = com.google.protobuf.ByteString.EMPTY; format_ = 0; @@ -44,15 +26,16 @@ 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; } - private PublicKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,25 +54,24 @@ private PublicKey( case 0: done = true; break; - case 10: - { - key_ = input.readBytes(); - break; - } - case 16: - { - int rawValue = input.readEnum(); + case 10: { - format_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + key_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,31 +79,27 @@ private PublicKey( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.PublicKey.class, - com.google.cloud.security.privateca.v1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1.PublicKey.class, com.google.cloud.security.privateca.v1.PublicKey.Builder.class); } /** - * - * *
    * Types of public keys formats that are supported. Currently, only `PEM`
    * format is supported.
@@ -129,10 +107,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1.PublicKey.KeyFormat}
    */
-  public enum KeyFormat implements com.google.protobuf.ProtocolMessageEnum {
+  public enum KeyFormat
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default unspecified value.
      * 
@@ -141,8 +118,6 @@ public enum KeyFormat implements com.google.protobuf.ProtocolMessageEnum { */ KEY_FORMAT_UNSPECIFIED(0), /** - * - * *
      * The key is PEM-encoded as defined in [RFC
      * 7468](https://tools.ietf.org/html/rfc7468). It can be any of the
@@ -166,8 +141,6 @@ public enum KeyFormat implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default unspecified value.
      * 
@@ -176,8 +149,6 @@ public enum KeyFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KEY_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The key is PEM-encoded as defined in [RFC
      * 7468](https://tools.ietf.org/html/rfc7468). It can be any of the
@@ -198,6 +169,7 @@ public enum KeyFormat implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PEM_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -222,47 +194,48 @@ public static KeyFormat valueOf(int value) {
      */
     public static KeyFormat forNumber(int value) {
       switch (value) {
-        case 0:
-          return KEY_FORMAT_UNSPECIFIED;
-        case 1:
-          return PEM;
-        default:
-          return null;
+        case 0: return KEY_FORMAT_UNSPECIFIED;
+        case 1: return PEM;
+        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<
+        KeyFormat> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public KeyFormat findValueByNumber(int number) {
+              return KeyFormat.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public KeyFormat findValueByNumber(int number) {
-            return KeyFormat.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.security.privateca.v1.PublicKey.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final KeyFormat[] VALUES = values();
 
-    public static KeyFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static KeyFormat 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;
@@ -282,15 +255,12 @@ private KeyFormat(int value) {
   public static final int KEY_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString key_;
   /**
-   *
-   *
    * 
    * Required. A public key. The padding and encoding
    * must match with the `KeyFormat` value specified for the `format` field.
    * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ @java.lang.Override @@ -301,47 +271,31 @@ public com.google.protobuf.ByteString getKey() { public static final int FORMAT_FIELD_NUMBER = 2; private int format_; /** - * - * *
    * Required. The format of the public key.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
    * Required. The format of the public key.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The format. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat() { + @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = - com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); - return result == null - ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); + return result == null ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,13 +307,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 (!key_.isEmpty()) { output.writeBytes(1, key_); } - if (format_ - != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED - .getNumber()) { + if (format_ != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, format_); } unknownFields.writeTo(output); @@ -372,12 +325,12 @@ public int getSerializedSize() { size = 0; if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); } - if (format_ - != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_); + if (format_ != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, format_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -387,15 +340,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.security.privateca.v1.PublicKey)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.PublicKey other = - (com.google.cloud.security.privateca.v1.PublicKey) obj; + com.google.cloud.security.privateca.v1.PublicKey other = (com.google.cloud.security.privateca.v1.PublicKey) obj; - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; if (format_ != other.format_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -417,127 +370,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.PublicKey parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.PublicKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.PublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.PublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.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.security.privateca.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.security.privateca.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.security.privateca.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; } /** - * - * *
    * A [PublicKey][google.cloud.security.privateca.v1.PublicKey] describes a public key.
    * 
* * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.v1.PublicKey) com.google.cloud.security.privateca.v1.PublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.PublicKey.class, - com.google.cloud.security.privateca.v1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1.PublicKey.class, com.google.cloud.security.privateca.v1.PublicKey.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.PublicKey.newBuilder() @@ -545,15 +489,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; } @java.lang.Override @@ -586,8 +531,7 @@ public com.google.cloud.security.privateca.v1.PublicKey build() { @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey buildPartial() { - com.google.cloud.security.privateca.v1.PublicKey result = - new com.google.cloud.security.privateca.v1.PublicKey(this); + com.google.cloud.security.privateca.v1.PublicKey result = new com.google.cloud.security.privateca.v1.PublicKey(this); result.key_ = key_; result.format_ = format_; onBuilt(); @@ -598,39 +542,38 @@ public com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey) { - return mergeFrom((com.google.cloud.security.privateca.v1.PublicKey) other); + return mergeFrom((com.google.cloud.security.privateca.v1.PublicKey)other); } else { super.mergeFrom(other); return this; @@ -638,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.PublicKey other) { - if (other == com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } @@ -677,15 +619,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. A public key. The padding and encoding
      * must match with the `KeyFormat` value specified for the `format` field.
      * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ @java.lang.Override @@ -693,41 +632,35 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** - * - * *
      * Required. A public key. The padding and encoding
      * must match with the `KeyFormat` value specified for the `format` field.
      * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
      * Required. A public key. The padding and encoding
      * must match with the `KeyFormat` value specified for the `format` field.
      * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; @@ -735,75 +668,51 @@ public Builder clearKey() { private int format_ = 0; /** - * - * *
      * Required. The format of the public key.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * Required. The format of the public key.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @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; } /** - * - * *
      * Required. The format of the public key.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The format. */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = - com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); - return result == null - ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); + return result == null ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED : result; } /** - * - * *
      * Required. The format of the public key.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The format to set. * @return This builder for chaining. */ @@ -811,33 +720,28 @@ public Builder setFormat(com.google.cloud.security.privateca.v1.PublicKey.KeyFor if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The format of the public key.
      * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 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); } @@ -847,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.PublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.PublicKey) private static final com.google.cloud.security.privateca.v1.PublicKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.PublicKey(); } @@ -861,16 +765,16 @@ public static com.google.cloud.security.privateca.v1.PublicKey getDefaultInstanc 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 { - return new PublicKey(input, extensionRegistry); - } - }; + 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 { + return new PublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,4 +789,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.PublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java similarity index 50% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java index d15b35b3..3b275cbe 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java @@ -1,67 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface PublicKeyOrBuilder - extends +public interface PublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.PublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A public key. The padding and encoding
    * must match with the `KeyFormat` value specified for the `format` field.
    * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ com.google.protobuf.ByteString getKey(); /** - * - * *
    * Required. The format of the public key.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
    * Required. The format of the public key.
    * 
* - * - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The format. */ com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat(); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java similarity index 78% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java index 58e49550..b8a1e309 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * A [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1.Certificate] has been revoked,
  * and the reason for revocation. These correspond to standard revocation
@@ -31,10 +14,9 @@
  *
  * Protobuf enum {@code google.cloud.security.privateca.v1.RevocationReason}
  */
-public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum {
+public enum RevocationReason
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -44,8 +26,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   REVOCATION_REASON_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1.Certificate] may have leaked.
    * 
@@ -54,8 +34,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ KEY_COMPROMISE(1), /** - * - * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -65,8 +43,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   CERTIFICATE_AUTHORITY_COMPROMISE(2),
   /**
-   *
-   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1.Certificate] have changed.
    * 
@@ -75,8 +51,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ AFFILIATION_CHANGED(3), /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] has been superseded.
    * 
@@ -85,8 +59,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ SUPERSEDED(4), /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -96,8 +68,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   CESSATION_OF_OPERATION(5),
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -107,8 +77,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   CERTIFICATE_HOLD(6),
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -118,8 +86,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   PRIVILEGE_WITHDRAWN(7),
   /**
-   *
-   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * may have been compromised.
@@ -132,8 +98,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
   ;
 
   /**
-   *
-   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -143,8 +107,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int REVOCATION_REASON_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1.Certificate] may have leaked.
    * 
@@ -153,8 +115,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int KEY_COMPROMISE_VALUE = 1; /** - * - * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -164,8 +124,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int CERTIFICATE_AUTHORITY_COMPROMISE_VALUE = 2;
   /**
-   *
-   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1.Certificate] have changed.
    * 
@@ -174,8 +132,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int AFFILIATION_CHANGED_VALUE = 3; /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] has been superseded.
    * 
@@ -184,8 +140,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int SUPERSEDED_VALUE = 4; /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -195,8 +149,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int CESSATION_OF_OPERATION_VALUE = 5;
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -206,8 +158,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int CERTIFICATE_HOLD_VALUE = 6;
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -217,8 +167,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int PRIVILEGE_WITHDRAWN_VALUE = 7;
   /**
-   *
-   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * may have been compromised.
@@ -228,6 +176,7 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int ATTRIBUTE_AUTHORITY_COMPROMISE_VALUE = 8;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -252,63 +201,55 @@ public static RevocationReason valueOf(int value) {
    */
   public static RevocationReason forNumber(int value) {
     switch (value) {
-      case 0:
-        return REVOCATION_REASON_UNSPECIFIED;
-      case 1:
-        return KEY_COMPROMISE;
-      case 2:
-        return CERTIFICATE_AUTHORITY_COMPROMISE;
-      case 3:
-        return AFFILIATION_CHANGED;
-      case 4:
-        return SUPERSEDED;
-      case 5:
-        return CESSATION_OF_OPERATION;
-      case 6:
-        return CERTIFICATE_HOLD;
-      case 7:
-        return PRIVILEGE_WITHDRAWN;
-      case 8:
-        return ATTRIBUTE_AUTHORITY_COMPROMISE;
-      default:
-        return null;
+      case 0: return REVOCATION_REASON_UNSPECIFIED;
+      case 1: return KEY_COMPROMISE;
+      case 2: return CERTIFICATE_AUTHORITY_COMPROMISE;
+      case 3: return AFFILIATION_CHANGED;
+      case 4: return SUPERSEDED;
+      case 5: return CESSATION_OF_OPERATION;
+      case 6: return CERTIFICATE_HOLD;
+      case 7: return PRIVILEGE_WITHDRAWN;
+      case 8: return ATTRIBUTE_AUTHORITY_COMPROMISE;
+      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<
+      RevocationReason> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public RevocationReason findValueByNumber(int number) {
+            return RevocationReason.forNumber(number);
+          }
+        };
 
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public RevocationReason findValueByNumber(int number) {
-          return RevocationReason.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor()
-        .getEnumTypes()
-        .get(0);
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final RevocationReason[] VALUES = values();
 
-  public static RevocationReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static RevocationReason valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -324,3 +265,4 @@ private RevocationReason(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.RevocationReason)
 }
+
diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
similarity index 70%
rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
index 3edecf60..6e8f1cb8 100644
--- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.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/security/privateca/v1/service.proto
 
 package com.google.cloud.security.privateca.v1;
 
 /**
- *
- *
  * 
  * Request message for
  * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.RevokeCertificateRequest}
  */
-public final class RevokeCertificateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RevokeCertificateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.RevokeCertificateRequest)
     RevokeCertificateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RevokeCertificateRequest.newBuilder() to construct.
   private RevokeCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RevokeCertificateRequest() {
     name_ = "";
     reason_ = 0;
@@ -46,15 +28,16 @@ private RevokeCertificateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RevokeCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RevokeCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,34 +56,31 @@ private RevokeCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              reason_ = rawValue;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reason_ = rawValue;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,43 +88,36 @@ private RevokeCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class,
-            com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 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 @@ -153,33 +126,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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 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 { @@ -190,50 +161,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REASON_FIELD_NUMBER = 2; private int reason_; /** - * - * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reason. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1.RevocationReason getReason() { + @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = - com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); - return result == null - ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); + return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; } public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -249,7 +203,6 @@ public com.google.cloud.security.privateca.v1.RevocationReason getReason() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -258,15 +211,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -282,15 +234,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -299,7 +252,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,13 +263,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 (reason_ - != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED - .getNumber()) { + if (reason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { @@ -335,10 +286,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (reason_ - != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reason_); + if (reason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -351,17 +301,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.RevokeCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.RevokeCertificateRequest other = - (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) obj; + com.google.cloud.security.privateca.v1.RevokeCertificateRequest other = (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (reason_ != other.reason_) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,104 +336,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest 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.security.privateca.v1.RevokeCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.RevokeCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate].
@@ -490,23 +433,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.RevokeCertificateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.RevokeCertificateRequest)
       com.google.cloud.security.privateca.v1.RevokeCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class,
-              com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.RevokeCertificateRequest.newBuilder()
@@ -514,15 +455,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -536,14 +478,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.RevokeCertificateRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.RevokeCertificateRequest getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance();
     }
 
@@ -558,8 +499,7 @@ public com.google.cloud.security.privateca.v1.RevokeCertificateRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.RevokeCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.RevokeCertificateRequest result =
-          new com.google.cloud.security.privateca.v1.RevokeCertificateRequest(this);
+      com.google.cloud.security.privateca.v1.RevokeCertificateRequest result = new com.google.cloud.security.privateca.v1.RevokeCertificateRequest(this);
       result.name_ = name_;
       result.reason_ = reason_;
       result.requestId_ = requestId_;
@@ -571,50 +511,46 @@ public com.google.cloud.security.privateca.v1.RevokeCertificateRequest buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.RevokeCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.RevokeCertificateRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.RevokeCertificateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.RevokeCertificateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.RevokeCertificateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -645,9 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.RevokeCertificateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -659,24 +593,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 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; @@ -685,25 +615,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string name = 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 { @@ -711,73 +638,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * 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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * string 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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * - * 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; @@ -785,75 +699,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int reason_ = 0; /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { - + reason_ = value; onChanged(); return this; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reason. */ @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = - com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); - return result == null - ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); + return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The reason to set. * @return This builder for chaining. */ @@ -861,26 +751,21 @@ public Builder setReason(com.google.cloud.security.privateca.v1.RevocationReason if (value == null) { throw new NullPointerException(); } - + reason_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = 0; onChanged(); return this; @@ -888,8 +773,6 @@ public Builder clearReason() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -905,13 +788,13 @@ public Builder clearReason() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -920,8 +803,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -937,14 +818,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -952,8 +834,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -969,22 +849,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1000,18 +878,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1027,23 +902,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1053,32 +928,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.RevokeCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.RevokeCertificateRequest) - private static final com.google.cloud.security.privateca.v1.RevokeCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.RevokeCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.RevokeCertificateRequest(); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokeCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokeCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokeCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1090,8 +963,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.RevokeCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.RevokeCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java index cfaa1e53..718edeb8 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java @@ -1,93 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface RevokeCertificateRequestOrBuilder - extends +public interface RevokeCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.RevokeCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * - * string name = 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 [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reason. */ com.google.cloud.security.privateca.v1.RevocationReason getReason(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -103,13 +66,10 @@ public interface RevokeCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -125,8 +85,8 @@ public interface RevokeCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java index ab739fa3..4c6cae37 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a distinguished name that, in turn,
  * describes the subject of the certificate.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.Subject}
  */
-public final class Subject extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Subject extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.Subject)
     SubjectOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Subject.newBuilder() to construct.
   private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Subject() {
     commonName_ = "";
     countryCode_ = "";
@@ -51,15 +33,16 @@ private Subject() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Subject();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Subject(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,69 +61,61 @@ private Subject(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              commonName_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            commonName_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              countryCode_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            countryCode_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              organization_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            organization_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              organizationalUnit_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            organizationalUnit_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              locality_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            locality_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              province_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            province_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              streetAddress_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            streetAddress_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              postalCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            postalCode_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -148,39 +123,34 @@ private Subject(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.Subject.class,
-            com.google.cloud.security.privateca.v1.Subject.Builder.class);
+            com.google.cloud.security.privateca.v1.Subject.class, com.google.cloud.security.privateca.v1.Subject.Builder.class);
   }
 
   public static final int COMMON_NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object commonName_;
   /**
-   *
-   *
    * 
    * The "common name" of the subject.
    * 
* * string common_name = 1; - * * @return The commonName. */ @java.lang.Override @@ -189,29 +159,29 @@ public java.lang.String getCommonName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; } } /** - * - * *
    * The "common name" of the subject.
    * 
* * string common_name = 1; - * * @return The bytes for commonName. */ @java.lang.Override - public com.google.protobuf.ByteString getCommonNameBytes() { + public com.google.protobuf.ByteString + getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); commonName_ = b; return b; } else { @@ -222,14 +192,11 @@ public com.google.protobuf.ByteString getCommonNameBytes() { public static final int COUNTRY_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object countryCode_; /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 2; - * * @return The countryCode. */ @java.lang.Override @@ -238,29 +205,29 @@ public java.lang.String getCountryCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } } /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 2; - * * @return The bytes for countryCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCountryCodeBytes() { + public com.google.protobuf.ByteString + getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); countryCode_ = b; return b; } else { @@ -271,14 +238,11 @@ public com.google.protobuf.ByteString getCountryCodeBytes() { public static final int ORGANIZATION_FIELD_NUMBER = 3; private volatile java.lang.Object organization_; /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 3; - * * @return The organization. */ @java.lang.Override @@ -287,29 +251,29 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 3; - * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -320,14 +284,11 @@ public com.google.protobuf.ByteString getOrganizationBytes() { public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER = 4; private volatile java.lang.Object organizationalUnit_; /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; - * * @return The organizationalUnit. */ @java.lang.Override @@ -336,29 +297,29 @@ public java.lang.String getOrganizationalUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; } } /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; - * * @return The bytes for organizationalUnit. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString + getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -369,14 +330,11 @@ public com.google.protobuf.ByteString getOrganizationalUnitBytes() { public static final int LOCALITY_FIELD_NUMBER = 5; private volatile java.lang.Object locality_; /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 5; - * * @return The locality. */ @java.lang.Override @@ -385,29 +343,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 5; - * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -418,14 +376,11 @@ public com.google.protobuf.ByteString getLocalityBytes() { public static final int PROVINCE_FIELD_NUMBER = 6; private volatile java.lang.Object province_; /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; - * * @return The province. */ @java.lang.Override @@ -434,29 +389,29 @@ public java.lang.String getProvince() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } } /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; - * * @return The bytes for province. */ @java.lang.Override - public com.google.protobuf.ByteString getProvinceBytes() { + public com.google.protobuf.ByteString + getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); province_ = b; return b; } else { @@ -467,14 +422,11 @@ public com.google.protobuf.ByteString getProvinceBytes() { public static final int STREET_ADDRESS_FIELD_NUMBER = 7; private volatile java.lang.Object streetAddress_; /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 7; - * * @return The streetAddress. */ @java.lang.Override @@ -483,29 +435,29 @@ public java.lang.String getStreetAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; } } /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 7; - * * @return The bytes for streetAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getStreetAddressBytes() { + public com.google.protobuf.ByteString + getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -516,14 +468,11 @@ public com.google.protobuf.ByteString getStreetAddressBytes() { public static final int POSTAL_CODE_FIELD_NUMBER = 8; private volatile java.lang.Object postalCode_; /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; - * * @return The postalCode. */ @java.lang.Override @@ -532,29 +481,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; - * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -563,7 +512,6 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -575,7 +523,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commonName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, commonName_); } @@ -641,22 +590,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.Subject)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.Subject other = - (com.google.cloud.security.privateca.v1.Subject) obj; - - if (!getCommonName().equals(other.getCommonName())) return false; - if (!getCountryCode().equals(other.getCountryCode())) return false; - if (!getOrganization().equals(other.getOrganization())) return false; - if (!getOrganizationalUnit().equals(other.getOrganizationalUnit())) return false; - if (!getLocality().equals(other.getLocality())) return false; - if (!getProvince().equals(other.getProvince())) return false; - if (!getStreetAddress().equals(other.getStreetAddress())) return false; - if (!getPostalCode().equals(other.getPostalCode())) return false; + com.google.cloud.security.privateca.v1.Subject other = (com.google.cloud.security.privateca.v1.Subject) obj; + + if (!getCommonName() + .equals(other.getCommonName())) return false; + if (!getCountryCode() + .equals(other.getCountryCode())) return false; + if (!getOrganization() + .equals(other.getOrganization())) return false; + if (!getOrganizationalUnit() + .equals(other.getOrganizationalUnit())) return false; + if (!getLocality() + .equals(other.getLocality())) return false; + if (!getProvince() + .equals(other.getProvince())) return false; + if (!getStreetAddress() + .equals(other.getStreetAddress())) return false; + if (!getPostalCode() + .equals(other.getPostalCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -689,104 +645,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.Subject parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.Subject parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom(java.io.InputStream input) 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.security.privateca.v1.Subject parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.Subject parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.Subject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.Subject parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.Subject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a distinguished name that, in turn,
    * describes the subject of the certificate.
@@ -794,23 +743,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.Subject}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.Subject)
       com.google.cloud.security.privateca.v1.SubjectOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.Subject.class,
-              com.google.cloud.security.privateca.v1.Subject.Builder.class);
+              com.google.cloud.security.privateca.v1.Subject.class, com.google.cloud.security.privateca.v1.Subject.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.Subject.newBuilder()
@@ -818,15 +765,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -850,9 +798,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
     }
 
     @java.lang.Override
@@ -871,8 +819,7 @@ public com.google.cloud.security.privateca.v1.Subject build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.Subject buildPartial() {
-      com.google.cloud.security.privateca.v1.Subject result =
-          new com.google.cloud.security.privateca.v1.Subject(this);
+      com.google.cloud.security.privateca.v1.Subject result = new com.google.cloud.security.privateca.v1.Subject(this);
       result.commonName_ = commonName_;
       result.countryCode_ = countryCode_;
       result.organization_ = organization_;
@@ -889,39 +836,38 @@ public com.google.cloud.security.privateca.v1.Subject buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.Subject) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.Subject) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.Subject)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -993,20 +939,18 @@ public Builder mergeFrom(
 
     private java.lang.Object commonName_ = "";
     /**
-     *
-     *
      * 
      * The "common name" of the subject.
      * 
* * string common_name = 1; - * * @return The commonName. */ public java.lang.String getCommonName() { java.lang.Object ref = commonName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; @@ -1015,21 +959,20 @@ public java.lang.String getCommonName() { } } /** - * - * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; - * * @return The bytes for commonName. */ - public com.google.protobuf.ByteString getCommonNameBytes() { + public com.google.protobuf.ByteString + getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); commonName_ = b; return b; } else { @@ -1037,61 +980,54 @@ public com.google.protobuf.ByteString getCommonNameBytes() { } } /** - * - * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; - * * @param value The commonName to set. * @return This builder for chaining. */ - public Builder setCommonName(java.lang.String value) { + public Builder setCommonName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + commonName_ = value; onChanged(); return this; } /** - * - * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; - * * @return This builder for chaining. */ public Builder clearCommonName() { - + commonName_ = getDefaultInstance().getCommonName(); onChanged(); return this; } /** - * - * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; - * * @param value The bytes for commonName to set. * @return This builder for chaining. */ - public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { + public Builder setCommonNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commonName_ = value; onChanged(); return this; @@ -1099,20 +1035,18 @@ public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object countryCode_ = ""; /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 2; - * * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; @@ -1121,21 +1055,20 @@ public java.lang.String getCountryCode() { } } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 2; - * * @return The bytes for countryCode. */ - public com.google.protobuf.ByteString getCountryCodeBytes() { + public com.google.protobuf.ByteString + getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); countryCode_ = b; return b; } else { @@ -1143,61 +1076,54 @@ public com.google.protobuf.ByteString getCountryCodeBytes() { } } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 2; - * * @param value The countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCode(java.lang.String value) { + public Builder setCountryCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + countryCode_ = value; onChanged(); return this; } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 2; - * * @return This builder for chaining. */ public Builder clearCountryCode() { - + countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 2; - * * @param value The bytes for countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCountryCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + countryCode_ = value; onChanged(); return this; @@ -1205,20 +1131,18 @@ public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object organization_ = ""; /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 3; - * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -1227,21 +1151,20 @@ public java.lang.String getOrganization() { } } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 3; - * * @return The bytes for organization. */ - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -1249,61 +1172,54 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 3; - * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization(java.lang.String value) { + public Builder setOrganization( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 3; - * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 3; - * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -1311,20 +1227,18 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { private java.lang.Object organizationalUnit_ = ""; /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; - * * @return The organizationalUnit. */ public java.lang.String getOrganizationalUnit() { java.lang.Object ref = organizationalUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; @@ -1333,21 +1247,20 @@ public java.lang.String getOrganizationalUnit() { } } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; - * * @return The bytes for organizationalUnit. */ - public com.google.protobuf.ByteString getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString + getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -1355,61 +1268,54 @@ public com.google.protobuf.ByteString getOrganizationalUnitBytes() { } } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; - * * @param value The organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnit(java.lang.String value) { + public Builder setOrganizationalUnit( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organizationalUnit_ = value; onChanged(); return this; } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; - * * @return This builder for chaining. */ public Builder clearOrganizationalUnit() { - + organizationalUnit_ = getDefaultInstance().getOrganizationalUnit(); onChanged(); return this; } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; - * * @param value The bytes for organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationalUnitBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organizationalUnit_ = value; onChanged(); return this; @@ -1417,20 +1323,18 @@ public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) private java.lang.Object locality_ = ""; /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 5; - * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1439,21 +1343,20 @@ public java.lang.String getLocality() { } } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 5; - * * @return The bytes for locality. */ - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -1461,61 +1364,54 @@ public com.google.protobuf.ByteString getLocalityBytes() { } } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 5; - * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality(java.lang.String value) { + public Builder setLocality( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locality_ = value; onChanged(); return this; } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 5; - * * @return This builder for chaining. */ public Builder clearLocality() { - + locality_ = getDefaultInstance().getLocality(); onChanged(); return this; } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 5; - * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes(com.google.protobuf.ByteString value) { + public Builder setLocalityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locality_ = value; onChanged(); return this; @@ -1523,20 +1419,18 @@ public Builder setLocalityBytes(com.google.protobuf.ByteString value) { private java.lang.Object province_ = ""; /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; - * * @return The province. */ public java.lang.String getProvince() { java.lang.Object ref = province_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; @@ -1545,21 +1439,20 @@ public java.lang.String getProvince() { } } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; - * * @return The bytes for province. */ - public com.google.protobuf.ByteString getProvinceBytes() { + public com.google.protobuf.ByteString + getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); province_ = b; return b; } else { @@ -1567,61 +1460,54 @@ public com.google.protobuf.ByteString getProvinceBytes() { } } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; - * * @param value The province to set. * @return This builder for chaining. */ - public Builder setProvince(java.lang.String value) { + public Builder setProvince( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + province_ = value; onChanged(); return this; } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; - * * @return This builder for chaining. */ public Builder clearProvince() { - + province_ = getDefaultInstance().getProvince(); onChanged(); return this; } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; - * * @param value The bytes for province to set. * @return This builder for chaining. */ - public Builder setProvinceBytes(com.google.protobuf.ByteString value) { + public Builder setProvinceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + province_ = value; onChanged(); return this; @@ -1629,20 +1515,18 @@ public Builder setProvinceBytes(com.google.protobuf.ByteString value) { private java.lang.Object streetAddress_ = ""; /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 7; - * * @return The streetAddress. */ public java.lang.String getStreetAddress() { java.lang.Object ref = streetAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; @@ -1651,21 +1535,20 @@ public java.lang.String getStreetAddress() { } } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 7; - * * @return The bytes for streetAddress. */ - public com.google.protobuf.ByteString getStreetAddressBytes() { + public com.google.protobuf.ByteString + getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -1673,61 +1556,54 @@ public com.google.protobuf.ByteString getStreetAddressBytes() { } } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 7; - * * @param value The streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddress(java.lang.String value) { + public Builder setStreetAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + streetAddress_ = value; onChanged(); return this; } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 7; - * * @return This builder for chaining. */ public Builder clearStreetAddress() { - + streetAddress_ = getDefaultInstance().getStreetAddress(); onChanged(); return this; } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 7; - * * @param value The bytes for streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) { + public Builder setStreetAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streetAddress_ = value; onChanged(); return this; @@ -1735,20 +1611,18 @@ public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object postalCode_ = ""; /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; - * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1757,21 +1631,20 @@ public java.lang.String getPostalCode() { } } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; - * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1779,68 +1652,61 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; - * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode(java.lang.String value) { + public Builder setPostalCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postalCode_ = value; onChanged(); return this; } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; - * * @return This builder for chaining. */ public Builder clearPostalCode() { - + postalCode_ = getDefaultInstance().getPostalCode(); onChanged(); return this; } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; - * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { + public Builder setPostalCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postalCode_ = 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); } @@ -1850,12 +1716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.Subject) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.Subject) private static final com.google.cloud.security.privateca.v1.Subject DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.Subject(); } @@ -1864,16 +1730,16 @@ public static com.google.cloud.security.privateca.v1.Subject getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subject(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subject(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1888,4 +1754,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.Subject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java similarity index 77% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java index 40132744..bbe45f8b 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] corresponds to a more modern way of listing what
  * the asserted identity is in a certificate (i.e., compared to the "common
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.SubjectAltNames}
  */
-public final class SubjectAltNames extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SubjectAltNames extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.SubjectAltNames)
     SubjectAltNamesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SubjectAltNames.newBuilder() to construct.
   private SubjectAltNames(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SubjectAltNames() {
     dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -49,15 +31,16 @@ private SubjectAltNames() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SubjectAltNames();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SubjectAltNames(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,66 +60,58 @@ private SubjectAltNames(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                dnsNames_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              dnsNames_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              dnsNames_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                uris_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              uris_.add(s);
-              break;
+            dnsNames_.add(s);
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              uris_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              emailAddresses_.add(s);
-              break;
+            uris_.add(s);
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              ipAddresses_.add(s);
-              break;
+            emailAddresses_.add(s);
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                customSans_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              customSans_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.X509Extension.parser(),
-                      extensionRegistry));
-              break;
+            ipAddresses_.add(s);
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              customSans_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            customSans_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.X509Extension.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -144,7 +119,8 @@ private SubjectAltNames(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -165,61 +141,50 @@ private SubjectAltNames(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.SubjectAltNames.class,
-            com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
+            com.google.cloud.security.privateca.v1.SubjectAltNames.class, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
   }
 
   public static final int DNS_NAMES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList dnsNames_;
   /**
-   *
-   *
    * 
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList getDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getDnsNamesList() { return dnsNames_; } /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -227,60 +192,50 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } public static final int URIS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList uris_; /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -288,60 +243,50 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList emailAddresses_; /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList + getEmailAddressesList() { return emailAddresses_; } /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -349,60 +294,50 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString + getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } public static final int IP_ADDRESSES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ipAddresses_; /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -410,26 +345,22 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int CUSTOM_SANS_FIELD_NUMBER = 5; private java.util.List customSans_; /** - * - * *
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -443,8 +374,6 @@ public java.util.List getC
     return customSans_;
   }
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -454,13 +383,11 @@ public java.util.List getC
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCustomSansOrBuilderList() {
     return customSans_;
   }
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -474,8 +401,6 @@ public int getCustomSansCount() {
     return customSans_.size();
   }
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -489,8 +414,6 @@ public com.google.cloud.security.privateca.v1.X509Extension getCustomSans(int in
     return customSans_.get(index);
   }
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -506,7 +429,6 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -518,7 +440,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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 < dnsNames_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsNames_.getRaw(i));
     }
@@ -576,7 +499,8 @@ public int getSerializedSize() {
       size += 1 * getIpAddressesList().size();
     }
     for (int i = 0; i < customSans_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customSans_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, customSans_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -586,19 +510,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.security.privateca.v1.SubjectAltNames)) {
       return super.equals(obj);
     }
-    com.google.cloud.security.privateca.v1.SubjectAltNames other =
-        (com.google.cloud.security.privateca.v1.SubjectAltNames) obj;
-
-    if (!getDnsNamesList().equals(other.getDnsNamesList())) return false;
-    if (!getUrisList().equals(other.getUrisList())) return false;
-    if (!getEmailAddressesList().equals(other.getEmailAddressesList())) return false;
-    if (!getIpAddressesList().equals(other.getIpAddressesList())) return false;
-    if (!getCustomSansList().equals(other.getCustomSansList())) return false;
+    com.google.cloud.security.privateca.v1.SubjectAltNames other = (com.google.cloud.security.privateca.v1.SubjectAltNames) obj;
+
+    if (!getDnsNamesList()
+        .equals(other.getDnsNamesList())) return false;
+    if (!getUrisList()
+        .equals(other.getUrisList())) return false;
+    if (!getEmailAddressesList()
+        .equals(other.getEmailAddressesList())) return false;
+    if (!getIpAddressesList()
+        .equals(other.getIpAddressesList())) return false;
+    if (!getCustomSansList()
+        .equals(other.getCustomSansList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -636,104 +564,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.security.privateca.v1.SubjectAltNames 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.security.privateca.v1.SubjectAltNames parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.security.privateca.v1.SubjectAltNames prototype) {
+  public static Builder newBuilder(com.google.cloud.security.privateca.v1.SubjectAltNames prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] corresponds to a more modern way of listing what
    * the asserted identity is in a certificate (i.e., compared to the "common
@@ -742,23 +662,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.SubjectAltNames}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.SubjectAltNames)
       com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.SubjectAltNames.class,
-              com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
+              com.google.cloud.security.privateca.v1.SubjectAltNames.class, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder()
@@ -766,17 +684,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCustomSansFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -798,9 +716,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
@@ -819,8 +737,7 @@ public com.google.cloud.security.privateca.v1.SubjectAltNames build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.SubjectAltNames buildPartial() {
-      com.google.cloud.security.privateca.v1.SubjectAltNames result =
-          new com.google.cloud.security.privateca.v1.SubjectAltNames(this);
+      com.google.cloud.security.privateca.v1.SubjectAltNames result = new com.google.cloud.security.privateca.v1.SubjectAltNames(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -859,39 +776,38 @@ public com.google.cloud.security.privateca.v1.SubjectAltNames buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.SubjectAltNames) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.SubjectAltNames) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.SubjectAltNames)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -899,8 +815,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubjectAltNames other) {
-      if (other == com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance()) return this;
       if (!other.dnsNames_.isEmpty()) {
         if (dnsNames_.isEmpty()) {
           dnsNames_ = other.dnsNames_;
@@ -959,10 +874,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubjectAltNames
             customSansBuilder_ = null;
             customSans_ = other.customSans_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            customSansBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCustomSansFieldBuilder()
-                    : null;
+            customSansBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCustomSansFieldBuilder() : null;
           } else {
             customSansBuilder_.addAllMessages(other.customSans_);
           }
@@ -987,8 +901,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.SubjectAltNames) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.SubjectAltNames) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -997,55 +910,44 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList dnsNames_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureDnsNamesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = new com.google.protobuf.LazyStringArrayList(dnsNames_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList getDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getDnsNamesList() { return dnsNames_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -1053,90 +955,80 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param index The index to set the value at. * @param value The dnsNames to set. * @return This builder for chaining. */ - public Builder setDnsNames(int index, java.lang.String value) { + public Builder setDnsNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param value The dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNames(java.lang.String value) { + public Builder addDnsNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param values The dnsNames to add. * @return This builder for chaining. */ - public Builder addAllDnsNames(java.lang.Iterable values) { + public Builder addAllDnsNames( + java.lang.Iterable values) { ensureDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dnsNames_); onChanged(); return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @return This builder for chaining. */ public Builder clearDnsNames() { @@ -1146,74 +1038,62 @@ public Builder clearDnsNames() { return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param value The bytes of the dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNamesBytes(com.google.protobuf.ByteString value) { + public Builder addDnsNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList uris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -1221,90 +1101,80 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { + public Builder setUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { + public Builder addUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @return This builder for chaining. */ public Builder clearUris() { @@ -1314,74 +1184,62 @@ public Builder clearUris() { return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList emailAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList emailAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { emailAddresses_ = new com.google.protobuf.LazyStringArrayList(emailAddresses_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList + getEmailAddressesList() { return emailAddresses_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -1389,90 +1247,80 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString + getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param index The index to set the value at. * @param value The emailAddresses to set. * @return This builder for chaining. */ - public Builder setEmailAddresses(int index, java.lang.String value) { + public Builder setEmailAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param value The emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddresses(java.lang.String value) { + public Builder addEmailAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param values The emailAddresses to add. * @return This builder for chaining. */ - public Builder addAllEmailAddresses(java.lang.Iterable values) { + public Builder addAllEmailAddresses( + java.lang.Iterable values) { ensureEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, emailAddresses_); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @return This builder for chaining. */ public Builder clearEmailAddresses() { @@ -1482,74 +1330,62 @@ public Builder clearEmailAddresses() { return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param value The bytes of the emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addEmailAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1557,90 +1393,80 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1650,22 +1476,20 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); @@ -1673,26 +1497,18 @@ public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { } private java.util.List customSans_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomSansIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - customSans_ = - new java.util.ArrayList( - customSans_); + customSans_ = new java.util.ArrayList(customSans_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, - com.google.cloud.security.privateca.v1.X509Extension.Builder, - com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> - customSansBuilder_; + com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> customSansBuilder_; /** - * - * *
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1701,8 +1517,7 @@ private void ensureCustomSansIsMutable() {
      *
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
-    public java.util.List
-        getCustomSansList() {
+    public java.util.List getCustomSansList() {
       if (customSansBuilder_ == null) {
         return java.util.Collections.unmodifiableList(customSans_);
       } else {
@@ -1710,8 +1525,6 @@ private void ensureCustomSansIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1728,8 +1541,6 @@ public int getCustomSansCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1746,8 +1557,6 @@ public com.google.cloud.security.privateca.v1.X509Extension getCustomSans(int in
       }
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1771,8 +1580,6 @@ public Builder setCustomSans(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1793,8 +1600,6 @@ public Builder setCustomSans(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1817,8 +1622,6 @@ public Builder addCustomSans(com.google.cloud.security.privateca.v1.X509Extensio
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1842,8 +1645,6 @@ public Builder addCustomSans(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1864,8 +1665,6 @@ public Builder addCustomSans(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1886,8 +1685,6 @@ public Builder addCustomSans(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1900,7 +1697,8 @@ public Builder addAllCustomSans(
         java.lang.Iterable values) {
       if (customSansBuilder_ == null) {
         ensureCustomSansIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customSans_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, customSans_);
         onChanged();
       } else {
         customSansBuilder_.addAllMessages(values);
@@ -1908,8 +1706,6 @@ public Builder addAllCustomSans(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1929,8 +1725,6 @@ public Builder clearCustomSans() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1950,8 +1744,6 @@ public Builder removeCustomSans(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1965,8 +1757,6 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder getCustomSan
       return getCustomSansFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1978,14 +1768,11 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder getCustomSan
     public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSansOrBuilder(
         int index) {
       if (customSansBuilder_ == null) {
-        return customSans_.get(index);
-      } else {
+        return customSans_.get(index);  } else {
         return customSansBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1994,8 +1781,8 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
      *
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
-    public java.util.List
-        getCustomSansOrBuilderList() {
+    public java.util.List 
+         getCustomSansOrBuilderList() {
       if (customSansBuilder_ != null) {
         return customSansBuilder_.getMessageOrBuilderList();
       } else {
@@ -2003,8 +1790,6 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
       }
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -2014,12 +1799,10 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
     public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSansBuilder() {
-      return getCustomSansFieldBuilder()
-          .addBuilder(com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
+      return getCustomSansFieldBuilder().addBuilder(
+          com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -2030,13 +1813,10 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSan
      */
     public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSansBuilder(
         int index) {
-      return getCustomSansFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
+      return getCustomSansFieldBuilder().addBuilder(
+          index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -2045,30 +1825,27 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSan
      *
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
-    public java.util.List
-        getCustomSansBuilderList() {
+    public java.util.List 
+         getCustomSansBuilderList() {
       return getCustomSansFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.X509Extension,
-            com.google.cloud.security.privateca.v1.X509Extension.Builder,
-            com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>
+        com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> 
         getCustomSansFieldBuilder() {
       if (customSansBuilder_ == null) {
-        customSansBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.security.privateca.v1.X509Extension,
-                com.google.cloud.security.privateca.v1.X509Extension.Builder,
-                com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>(
-                customSans_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
+        customSansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>(
+                customSans_,
+                ((bitField0_ & 0x00000010) != 0),
+                getParentForChildren(),
+                isClean());
         customSans_ = null;
       }
       return customSansBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2078,12 +1855,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.SubjectAltNames)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.SubjectAltNames)
   private static final com.google.cloud.security.privateca.v1.SubjectAltNames DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.SubjectAltNames();
   }
@@ -2092,16 +1869,16 @@ public static com.google.cloud.security.privateca.v1.SubjectAltNames getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SubjectAltNames parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SubjectAltNames(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SubjectAltNames parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SubjectAltNames(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2116,4 +1893,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.security.privateca.v1.SubjectAltNames getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
similarity index 79%
rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
index 41d02a75..89611b40 100644
--- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
@@ -1,235 +1,177 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1/resources.proto
 
 package com.google.cloud.security.privateca.v1;
 
-public interface SubjectAltNamesOrBuilder
-    extends
+public interface SubjectAltNamesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.SubjectAltNames)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return A list containing the dnsNames. */ - java.util.List getDnsNamesList(); + java.util.List + getDnsNamesList(); /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return The count of dnsNames. */ int getDnsNamesCount(); /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the element to return. * @return The dnsNames at the given index. */ java.lang.String getDnsNames(int index); /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - com.google.protobuf.ByteString getDnsNamesBytes(int index); + com.google.protobuf.ByteString + getDnsNamesBytes(int index); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return A list containing the emailAddresses. */ - java.util.List getEmailAddressesList(); + java.util.List + getEmailAddressesList(); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return The count of emailAddresses. */ int getEmailAddressesCount(); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ java.lang.String getEmailAddresses(int index); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - com.google.protobuf.ByteString getEmailAddressesBytes(int index); + com.google.protobuf.ByteString + getEmailAddressesBytes(int index); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); /** - * - * *
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -238,10 +180,9 @@ public interface SubjectAltNamesOrBuilder
    *
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
-  java.util.List getCustomSansList();
+  java.util.List 
+      getCustomSansList();
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -252,8 +193,6 @@ public interface SubjectAltNamesOrBuilder
    */
   com.google.cloud.security.privateca.v1.X509Extension getCustomSans(int index);
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -264,8 +203,6 @@ public interface SubjectAltNamesOrBuilder
    */
   int getCustomSansCount();
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -274,11 +211,9 @@ public interface SubjectAltNamesOrBuilder
    *
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
-  java.util.List
+  java.util.List 
       getCustomSansOrBuilderList();
   /**
-   *
-   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -287,5 +222,6 @@ public interface SubjectAltNamesOrBuilder
    *
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
-  com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSansOrBuilder(int index);
+  com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSansOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
similarity index 70%
rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
index b76f9ad3..4b40ac98 100644
--- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
@@ -1,225 +1,169 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1/resources.proto
 
 package com.google.cloud.security.privateca.v1;
 
-public interface SubjectOrBuilder
-    extends
+public interface SubjectOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.Subject)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The "common name" of the subject.
    * 
* * string common_name = 1; - * * @return The commonName. */ java.lang.String getCommonName(); /** - * - * *
    * The "common name" of the subject.
    * 
* * string common_name = 1; - * * @return The bytes for commonName. */ - com.google.protobuf.ByteString getCommonNameBytes(); + com.google.protobuf.ByteString + getCommonNameBytes(); /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 2; - * * @return The countryCode. */ java.lang.String getCountryCode(); /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 2; - * * @return The bytes for countryCode. */ - com.google.protobuf.ByteString getCountryCodeBytes(); + com.google.protobuf.ByteString + getCountryCodeBytes(); /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 3; - * * @return The organization. */ java.lang.String getOrganization(); /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 3; - * * @return The bytes for organization. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString + getOrganizationBytes(); /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; - * * @return The organizationalUnit. */ java.lang.String getOrganizationalUnit(); /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; - * * @return The bytes for organizationalUnit. */ - com.google.protobuf.ByteString getOrganizationalUnitBytes(); + com.google.protobuf.ByteString + getOrganizationalUnitBytes(); /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 5; - * * @return The locality. */ java.lang.String getLocality(); /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 5; - * * @return The bytes for locality. */ - com.google.protobuf.ByteString getLocalityBytes(); + com.google.protobuf.ByteString + getLocalityBytes(); /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; - * * @return The province. */ java.lang.String getProvince(); /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; - * * @return The bytes for province. */ - com.google.protobuf.ByteString getProvinceBytes(); + com.google.protobuf.ByteString + getProvinceBytes(); /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 7; - * * @return The streetAddress. */ java.lang.String getStreetAddress(); /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 7; - * * @return The bytes for streetAddress. */ - com.google.protobuf.ByteString getStreetAddressBytes(); + com.google.protobuf.ByteString + getStreetAddressBytes(); /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; - * * @return The postalCode. */ java.lang.String getPostalCode(); /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; - * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString getPostalCodeBytes(); + com.google.protobuf.ByteString + getPostalCodeBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java index 96a5b799..25f3c503 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Describes the way in which a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and/or
  * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be resolved.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.security.privateca.v1.SubjectRequestMode}
  */
-public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnum {
+public enum SubjectRequestMode
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not specified.
    * 
@@ -40,8 +22,6 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu */ SUBJECT_REQUEST_MODE_UNSPECIFIED(0), /** - * - * *
    * The default mode used in most cases. Indicates that the certificate's
    * [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are specified in the certificate
@@ -53,8 +33,6 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu
    */
   DEFAULT(1),
   /**
-   *
-   *
    * 
    * A mode reserved for special cases. Indicates that the certificate should
    * have one or more SPIFFE [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set by the service based
@@ -71,8 +49,6 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu
   ;
 
   /**
-   *
-   *
    * 
    * Not specified.
    * 
@@ -81,8 +57,6 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu */ public static final int SUBJECT_REQUEST_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The default mode used in most cases. Indicates that the certificate's
    * [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are specified in the certificate
@@ -94,8 +68,6 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu
    */
   public static final int DEFAULT_VALUE = 1;
   /**
-   *
-   *
    * 
    * A mode reserved for special cases. Indicates that the certificate should
    * have one or more SPIFFE [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set by the service based
@@ -109,6 +81,7 @@ public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnu
    */
   public static final int REFLECTED_SPIFFE_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -133,45 +106,40 @@ public static SubjectRequestMode valueOf(int value) {
    */
   public static SubjectRequestMode forNumber(int value) {
     switch (value) {
-      case 0:
-        return SUBJECT_REQUEST_MODE_UNSPECIFIED;
-      case 1:
-        return DEFAULT;
-      case 2:
-        return REFLECTED_SPIFFE;
-      default:
-        return null;
+      case 0: return SUBJECT_REQUEST_MODE_UNSPECIFIED;
+      case 1: return DEFAULT;
+      case 2: return REFLECTED_SPIFFE;
+      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 SubjectRequestMode findValueByNumber(int number) {
-              return SubjectRequestMode.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      SubjectRequestMode> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public SubjectRequestMode findValueByNumber(int number) {
+            return SubjectRequestMode.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor()
-        .getEnumTypes()
-        .get(1);
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final SubjectRequestMode[] VALUES = values();
@@ -179,7 +147,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static SubjectRequestMode 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;
@@ -195,3 +164,4 @@ private SubjectRequestMode(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.SubjectRequestMode)
 }
+
diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
similarity index 64%
rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
index 4b6bec9b..647a2f5a 100644
--- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.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/security/privateca/v1/resources.proto
 
 package com.google.cloud.security.privateca.v1;
 
 /**
- *
- *
  * 
  * Describes a subordinate CA's issuers. This is either a resource name to a
  * known issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig}
  */
-public final class SubordinateConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SubordinateConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.SubordinateConfig)
     SubordinateConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SubordinateConfig.newBuilder() to construct.
   private SubordinateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SubordinateConfig() {}
+  private SubordinateConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SubordinateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SubordinateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,47 +53,33 @@ private SubordinateConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              subordinateConfigCase_ = 1;
-              subordinateConfig_ = s;
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            subordinateConfigCase_ = 1;
+            subordinateConfig_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder subBuilder = null;
+            if (subordinateConfigCase_ == 2) {
+              subBuilder = ((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_).toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain
-                      .Builder
-                  subBuilder = null;
-              if (subordinateConfigCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.security.privateca.v1.SubordinateConfig
-                                .SubordinateConfigChain)
-                            subordinateConfig_)
-                        .toBuilder();
-              }
-              subordinateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.SubordinateConfig
-                          .SubordinateConfigChain.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.security.privateca.v1.SubordinateConfig
-                            .SubordinateConfigChain)
-                        subordinateConfig_);
-                subordinateConfig_ = subBuilder.buildPartial();
-              }
-              subordinateConfigCase_ = 2;
-              break;
+            subordinateConfig_ =
+                input.readMessage(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_);
+              subordinateConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            subordinateConfigCase_ = 2;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,120 +87,104 @@ private SubordinateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.SubordinateConfig.class,
-            com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1.SubordinateConfig.class, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
   }
 
-  public interface SubordinateConfigChainOrBuilder
-      extends
+  public interface SubordinateConfigChainOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the pemCertificates. */ - java.util.List getPemCertificatesList(); + java.util.List + getPemCertificatesList(); /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of pemCertificates. */ int getPemCertificatesCount(); /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ java.lang.String getPemCertificates(int index); /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - com.google.protobuf.ByteString getPemCertificatesBytes(int index); + com.google.protobuf.ByteString + getPemCertificatesBytes(int index); } /** - * - * *
    * This message describes a subordinate CA's issuer certificate chain. This
    * wrapper exists for compatibility reasons.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} */ - public static final class SubordinateConfigChain extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SubordinateConfigChain extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) SubordinateConfigChainOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubordinateConfigChain.newBuilder() to construct. private SubordinateConfigChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubordinateConfigChain() { pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubordinateConfigChain(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubordinateConfigChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,23 +204,22 @@ private SubordinateConfigChain( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pemCertificates_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pemCertificates_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -274,7 +227,8 @@ private SubordinateConfigChain( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -283,62 +237,50 @@ private SubordinateConfigChain( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.class, - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .Builder.class); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder.class); } public static final int PEM_CERTIFICATES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList pemCertificates_; /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCertificatesList() { return pemCertificates_; } /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -346,23 +288,20 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,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 { for (int i = 0; i < pemCertificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCertificates_.getRaw(i)); } @@ -403,17 +343,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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other = - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) obj; + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other = (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) obj; - if (!getPemCertificatesList().equals(other.getPemCertificatesList())) return false; + if (!getPemCertificatesList() + .equals(other.getPemCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,101 +372,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - 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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain 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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -538,53 +463,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * This message describes a subordinate CA's issuer certificate chain. This
      * wrapper exists for compatibility reasons.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .class, - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .Builder.class); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -594,23 +511,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - build() { - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = - buildPartial(); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain build() { + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -618,11 +531,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - buildPartial() { - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = - new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain( - this); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain buildPartial() { + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -637,56 +547,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) { - return mergeFrom( - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - other); + if (other instanceof com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) { + return mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other) { - if (other - == com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other) { + if (other == com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) return this; if (!other.pemCertificates_.isEmpty()) { if (pemCertificates_.isEmpty()) { pemCertificates_ = other.pemCertificates_; @@ -712,14 +612,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - parsedMessage = null; + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -728,58 +625,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList pemCertificates_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePemCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCertificates_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCertificatesList() { return pemCertificates_.getUnmodifiableView(); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -787,95 +670,80 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The pemCertificates to set. * @return This builder for chaining. */ - public Builder setPemCertificates(int index, java.lang.String value) { + public Builder setPemCertificates( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.set(index, value); onChanged(); return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificates(java.lang.String value) { + public Builder addPemCertificates( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param values The pemCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCertificates(java.lang.Iterable values) { + public Builder addAllPemCertificates( + java.lang.Iterable values) { ensurePemCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pemCertificates_); onChanged(); return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPemCertificates() { @@ -885,29 +753,25 @@ public Builder clearPemCertificates() { return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificatesBytes(com.google.protobuf.ByteString value) { + public Builder addPemCertificatesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -920,34 +784,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - private static final com.google.cloud.security.privateca.v1.SubordinateConfig - .SubordinateConfigChain - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain(); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfigChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfigChain(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfigChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfigChain(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,24 +819,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int subordinateConfigCase_ = 0; private java.lang.Object subordinateConfig_; - public enum SubordinateConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CERTIFICATE_AUTHORITY(1), PEM_ISSUER_CHAIN(2), SUBORDINATECONFIG_NOT_SET(0); private final int value; - private SubordinateConfigCase(int value) { this.value = value; } @@ -992,30 +849,25 @@ public static SubordinateConfigCase valueOf(int value) { public static SubordinateConfigCase forNumber(int value) { switch (value) { - case 1: - return CERTIFICATE_AUTHORITY; - case 2: - return PEM_ISSUER_CHAIN; - case 0: - return SUBORDINATECONFIG_NOT_SET; - default: - return null; + case 1: return CERTIFICATE_AUTHORITY; + case 2: return PEM_ISSUER_CHAIN; + case 0: return SUBORDINATECONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SubordinateConfigCase getSubordinateConfigCase() { - return SubordinateConfigCase.forNumber(subordinateConfigCase_); + public SubordinateConfigCase + getSubordinateConfigCase() { + return SubordinateConfigCase.forNumber( + subordinateConfigCase_); } public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1; /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1023,18 +875,13 @@ public SubordinateConfigCase getSubordinateConfigCase() {
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1042,10 +889,7 @@ public boolean hasCertificateAuthority() {
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The certificateAuthority. */ public java.lang.String getCertificateAuthority() { @@ -1056,7 +900,8 @@ public java.lang.String getCertificateAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -1065,8 +910,6 @@ public java.lang.String getCertificateAuthority() { } } /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1074,20 +917,19 @@ public java.lang.String getCertificateAuthority() {
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for certificateAuthority. */ - public com.google.protobuf.ByteString getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -1099,17 +941,12 @@ public com.google.protobuf.ByteString getCertificateAuthorityBytes() { public static final int PEM_ISSUER_CHAIN_FIELD_NUMBER = 2; /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -1117,54 +954,38 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - getPemIssuerChain() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder - getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1176,15 +997,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subordinateConfigCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_); + output.writeMessage(2, (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); } unknownFields.writeTo(output); } @@ -1199,11 +1018,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1213,21 +1029,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.security.privateca.v1.SubordinateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.SubordinateConfig other = - (com.google.cloud.security.privateca.v1.SubordinateConfig) obj; + com.google.cloud.security.privateca.v1.SubordinateConfig other = (com.google.cloud.security.privateca.v1.SubordinateConfig) obj; if (!getSubordinateConfigCase().equals(other.getSubordinateConfigCase())) return false; switch (subordinateConfigCase_) { case 1: - if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority() + .equals(other.getCertificateAuthority())) return false; break; case 2: - if (!getPemIssuerChain().equals(other.getPemIssuerChain())) return false; + if (!getPemIssuerChain() + .equals(other.getPemIssuerChain())) return false; break; case 0: default: @@ -1261,104 +1078,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.SubordinateConfig 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.security.privateca.v1.SubordinateConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.SubordinateConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.SubordinateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a subordinate CA's issuers. This is either a resource name to a
    * known issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -1366,23 +1175,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.SubordinateConfig)
       com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.SubordinateConfig.class,
-              com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1.SubordinateConfig.class, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder()
@@ -1390,15 +1197,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1408,9 +1216,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1429,8 +1237,7 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.SubordinateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1.SubordinateConfig result =
-          new com.google.cloud.security.privateca.v1.SubordinateConfig(this);
+      com.google.cloud.security.privateca.v1.SubordinateConfig result = new com.google.cloud.security.privateca.v1.SubordinateConfig(this);
       if (subordinateConfigCase_ == 1) {
         result.subordinateConfig_ = subordinateConfig_;
       }
@@ -1450,39 +1257,38 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.SubordinateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1490,25 +1296,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubordinateConfig other) {
-      if (other == com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance()) return this;
       switch (other.getSubordinateConfigCase()) {
-        case CERTIFICATE_AUTHORITY:
-          {
-            subordinateConfigCase_ = 1;
-            subordinateConfig_ = other.subordinateConfig_;
-            onChanged();
-            break;
-          }
-        case PEM_ISSUER_CHAIN:
-          {
-            mergePemIssuerChain(other.getPemIssuerChain());
-            break;
-          }
-        case SUBORDINATECONFIG_NOT_SET:
-          {
-            break;
-          }
+        case CERTIFICATE_AUTHORITY: {
+          subordinateConfigCase_ = 1;
+          subordinateConfig_ = other.subordinateConfig_;
+          onChanged();
+          break;
+        }
+        case PEM_ISSUER_CHAIN: {
+          mergePemIssuerChain(other.getPemIssuerChain());
+          break;
+        }
+        case SUBORDINATECONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1529,8 +1331,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.SubordinateConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.SubordinateConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1539,12 +1340,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int subordinateConfigCase_ = 0;
     private java.lang.Object subordinateConfig_;
-
-    public SubordinateConfigCase getSubordinateConfigCase() {
-      return SubordinateConfigCase.forNumber(subordinateConfigCase_);
+    public SubordinateConfigCase
+        getSubordinateConfigCase() {
+      return SubordinateConfigCase.forNumber(
+          subordinateConfigCase_);
     }
 
     public Builder clearSubordinateConfig() {
@@ -1554,9 +1355,8 @@ public Builder clearSubordinateConfig() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1564,10 +1364,7 @@ public Builder clearSubordinateConfig() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -1575,8 +1372,6 @@ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1584,10 +1379,7 @@ public boolean hasCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The certificateAuthority. */ @java.lang.Override @@ -1597,7 +1389,8 @@ public java.lang.String getCertificateAuthority() { ref = subordinateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -1608,8 +1401,6 @@ public java.lang.String getCertificateAuthority() { } } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1617,21 +1408,20 @@ public java.lang.String getCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for certificateAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -1641,8 +1431,6 @@ public com.google.protobuf.ByteString getCertificateAuthorityBytes() { } } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1650,25 +1438,21 @@ public com.google.protobuf.ByteString getCertificateAuthorityBytes() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthority(java.lang.String value) { + public Builder setCertificateAuthority( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - subordinateConfigCase_ = 1; + throw new NullPointerException(); + } + subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); return this; } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1676,10 +1460,7 @@ public Builder setCertificateAuthority(java.lang.String value) {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCertificateAuthority() { @@ -1691,8 +1472,6 @@ public Builder clearCertificateAuthority() { return this; } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1700,18 +1479,16 @@ public Builder clearCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); @@ -1719,23 +1496,14 @@ public Builder setCertificateAuthorityBytes(com.google.protobuf.ByteString value } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfig - .SubordinateConfigChainOrBuilder> - pemIssuerChainBuilder_; + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder> pemIssuerChainBuilder_; /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -1743,51 +1511,37 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - getPemIssuerChain() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } else { if (subordinateConfigCase_ == 2) { return pemIssuerChainBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPemIssuerChain( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { + public Builder setPemIssuerChain(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { if (pemIssuerChainBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1801,20 +1555,15 @@ public Builder setPemIssuerChain( return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPemIssuerChain( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder - builderForValue) { + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder builderForValue) { if (pemIssuerChainBuilder_ == null) { subordinateConfig_ = builderForValue.build(); onChanged(); @@ -1825,32 +1574,19 @@ public Builder setPemIssuerChain( return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergePemIssuerChain( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { + public Builder mergePemIssuerChain(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { if (pemIssuerChainBuilder_ == null) { - if (subordinateConfigCase_ == 2 - && subordinateConfig_ - != com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance()) { - subordinateConfig_ = - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .newBuilder( - (com.google.cloud.security.privateca.v1.SubordinateConfig - .SubordinateConfigChain) - subordinateConfig_) - .mergeFrom(value) - .buildPartial(); + if (subordinateConfigCase_ == 2 && + subordinateConfig_ != com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) { + subordinateConfig_ = com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.newBuilder((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_) + .mergeFrom(value).buildPartial(); } else { subordinateConfig_ = value; } @@ -1866,16 +1602,12 @@ public Builder mergePemIssuerChain( return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { @@ -1894,92 +1626,64 @@ public Builder clearPemIssuerChain() { return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder - getPemIssuerChainBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder getPemIssuerChainBuilder() { return getPemIssuerChainFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder - getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { if ((subordinateConfigCase_ == 2) && (pemIssuerChainBuilder_ != null)) { return pemIssuerChainBuilder_.getMessageOrBuilder(); } else { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, - com.google.cloud.security.privateca.v1.SubordinateConfig - .SubordinateConfigChainOrBuilder> + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder> getPemIssuerChainFieldBuilder() { if (pemIssuerChainBuilder_ == null) { if (!(subordinateConfigCase_ == 2)) { - subordinateConfig_ = - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + subordinateConfig_ = com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } - pemIssuerChainBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - .Builder, - com.google.cloud.security.privateca.v1.SubordinateConfig - .SubordinateConfigChainOrBuilder>( - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_, + pemIssuerChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder>( + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_, getParentForChildren(), isClean()); subordinateConfig_ = null; } subordinateConfigCase_ = 2; - onChanged(); - ; + onChanged();; return pemIssuerChainBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1989,12 +1693,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.SubordinateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.SubordinateConfig) private static final com.google.cloud.security.privateca.v1.SubordinateConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.SubordinateConfig(); } @@ -2003,16 +1707,16 @@ public static com.google.cloud.security.privateca.v1.SubordinateConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2027,4 +1731,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.SubordinateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java index bdb43a70..682140ca 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface SubordinateConfigOrBuilder - extends +public interface SubordinateConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.SubordinateConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -33,16 +15,11 @@ public interface SubordinateConfigOrBuilder
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -50,16 +27,11 @@ public interface SubordinateConfigOrBuilder
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The certificateAuthority. */ java.lang.String getCertificateAuthority(); /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -67,60 +39,41 @@ public interface SubordinateConfigOrBuilder
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for certificateAuthority. */ - com.google.protobuf.ByteString getCertificateAuthorityBytes(); + com.google.protobuf.ByteString + getCertificateAuthorityBytes(); /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pemIssuerChain field is set. */ boolean hasPemIssuerChain(); /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pemIssuerChain. */ - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain - getPemIssuerChain(); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain(); /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder - getPemIssuerChainOrBuilder(); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder(); - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigCase - getSubordinateConfigCase(); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigCase getSubordinateConfigCase(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java index 5b738996..d1c3e05e 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority].
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest}
  */
-public final class UndeleteCertificateAuthorityRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeleteCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)
     UndeleteCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeleteCertificateAuthorityRequest.newBuilder() to construct.
-  private UndeleteCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UndeleteCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeleteCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -47,15 +27,16 @@ private UndeleteCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeleteCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UndeleteCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +55,25 @@ private UndeleteCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,43 +81,35 @@ private UndeleteCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -147,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -183,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -200,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -209,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -233,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -292,17 +258,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.security.privateca.v1.UndeleteCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,111 +289,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - 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.security.privateca.v1.UndeleteCertificateAuthorityRequest 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.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority].
@@ -435,41 +387,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -481,22 +430,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -504,10 +450,8 @@ public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -518,52 +462,46 @@ public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityReques
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -587,14 +525,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -606,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -631,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -656,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -727,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -744,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -759,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -776,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -791,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -808,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -839,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -866,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -892,33 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeleteCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeleteCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,8 +832,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java index 62f10b34..0e3bc2ce 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UndeleteCertificateAuthorityRequestOrBuilder - extends +public interface UndeleteCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface UndeleteCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface UndeleteCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java index e9e9ed9d..5a12366f 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UpdateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCaPoolRequest}
  */
-public final class UpdateCaPoolRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCaPoolRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCaPoolRequest)
     UpdateCaPoolRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCaPoolRequest.newBuilder() to construct.
   private UpdateCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCaPoolRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCaPoolRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UpdateCaPoolRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,51 +54,45 @@ private UpdateCaPoolRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
-              if (caPool_ != null) {
-                subBuilder = caPool_.toBuilder();
-              }
-              caPool_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(caPool_);
-                caPool_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
+            if (caPool_ != null) {
+              subBuilder = caPool_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.FieldMask.Builder subBuilder = null;
-              if (updateMask_ != null) {
-                subBuilder = updateMask_.toBuilder();
-              }
-              updateMask_ =
-                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateMask_);
-                updateMask_ = subBuilder.buildPartial();
-              }
-
-              break;
+            caPool_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(caPool_);
+              caPool_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.FieldMask.Builder subBuilder = null;
+            if (updateMask_ != null) {
+              subBuilder = updateMask_.toBuilder();
+            }
+            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateMask_);
+              updateMask_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,41 +100,34 @@ private UpdateCaPoolRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class,
-            com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
   }
 
   public static final int CA_POOL_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.CaPool caPool_;
   /**
-   *
-   *
    * 
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the caPool field is set. */ @java.lang.Override @@ -165,34 +135,23 @@ public boolean hasCaPool() { return caPool_ != null; } /** - * - * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The caPool. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool getCaPool() { - return caPool_ == null - ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() - : caPool_; + return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; } /** - * - * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { @@ -202,15 +161,11 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -218,15 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -234,14 +185,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -251,8 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -268,7 +214,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -277,15 +222,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -301,15 +245,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -318,7 +263,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (caPool_ != null) { output.writeMessage(1, getCaPool()); } @@ -350,10 +295,12 @@ public int getSerializedSize() { size = 0; if (caPool_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCaPool()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCaPool()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -366,23 +313,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.security.privateca.v1.UpdateCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest other = - (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest other = (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) obj; if (hasCaPool() != other.hasCaPool()) return false; if (hasCaPool()) { - if (!getCaPool().equals(other.getCaPool())) return false; + if (!getCaPool() + .equals(other.getCaPool())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -410,104 +359,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest 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.security.privateca.v1.UpdateCaPoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool].
@@ -515,23 +456,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCaPoolRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCaPoolRequest)
       com.google.cloud.security.privateca.v1.UpdateCaPoolRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class,
-              com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.newBuilder()
@@ -539,15 +478,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -569,9 +509,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
@@ -590,8 +530,7 @@ public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCaPoolRequest result =
-          new com.google.cloud.security.privateca.v1.UpdateCaPoolRequest(this);
+      com.google.cloud.security.privateca.v1.UpdateCaPoolRequest result = new com.google.cloud.security.privateca.v1.UpdateCaPoolRequest(this);
       if (caPoolBuilder_ == null) {
         result.caPool_ = caPool_;
       } else {
@@ -611,39 +550,38 @@ public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCaPoolRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -651,8 +589,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.getDefaultInstance()) return this;
       if (other.hasCaPool()) {
         mergeCaPool(other.getCaPool());
       }
@@ -682,8 +619,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -695,58 +631,39 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CaPool caPool_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CaPool,
-            com.google.cloud.security.privateca.v1.CaPool.Builder,
-            com.google.cloud.security.privateca.v1.CaPoolOrBuilder>
-        caPoolBuilder_;
+        com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> caPoolBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the caPool field is set. */ public boolean hasCaPool() { return caPoolBuilder_ != null || caPool_ != null; } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The caPool. */ public com.google.cloud.security.privateca.v1.CaPool getCaPool() { if (caPoolBuilder_ == null) { - return caPool_ == null - ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() - : caPool_; + return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; } else { return caPoolBuilder_.getMessage(); } } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { @@ -762,15 +679,11 @@ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { return this; } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCaPool( com.google.cloud.security.privateca.v1.CaPool.Builder builderForValue) { @@ -784,23 +697,17 @@ public Builder setCaPool( return this; } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { if (caPool_ != null) { caPool_ = - com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_).mergeFrom(value).buildPartial(); } else { caPool_ = value; } @@ -812,15 +719,11 @@ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) return this; } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCaPool() { if (caPoolBuilder_ == null) { @@ -834,64 +737,48 @@ public Builder clearCaPool() { return this; } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolBuilder() { - + onChanged(); return getCaPoolFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { if (caPoolBuilder_ != null) { return caPoolBuilder_.getMessageOrBuilder(); } else { - return caPool_ == null - ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() - : caPool_; + return caPool_ == null ? + com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; } } /** - * - * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> getCaPoolFieldBuilder() { if (caPoolBuilder_ == null) { - caPoolBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, - com.google.cloud.security.privateca.v1.CaPool.Builder, - com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( - getCaPool(), getParentForChildren(), isClean()); + caPoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( + getCaPool(), + getParentForChildren(), + isClean()); caPool_ = null; } return caPoolBuilder_; @@ -899,55 +786,39 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder 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. A 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. A 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. A 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) { @@ -963,16 +834,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -983,20 +852,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1008,14 +874,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1029,61 +892,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1091,8 +941,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1108,13 +956,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1123,8 +971,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1140,14 +986,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1155,8 +1002,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1172,22 +1017,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1203,18 +1046,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1230,23 +1070,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1256,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCaPoolRequest) private static final com.google.cloud.security.privateca.v1.UpdateCaPoolRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCaPoolRequest(); } @@ -1270,16 +1110,16 @@ public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1294,4 +1134,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java index 73ce5c79..ed0c9bbd 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java @@ -1,110 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCaPoolRequestOrBuilder - extends +public interface UpdateCaPoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCaPoolRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the caPool field is set. */ boolean hasCaPool(); /** - * - * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The caPool. */ com.google.cloud.security.privateca.v1.CaPool getCaPool(); /** - * - * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -120,13 +77,10 @@ public interface UpdateCaPoolRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -142,8 +96,8 @@ public interface UpdateCaPoolRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java index 4c7f9c13..2730ad3d 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest}
  */
-public final class UpdateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)
     UpdateCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCertificateAuthorityRequest.newBuilder() to construct.
-  private UpdateCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCertificateAuthorityRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UpdateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,52 +54,45 @@ private UpdateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
-              if (certificateAuthority_ != null) {
-                subBuilder = certificateAuthority_.toBuilder();
-              }
-              certificateAuthority_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateAuthority.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateAuthority_);
-                certificateAuthority_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
+            if (certificateAuthority_ != null) {
+              subBuilder = certificateAuthority_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.FieldMask.Builder subBuilder = null;
-              if (updateMask_ != null) {
-                subBuilder = updateMask_.toBuilder();
-              }
-              updateMask_ =
-                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateMask_);
-                updateMask_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateAuthority_);
+              certificateAuthority_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.FieldMask.Builder subBuilder = null;
+            if (updateMask_ != null) {
+              subBuilder = updateMask_.toBuilder();
+            }
+            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateMask_);
+              updateMask_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,41 +100,34 @@ private UpdateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_;
   /**
-   *
-   *
    * 
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -167,53 +135,37 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -221,15 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -237,14 +185,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -254,8 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -271,7 +214,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -280,15 +222,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -304,15 +245,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -321,7 +263,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificateAuthority_ != null) { output.writeMessage(1, getCertificateAuthority()); } @@ -353,11 +295,12 @@ public int getSerializedSize() { size = 0; if (certificateAuthority_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateAuthority()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -370,24 +313,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.security.privateca.v1.UpdateCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) obj; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority() + .equals(other.getCertificateAuthority())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,105 +359,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest 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.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest - 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.security.privateca.v1.UpdateCertificateAuthorityRequest 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.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -521,41 +456,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -577,22 +509,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -601,8 +530,7 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(this);
       if (certificateAuthorityBuilder_ == null) {
         result.certificateAuthority_ = certificateAuthority_;
       } else {
@@ -622,52 +550,46 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (other.hasCertificateAuthority()) {
         mergeCertificateAuthority(other.getCertificateAuthority());
       }
@@ -697,9 +619,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -711,61 +631,41 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateAuthority,
-            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder,
-            com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>
-        certificateAuthorityBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateAuthority( - com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,15 +679,11 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { @@ -801,25 +697,17 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateAuthority( - com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder( - certificateAuthority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); } else { certificateAuthority_ = value; } @@ -831,15 +719,11 @@ public Builder mergeCertificateAuthority( return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -853,66 +737,48 @@ public Builder clearCertificateAuthority() { return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder - getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? + com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, - com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), getParentForChildren(), isClean()); + certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), + getParentForChildren(), + isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -920,55 +786,39 @@ public Builder clearCertificateAuthority() { 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. A 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. A 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. A 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) { @@ -984,16 +834,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -1004,20 +852,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1029,14 +874,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1050,61 +892,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1112,8 +941,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1129,13 +956,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1144,8 +971,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1161,14 +986,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1176,8 +1002,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1193,22 +1017,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1224,18 +1046,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1251,23 +1070,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1277,33 +1096,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1315,8 +1131,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java index 0828ce24..4860da35 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java @@ -1,111 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateAuthorityRequestOrBuilder - extends +public interface UpdateCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority(); /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -121,13 +77,10 @@ public interface UpdateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,8 +96,8 @@ public interface UpdateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java index a512836a..17cfcfc4 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRequest} */ -public final class UpdateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCertificateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateRequest) UpdateCertificateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCertificateRequest.newBuilder() to construct. private UpdateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCertificateRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,45 @@ private UpdateCertificateRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.security.privateca.v1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + certificate_ = input.readMessage(com.google.cloud.security.privateca.v1.Certificate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,41 +99,34 @@ private UpdateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.Certificate certificate_; /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ @java.lang.Override @@ -165,34 +134,23 @@ public boolean hasCertificate() { return certificate_ != null; } /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate getCertificate() { - return certificate_ == null - ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; } /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { @@ -202,15 +160,11 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -218,15 +172,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -234,14 +184,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -251,8 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -268,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -277,15 +221,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -301,15 +244,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -318,7 +262,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificate_ != null) { output.writeMessage(1, getCertificate()); } @@ -350,10 +294,12 @@ public int getSerializedSize() { size = 0; if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificate()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -366,23 +312,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.security.privateca.v1.UpdateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateRequest other = - (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) obj; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate().equals(other.getCertificate())) return false; + if (!getCertificate() + .equals(other.getCertificate())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -410,127 +358,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest 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.security.privateca.v1.UpdateCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateRequest) com.google.cloud.security.privateca.v1.UpdateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateRequest.newBuilder() @@ -538,15 +476,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -568,14 +507,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateRequest getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance(); } @@ -590,8 +528,7 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.UpdateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1.UpdateCertificateRequest result = - new com.google.cloud.security.privateca.v1.UpdateCertificateRequest(this); + com.google.cloud.security.privateca.v1.UpdateCertificateRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateRequest(this); if (certificateBuilder_ == null) { result.certificate_ = certificate_; } else { @@ -611,50 +548,46 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest other) { - if (other - == com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateRequest other) { + if (other == com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance()) return this; if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } @@ -684,9 +617,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -698,58 +629,39 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder> - certificateBuilder_; + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> certificateBuilder_; /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ public com.google.cloud.security.privateca.v1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null - ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { @@ -765,15 +677,11 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate( com.google.cloud.security.privateca.v1.Certificate.Builder builderForValue) { @@ -787,23 +695,17 @@ public Builder setCertificate( return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); } else { certificate_ = value; } @@ -815,15 +717,11 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certifica return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -837,64 +735,48 @@ public Builder clearCertificate() { return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null - ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? + com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; } } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, - com.google.cloud.security.privateca.v1.Certificate.Builder, - com.google.cloud.security.privateca.v1.CertificateOrBuilder>( - getCertificate(), getParentForChildren(), isClean()); + certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder>( + getCertificate(), + getParentForChildren(), + isClean()); certificate_ = null; } return certificateBuilder_; @@ -902,55 +784,39 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat 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. A 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. A 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. A 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) { @@ -966,16 +832,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -986,20 +850,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1011,14 +872,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1032,61 +890,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1094,8 +939,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1111,13 +954,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1126,8 +969,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1143,14 +984,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1158,8 +1000,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1175,22 +1015,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1206,18 +1044,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1233,23 +1068,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1259,32 +1094,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.UpdateCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1296,8 +1129,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java index 343ccc99..c65735d1 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java @@ -1,110 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateRequestOrBuilder - extends +public interface UpdateCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ boolean hasCertificate(); /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ com.google.cloud.security.privateca.v1.Certificate getCertificate(); /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -120,13 +77,10 @@ public interface UpdateCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -142,8 +96,8 @@ public interface UpdateCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java index 9ee21c40..5566870b 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList].
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest}
  */
-public final class UpdateCertificateRevocationListRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCertificateRevocationListRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)
     UpdateCertificateRevocationListRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCertificateRevocationListRequest.newBuilder() to construct.
-  private UpdateCertificateRevocationListRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCertificateRevocationListRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCertificateRevocationListRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UpdateCertificateRevocationListRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,53 +54,45 @@ private UpdateCertificateRevocationListRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder subBuilder =
-                  null;
-              if (certificateRevocationList_ != null) {
-                subBuilder = certificateRevocationList_.toBuilder();
-              }
-              certificateRevocationList_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateRevocationList_);
-                certificateRevocationList_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder subBuilder = null;
+            if (certificateRevocationList_ != null) {
+              subBuilder = certificateRevocationList_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.FieldMask.Builder subBuilder = null;
-              if (updateMask_ != null) {
-                subBuilder = updateMask_.toBuilder();
-              }
-              updateMask_ =
-                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateMask_);
-                updateMask_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateRevocationList_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateRevocationList_);
+              certificateRevocationList_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.FieldMask.Builder subBuilder = null;
+            if (updateMask_ != null) {
+              subBuilder = updateMask_.toBuilder();
+            }
+            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateMask_);
+              updateMask_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -127,43 +100,34 @@ private UpdateCertificateRevocationListRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class,
-            com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder.class);
   }
 
   public static final int CERTIFICATE_REVOCATION_LIST_FIELD_NUMBER = 1;
-  private com.google.cloud.security.privateca.v1.CertificateRevocationList
-      certificateRevocationList_;
+  private com.google.cloud.security.privateca.v1.CertificateRevocationList certificateRevocationList_;
   /**
-   *
-   *
    * 
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateRevocationList field is set. */ @java.lang.Override @@ -171,54 +135,37 @@ public boolean hasCertificateRevocationList() { return certificateRevocationList_ != null; } /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateRevocationList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList - getCertificateRevocationList() { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() - : certificateRevocationList_; + public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList() { + return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; } /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { return getCertificateRevocationList(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -226,15 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -242,14 +185,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -259,8 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -276,7 +214,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -285,15 +222,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -309,15 +245,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -326,7 +263,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificateRevocationList_ != null) { output.writeMessage(1, getCertificateRevocationList()); } @@ -358,12 +295,12 @@ public int getSerializedSize() { size = 0; if (certificateRevocationList_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getCertificateRevocationList()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateRevocationList()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -376,25 +313,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.security.privateca.v1.UpdateCertificateRevocationListRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other = - (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) obj; if (hasCertificateRevocationList() != other.hasCertificateRevocationList()) return false; if (hasCertificateRevocationList()) { - if (!getCertificateRevocationList().equals(other.getCertificateRevocationList())) - return false; + if (!getCertificateRevocationList() + .equals(other.getCertificateRevocationList())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -421,111 +358,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - 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.security.privateca.v1.UpdateCertificateRevocationListRequest 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.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList].
@@ -533,41 +456,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)
       com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class,
-              com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -589,22 +509,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest build() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -612,10 +529,8 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result =
-          new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(this);
+    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest buildPartial() {
+      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(this);
       if (certificateRevocationListBuilder_ == null) {
         result.certificateRevocationList_ = certificateRevocationList_;
       } else {
@@ -635,53 +550,46 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof
-          com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.getDefaultInstance()) return this;
       if (other.hasCertificateRevocationList()) {
         mergeCertificateRevocationList(other.getCertificateRevocationList());
       }
@@ -707,14 +615,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -724,65 +629,43 @@ public Builder mergeFrom(
       return this;
     }
 
-    private com.google.cloud.security.privateca.v1.CertificateRevocationList
-        certificateRevocationList_;
+    private com.google.cloud.security.privateca.v1.CertificateRevocationList certificateRevocationList_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateRevocationList,
-            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder,
-            com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>
-        certificateRevocationListBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> certificateRevocationListBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateRevocationList field is set. */ public boolean hasCertificateRevocationList() { return certificateRevocationListBuilder_ != null || certificateRevocationList_ != null; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateRevocationList. */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList - getCertificateRevocationList() { + public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() - : certificateRevocationList_; + return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; } else { return certificateRevocationListBuilder_.getMessage(); } } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateRevocationList( - com.google.cloud.security.privateca.v1.CertificateRevocationList value) { + public Builder setCertificateRevocationList(com.google.cloud.security.privateca.v1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -796,15 +679,11 @@ public Builder setCertificateRevocationList( return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateRevocationList( com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { @@ -818,25 +697,17 @@ public Builder setCertificateRevocationList( return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateRevocationList( - com.google.cloud.security.privateca.v1.CertificateRevocationList value) { + public Builder mergeCertificateRevocationList(com.google.cloud.security.privateca.v1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (certificateRevocationList_ != null) { certificateRevocationList_ = - com.google.cloud.security.privateca.v1.CertificateRevocationList.newBuilder( - certificateRevocationList_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateRevocationList.newBuilder(certificateRevocationList_).mergeFrom(value).buildPartial(); } else { certificateRevocationList_ = value; } @@ -848,15 +719,11 @@ public Builder mergeCertificateRevocationList( return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { @@ -870,66 +737,48 @@ public Builder clearCertificateRevocationList() { return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder - getCertificateRevocationListBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder getCertificateRevocationListBuilder() { + onChanged(); return getCertificateRevocationListFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { if (certificateRevocationListBuilder_ != null) { return certificateRevocationListBuilder_.getMessageOrBuilder(); } else { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() - : certificateRevocationList_; + return certificateRevocationList_ == null ? + com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; } } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, - com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> getCertificateRevocationListFieldBuilder() { if (certificateRevocationListBuilder_ == null) { - certificateRevocationListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, - com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( - getCertificateRevocationList(), getParentForChildren(), isClean()); + certificateRevocationListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( + getCertificateRevocationList(), + getParentForChildren(), + isClean()); certificateRevocationList_ = null; } return certificateRevocationListBuilder_; @@ -937,55 +786,39 @@ public Builder clearCertificateRevocationList() { 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. A 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. A 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. A 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) { @@ -1001,16 +834,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -1021,20 +852,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1046,14 +874,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1067,61 +892,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1129,8 +941,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1146,13 +956,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1161,8 +971,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1178,14 +986,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1193,8 +1002,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1210,22 +1017,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1241,18 +1046,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1268,23 +1070,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1294,33 +1096,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1332,8 +1131,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java index 992b7c1e..bc562a08 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java @@ -1,111 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateRevocationListRequestOrBuilder - extends +public interface UpdateCertificateRevocationListRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateRevocationList field is set. */ boolean hasCertificateRevocationList(); /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateRevocationList. */ com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList(); /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -121,13 +77,10 @@ public interface UpdateCertificateRevocationListRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,8 +96,8 @@ public interface UpdateCertificateRevocationListRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java index 500bc071..266c3c7a 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.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/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate].
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest}
  */
-public final class UpdateCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCertificateTemplateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)
     UpdateCertificateTemplateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCertificateTemplateRequest.newBuilder() to construct.
-  private UpdateCertificateTemplateRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCertificateTemplateRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UpdateCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,52 +54,45 @@ private UpdateCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
-              if (certificateTemplate_ != null) {
-                subBuilder = certificateTemplate_.toBuilder();
-              }
-              certificateTemplate_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.CertificateTemplate.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateTemplate_);
-                certificateTemplate_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
+            if (certificateTemplate_ != null) {
+              subBuilder = certificateTemplate_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.FieldMask.Builder subBuilder = null;
-              if (updateMask_ != null) {
-                subBuilder = updateMask_.toBuilder();
-              }
-              updateMask_ =
-                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateMask_);
-                updateMask_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateTemplate_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateTemplate.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateTemplate_);
+              certificateTemplate_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.FieldMask.Builder subBuilder = null;
+            if (updateMask_ != null) {
+              subBuilder = updateMask_.toBuilder();
+            }
+            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateMask_);
+              updateMask_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,41 +100,34 @@ private UpdateCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class,
-            com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder.class);
   }
 
   public static final int CERTIFICATE_TEMPLATE_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_;
   /**
-   *
-   *
    * 
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateTemplate field is set. */ @java.lang.Override @@ -167,53 +135,37 @@ public boolean hasCertificateTemplate() { return certificateTemplate_ != null; } /** - * - * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateTemplate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { - return certificateTemplate_ == null - ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() - : certificateTemplate_; + return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; } /** - * - * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { return getCertificateTemplate(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -221,15 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -237,14 +185,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -254,8 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -271,7 +214,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -280,15 +222,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -304,15 +245,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -321,7 +263,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificateTemplate_ != null) { output.writeMessage(1, getCertificateTemplate()); } @@ -353,10 +295,12 @@ public int getSerializedSize() { size = 0; if (certificateTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateTemplate()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -369,23 +313,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.security.privateca.v1.UpdateCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other = - (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) obj; if (hasCertificateTemplate() != other.hasCertificateTemplate()) return false; if (hasCertificateTemplate()) { - if (!getCertificateTemplate().equals(other.getCertificateTemplate())) return false; + if (!getCertificateTemplate() + .equals(other.getCertificateTemplate())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,105 +359,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest 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.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest - 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.security.privateca.v1.UpdateCertificateTemplateRequest 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.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate].
@@ -519,41 +456,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class,
-              com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -575,22 +509,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest build() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -599,8 +530,7 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result =
-          new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(this);
       if (certificateTemplateBuilder_ == null) {
         result.certificateTemplate_ = certificateTemplate_;
       } else {
@@ -620,52 +550,46 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest b
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.getDefaultInstance()) return this;
       if (other.hasCertificateTemplate()) {
         mergeCertificateTemplate(other.getCertificateTemplate());
       }
@@ -695,9 +619,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -709,61 +631,41 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.CertificateTemplate,
-            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder,
-            com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>
-        certificateTemplateBuilder_;
+        com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> certificateTemplateBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateTemplate field is set. */ public boolean hasCertificateTemplate() { return certificateTemplateBuilder_ != null || certificateTemplate_ != null; } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateTemplate. */ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { if (certificateTemplateBuilder_ == null) { - return certificateTemplate_ == null - ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() - : certificateTemplate_; + return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; } else { return certificateTemplateBuilder_.getMessage(); } } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateTemplate( - com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder setCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,15 +679,11 @@ public Builder setCertificateTemplate( return this; } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateTemplate( com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { @@ -799,25 +697,17 @@ public Builder setCertificateTemplate( return this; } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateTemplate( - com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder mergeCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (certificateTemplate_ != null) { certificateTemplate_ = - com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder( - certificateTemplate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder(certificateTemplate_).mergeFrom(value).buildPartial(); } else { certificateTemplate_ = value; } @@ -829,15 +719,11 @@ public Builder mergeCertificateTemplate( return this; } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateTemplate() { if (certificateTemplateBuilder_ == null) { @@ -851,66 +737,48 @@ public Builder clearCertificateTemplate() { return this; } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder - getCertificateTemplateBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder getCertificateTemplateBuilder() { + onChanged(); return getCertificateTemplateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { if (certificateTemplateBuilder_ != null) { return certificateTemplateBuilder_.getMessageOrBuilder(); } else { - return certificateTemplate_ == null - ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() - : certificateTemplate_; + return certificateTemplate_ == null ? + com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; } } /** - * - * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplateFieldBuilder() { if (certificateTemplateBuilder_ == null) { - certificateTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, - com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( - getCertificateTemplate(), getParentForChildren(), isClean()); + certificateTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( + getCertificateTemplate(), + getParentForChildren(), + isClean()); certificateTemplate_ = null; } return certificateTemplateBuilder_; @@ -918,55 +786,39 @@ public Builder clearCertificateTemplate() { 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. A 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. A 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. A 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) { @@ -982,16 +834,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -1002,20 +852,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1027,14 +874,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1048,61 +892,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1110,8 +941,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1127,13 +956,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1142,8 +971,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1159,14 +986,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1174,8 +1002,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1191,22 +1017,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1222,18 +1046,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1249,23 +1070,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1275,33 +1096,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1313,8 +1131,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java index 972c9e7a..079428f5 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java @@ -1,111 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateTemplateRequestOrBuilder - extends +public interface UpdateCertificateTemplateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateTemplate field is set. */ boolean hasCertificateTemplate(); /** - * - * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateTemplate. */ com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate(); /** - * - * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder - getCertificateTemplateOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -121,13 +77,10 @@ public interface UpdateCertificateTemplateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,8 +96,8 @@ public interface UpdateCertificateTemplateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java index 7a40a5c4..aed6610a 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * An [X509Extension][google.cloud.security.privateca.v1.X509Extension] specifies an X.509 extension, which may be used in
  * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.X509Extension}
  */
-public final class X509Extension extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class X509Extension extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.X509Extension)
     X509ExtensionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use X509Extension.newBuilder() to construct.
   private X509Extension(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private X509Extension() {
     value_ = 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 X509Extension();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private X509Extension(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,39 +54,36 @@ private X509Extension(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.ObjectId.Builder subBuilder = null;
-              if (objectId_ != null) {
-                subBuilder = objectId_.toBuilder();
-              }
-              objectId_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(objectId_);
-                objectId_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.ObjectId.Builder subBuilder = null;
+            if (objectId_ != null) {
+              subBuilder = objectId_.toBuilder();
             }
-          case 16:
-            {
-              critical_ = input.readBool();
-              break;
+            objectId_ = input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(objectId_);
+              objectId_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              value_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 16: {
+
+            critical_ = input.readBool();
+            break;
+          }
+          case 26: {
+
+            value_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,41 +91,34 @@ private X509Extension(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.X509Extension.class,
-            com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
+            com.google.cloud.security.privateca.v1.X509Extension.class, com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
   }
 
   public static final int OBJECT_ID_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.ObjectId objectId_;
   /**
-   *
-   *
    * 
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the objectId field is set. */ @java.lang.Override @@ -153,34 +126,23 @@ public boolean hasObjectId() { return objectId_ != null; } /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The objectId. */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getObjectId() { - return objectId_ == null - ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() - : objectId_; + return objectId_ == null ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() : objectId_; } /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder() { @@ -190,8 +152,6 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBui public static final int CRITICAL_FIELD_NUMBER = 2; private boolean critical_; /** - * - * *
    * Optional. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -199,7 +159,6 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBui
    * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The critical. */ @java.lang.Override @@ -210,14 +169,11 @@ public boolean getCritical() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** - * - * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -226,7 +182,6 @@ public com.google.protobuf.ByteString getValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (objectId_ != null) { output.writeMessage(1, getObjectId()); } @@ -258,13 +214,16 @@ public int getSerializedSize() { size = 0; if (objectId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObjectId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObjectId()); } if (critical_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, critical_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, critical_); } if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -274,20 +233,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.security.privateca.v1.X509Extension)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.X509Extension other = - (com.google.cloud.security.privateca.v1.X509Extension) obj; + com.google.cloud.security.privateca.v1.X509Extension other = (com.google.cloud.security.privateca.v1.X509Extension) obj; if (hasObjectId() != other.hasObjectId()) return false; if (hasObjectId()) { - if (!getObjectId().equals(other.getObjectId())) return false; + if (!getObjectId() + .equals(other.getObjectId())) return false; } - if (getCritical() != other.getCritical()) return false; - if (!getValue().equals(other.getValue())) return false; + if (getCritical() + != other.getCritical()) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -304,7 +265,8 @@ public int hashCode() { hash = (53 * hash) + getObjectId().hashCode(); } hash = (37 * hash) + CRITICAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCritical()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCritical()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -313,103 +275,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.X509Extension 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.security.privateca.v1.X509Extension parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Extension parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.X509Extension parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Extension parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.X509Extension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [X509Extension][google.cloud.security.privateca.v1.X509Extension] specifies an X.509 extension, which may be used in
    * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -417,23 +372,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.X509Extension}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.X509Extension)
       com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.X509Extension.class,
-              com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
+              com.google.cloud.security.privateca.v1.X509Extension.class, com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.X509Extension.newBuilder()
@@ -441,15 +394,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -467,9 +421,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
     }
 
     @java.lang.Override
@@ -488,8 +442,7 @@ public com.google.cloud.security.privateca.v1.X509Extension build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.X509Extension buildPartial() {
-      com.google.cloud.security.privateca.v1.X509Extension result =
-          new com.google.cloud.security.privateca.v1.X509Extension(this);
+      com.google.cloud.security.privateca.v1.X509Extension result = new com.google.cloud.security.privateca.v1.X509Extension(this);
       if (objectIdBuilder_ == null) {
         result.objectId_ = objectId_;
       } else {
@@ -505,39 +458,38 @@ public com.google.cloud.security.privateca.v1.X509Extension buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.X509Extension) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.X509Extension) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.X509Extension)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Extension other) {
-      if (other == com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()) return this;
       if (other.hasObjectId()) {
         mergeObjectId(other.getObjectId());
       }
@@ -575,8 +526,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.X509Extension) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.X509Extension) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -588,58 +538,39 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.ObjectId objectId_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.ObjectId,
-            com.google.cloud.security.privateca.v1.ObjectId.Builder,
-            com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>
-        objectIdBuilder_;
+        com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> objectIdBuilder_;
     /**
-     *
-     *
      * 
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the objectId field is set. */ public boolean hasObjectId() { return objectIdBuilder_ != null || objectId_ != null; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The objectId. */ public com.google.cloud.security.privateca.v1.ObjectId getObjectId() { if (objectIdBuilder_ == null) { - return objectId_ == null - ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() - : objectId_; + return objectId_ == null ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() : objectId_; } else { return objectIdBuilder_.getMessage(); } } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setObjectId(com.google.cloud.security.privateca.v1.ObjectId value) { if (objectIdBuilder_ == null) { @@ -655,15 +586,11 @@ public Builder setObjectId(com.google.cloud.security.privateca.v1.ObjectId value return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setObjectId( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -677,23 +604,17 @@ public Builder setObjectId( return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeObjectId(com.google.cloud.security.privateca.v1.ObjectId value) { if (objectIdBuilder_ == null) { if (objectId_ != null) { objectId_ = - com.google.cloud.security.privateca.v1.ObjectId.newBuilder(objectId_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.ObjectId.newBuilder(objectId_).mergeFrom(value).buildPartial(); } else { objectId_ = value; } @@ -705,15 +626,11 @@ public Builder mergeObjectId(com.google.cloud.security.privateca.v1.ObjectId val return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearObjectId() { if (objectIdBuilder_ == null) { @@ -727,73 +644,55 @@ public Builder clearObjectId() { return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.ObjectId.Builder getObjectIdBuilder() { - + onChanged(); return getObjectIdFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder() { if (objectIdBuilder_ != null) { return objectIdBuilder_.getMessageOrBuilder(); } else { - return objectId_ == null - ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() - : objectId_; + return objectId_ == null ? + com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() : objectId_; } } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getObjectIdFieldBuilder() { if (objectIdBuilder_ == null) { - objectIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( - getObjectId(), getParentForChildren(), isClean()); + objectIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + getObjectId(), + getParentForChildren(), + isClean()); objectId_ = null; } return objectIdBuilder_; } - private boolean critical_; + private boolean critical_ ; /** - * - * *
      * Optional. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -801,7 +700,6 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBui
      * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The critical. */ @java.lang.Override @@ -809,8 +707,6 @@ public boolean getCritical() { return critical_; } /** - * - * *
      * Optional. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -818,19 +714,16 @@ public boolean getCritical() {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The critical to set. * @return This builder for chaining. */ public Builder setCritical(boolean value) { - + critical_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -838,11 +731,10 @@ public Builder setCritical(boolean value) {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCritical() { - + critical_ = false; onChanged(); return this; @@ -850,14 +742,11 @@ public Builder clearCritical() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -865,46 +754,40 @@ public com.google.protobuf.ByteString getValue() { return value_; } /** - * - * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -914,12 +797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.X509Extension) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.X509Extension) private static final com.google.cloud.security.privateca.v1.X509Extension DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.X509Extension(); } @@ -928,16 +811,16 @@ public static com.google.cloud.security.privateca.v1.X509Extension getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509Extension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509Extension(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509Extension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509Extension(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.X509Extension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java similarity index 56% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java index 2c869385..b0774af2 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java @@ -1,72 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface X509ExtensionOrBuilder - extends +public interface X509ExtensionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.X509Extension) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the objectId field is set. */ boolean hasObjectId(); /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The objectId. */ com.google.cloud.security.privateca.v1.ObjectId getObjectId(); /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder(); /** - * - * *
    * Optional. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -74,20 +42,16 @@ public interface X509ExtensionOrBuilder
    * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The critical. */ boolean getCritical(); /** - * - * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ com.google.protobuf.ByteString getValue(); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java index 291e10cf..b500a6a4 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.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/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** - * - * *
  * An [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an
  * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters}
  */
-public final class X509Parameters extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class X509Parameters extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.X509Parameters)
     X509ParametersOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use X509Parameters.newBuilder() to construct.
   private X509Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private X509Parameters() {
     policyIds_ = java.util.Collections.emptyList();
     aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -47,15 +29,16 @@ private X509Parameters() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new X509Parameters();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private X509Parameters(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,82 +58,66 @@ private X509Parameters(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1.KeyUsage.Builder subBuilder = null;
-              if (keyUsage_ != null) {
-                subBuilder = keyUsage_.toBuilder();
-              }
-              keyUsage_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.KeyUsage.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(keyUsage_);
-                keyUsage_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1.KeyUsage.Builder subBuilder = null;
+            if (keyUsage_ != null) {
+              subBuilder = keyUsage_.toBuilder();
+            }
+            keyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1.KeyUsage.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(keyUsage_);
+              keyUsage_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder subBuilder =
-                  null;
-              if (caOptions_ != null) {
-                subBuilder = caOptions_.toBuilder();
-              }
-              caOptions_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(caOptions_);
-                caOptions_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder subBuilder = null;
+            if (caOptions_ != null) {
+              subBuilder = caOptions_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                policyIds_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              policyIds_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
-              break;
+            caOptions_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(caOptions_);
+              caOptions_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              aiaOcspServers_.add(s);
-              break;
+
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              policyIds_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                additionalExtensions_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              additionalExtensions_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1.X509Extension.parser(),
-                      extensionRegistry));
-              break;
+            policyIds_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            aiaOcspServers_.add(s);
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              additionalExtensions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
+            additionalExtensions_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1.X509Extension.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -158,7 +125,8 @@ private X509Parameters(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         policyIds_ = java.util.Collections.unmodifiableList(policyIds_);
@@ -173,57 +141,45 @@ private X509Parameters(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.X509Parameters.class,
-            com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
+            com.google.cloud.security.privateca.v1.X509Parameters.class, com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
   }
 
-  public interface CaOptionsOrBuilder
-      extends
+  public interface CaOptionsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.X509Parameters.CaOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the isCa field is set. */ boolean hasIsCa(); /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isCa. */ boolean getIsCa(); /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -233,15 +189,11 @@ public interface CaOptionsOrBuilder
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maxIssuerPathLength field is set. */ boolean hasMaxIssuerPathLength(); /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -251,45 +203,42 @@ public interface CaOptionsOrBuilder
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maxIssuerPathLength. */ int getMaxIssuerPathLength(); } /** - * - * *
    * Describes values that are relevant in a CA certificate.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters.CaOptions} */ - public static final class CaOptions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CaOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.X509Parameters.CaOptions) CaOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CaOptions.newBuilder() to construct. private CaOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CaOptions() {} + private CaOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CaOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CaOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -309,25 +258,23 @@ private CaOptions( case 0: done = true; break; - case 8: - { - bitField0_ |= 0x00000001; - isCa_ = input.readBool(); - break; - } - case 16: - { - bitField0_ |= 0x00000002; - maxIssuerPathLength_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + bitField0_ |= 0x00000001; + isCa_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + maxIssuerPathLength_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -335,41 +282,36 @@ private CaOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); } private int bitField0_; public static final int IS_CA_FIELD_NUMBER = 1; private boolean isCa_; /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the isCa field is set. */ @java.lang.Override @@ -377,15 +319,12 @@ public boolean hasIsCa() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isCa. */ @java.lang.Override @@ -396,8 +335,6 @@ public boolean getIsCa() { public static final int MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER = 2; private int maxIssuerPathLength_; /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -407,9 +344,7 @@ public boolean getIsCa() {
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maxIssuerPathLength field is set. */ @java.lang.Override @@ -417,8 +352,6 @@ public boolean hasMaxIssuerPathLength() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -428,9 +361,7 @@ public boolean hasMaxIssuerPathLength() {
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maxIssuerPathLength. */ @java.lang.Override @@ -439,7 +370,6 @@ public int getMaxIssuerPathLength() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,7 +381,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isCa_); } @@ -468,10 +399,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isCa_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, isCa_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxIssuerPathLength_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxIssuerPathLength_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -481,21 +414,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.security.privateca.v1.X509Parameters.CaOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other = - (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) obj; + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other = (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) obj; if (hasIsCa() != other.hasIsCa()) return false; if (hasIsCa()) { - if (getIsCa() != other.getIsCa()) return false; + if (getIsCa() + != other.getIsCa()) return false; } if (hasMaxIssuerPathLength() != other.hasMaxIssuerPathLength()) return false; if (hasMaxIssuerPathLength()) { - if (getMaxIssuerPathLength() != other.getMaxIssuerPathLength()) return false; + if (getMaxIssuerPathLength() + != other.getMaxIssuerPathLength()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -510,7 +444,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasIsCa()) { hash = (37 * hash) + IS_CA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCa()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCa()); } if (hasMaxIssuerPathLength()) { hash = (37 * hash) + MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER; @@ -522,95 +457,87 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions 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.security.privateca.v1.X509Parameters.CaOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions - 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.security.privateca.v1.X509Parameters.CaOptions 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.security.privateca.v1.X509Parameters.CaOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -620,49 +547,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes values that are relevant in a CA certificate.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters.CaOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.X509Parameters.CaOptions) com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder() + // Construct using com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -674,14 +596,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance(); } @@ -696,8 +617,7 @@ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions build() { @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions buildPartial() { - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions result = - new com.google.cloud.security.privateca.v1.X509Parameters.CaOptions(this); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions result = new com.google.cloud.security.privateca.v1.X509Parameters.CaOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -717,52 +637,46 @@ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1.X509Parameters.CaOptions) { - return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) other); + return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters.CaOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other) { - if (other - == com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other) { + if (other == com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance()) return this; if (other.hasIsCa()) { setIsCa(other.getIsCa()); } @@ -788,9 +702,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -799,20 +711,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private boolean isCa_; + private boolean isCa_ ; /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the isCa field is set. */ @java.lang.Override @@ -820,15 +728,12 @@ public boolean hasIsCa() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isCa. */ @java.lang.Override @@ -836,15 +741,12 @@ public boolean getIsCa() { return isCa_; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The isCa to set. * @return This builder for chaining. */ @@ -855,15 +757,12 @@ public Builder setIsCa(boolean value) { return this; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIsCa() { @@ -873,10 +772,8 @@ public Builder clearIsCa() { return this; } - private int maxIssuerPathLength_; + private int maxIssuerPathLength_ ; /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -886,9 +783,7 @@ public Builder clearIsCa() {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maxIssuerPathLength field is set. */ @java.lang.Override @@ -896,8 +791,6 @@ public boolean hasMaxIssuerPathLength() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -907,9 +800,7 @@ public boolean hasMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maxIssuerPathLength. */ @java.lang.Override @@ -917,8 +808,6 @@ public int getMaxIssuerPathLength() { return maxIssuerPathLength_; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -928,9 +817,7 @@ public int getMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The maxIssuerPathLength to set. * @return This builder for chaining. */ @@ -941,8 +828,6 @@ public Builder setMaxIssuerPathLength(int value) { return this; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -952,9 +837,7 @@ public Builder setMaxIssuerPathLength(int value) {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMaxIssuerPathLength() { @@ -963,7 +846,6 @@ public Builder clearMaxIssuerPathLength() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -976,32 +858,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.X509Parameters.CaOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.X509Parameters.CaOptions) - private static final com.google.cloud.security.privateca.v1.X509Parameters.CaOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1.X509Parameters.CaOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.X509Parameters.CaOptions(); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CaOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,25 +893,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.KeyUsage keyUsage_; /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the keyUsage field is set. */ @java.lang.Override @@ -1039,34 +914,23 @@ public boolean hasKeyUsage() { return keyUsage_ != null; } /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The keyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1.KeyUsage getKeyUsage() { - return keyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() - : keyUsage_; + return keyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() : keyUsage_; } /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBuilder() { @@ -1076,17 +940,12 @@ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBui public static final int CA_OPTIONS_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters.CaOptions caOptions_; /** - * - * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the caOptions field is set. */ @java.lang.Override @@ -1094,132 +953,99 @@ public boolean hasCaOptions() { return caOptions_ != null; } /** - * - * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The caOptions. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOptions() { - return caOptions_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() - : caOptions_; + return caOptions_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() : caOptions_; } /** - * - * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder - getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder() { return getCaOptions(); } public static final int POLICY_IDS_FIELD_NUMBER = 3; private java.util.List policyIds_; /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getPolicyIdsList() { return policyIds_; } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getPolicyIdsOrBuilderList() { return policyIds_; } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPolicyIdsCount() { return policyIds_.size(); } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index) { return policyIds_.get(index); } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder( + int index) { return policyIds_.get(index); } public static final int AIA_OCSP_SERVERS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList aiaOcspServers_; /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1227,15 +1053,13 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBu
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList + getAiaOcspServersList() { return aiaOcspServers_; } /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1243,15 +1067,12 @@ public com.google.protobuf.ProtocolStringList getAiaOcspServersList() {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1259,7 +1080,6 @@ public int getAiaOcspServersCount() {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -1267,8 +1087,6 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1276,98 +1094,75 @@ public java.lang.String getAiaOcspServers(int index) {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString + getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 5; - private java.util.List - additionalExtensions_; + private java.util.List additionalExtensions_; /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getAdditionalExtensionsList() { + public java.util.List getAdditionalExtensionsList() { return additionalExtensions_; } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getAdditionalExtensionsOrBuilderList() { return additionalExtensions_; } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAdditionalExtensionsCount() { return additionalExtensions_.size(); } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensions(int index) { return additionalExtensions_.get(index); } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder - getAdditionalExtensionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( + int index) { return additionalExtensions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1379,7 +1174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (keyUsage_ != null) { output.writeMessage(1, getKeyUsage()); } @@ -1405,13 +1201,16 @@ public int getSerializedSize() { size = 0; if (keyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyUsage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKeyUsage()); } if (caOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCaOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCaOptions()); } for (int i = 0; i < policyIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyIds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, policyIds_.get(i)); } { int dataSize = 0; @@ -1422,8 +1221,8 @@ public int getSerializedSize() { size += 1 * getAiaOcspServersList().size(); } for (int i = 0; i < additionalExtensions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, additionalExtensions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, additionalExtensions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1433,25 +1232,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.X509Parameters)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.X509Parameters other = - (com.google.cloud.security.privateca.v1.X509Parameters) obj; + com.google.cloud.security.privateca.v1.X509Parameters other = (com.google.cloud.security.privateca.v1.X509Parameters) obj; if (hasKeyUsage() != other.hasKeyUsage()) return false; if (hasKeyUsage()) { - if (!getKeyUsage().equals(other.getKeyUsage())) return false; + if (!getKeyUsage() + .equals(other.getKeyUsage())) return false; } if (hasCaOptions() != other.hasCaOptions()) return false; if (hasCaOptions()) { - if (!getCaOptions().equals(other.getCaOptions())) return false; - } - if (!getPolicyIdsList().equals(other.getPolicyIdsList())) return false; - if (!getAiaOcspServersList().equals(other.getAiaOcspServersList())) return false; - if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false; + if (!getCaOptions() + .equals(other.getCaOptions())) return false; + } + if (!getPolicyIdsList() + .equals(other.getPolicyIdsList())) return false; + if (!getAiaOcspServersList() + .equals(other.getAiaOcspServersList())) return false; + if (!getAdditionalExtensionsList() + .equals(other.getAdditionalExtensionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1489,104 +1292,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.X509Parameters 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.security.privateca.v1.X509Parameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1.X509Parameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1.X509Parameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1.X509Parameters prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1.X509Parameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an
    * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -1595,23 +1390,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.X509Parameters)
       com.google.cloud.security.privateca.v1.X509ParametersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.X509Parameters.class,
-              com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
+              com.google.cloud.security.privateca.v1.X509Parameters.class, com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.X509Parameters.newBuilder()
@@ -1619,18 +1412,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPolicyIdsFieldBuilder();
         getAdditionalExtensionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1664,9 +1457,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
     }
 
     @java.lang.Override
@@ -1685,8 +1478,7 @@ public com.google.cloud.security.privateca.v1.X509Parameters build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.X509Parameters buildPartial() {
-      com.google.cloud.security.privateca.v1.X509Parameters result =
-          new com.google.cloud.security.privateca.v1.X509Parameters(this);
+      com.google.cloud.security.privateca.v1.X509Parameters result = new com.google.cloud.security.privateca.v1.X509Parameters(this);
       int from_bitField0_ = bitField0_;
       if (keyUsageBuilder_ == null) {
         result.keyUsage_ = keyUsage_;
@@ -1729,39 +1521,38 @@ public com.google.cloud.security.privateca.v1.X509Parameters buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.X509Parameters) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1769,8 +1560,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters other) {
-      if (other == com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance()) return this;
       if (other.hasKeyUsage()) {
         mergeKeyUsage(other.getKeyUsage());
       }
@@ -1795,10 +1585,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters o
             policyIdsBuilder_ = null;
             policyIds_ = other.policyIds_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            policyIdsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPolicyIdsFieldBuilder()
-                    : null;
+            policyIdsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPolicyIdsFieldBuilder() : null;
           } else {
             policyIdsBuilder_.addAllMessages(other.policyIds_);
           }
@@ -1832,10 +1621,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters o
             additionalExtensionsBuilder_ = null;
             additionalExtensions_ = other.additionalExtensions_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            additionalExtensionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAdditionalExtensionsFieldBuilder()
-                    : null;
+            additionalExtensionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAdditionalExtensionsFieldBuilder() : null;
           } else {
             additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
           }
@@ -1860,8 +1648,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1.X509Parameters) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1.X509Parameters) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1870,63 +1657,43 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1.KeyUsage keyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.KeyUsage,
-            com.google.cloud.security.privateca.v1.KeyUsage.Builder,
-            com.google.cloud.security.privateca.v1.KeyUsageOrBuilder>
-        keyUsageBuilder_;
+        com.google.cloud.security.privateca.v1.KeyUsage, com.google.cloud.security.privateca.v1.KeyUsage.Builder, com.google.cloud.security.privateca.v1.KeyUsageOrBuilder> keyUsageBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the keyUsage field is set. */ public boolean hasKeyUsage() { return keyUsageBuilder_ != null || keyUsage_ != null; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The keyUsage. */ public com.google.cloud.security.privateca.v1.KeyUsage getKeyUsage() { if (keyUsageBuilder_ == null) { - return keyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() - : keyUsage_; + return keyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() : keyUsage_; } else { return keyUsageBuilder_.getMessage(); } } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage value) { if (keyUsageBuilder_ == null) { @@ -1942,15 +1709,11 @@ public Builder setKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage value return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKeyUsage( com.google.cloud.security.privateca.v1.KeyUsage.Builder builderForValue) { @@ -1964,23 +1727,17 @@ public Builder setKeyUsage( return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage value) { if (keyUsageBuilder_ == null) { if (keyUsage_ != null) { keyUsage_ = - com.google.cloud.security.privateca.v1.KeyUsage.newBuilder(keyUsage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.KeyUsage.newBuilder(keyUsage_).mergeFrom(value).buildPartial(); } else { keyUsage_ = value; } @@ -1992,15 +1749,11 @@ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage val return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearKeyUsage() { if (keyUsageBuilder_ == null) { @@ -2014,64 +1767,48 @@ public Builder clearKeyUsage() { return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.KeyUsage.Builder getKeyUsageBuilder() { - + onChanged(); return getKeyUsageFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBuilder() { if (keyUsageBuilder_ != null) { return keyUsageBuilder_.getMessageOrBuilder(); } else { - return keyUsage_ == null - ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() - : keyUsage_; + return keyUsage_ == null ? + com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() : keyUsage_; } } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage, - com.google.cloud.security.privateca.v1.KeyUsage.Builder, - com.google.cloud.security.privateca.v1.KeyUsageOrBuilder> + com.google.cloud.security.privateca.v1.KeyUsage, com.google.cloud.security.privateca.v1.KeyUsage.Builder, com.google.cloud.security.privateca.v1.KeyUsageOrBuilder> getKeyUsageFieldBuilder() { if (keyUsageBuilder_ == null) { - keyUsageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage, - com.google.cloud.security.privateca.v1.KeyUsage.Builder, - com.google.cloud.security.privateca.v1.KeyUsageOrBuilder>( - getKeyUsage(), getParentForChildren(), isClean()); + keyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.KeyUsage, com.google.cloud.security.privateca.v1.KeyUsage.Builder, com.google.cloud.security.privateca.v1.KeyUsageOrBuilder>( + getKeyUsage(), + getParentForChildren(), + isClean()); keyUsage_ = null; } return keyUsageBuilder_; @@ -2079,64 +1816,44 @@ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBui private com.google.cloud.security.privateca.v1.X509Parameters.CaOptions caOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> - caOptionsBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> caOptionsBuilder_; /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the caOptions field is set. */ public boolean hasCaOptions() { return caOptionsBuilder_ != null || caOptions_ != null; } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The caOptions. */ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOptions() { if (caOptionsBuilder_ == null) { - return caOptions_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() - : caOptions_; + return caOptions_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() : caOptions_; } else { return caOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCaOptions( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { + public Builder setCaOptions(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { if (caOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2150,16 +1867,12 @@ public Builder setCaOptions( return this; } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCaOptions( com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder builderForValue) { @@ -2173,25 +1886,18 @@ public Builder setCaOptions( return this; } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCaOptions( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { + public Builder mergeCaOptions(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { if (caOptionsBuilder_ == null) { if (caOptions_ != null) { caOptions_ = - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder(caOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder(caOptions_).mergeFrom(value).buildPartial(); } else { caOptions_ = value; } @@ -2203,16 +1909,12 @@ public Builder mergeCaOptions( return this; } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCaOptions() { if (caOptionsBuilder_ == null) { @@ -2226,102 +1928,75 @@ public Builder clearCaOptions() { return this; } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder - getCaOptionsBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder getCaOptionsBuilder() { + onChanged(); return getCaOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder - getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder() { if (caOptionsBuilder_ != null) { return caOptionsBuilder_.getMessageOrBuilder(); } else { - return caOptions_ == null - ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() - : caOptions_; + return caOptions_ == null ? + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() : caOptions_; } } /** - * - * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> getCaOptionsFieldBuilder() { if (caOptionsBuilder_ == null) { - caOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, - com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder>( - getCaOptions(), getParentForChildren(), isClean()); + caOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder>( + getCaOptions(), + getParentForChildren(), + isClean()); caOptions_ = null; } return caOptionsBuilder_; } private java.util.List policyIds_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePolicyIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policyIds_ = - new java.util.ArrayList(policyIds_); + policyIds_ = new java.util.ArrayList(policyIds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> - policyIdsBuilder_; + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> policyIdsBuilder_; /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getPolicyIdsList() { if (policyIdsBuilder_ == null) { @@ -2331,16 +2006,12 @@ public java.util.List getPolicy } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPolicyIdsCount() { if (policyIdsBuilder_ == null) { @@ -2350,16 +2021,12 @@ public int getPolicyIdsCount() { } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2369,18 +2036,15 @@ public com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index) { } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPolicyIds(int index, com.google.cloud.security.privateca.v1.ObjectId value) { + public Builder setPolicyIds( + int index, com.google.cloud.security.privateca.v1.ObjectId value) { if (policyIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2394,16 +2058,12 @@ public Builder setPolicyIds(int index, com.google.cloud.security.privateca.v1.Ob return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPolicyIds( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -2417,16 +2077,12 @@ public Builder setPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds(com.google.cloud.security.privateca.v1.ObjectId value) { if (policyIdsBuilder_ == null) { @@ -2442,18 +2098,15 @@ public Builder addPolicyIds(com.google.cloud.security.privateca.v1.ObjectId valu return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addPolicyIds(int index, com.google.cloud.security.privateca.v1.ObjectId value) { + public Builder addPolicyIds( + int index, com.google.cloud.security.privateca.v1.ObjectId value) { if (policyIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2467,16 +2120,12 @@ public Builder addPolicyIds(int index, com.google.cloud.security.privateca.v1.Ob return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -2490,16 +2139,12 @@ public Builder addPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -2513,22 +2158,19 @@ public Builder addPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPolicyIds( java.lang.Iterable values) { if (policyIdsBuilder_ == null) { ensurePolicyIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyIds_); onChanged(); } else { policyIdsBuilder_.addAllMessages(values); @@ -2536,16 +2178,12 @@ public Builder addAllPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPolicyIds() { if (policyIdsBuilder_ == null) { @@ -2558,16 +2196,12 @@ public Builder clearPolicyIds() { return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removePolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2580,54 +2214,42 @@ public Builder removePolicyIds(int index) { return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder getPolicyIdsBuilder(int index) { + public com.google.cloud.security.privateca.v1.ObjectId.Builder getPolicyIdsBuilder( + int index) { return getPolicyIdsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder( int index) { if (policyIdsBuilder_ == null) { - return policyIds_.get(index); - } else { + return policyIds_.get(index); } else { return policyIdsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPolicyIdsOrBuilderList() { + public java.util.List + getPolicyIdsOrBuilderList() { if (policyIdsBuilder_ != null) { return policyIdsBuilder_.getMessageOrBuilderList(); } else { @@ -2635,83 +2257,65 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBu } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.ObjectId.Builder addPolicyIdsBuilder() { - return getPolicyIdsFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + return getPolicyIdsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder addPolicyIdsBuilder(int index) { - return getPolicyIdsFieldBuilder() - .addBuilder(index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder addPolicyIdsBuilder( + int index) { + return getPolicyIdsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPolicyIdsBuilderList() { + public java.util.List + getPolicyIdsBuilderList() { return getPolicyIdsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getPolicyIdsFieldBuilder() { if (policyIdsBuilder_ == null) { - policyIdsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, - com.google.cloud.security.privateca.v1.ObjectId.Builder, - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( - policyIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + policyIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + policyIds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); policyIds_ = null; } return policyIdsBuilder_; } - private com.google.protobuf.LazyStringList aiaOcspServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAiaOcspServersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList(aiaOcspServers_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2719,15 +2323,13 @@ private void ensureAiaOcspServersIsMutable() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList + getAiaOcspServersList() { return aiaOcspServers_.getUnmodifiableView(); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2735,15 +2337,12 @@ public com.google.protobuf.ProtocolStringList getAiaOcspServersList() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2751,7 +2350,6 @@ public int getAiaOcspServersCount() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -2759,8 +2357,6 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2768,16 +2364,14 @@ public java.lang.String getAiaOcspServers(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString + getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2785,23 +2379,21 @@ public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The aiaOcspServers to set. * @return This builder for chaining. */ - public Builder setAiaOcspServers(int index, java.lang.String value) { + public Builder setAiaOcspServers( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2809,22 +2401,20 @@ public Builder setAiaOcspServers(int index, java.lang.String value) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServers(java.lang.String value) { + public Builder addAiaOcspServers( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2832,19 +2422,18 @@ public Builder addAiaOcspServers(java.lang.String value) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAllAiaOcspServers(java.lang.Iterable values) { + public Builder addAllAiaOcspServers( + java.lang.Iterable values) { ensureAiaOcspServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaOcspServers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aiaOcspServers_); onChanged(); return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2852,7 +2441,6 @@ public Builder addAllAiaOcspServers(java.lang.Iterable values)
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAiaOcspServers() { @@ -2862,8 +2450,6 @@ public Builder clearAiaOcspServers() { return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2871,52 +2457,41 @@ public Builder clearAiaOcspServers() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServersBytes(com.google.protobuf.ByteString value) { + public Builder addAiaOcspServersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } - private java.util.List - additionalExtensions_ = java.util.Collections.emptyList(); - + private java.util.List additionalExtensions_ = + java.util.Collections.emptyList(); private void ensureAdditionalExtensionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - additionalExtensions_ = - new java.util.ArrayList( - additionalExtensions_); + additionalExtensions_ = new java.util.ArrayList(additionalExtensions_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, - com.google.cloud.security.privateca.v1.X509Extension.Builder, - com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> - additionalExtensionsBuilder_; + com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> additionalExtensionsBuilder_; /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsList() { + public java.util.List getAdditionalExtensionsList() { if (additionalExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalExtensions_); } else { @@ -2924,15 +2499,11 @@ private void ensureAdditionalExtensionsIsMutable() { } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAdditionalExtensionsCount() { if (additionalExtensionsBuilder_ == null) { @@ -2942,15 +2513,11 @@ public int getAdditionalExtensionsCount() { } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -2960,15 +2527,11 @@ public com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensi } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension value) { @@ -2985,15 +2548,11 @@ public Builder setAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension.Builder builderForValue) { @@ -3007,18 +2566,13 @@ public Builder setAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAdditionalExtensions( - com.google.cloud.security.privateca.v1.X509Extension value) { + public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.X509Extension value) { if (additionalExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3032,15 +2586,11 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension value) { @@ -3057,15 +2607,11 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( com.google.cloud.security.privateca.v1.X509Extension.Builder builderForValue) { @@ -3079,15 +2625,11 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension.Builder builderForValue) { @@ -3101,21 +2643,18 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAdditionalExtensions( java.lang.Iterable values) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalExtensions_); onChanged(); } else { additionalExtensionsBuilder_.addAllMessages(values); @@ -3123,15 +2662,11 @@ public Builder addAllAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdditionalExtensions() { if (additionalExtensionsBuilder_ == null) { @@ -3144,15 +2679,11 @@ public Builder clearAdditionalExtensions() { return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -3165,52 +2696,39 @@ public Builder removeAdditionalExtensions(int index) { return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Extension.Builder - getAdditionalExtensionsBuilder(int index) { + public com.google.cloud.security.privateca.v1.X509Extension.Builder getAdditionalExtensionsBuilder( + int index) { return getAdditionalExtensionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder - getAdditionalExtensionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( + int index) { if (additionalExtensionsBuilder_ == null) { - return additionalExtensions_.get(index); - } else { + return additionalExtensions_.get(index); } else { return additionalExtensionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsOrBuilderList() { + public java.util.List + getAdditionalExtensionsOrBuilderList() { if (additionalExtensionsBuilder_ != null) { return additionalExtensionsBuilder_.getMessageOrBuilderList(); } else { @@ -3218,65 +2736,45 @@ public Builder removeAdditionalExtensions(int index) { } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Extension.Builder - addAdditionalExtensionsBuilder() { - return getAdditionalExtensionsFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.X509Extension.Builder addAdditionalExtensionsBuilder() { + return getAdditionalExtensionsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1.X509Extension.Builder - addAdditionalExtensionsBuilder(int index) { - return getAdditionalExtensionsFieldBuilder() - .addBuilder( - index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.X509Extension.Builder addAdditionalExtensionsBuilder( + int index) { + return getAdditionalExtensionsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsBuilderList() { + public java.util.List + getAdditionalExtensionsBuilderList() { return getAdditionalExtensionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, - com.google.cloud.security.privateca.v1.X509Extension.Builder, - com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> + com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> getAdditionalExtensionsFieldBuilder() { if (additionalExtensionsBuilder_ == null) { - additionalExtensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, - com.google.cloud.security.privateca.v1.X509Extension.Builder, - com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>( + additionalExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>( additionalExtensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3285,9 +2783,9 @@ public Builder removeAdditionalExtensions(int index) { } return additionalExtensionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3297,12 +2795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.X509Parameters) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.X509Parameters) private static final com.google.cloud.security.privateca.v1.X509Parameters DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.X509Parameters(); } @@ -3311,16 +2809,16 @@ public static com.google.cloud.security.privateca.v1.X509Parameters getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509Parameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509Parameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509Parameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509Parameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3335,4 +2833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.X509Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java similarity index 61% rename from proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java index 7445acd2..aa7aff03 100644 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java @@ -1,183 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface X509ParametersOrBuilder - extends +public interface X509ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.X509Parameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the keyUsage field is set. */ boolean hasKeyUsage(); /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The keyUsage. */ com.google.cloud.security.privateca.v1.KeyUsage getKeyUsage(); /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBuilder(); /** - * - * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the caOptions field is set. */ boolean hasCaOptions(); /** - * - * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The caOptions. */ com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOptions(); /** - * - * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getPolicyIdsList(); + java.util.List + getPolicyIdsList(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getPolicyIdsCount(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getPolicyIdsOrBuilderList(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(int index); + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder( + int index); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -185,13 +121,11 @@ public interface X509ParametersOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the aiaOcspServers. */ - java.util.List getAiaOcspServersList(); + java.util.List + getAiaOcspServersList(); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -199,13 +133,10 @@ public interface X509ParametersOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of aiaOcspServers. */ int getAiaOcspServersCount(); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -213,14 +144,11 @@ public interface X509ParametersOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ java.lang.String getAiaOcspServers(int index); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -228,72 +156,52 @@ public interface X509ParametersOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - com.google.protobuf.ByteString getAiaOcspServersBytes(int index); + com.google.protobuf.ByteString + getAiaOcspServersBytes(int index); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAdditionalExtensionsList(); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensions(int index); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAdditionalExtensionsCount(); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAdditionalExtensionsOrBuilderList(); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( int index); diff --git a/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto diff --git a/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto similarity index 100% rename from proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto rename to owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java new file mode 100644 index 00000000..b8736aea --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.SubordinateConfig; +import com.google.longrunning.Operation; + +public class AsyncActivateCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncActivateCertificateAuthority(); + } + + public static void asyncActivateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ActivateCertificateAuthorityRequest request = + ActivateCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPemCaCertificate("pemCaCertificate2100567073") + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .activateCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java new file mode 100644 index 00000000..f14b28c3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.SubordinateConfig; + +public class AsyncActivateCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncActivateCertificateAuthorityLRO(); + } + + public static void asyncActivateCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ActivateCertificateAuthorityRequest request = + ActivateCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPemCaCertificate("pemCaCertificate2100567073") + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .activateCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java new file mode 100644 index 00000000..b3c4856b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] +import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.SubordinateConfig; + +public class SyncActivateCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncActivateCertificateAuthority(); + } + + public static void syncActivateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ActivateCertificateAuthorityRequest request = + ActivateCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPemCaCertificate("pemCaCertificate2100567073") + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.activateCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..061a1330 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncActivateCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncActivateCertificateAuthorityCertificateauthorityname(); + } + + public static void syncActivateCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.activateCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java new file mode 100644 index 00000000..c1a97943 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncActivateCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncActivateCertificateAuthorityString(); + } + + public static void syncActivateCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.activateCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..9a2a8eef --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; +import com.google.cloud.security.privateca.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..7b33cb52 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newBuilder() + .setTransportChannelProvider( + CertificateAuthorityServiceSettings.defaultHttpJsonTransportProviderBuilder() + .build()) + .build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..82f01d24 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_create_setendpoint_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; +import com.google.cloud.security.privateca.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java new file mode 100644 index 00000000..4aa44477 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCaPoolRequest; +import com.google.cloud.security.privateca.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateCaPool { + + public static void main(String[] args) throws Exception { + asyncCreateCaPool(); + } + + public static void asyncCreateCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCaPoolRequest request = + CreateCaPoolRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCaPoolId("caPoolId-970668971") + .setCaPool(CaPool.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.createCaPoolCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java new file mode 100644 index 00000000..b577998d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCaPoolRequest; +import com.google.cloud.security.privateca.v1.LocationName; +import com.google.cloud.security.privateca.v1.OperationMetadata; + +public class AsyncCreateCaPoolLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCaPoolLRO(); + } + + public static void asyncCreateCaPoolLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCaPoolRequest request = + CreateCaPoolRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCaPoolId("caPoolId-970668971") + .setCaPool(CaPool.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient.createCaPoolOperationCallable().futureCall(request); + // Do something. + CaPool response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java new file mode 100644 index 00000000..5a4f846d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCaPoolRequest; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncCreateCaPool { + + public static void main(String[] args) throws Exception { + syncCreateCaPool(); + } + + public static void syncCreateCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCaPoolRequest request = + CreateCaPoolRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCaPoolId("caPoolId-970668971") + .setCaPool(CaPool.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CaPool response = certificateAuthorityServiceClient.createCaPoolAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java new file mode 100644 index 00000000..a34bd29c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_locationnamecapoolstring_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncCreateCaPoolLocationnameCapoolString { + + public static void main(String[] args) throws Exception { + syncCreateCaPoolLocationnameCapoolString(); + } + + public static void syncCreateCaPoolLocationnameCapoolString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CaPool caPool = CaPool.newBuilder().build(); + String caPoolId = "caPoolId-970668971"; + CaPool response = + certificateAuthorityServiceClient.createCaPoolAsync(parent, caPool, caPoolId).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_locationnamecapoolstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java new file mode 100644 index 00000000..3df4df4d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_stringcapoolstring_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncCreateCaPoolStringCapoolString { + + public static void main(String[] args) throws Exception { + syncCreateCaPoolStringCapoolString(); + } + + public static void syncCreateCaPoolStringCapoolString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CaPool caPool = CaPool.newBuilder().build(); + String caPoolId = "caPoolId-970668971"; + CaPool response = + certificateAuthorityServiceClient.createCaPoolAsync(parent, caPool, caPoolId).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_stringcapoolstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java new file mode 100644 index 00000000..e9db1658 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCertificateRequest; + +public class AsyncCreateCertificate { + + public static void main(String[] args) throws Exception { + asyncCreateCertificate(); + } + + public static void asyncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateRequest request = + CreateCertificateRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setCertificateId("certificateId-644529902") + .setCertificate(Certificate.newBuilder().build()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .setIssuingCertificateAuthorityId("issuingCertificateAuthorityId-559908707") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.createCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java new file mode 100644 index 00000000..38af66b9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificate_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCertificateRequest; + +public class SyncCreateCertificate { + + public static void main(String[] args) throws Exception { + syncCreateCertificate(); + } + + public static void syncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateRequest request = + CreateCertificateRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setCertificateId("certificateId-644529902") + .setCertificate(Certificate.newBuilder().build()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .setIssuingCertificateAuthorityId("issuingCertificateAuthorityId-559908707") + .build(); + Certificate response = certificateAuthorityServiceClient.createCertificate(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java new file mode 100644 index 00000000..7a0cd3a2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificate_capoolnamecertificatestring_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncCreateCertificateCapoolnameCertificateString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateCapoolnameCertificateString(); + } + + public static void syncCreateCertificateCapoolnameCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + Certificate response = + certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificate_capoolnamecertificatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java new file mode 100644 index 00000000..b31a5c7c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncCreateCertificateStringCertificateString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateStringCertificateString(); + } + + public static void syncCreateCertificateStringCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + Certificate response = + certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java new file mode 100644 index 00000000..bb336e73 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncCreateCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateAuthority(); + } + + public static void asyncCreateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateAuthorityRequest request = + CreateCertificateAuthorityRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setCertificateAuthorityId("certificateAuthorityId-1652580953") + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .createCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java new file mode 100644 index 00000000..ec63f520 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.OperationMetadata; + +public class AsyncCreateCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateAuthorityLRO(); + } + + public static void asyncCreateCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateAuthorityRequest request = + CreateCertificateAuthorityRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setCertificateAuthorityId("certificateAuthorityId-1652580953") + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .createCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java new file mode 100644 index 00000000..56112608 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest; + +public class SyncCreateCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncCreateCertificateAuthority(); + } + + public static void syncCreateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateAuthorityRequest request = + CreateCertificateAuthorityRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setCertificateAuthorityId("certificateAuthorityId-1652580953") + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.createCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java new file mode 100644 index 00000000..856a3b99 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_capoolnamecertificateauthoritystring_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateAuthorityCapoolnameCertificateauthorityString(); + } + + public static void syncCreateCertificateAuthorityCapoolnameCertificateauthorityString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + CertificateAuthority response = + certificateAuthorityServiceClient + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_capoolnamecertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java new file mode 100644 index 00000000..abfc3a2a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncCreateCertificateAuthorityStringCertificateauthorityString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateAuthorityStringCertificateauthorityString(); + } + + public static void syncCreateCertificateAuthorityStringCertificateauthorityString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + CertificateAuthority response = + certificateAuthorityServiceClient + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java new file mode 100644 index 00000000..317590d5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateCertificateTemplate { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateTemplate(); + } + + public static void asyncCreateCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateTemplateRequest request = + CreateCertificateTemplateRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateTemplateId("certificateTemplateId1920134188") + .setCertificateTemplate(CertificateTemplate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.createCertificateTemplateCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java new file mode 100644 index 00000000..31c3c587 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.LocationName; +import com.google.cloud.security.privateca.v1.OperationMetadata; + +public class AsyncCreateCertificateTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateTemplateLRO(); + } + + public static void asyncCreateCertificateTemplateLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateTemplateRequest request = + CreateCertificateTemplateRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateTemplateId("certificateTemplateId1920134188") + .setCertificateTemplate(CertificateTemplate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .createCertificateTemplateOperationCallable() + .futureCall(request); + // Do something. + CertificateTemplate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java new file mode 100644 index 00000000..89b5996d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncCreateCertificateTemplate { + + public static void main(String[] args) throws Exception { + syncCreateCertificateTemplate(); + } + + public static void syncCreateCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateTemplateRequest request = + CreateCertificateTemplateRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateTemplateId("certificateTemplateId1920134188") + .setCertificateTemplate(CertificateTemplate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateTemplate response = + certificateAuthorityServiceClient.createCertificateTemplateAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java new file mode 100644 index 00000000..077bb168 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_locationnamecertificatetemplatestring_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncCreateCertificateTemplateLocationnameCertificatetemplateString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateTemplateLocationnameCertificatetemplateString(); + } + + public static void syncCreateCertificateTemplateLocationnameCertificatetemplateString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + String certificateTemplateId = "certificateTemplateId1920134188"; + CertificateTemplate response = + certificateAuthorityServiceClient + .createCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_locationnamecertificatetemplatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java new file mode 100644 index 00000000..eaab47ed --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_stringcertificatetemplatestring_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncCreateCertificateTemplateStringCertificatetemplateString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateTemplateStringCertificatetemplateString(); + } + + public static void syncCreateCertificateTemplateStringCertificatetemplateString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + String certificateTemplateId = "certificateTemplateId1920134188"; + CertificateTemplate response = + certificateAuthorityServiceClient + .createCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_stringcertificatetemplatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java new file mode 100644 index 00000000..804d38ed --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DeleteCaPoolRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCaPool { + + public static void main(String[] args) throws Exception { + asyncDeleteCaPool(); + } + + public static void asyncDeleteCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCaPoolRequest request = + DeleteCaPoolRequest.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.deleteCaPoolCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecapool_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java new file mode 100644 index 00000000..f0980d76 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DeleteCaPoolRequest; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCaPoolLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCaPoolLRO(); + } + + public static void asyncDeleteCaPoolLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCaPoolRequest request = + DeleteCaPoolRequest.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient.deleteCaPoolOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecapool_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java new file mode 100644 index 00000000..b9dfde2b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DeleteCaPoolRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCaPool { + + public static void main(String[] args) throws Exception { + syncDeleteCaPool(); + } + + public static void syncDeleteCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCaPoolRequest request = + DeleteCaPoolRequest.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setRequestId("requestId693933066") + .build(); + certificateAuthorityServiceClient.deleteCaPoolAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecapool_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java new file mode 100644 index 00000000..69894e3e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_capoolname_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCaPoolCapoolname { + + public static void main(String[] args) throws Exception { + syncDeleteCaPoolCapoolname(); + } + + public static void syncDeleteCaPoolCapoolname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + certificateAuthorityServiceClient.deleteCaPoolAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecapool_capoolname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java new file mode 100644 index 00000000..cdc2afff --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_string_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCaPoolString { + + public static void main(String[] args) throws Exception { + syncDeleteCaPoolString(); + } + + public static void syncDeleteCaPoolString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + certificateAuthorityServiceClient.deleteCaPoolAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecapool_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java new file mode 100644 index 00000000..9c135c13 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateAuthority(); + } + + public static void asyncDeleteCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCertificateAuthorityRequest request = + DeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .setIgnoreActiveCertificates(true) + .setSkipGracePeriod(true) + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .deleteCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java new file mode 100644 index 00000000..d55caa70 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.OperationMetadata; + +public class AsyncDeleteCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateAuthorityLRO(); + } + + public static void asyncDeleteCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCertificateAuthorityRequest request = + DeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .setIgnoreActiveCertificates(true) + .setSkipGracePeriod(true) + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .deleteCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java new file mode 100644 index 00000000..957c980e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest; + +public class SyncDeleteCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateAuthority(); + } + + public static void syncDeleteCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCertificateAuthorityRequest request = + DeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .setIgnoreActiveCertificates(true) + .setSkipGracePeriod(true) + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.deleteCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..17e72944 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncDeleteCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateAuthorityCertificateauthorityname(); + } + + public static void syncDeleteCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.deleteCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java new file mode 100644 index 00000000..b81841bf --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncDeleteCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateAuthorityString(); + } + + public static void syncDeleteCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.deleteCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java new file mode 100644 index 00000000..f4bf9d03 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCertificateTemplate { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateTemplate(); + } + + public static void asyncDeleteCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCertificateTemplateRequest request = + DeleteCertificateTemplateRequest.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.deleteCertificateTemplateCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java new file mode 100644 index 00000000..283ee04c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCertificateTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateTemplateLRO(); + } + + public static void asyncDeleteCertificateTemplateLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCertificateTemplateRequest request = + DeleteCertificateTemplateRequest.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .deleteCertificateTemplateOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java new file mode 100644 index 00000000..1d7a7652 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateTemplate { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateTemplate(); + } + + public static void syncDeleteCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DeleteCertificateTemplateRequest request = + DeleteCertificateTemplateRequest.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + certificateAuthorityServiceClient.deleteCertificateTemplateAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java new file mode 100644 index 00000000..984d7649 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_certificatetemplatename_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateTemplateCertificatetemplatename { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateTemplateCertificatetemplatename(); + } + + public static void syncDeleteCertificateTemplateCertificatetemplatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateTemplateName name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + certificateAuthorityServiceClient.deleteCertificateTemplateAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_certificatetemplatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java new file mode 100644 index 00000000..7a166229 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateTemplateString { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateTemplateString(); + } + + public static void syncDeleteCertificateTemplateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString(); + certificateAuthorityServiceClient.deleteCertificateTemplateAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java new file mode 100644 index 00000000..cac22abe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncDisableCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncDisableCertificateAuthority(); + } + + public static void asyncDisableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DisableCertificateAuthorityRequest request = + DisableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .disableCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java new file mode 100644 index 00000000..e27ba3ad --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.OperationMetadata; + +public class AsyncDisableCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncDisableCertificateAuthorityLRO(); + } + + public static void asyncDisableCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DisableCertificateAuthorityRequest request = + DisableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .disableCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java new file mode 100644 index 00000000..7e8acdea --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest; + +public class SyncDisableCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncDisableCertificateAuthority(); + } + + public static void syncDisableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DisableCertificateAuthorityRequest request = + DisableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.disableCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..f4cabf39 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncDisableCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncDisableCertificateAuthorityCertificateauthorityname(); + } + + public static void syncDisableCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.disableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java new file mode 100644 index 00000000..b5d6e93d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncDisableCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncDisableCertificateAuthorityString(); + } + + public static void syncDisableCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.disableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java new file mode 100644 index 00000000..2833aa4d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncEnableCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncEnableCertificateAuthority(); + } + + public static void asyncEnableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + EnableCertificateAuthorityRequest request = + EnableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .enableCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java new file mode 100644 index 00000000..10f10801 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1.OperationMetadata; + +public class AsyncEnableCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncEnableCertificateAuthorityLRO(); + } + + public static void asyncEnableCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + EnableCertificateAuthorityRequest request = + EnableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .enableCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java new file mode 100644 index 00000000..f5bc7767 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest; + +public class SyncEnableCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncEnableCertificateAuthority(); + } + + public static void syncEnableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + EnableCertificateAuthorityRequest request = + EnableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.enableCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..d532ba67 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncEnableCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncEnableCertificateAuthorityCertificateauthorityname(); + } + + public static void syncEnableCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.enableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java new file mode 100644 index 00000000..2a85d15a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncEnableCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncEnableCertificateAuthorityString(); + } + + public static void syncEnableCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.enableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java new file mode 100644 index 00000000..b6714ee5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCaCertsRequest; +import com.google.cloud.security.privateca.v1.FetchCaCertsResponse; + +public class AsyncFetchCaCerts { + + public static void main(String[] args) throws Exception { + asyncFetchCaCerts(); + } + + public static void asyncFetchCaCerts() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + FetchCaCertsRequest request = + FetchCaCertsRequest.newBuilder() + .setCaPool(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.fetchCaCertsCallable().futureCall(request); + // Do something. + FetchCaCertsResponse response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java new file mode 100644 index 00000000..3663dc06 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCaCertsRequest; +import com.google.cloud.security.privateca.v1.FetchCaCertsResponse; + +public class SyncFetchCaCerts { + + public static void main(String[] args) throws Exception { + syncFetchCaCerts(); + } + + public static void syncFetchCaCerts() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + FetchCaCertsRequest request = + FetchCaCertsRequest.newBuilder() + .setCaPool(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setRequestId("requestId693933066") + .build(); + FetchCaCertsResponse response = certificateAuthorityServiceClient.fetchCaCerts(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java new file mode 100644 index 00000000..2f181ec2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_capoolname_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCaCertsResponse; + +public class SyncFetchCaCertsCapoolname { + + public static void main(String[] args) throws Exception { + syncFetchCaCertsCapoolname(); + } + + public static void syncFetchCaCertsCapoolname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName caPool = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + FetchCaCertsResponse response = certificateAuthorityServiceClient.fetchCaCerts(caPool); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_capoolname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java new file mode 100644 index 00000000..a6cec1a5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_string_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCaCertsResponse; + +public class SyncFetchCaCertsString { + + public static void main(String[] args) throws Exception { + syncFetchCaCertsString(); + } + + public static void syncFetchCaCertsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String caPool = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + FetchCaCertsResponse response = certificateAuthorityServiceClient.fetchCaCerts(caPool); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcacerts_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java new file mode 100644 index 00000000..19498500 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; + +public class AsyncFetchCertificateAuthorityCsr { + + public static void main(String[] args) throws Exception { + asyncFetchCertificateAuthorityCsr(); + } + + public static void asyncFetchCertificateAuthorityCsr() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + FetchCertificateAuthorityCsrRequest request = + FetchCertificateAuthorityCsrRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .fetchCertificateAuthorityCsrCallable() + .futureCall(request); + // Do something. + FetchCertificateAuthorityCsrResponse response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java new file mode 100644 index 00000000..a0d81e54 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; + +public class SyncFetchCertificateAuthorityCsr { + + public static void main(String[] args) throws Exception { + syncFetchCertificateAuthorityCsr(); + } + + public static void syncFetchCertificateAuthorityCsr() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + FetchCertificateAuthorityCsrRequest request = + FetchCertificateAuthorityCsrRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + FetchCertificateAuthorityCsrResponse response = + certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java new file mode 100644 index 00000000..7faaa527 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; + +public class SyncFetchCertificateAuthorityCsrCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncFetchCertificateAuthorityCsrCertificateauthorityname(); + } + + public static void syncFetchCertificateAuthorityCsrCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + FetchCertificateAuthorityCsrResponse response = + certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java new file mode 100644 index 00000000..c350ca78 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; + +public class SyncFetchCertificateAuthorityCsrString { + + public static void main(String[] args) throws Exception { + syncFetchCertificateAuthorityCsrString(); + } + + public static void syncFetchCertificateAuthorityCsrString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + FetchCertificateAuthorityCsrResponse response = + certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java new file mode 100644 index 00000000..f1de9426 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcapool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.GetCaPoolRequest; + +public class AsyncGetCaPool { + + public static void main(String[] args) throws Exception { + asyncGetCaPool(); + } + + public static void asyncGetCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCaPoolRequest request = + GetCaPoolRequest.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getCaPoolCallable().futureCall(request); + // Do something. + CaPool response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcapool_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java new file mode 100644 index 00000000..a8c54827 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcapool_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.GetCaPoolRequest; + +public class SyncGetCaPool { + + public static void main(String[] args) throws Exception { + syncGetCaPool(); + } + + public static void syncGetCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCaPoolRequest request = + GetCaPoolRequest.newBuilder() + .setName(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .build(); + CaPool response = certificateAuthorityServiceClient.getCaPool(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcapool_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java new file mode 100644 index 00000000..197861c7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcapool_capoolname_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncGetCaPoolCapoolname { + + public static void main(String[] args) throws Exception { + syncGetCaPoolCapoolname(); + } + + public static void syncGetCaPoolCapoolname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + CaPool response = certificateAuthorityServiceClient.getCaPool(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcapool_capoolname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java new file mode 100644 index 00000000..e6917e4f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcapool_string_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncGetCaPoolString { + + public static void main(String[] args) throws Exception { + syncGetCaPoolString(); + } + + public static void syncGetCaPoolString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + CaPool response = certificateAuthorityServiceClient.getCaPool(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcapool_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java new file mode 100644 index 00000000..224f12d5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; +import com.google.cloud.security.privateca.v1.GetCertificateRequest; + +public class AsyncGetCertificate { + + public static void main(String[] args) throws Exception { + asyncGetCertificate(); + } + + public static void asyncGetCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRequest request = + GetCertificateRequest.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java new file mode 100644 index 00000000..1307be5e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificate_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; +import com.google.cloud.security.privateca.v1.GetCertificateRequest; + +public class SyncGetCertificate { + + public static void main(String[] args) throws Exception { + syncGetCertificate(); + } + + public static void syncGetCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRequest request = + GetCertificateRequest.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .build(); + Certificate response = certificateAuthorityServiceClient.getCertificate(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java new file mode 100644 index 00000000..37edadcc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; + +public class SyncGetCertificateCertificatename { + + public static void main(String[] args) throws Exception { + syncGetCertificateCertificatename(); + } + + public static void syncGetCertificateCertificatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + Certificate response = certificateAuthorityServiceClient.getCertificate(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java new file mode 100644 index 00000000..61fb6f08 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificate_string_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; + +public class SyncGetCertificateString { + + public static void main(String[] args) throws Exception { + syncGetCertificateString(); + } + + public static void syncGetCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]").toString(); + Certificate response = certificateAuthorityServiceClient.getCertificate(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificate_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java new file mode 100644 index 00000000..fa697b85 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest; + +public class AsyncGetCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncGetCertificateAuthority(); + } + + public static void asyncGetCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateAuthorityRequest request = + GetCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getCertificateAuthorityCallable().futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java new file mode 100644 index 00000000..0fbf2205 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest; + +public class SyncGetCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncGetCertificateAuthority(); + } + + public static void syncGetCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateAuthorityRequest request = + GetCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.getCertificateAuthority(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..a3fca5b2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncGetCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncGetCertificateAuthorityCertificateauthorityname(); + } + + public static void syncGetCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.getCertificateAuthority(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java new file mode 100644 index 00000000..aaacffbf --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncGetCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncGetCertificateAuthorityString(); + } + + public static void syncGetCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.getCertificateAuthority(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java new file mode 100644 index 00000000..554cfc83 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.CertificateRevocationListName; +import com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest; + +public class AsyncGetCertificateRevocationList { + + public static void main(String[] args) throws Exception { + asyncGetCertificateRevocationList(); + } + + public static void asyncGetCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRevocationListRequest request = + GetCertificateRevocationListRequest.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .getCertificateRevocationListCallable() + .futureCall(request); + // Do something. + CertificateRevocationList response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java new file mode 100644 index 00000000..0148b870 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.CertificateRevocationListName; +import com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest; + +public class SyncGetCertificateRevocationList { + + public static void main(String[] args) throws Exception { + syncGetCertificateRevocationList(); + } + + public static void syncGetCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRevocationListRequest request = + GetCertificateRevocationListRequest.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .build(); + CertificateRevocationList response = + certificateAuthorityServiceClient.getCertificateRevocationList(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java new file mode 100644 index 00000000..3799d156 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.CertificateRevocationListName; + +public class SyncGetCertificateRevocationListCertificaterevocationlistname { + + public static void main(String[] args) throws Exception { + syncGetCertificateRevocationListCertificaterevocationlistname(); + } + + public static void syncGetCertificateRevocationListCertificaterevocationlistname() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateRevocationListName name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]"); + CertificateRevocationList response = + certificateAuthorityServiceClient.getCertificateRevocationList(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java new file mode 100644 index 00000000..e9581c24 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.CertificateRevocationListName; + +public class SyncGetCertificateRevocationListString { + + public static void main(String[] args) throws Exception { + syncGetCertificateRevocationListString(); + } + + public static void syncGetCertificateRevocationListString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CA_POOL]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString(); + CertificateRevocationList response = + certificateAuthorityServiceClient.getCertificateRevocationList(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java new file mode 100644 index 00000000..cba5bceb --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest; + +public class AsyncGetCertificateTemplate { + + public static void main(String[] args) throws Exception { + asyncGetCertificateTemplate(); + } + + public static void asyncGetCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateTemplateRequest request = + GetCertificateTemplateRequest.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getCertificateTemplateCallable().futureCall(request); + // Do something. + CertificateTemplate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java new file mode 100644 index 00000000..36d0c0e4 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; +import com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest; + +public class SyncGetCertificateTemplate { + + public static void main(String[] args) throws Exception { + syncGetCertificateTemplate(); + } + + public static void syncGetCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateTemplateRequest request = + GetCertificateTemplateRequest.newBuilder() + .setName( + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString()) + .build(); + CertificateTemplate response = + certificateAuthorityServiceClient.getCertificateTemplate(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java new file mode 100644 index 00000000..ca66ba35 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_certificatetemplatename_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; + +public class SyncGetCertificateTemplateCertificatetemplatename { + + public static void main(String[] args) throws Exception { + syncGetCertificateTemplateCertificatetemplatename(); + } + + public static void syncGetCertificateTemplateCertificatetemplatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateTemplateName name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"); + CertificateTemplate response = certificateAuthorityServiceClient.getCertificateTemplate(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_certificatetemplatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java new file mode 100644 index 00000000..89c87acb --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.CertificateTemplateName; + +public class SyncGetCertificateTemplateString { + + public static void main(String[] args) throws Exception { + syncGetCertificateTemplateString(); + } + + public static void syncGetCertificateTemplateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") + .toString(); + CertificateTemplate response = certificateAuthorityServiceClient.getCertificateTemplate(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..604cec1c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getiampolicy_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..9a2581c3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getiampolicy_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = certificateAuthorityServiceClient.getIamPolicy(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getiampolicy_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java new file mode 100644 index 00000000..26df1e12 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getlocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + certificateAuthorityServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getlocation_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java new file mode 100644 index 00000000..16aedfe5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_getlocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = certificateAuthorityServiceClient.getLocation(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_getlocation_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java new file mode 100644 index 00000000..74e5fcd7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcapools_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCaPoolsRequest; +import com.google.cloud.security.privateca.v1.LocationName; + +public class AsyncListCaPools { + + public static void main(String[] args) throws Exception { + asyncListCaPools(); + } + + public static void asyncListCaPools() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCaPoolsRequest request = + ListCaPoolsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.listCaPoolsPagedCallable().futureCall(request); + // Do something. + for (CaPool element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcapools_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java new file mode 100644 index 00000000..e6a00e0d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcapools_paged_async] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCaPoolsRequest; +import com.google.cloud.security.privateca.v1.ListCaPoolsResponse; +import com.google.cloud.security.privateca.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCaPoolsPaged { + + public static void main(String[] args) throws Exception { + asyncListCaPoolsPaged(); + } + + public static void asyncListCaPoolsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCaPoolsRequest request = + ListCaPoolsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCaPoolsResponse response = + certificateAuthorityServiceClient.listCaPoolsCallable().call(request); + for (CaPool element : response.getCaPoolsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcapools_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java new file mode 100644 index 00000000..4504fc19 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcapools_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCaPoolsRequest; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncListCaPools { + + public static void main(String[] args) throws Exception { + syncListCaPools(); + } + + public static void syncListCaPools() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCaPoolsRequest request = + ListCaPoolsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CaPool element : certificateAuthorityServiceClient.listCaPools(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcapools_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java new file mode 100644 index 00000000..51ff3320 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcapools_locationname_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncListCaPoolsLocationname { + + public static void main(String[] args) throws Exception { + syncListCaPoolsLocationname(); + } + + public static void syncListCaPoolsLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CaPool element : certificateAuthorityServiceClient.listCaPools(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcapools_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java new file mode 100644 index 00000000..b7b3f7a1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcapools_string_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncListCaPoolsString { + + public static void main(String[] args) throws Exception { + syncListCaPoolsString(); + } + + public static void syncListCaPoolsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CaPool element : certificateAuthorityServiceClient.listCaPools(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcapools_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java new file mode 100644 index 00000000..095370ec --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest; + +public class AsyncListCertificateAuthorities { + + public static void main(String[] args) throws Exception { + asyncListCertificateAuthorities(); + } + + public static void asyncListCertificateAuthorities() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateAuthoritiesRequest request = + ListCertificateAuthoritiesRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .listCertificateAuthoritiesPagedCallable() + .futureCall(request); + // Do something. + for (CertificateAuthority element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java new file mode 100644 index 00000000..f990c670 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest; +import com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse; +import com.google.common.base.Strings; + +public class AsyncListCertificateAuthoritiesPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateAuthoritiesPaged(); + } + + public static void asyncListCertificateAuthoritiesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateAuthoritiesRequest request = + ListCertificateAuthoritiesRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateAuthoritiesResponse response = + certificateAuthorityServiceClient.listCertificateAuthoritiesCallable().call(request); + for (CertificateAuthority element : response.getCertificateAuthoritiesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java new file mode 100644 index 00000000..c8a376e0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest; + +public class SyncListCertificateAuthorities { + + public static void main(String[] args) throws Exception { + syncListCertificateAuthorities(); + } + + public static void syncListCertificateAuthorities() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateAuthoritiesRequest request = + ListCertificateAuthoritiesRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateAuthority element : + certificateAuthorityServiceClient.listCertificateAuthorities(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java new file mode 100644 index 00000000..86bcbd62 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_capoolname_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncListCertificateAuthoritiesCapoolname { + + public static void main(String[] args) throws Exception { + syncListCertificateAuthoritiesCapoolname(); + } + + public static void syncListCertificateAuthoritiesCapoolname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + for (CertificateAuthority element : + certificateAuthorityServiceClient.listCertificateAuthorities(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_capoolname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java new file mode 100644 index 00000000..2d3874a1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncListCertificateAuthoritiesString { + + public static void main(String[] args) throws Exception { + syncListCertificateAuthoritiesString(); + } + + public static void syncListCertificateAuthoritiesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + for (CertificateAuthority element : + certificateAuthorityServiceClient.listCertificateAuthorities(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java new file mode 100644 index 00000000..87b97af8 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest; + +public class AsyncListCertificateRevocationLists { + + public static void main(String[] args) throws Exception { + asyncListCertificateRevocationLists(); + } + + public static void asyncListCertificateRevocationLists() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateRevocationListsRequest request = + ListCertificateRevocationListsRequest.newBuilder() + .setParent( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .listCertificateRevocationListsPagedCallable() + .futureCall(request); + // Do something. + for (CertificateRevocationList element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java new file mode 100644 index 00000000..3ef39b14 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java @@ -0,0 +1,67 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest; +import com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse; +import com.google.common.base.Strings; + +public class AsyncListCertificateRevocationListsPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateRevocationListsPaged(); + } + + public static void asyncListCertificateRevocationListsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateRevocationListsRequest request = + ListCertificateRevocationListsRequest.newBuilder() + .setParent( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateRevocationListsResponse response = + certificateAuthorityServiceClient + .listCertificateRevocationListsCallable() + .call(request); + for (CertificateRevocationList element : response.getCertificateRevocationListsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java new file mode 100644 index 00000000..4dbbbb32 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest; + +public class SyncListCertificateRevocationLists { + + public static void main(String[] args) throws Exception { + syncListCertificateRevocationLists(); + } + + public static void syncListCertificateRevocationLists() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateRevocationListsRequest request = + ListCertificateRevocationListsRequest.newBuilder() + .setParent( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateRevocationList element : + certificateAuthorityServiceClient.listCertificateRevocationLists(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java new file mode 100644 index 00000000..4addaad6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; + +public class SyncListCertificateRevocationListsCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncListCertificateRevocationListsCertificateauthorityname(); + } + + public static void syncListCertificateRevocationListsCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName parent = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + for (CertificateRevocationList element : + certificateAuthorityServiceClient.listCertificateRevocationLists(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java new file mode 100644 index 00000000..b62de363 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; + +public class SyncListCertificateRevocationListsString { + + public static void main(String[] args) throws Exception { + syncListCertificateRevocationListsString(); + } + + public static void syncListCertificateRevocationListsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + for (CertificateRevocationList element : + certificateAuthorityServiceClient.listCertificateRevocationLists(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java new file mode 100644 index 00000000..9de81a48 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCertificatesRequest; + +public class AsyncListCertificates { + + public static void main(String[] args) throws Exception { + asyncListCertificates(); + } + + public static void asyncListCertificates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificatesRequest request = + ListCertificatesRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.listCertificatesPagedCallable().futureCall(request); + // Do something. + for (Certificate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificates_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java new file mode 100644 index 00000000..39a3e80e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificates_paged_async] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCertificatesRequest; +import com.google.cloud.security.privateca.v1.ListCertificatesResponse; +import com.google.common.base.Strings; + +public class AsyncListCertificatesPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificatesPaged(); + } + + public static void asyncListCertificatesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificatesRequest request = + ListCertificatesRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificatesResponse response = + certificateAuthorityServiceClient.listCertificatesCallable().call(request); + for (Certificate element : response.getCertificatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificates_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java new file mode 100644 index 00000000..35886384 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificates_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.ListCertificatesRequest; + +public class SyncListCertificates { + + public static void main(String[] args) throws Exception { + syncListCertificates(); + } + + public static void syncListCertificates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificatesRequest request = + ListCertificatesRequest.newBuilder() + .setParent(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Certificate element : + certificateAuthorityServiceClient.listCertificates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificates_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java new file mode 100644 index 00000000..0dae278f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificates_capoolname_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncListCertificatesCapoolname { + + public static void main(String[] args) throws Exception { + syncListCertificatesCapoolname(); + } + + public static void syncListCertificatesCapoolname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPoolName parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]"); + for (Certificate element : + certificateAuthorityServiceClient.listCertificates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificates_capoolname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java new file mode 100644 index 00000000..c2eb8615 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificates_string_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncListCertificatesString { + + public static void main(String[] args) throws Exception { + syncListCertificatesString(); + } + + public static void syncListCertificatesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString(); + for (Certificate element : + certificateAuthorityServiceClient.listCertificates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificates_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java new file mode 100644 index 00000000..6283ddd8 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest; +import com.google.cloud.security.privateca.v1.LocationName; + +public class AsyncListCertificateTemplates { + + public static void main(String[] args) throws Exception { + asyncListCertificateTemplates(); + } + + public static void asyncListCertificateTemplates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateTemplatesRequest request = + ListCertificateTemplatesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .listCertificateTemplatesPagedCallable() + .futureCall(request); + // Do something. + for (CertificateTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java new file mode 100644 index 00000000..5f317524 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_paged_async] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest; +import com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse; +import com.google.cloud.security.privateca.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCertificateTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateTemplatesPaged(); + } + + public static void asyncListCertificateTemplatesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateTemplatesRequest request = + ListCertificateTemplatesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateTemplatesResponse response = + certificateAuthorityServiceClient.listCertificateTemplatesCallable().call(request); + for (CertificateTemplate element : response.getCertificateTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java new file mode 100644 index 00000000..b1849bfe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncListCertificateTemplates { + + public static void main(String[] args) throws Exception { + syncListCertificateTemplates(); + } + + public static void syncListCertificateTemplates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateTemplatesRequest request = + ListCertificateTemplatesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateTemplate element : + certificateAuthorityServiceClient.listCertificateTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java new file mode 100644 index 00000000..7cc886a9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_locationname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncListCertificateTemplatesLocationname { + + public static void main(String[] args) throws Exception { + syncListCertificateTemplatesLocationname(); + } + + public static void syncListCertificateTemplatesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CertificateTemplate element : + certificateAuthorityServiceClient.listCertificateTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java new file mode 100644 index 00000000..373ed421 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.LocationName; + +public class SyncListCertificateTemplatesString { + + public static void main(String[] args) throws Exception { + syncListCertificateTemplatesString(); + } + + public static void syncListCertificateTemplatesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CertificateTemplate element : + certificateAuthorityServiceClient.listCertificateTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java new file mode 100644 index 00000000..af5010ea --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listlocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listlocations_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 00000000..214d7519 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listlocations_paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + certificateAuthorityServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listlocations_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java new file mode 100644 index 00000000..ee75a2ea --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_listlocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : + certificateAuthorityServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_listlocations_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java new file mode 100644 index 00000000..4acb460c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; +import com.google.cloud.security.privateca.v1.RevocationReason; +import com.google.cloud.security.privateca.v1.RevokeCertificateRequest; + +public class AsyncRevokeCertificate { + + public static void main(String[] args) throws Exception { + asyncRevokeCertificate(); + } + + public static void asyncRevokeCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RevokeCertificateRequest request = + RevokeCertificateRequest.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setReason(RevocationReason.forNumber(0)) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.revokeCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java new file mode 100644 index 00000000..593b48cc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; +import com.google.cloud.security.privateca.v1.RevocationReason; +import com.google.cloud.security.privateca.v1.RevokeCertificateRequest; + +public class SyncRevokeCertificate { + + public static void main(String[] args) throws Exception { + syncRevokeCertificate(); + } + + public static void syncRevokeCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RevokeCertificateRequest request = + RevokeCertificateRequest.newBuilder() + .setName( + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]") + .toString()) + .setReason(RevocationReason.forNumber(0)) + .setRequestId("requestId693933066") + .build(); + Certificate response = certificateAuthorityServiceClient.revokeCertificate(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java new file mode 100644 index 00000000..4aa40ef0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; + +public class SyncRevokeCertificateCertificatename { + + public static void main(String[] args) throws Exception { + syncRevokeCertificateCertificatename(); + } + + public static void syncRevokeCertificateCertificatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"); + Certificate response = certificateAuthorityServiceClient.revokeCertificate(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java new file mode 100644 index 00000000..22973f43 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_string_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateName; + +public class SyncRevokeCertificateString { + + public static void main(String[] args) throws Exception { + syncRevokeCertificateString(); + } + + public static void syncRevokeCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]").toString(); + Certificate response = certificateAuthorityServiceClient.revokeCertificate(name); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..503a0822 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_setiampolicy_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..1d2e1193 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_setiampolicy_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = certificateAuthorityServiceClient.setIamPolicy(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_setiampolicy_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..404d0c81 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_testiampermissions_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..dd19168e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_testiampermissions_sync] +import com.google.cloud.security.privateca.v1.CaPoolName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(CaPoolName.of("[PROJECT]", "[LOCATION]", "[CA_POOL]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + certificateAuthorityServiceClient.testIamPermissions(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_testiampermissions_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java new file mode 100644 index 00000000..08ebaca7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncUndeleteCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncUndeleteCertificateAuthority(); + } + + public static void asyncUndeleteCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UndeleteCertificateAuthorityRequest request = + UndeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .undeleteCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java new file mode 100644 index 00000000..d204393c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest; + +public class AsyncUndeleteCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncUndeleteCertificateAuthorityLRO(); + } + + public static void asyncUndeleteCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UndeleteCertificateAuthorityRequest request = + UndeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .undeleteCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java new file mode 100644 index 00000000..b291a19b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest; + +public class SyncUndeleteCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncUndeleteCertificateAuthority(); + } + + public static void syncUndeleteCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UndeleteCertificateAuthorityRequest request = + UndeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.undeleteCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..a7509f56 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncUndeleteCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncUndeleteCertificateAuthorityCertificateauthorityname(); + } + + public static void syncUndeleteCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.undeleteCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java new file mode 100644 index 00000000..c912a936 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; + +public class SyncUndeleteCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncUndeleteCertificateAuthorityString(); + } + + public static void syncUndeleteCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of( + "[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.undeleteCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java new file mode 100644 index 00000000..05441d96 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecapool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UpdateCaPoolRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCaPool { + + public static void main(String[] args) throws Exception { + asyncUpdateCaPool(); + } + + public static void asyncUpdateCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCaPoolRequest request = + UpdateCaPoolRequest.newBuilder() + .setCaPool(CaPool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.updateCaPoolCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecapool_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java new file mode 100644 index 00000000..b29d3bc1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecapool_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.UpdateCaPoolRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCaPoolLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCaPoolLRO(); + } + + public static void asyncUpdateCaPoolLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCaPoolRequest request = + UpdateCaPoolRequest.newBuilder() + .setCaPool(CaPool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient.updateCaPoolOperationCallable().futureCall(request); + // Do something. + CaPool response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecapool_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java new file mode 100644 index 00000000..29d63f1d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecapool_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UpdateCaPoolRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCaPool { + + public static void main(String[] args) throws Exception { + syncUpdateCaPool(); + } + + public static void syncUpdateCaPool() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCaPoolRequest request = + UpdateCaPoolRequest.newBuilder() + .setCaPool(CaPool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CaPool response = certificateAuthorityServiceClient.updateCaPoolAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecapool_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java new file mode 100644 index 00000000..80b63400 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecapool_capoolfieldmask_sync] +import com.google.cloud.security.privateca.v1.CaPool; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCaPoolCapoolFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCaPoolCapoolFieldmask(); + } + + public static void syncUpdateCaPoolCapoolFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CaPool caPool = CaPool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CaPool response = + certificateAuthorityServiceClient.updateCaPoolAsync(caPool, updateMask).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecapool_capoolfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java new file mode 100644 index 00000000..7ce54038 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UpdateCertificateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificate { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificate(); + } + + public static void asyncUpdateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRequest request = + UpdateCertificateRequest.newBuilder() + .setCertificate(Certificate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.updateCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java new file mode 100644 index 00000000..59254c2a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UpdateCertificateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificate { + + public static void main(String[] args) throws Exception { + syncUpdateCertificate(); + } + + public static void syncUpdateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRequest request = + UpdateCertificateRequest.newBuilder() + .setCertificate(Certificate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Certificate response = certificateAuthorityServiceClient.updateCertificate(request); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java new file mode 100644 index 00000000..00b376bd --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] +import com.google.cloud.security.privateca.v1.Certificate; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateCertificateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateCertificateFieldmask(); + } + + public static void syncUpdateCertificateCertificateFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + Certificate certificate = Certificate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Certificate response = + certificateAuthorityServiceClient.updateCertificate(certificate, updateMask); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java new file mode 100644 index 00000000..1661d41c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateAuthority(); + } + + public static void asyncUpdateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateAuthorityRequest request = + UpdateCertificateAuthorityRequest.newBuilder() + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .updateCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java new file mode 100644 index 00000000..4037a350 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateAuthorityLRO(); + } + + public static void asyncUpdateCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateAuthorityRequest request = + UpdateCertificateAuthorityRequest.newBuilder() + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .updateCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java new file mode 100644 index 00000000..97224aa6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateAuthority(); + } + + public static void syncUpdateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateAuthorityRequest request = + UpdateCertificateAuthorityRequest.newBuilder() + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.updateCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java new file mode 100644 index 00000000..e3ccceae --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthority; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateAuthorityCertificateauthorityFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateAuthorityCertificateauthorityFieldmask(); + } + + public static void syncUpdateCertificateAuthorityCertificateauthorityFieldmask() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CertificateAuthority response = + certificateAuthorityServiceClient + .updateCertificateAuthorityAsync(certificateAuthority, updateMask) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java new file mode 100644 index 00000000..1bd9584c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateRevocationList { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateRevocationList(); + } + + public static void asyncUpdateCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRevocationListRequest request = + UpdateCertificateRevocationListRequest.newBuilder() + .setCertificateRevocationList(CertificateRevocationList.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .updateCertificateRevocationListCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java new file mode 100644 index 00000000..37c624c2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateRevocationListLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateRevocationListLRO(); + } + + public static void asyncUpdateCertificateRevocationListLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRevocationListRequest request = + UpdateCertificateRevocationListRequest.newBuilder() + .setCertificateRevocationList(CertificateRevocationList.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .updateCertificateRevocationListOperationCallable() + .futureCall(request); + // Do something. + CertificateRevocationList response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java new file mode 100644 index 00000000..4a947e57 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateRevocationList { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateRevocationList(); + } + + public static void syncUpdateCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRevocationListRequest request = + UpdateCertificateRevocationListRequest.newBuilder() + .setCertificateRevocationList(CertificateRevocationList.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateRevocationList response = + certificateAuthorityServiceClient.updateCertificateRevocationListAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java new file mode 100644 index 00000000..1b170cd2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateRevocationList; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateRevocationListCertificaterevocationlistFieldmask(); + } + + public static void syncUpdateCertificateRevocationListCertificaterevocationlistFieldmask() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateRevocationList certificateRevocationList = + CertificateRevocationList.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CertificateRevocationList response = + certificateAuthorityServiceClient + .updateCertificateRevocationListAsync(certificateRevocationList, updateMask) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java new file mode 100644 index 00000000..0d0c3814 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateTemplate { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateTemplate(); + } + + public static void asyncUpdateCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateTemplateRequest request = + UpdateCertificateTemplateRequest.newBuilder() + .setCertificateTemplate(CertificateTemplate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.updateCertificateTemplateCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java new file mode 100644 index 00000000..0d1e3663 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.OperationMetadata; +import com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateTemplateLRO(); + } + + public static void asyncUpdateCertificateTemplateLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateTemplateRequest request = + UpdateCertificateTemplateRequest.newBuilder() + .setCertificateTemplate(CertificateTemplate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .updateCertificateTemplateOperationCallable() + .futureCall(request); + // Do something. + CertificateTemplate response = future.get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java new file mode 100644 index 00000000..8562685d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateTemplate { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateTemplate(); + } + + public static void syncUpdateCertificateTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateTemplateRequest request = + UpdateCertificateTemplateRequest.newBuilder() + .setCertificateTemplate(CertificateTemplate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateTemplate response = + certificateAuthorityServiceClient.updateCertificateTemplateAsync(request).get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java new file mode 100644 index 00000000..645dd623 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_certificatetemplatefieldmask_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1.CertificateTemplate; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateTemplateCertificatetemplateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateTemplateCertificatetemplateFieldmask(); + } + + public static void syncUpdateCertificateTemplateCertificatetemplateFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateTemplate certificateTemplate = CertificateTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CertificateTemplate response = + certificateAuthorityServiceClient + .updateCertificateTemplateAsync(certificateTemplate, updateMask) + .get(); + } + } +} +// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_certificatetemplatefieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java new file mode 100644 index 00000000..29205701 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.samples; + +// [START privateca_v1_generated_certificateauthorityservicesettings_createcertificate_sync] +import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; +import java.time.Duration; + +public class SyncCreateCertificate { + + public static void main(String[] args) throws Exception { + syncCreateCertificate(); + } + + public static void syncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings.Builder certificateAuthorityServiceSettingsBuilder = + CertificateAuthorityServiceSettings.newBuilder(); + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .setRetrySettings( + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + certificateAuthorityServiceSettingsBuilder.build(); + } +} +// [END privateca_v1_generated_certificateauthorityservicesettings_createcertificate_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java new file mode 100644 index 00000000..90463782 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1.stub.samples; + +// [START privateca_v1_generated_certificateauthorityservicestubsettings_createcertificate_sync] +import com.google.cloud.security.privateca.v1.stub.CertificateAuthorityServiceStubSettings; +import java.time.Duration; + +public class SyncCreateCertificate { + + public static void main(String[] args) throws Exception { + syncCreateCertificate(); + } + + public static void syncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceStubSettings.Builder certificateAuthorityServiceSettingsBuilder = + CertificateAuthorityServiceStubSettings.newBuilder(); + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .setRetrySettings( + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CertificateAuthorityServiceStubSettings certificateAuthorityServiceSettings = + certificateAuthorityServiceSettingsBuilder.build(); + } +} +// [END privateca_v1_generated_certificateauthorityservicestubsettings_createcertificate_sync] diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java new file mode 100644 index 00000000..cddf0b51 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java @@ -0,0 +1,1994 @@ +package com.google.cloud.security.privateca.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+ * certificate authorities and issued certificates.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/security/privateca/v1beta1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CertificateAuthorityServiceGrpc { + + private CertificateAuthorityServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.security.privateca.v1beta1.CertificateAuthorityService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateMethod() { + io.grpc.MethodDescriptor getCreateCertificateMethod; + if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateMethod = getCreateCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificate")) + .build(); + } + } + } + return getCreateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateMethod() { + io.grpc.MethodDescriptor getGetCertificateMethod; + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateMethod = getGetCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) + .build(); + } + } + } + return getGetCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificates", + requestType = com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificatesMethod() { + io.grpc.MethodDescriptor getListCertificatesMethod; + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificatesMethod = getListCertificatesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificates")) + .build(); + } + } + } + return getListCertificatesMethod; + } + + private static volatile io.grpc.MethodDescriptor getRevokeCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRevokeCertificateMethod() { + io.grpc.MethodDescriptor getRevokeCertificateMethod; + if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = getRevokeCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("RevokeCertificate")) + .build(); + } + } + } + return getRevokeCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateMethod() { + io.grpc.MethodDescriptor getUpdateCertificateMethod; + if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = getUpdateCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificate")) + .build(); + } + } + } + return getUpdateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; + if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = getActivateCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ActivateCertificateAuthority")) + .build(); + } + } + } + return getActivateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; + if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = getCreateCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificateAuthority")) + .build(); + } + } + } + return getCreateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; + if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = getDisableCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DisableCertificateAuthority")) + .build(); + } + } + } + return getDisableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; + if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = getEnableCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("EnableCertificateAuthority")) + .build(); + } + } + } + return getEnableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", + requestType = com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod() { + io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; + if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = getFetchCertificateAuthorityCsrMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCertificateAuthorityCsr")) + .build(); + } + } + } + return getFetchCertificateAuthorityCsrMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; + if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = getGetCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateAuthority")) + .build(); + } + } + } + return getGetCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", + requestType = com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod() { + io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; + if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = getListCertificateAuthoritiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateAuthorities")) + .build(); + } + } + } + return getListCertificateAuthoritiesMethod; + } + + private static volatile io.grpc.MethodDescriptor getRestoreCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRestoreCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getRestoreCertificateAuthorityMethod; + if ((getRestoreCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getRestoreCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod = getRestoreCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("RestoreCertificateAuthority")) + .build(); + } + } + } + return getRestoreCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getScheduleDeleteCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ScheduleDeleteCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getScheduleDeleteCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getScheduleDeleteCertificateAuthorityMethod; + if ((getScheduleDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getScheduleDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod = getScheduleDeleteCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScheduleDeleteCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ScheduleDeleteCertificateAuthority")) + .build(); + } + } + } + return getScheduleDeleteCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; + if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = getUpdateCertificateAuthorityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateAuthority")) + .build(); + } + } + } + return getUpdateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", + requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateRevocationListMethod() { + io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; + if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = getGetCertificateRevocationListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateRevocationList")) + .build(); + } + } + } + return getGetCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", + requestType = com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateRevocationListsMethod() { + io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; + if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = getListCertificateRevocationListsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateRevocationLists")) + .build(); + } + } + } + return getListCertificateRevocationListsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", + requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod() { + io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; + if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = getUpdateCertificateRevocationListMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateRevocationList")) + .build(); + } + } + } + return getUpdateCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetReusableConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetReusableConfig", + requestType = com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetReusableConfigMethod() { + io.grpc.MethodDescriptor getGetReusableConfigMethod; + if ((getGetReusableConfigMethod = CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetReusableConfigMethod = CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) == null) { + CertificateAuthorityServiceGrpc.getGetReusableConfigMethod = getGetReusableConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReusableConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetReusableConfig")) + .build(); + } + } + } + return getGetReusableConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListReusableConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReusableConfigs", + requestType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListReusableConfigsMethod() { + io.grpc.MethodDescriptor getListReusableConfigsMethod; + if ((getListReusableConfigsMethod = CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListReusableConfigsMethod = CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) == null) { + CertificateAuthorityServiceGrpc.getListReusableConfigsMethod = getListReusableConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReusableConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListReusableConfigs")) + .build(); + } + } + } + return getListReusableConfigsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CertificateAuthorityServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CertificateAuthorityServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static abstract class CertificateAuthorityServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void createCertificate(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMethod(), responseObserver); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMethod(), responseObserver); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void listCertificates(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificatesMethod(), responseObserver); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void revokeCertificate(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeCertificateMethod(), responseObserver); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMethod(), responseObserver); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchCertificateAuthorityCsrMethod(), responseObserver); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateAuthoritiesMethod(), responseObserver); + } + + /** + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public void restoreCertificateAuthority(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public void scheduleDeleteCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getScheduleDeleteCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateAuthorityMethod(), responseObserver); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateRevocationListMethod(), responseObserver); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateRevocationListsMethod(), responseObserver); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateRevocationListMethod(), responseObserver); + } + + /** + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void getReusableConfig(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReusableConfigMethod(), responseObserver); + } + + /** + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void listReusableConfigs(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReusableConfigsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_CREATE_CERTIFICATE))) + .addMethod( + getGetCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_GET_CERTIFICATE))) + .addMethod( + getListCertificatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse>( + this, METHODID_LIST_CERTIFICATES))) + .addMethod( + getRevokeCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_REVOKE_CERTIFICATE))) + .addMethod( + getUpdateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_UPDATE_CERTIFICATE))) + .addMethod( + getActivateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getCreateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getDisableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getEnableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getFetchCertificateAuthorityCsrMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse>( + this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) + .addMethod( + getGetCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority>( + this, METHODID_GET_CERTIFICATE_AUTHORITY))) + .addMethod( + getListCertificateAuthoritiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse>( + this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) + .addMethod( + getRestoreCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_CERTIFICATE_AUTHORITY))) + .addMethod( + getScheduleDeleteCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY))) + .addMethod( + getUpdateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getGetCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>( + this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getListCertificateRevocationListsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse>( + this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) + .addMethod( + getUpdateCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getGetReusableConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, + com.google.cloud.security.privateca.v1beta1.ReusableConfig>( + this, METHODID_GET_REUSABLE_CONFIG))) + .addMethod( + getListReusableConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>( + this, METHODID_LIST_REUSABLE_CONFIGS))) + .build(); + } + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceStub extends io.grpc.stub.AbstractAsyncStub { + private CertificateAuthorityServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void createCertificate(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void listCertificates(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void revokeCertificate(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public void restoreCertificateAuthority(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public void scheduleDeleteCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void getReusableConfig(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void listReusableConfigs(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CertificateAuthorityServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate createCertificate(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse listCertificates(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificatesMethod(), getCallOptions(), request); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.longrunning.Operation activateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation disableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation enableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse listCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); + } + + /** + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public com.google.longrunning.Operation restoreCertificateAuthority(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public com.google.longrunning.Operation scheduleDeleteCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getScheduleDeleteCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse listCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReusableConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse listReusableConfigs(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReusableConfigsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private CertificateAuthorityServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificate( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificate( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificates( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); + } + + /** + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture revokeCertificate( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificate( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture activateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture disableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture enableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateAuthorities( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); + } + + /** + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture restoreCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture scheduleDeleteCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateRevocationLists( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getReusableConfig( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listReusableConfigs( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CERTIFICATE = 0; + private static final int METHODID_GET_CERTIFICATE = 1; + private static final int METHODID_LIST_CERTIFICATES = 2; + private static final int METHODID_REVOKE_CERTIFICATE = 3; + private static final int METHODID_UPDATE_CERTIFICATE = 4; + private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; + private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; + private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; + private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; + private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; + private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; + private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; + private static final int METHODID_RESTORE_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; + private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 15; + private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 16; + private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 17; + private static final int METHODID_GET_REUSABLE_CONFIG = 18; + private static final int METHODID_LIST_REUSABLE_CONFIGS = 19; + + 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 CertificateAuthorityServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CERTIFICATE: + serviceImpl.createCertificate((com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE: + serviceImpl.getCertificate((com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATES: + serviceImpl.listCertificates((com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REVOKE_CERTIFICATE: + serviceImpl.revokeCertificate((com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE: + serviceImpl.updateCertificate((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: + serviceImpl.activateCertificateAuthority((com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_AUTHORITY: + serviceImpl.createCertificateAuthority((com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISABLE_CERTIFICATE_AUTHORITY: + serviceImpl.disableCertificateAuthority((com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENABLE_CERTIFICATE_AUTHORITY: + serviceImpl.enableCertificateAuthority((com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: + serviceImpl.fetchCertificateAuthorityCsr((com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_AUTHORITY: + serviceImpl.getCertificateAuthority((com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_AUTHORITIES: + serviceImpl.listCertificateAuthorities((com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_CERTIFICATE_AUTHORITY: + serviceImpl.restoreCertificateAuthority((com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY: + serviceImpl.scheduleDeleteCertificateAuthority((com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_AUTHORITY: + serviceImpl.updateCertificateAuthority((com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_REVOCATION_LIST: + serviceImpl.getCertificateRevocationList((com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: + serviceImpl.listCertificateRevocationLists((com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: + serviceImpl.updateCertificateRevocationList((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_REUSABLE_CONFIG: + serviceImpl.getReusableConfig((com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_REUSABLE_CONFIGS: + serviceImpl.listReusableConfigs((com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) 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 CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CertificateAuthorityServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CertificateAuthorityService"); + } + } + + private static final class CertificateAuthorityServiceFileDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier { + CertificateAuthorityServiceFileDescriptorSupplier() {} + } + + private static final class CertificateAuthorityServiceMethodDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) + .addMethod(getCreateCertificateMethod()) + .addMethod(getGetCertificateMethod()) + .addMethod(getListCertificatesMethod()) + .addMethod(getRevokeCertificateMethod()) + .addMethod(getUpdateCertificateMethod()) + .addMethod(getActivateCertificateAuthorityMethod()) + .addMethod(getCreateCertificateAuthorityMethod()) + .addMethod(getDisableCertificateAuthorityMethod()) + .addMethod(getEnableCertificateAuthorityMethod()) + .addMethod(getFetchCertificateAuthorityCsrMethod()) + .addMethod(getGetCertificateAuthorityMethod()) + .addMethod(getListCertificateAuthoritiesMethod()) + .addMethod(getRestoreCertificateAuthorityMethod()) + .addMethod(getScheduleDeleteCertificateAuthorityMethod()) + .addMethod(getUpdateCertificateAuthorityMethod()) + .addMethod(getGetCertificateRevocationListMethod()) + .addMethod(getListCertificateRevocationListsMethod()) + .addMethod(getUpdateCertificateRevocationListMethod()) + .addMethod(getGetReusableConfigMethod()) + .addMethod(getListReusableConfigsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java index 951bf15f..787d85ee 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
@@ -28,18 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest}
  */
-public final class ActivateCertificateAuthorityRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ActivateCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)
     ActivateCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ActivateCertificateAuthorityRequest.newBuilder() to construct.
-  private ActivateCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ActivateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ActivateCertificateAuthorityRequest() {
     name_ = "";
     pemCaCertificate_ = "";
@@ -48,15 +28,16 @@ private ActivateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ActivateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ActivateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,52 +56,44 @@ private ActivateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pemCaCertificate_ = s;
-              break;
+            pemCaCertificate_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder = null;
+            if (subordinateConfig_ != null) {
+              subBuilder = subordinateConfig_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder =
-                  null;
-              if (subordinateConfig_ != null) {
-                subBuilder = subordinateConfig_.toBuilder();
-              }
-              subordinateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subordinateConfig_);
-                subordinateConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subordinateConfig_);
+              subordinateConfig_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -128,43 +101,35 @@ private ActivateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -173,32 +138,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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -209,15 +172,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PEM_CA_CERTIFICATE_FIELD_NUMBER = 2; private volatile java.lang.Object pemCaCertificate_; /** - * - * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pemCaCertificate. */ @java.lang.Override @@ -226,30 +186,30 @@ public java.lang.String getPemCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; } } /** - * - * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pemCaCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCaCertificateBytes() { + public com.google.protobuf.ByteString + getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -260,17 +220,12 @@ public com.google.protobuf.ByteString getPemCaCertificateBytes() { public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -278,48 +233,34 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -335,7 +276,6 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordin
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -344,15 +284,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -368,15 +307,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -385,7 +325,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -397,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -426,7 +366,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pemCaCertificate_); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubordinateConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -439,23 +380,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.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getPemCaCertificate().equals(other.getPemCaCertificate())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPemCaCertificate() + .equals(other.getPemCaCertificate())) return false; if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig() + .equals(other.getSubordinateConfig())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -482,154 +424,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - 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.security.privateca.v1beta1.ActivateCertificateAuthorityRequest 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.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -649,22 +573,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -672,10 +593,8 @@ public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = - new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(this); result.name_ = name_; result.pemCaCertificate_ = pemCaCertificate_; if (subordinateConfigBuilder_ == null) { @@ -692,54 +611,46 @@ public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -770,14 +681,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -789,23 +697,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -814,24 +718,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -839,70 +740,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -910,21 +798,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object pemCaCertificate_ = ""; /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pemCaCertificate. */ public java.lang.String getPemCaCertificate() { java.lang.Object ref = pemCaCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; @@ -933,22 +819,21 @@ public java.lang.String getPemCaCertificate() { } } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pemCaCertificate. */ - public com.google.protobuf.ByteString getPemCaCertificateBytes() { + public com.google.protobuf.ByteString + getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -956,64 +841,57 @@ public com.google.protobuf.ByteString getPemCaCertificateBytes() { } } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificate(java.lang.String value) { + public Builder setPemCaCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCaCertificate_ = value; onChanged(); return this; } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPemCaCertificate() { - + pemCaCertificate_ = getDefaultInstance().getPemCaCertificate(); onChanged(); return this; } /** - * - * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setPemCaCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCaCertificate_ = value; onChanged(); return this; @@ -1021,64 +899,44 @@ public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> - subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSubordinateConfig( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1092,16 +950,12 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder builderForValue) { @@ -1115,26 +969,18 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSubordinateConfig( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder( - subordinateConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); } else { subordinateConfig_ = value; } @@ -1146,16 +992,12 @@ public Builder mergeSubordinateConfig( return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -1169,69 +1011,51 @@ public Builder clearSubordinateConfig() { return this; } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder - getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } } /** - * - * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), getParentForChildren(), isClean()); + subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), + getParentForChildren(), + isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -1239,8 +1063,6 @@ public Builder clearSubordinateConfig() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1256,13 +1078,13 @@ public Builder clearSubordinateConfig() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1271,8 +1093,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1288,14 +1108,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1303,8 +1124,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1320,22 +1139,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1351,18 +1168,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1378,23 +1192,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1404,34 +1218,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .ActivateCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActivateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActivateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1443,8 +1253,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java index ee7618bf..638ca246 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java @@ -1,134 +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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ActivateCertificateAuthorityRequestOrBuilder - extends +public interface ActivateCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pemCaCertificate. */ java.lang.String getPemCaCertificate(); /** - * - * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for pemCaCertificate. */ - com.google.protobuf.ByteString getPemCaCertificateBytes(); + com.google.protobuf.ByteString + getPemCaCertificateBytes(); /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig(); /** - * - * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -144,13 +97,10 @@ public interface ActivateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -166,8 +116,8 @@ public interface ActivateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java index 88438ae7..3efed0a7 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] corresponds to a signed X.509 certificate issued by a
  * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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() {
     name_ = "";
     pemCertificate_ = "";
@@ -46,15 +28,16 @@ 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;
   }
-
   private Certificate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,162 +57,132 @@ private Certificate(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            certificateConfigCase_ = 2;
+            certificateConfig_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder = null;
+            if (certificateConfigCase_ == 3) {
+              subBuilder = ((com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_).toBuilder();
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              certificateConfigCase_ = 2;
-              certificateConfig_ = s;
-              break;
+            certificateConfig_ =
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_);
+              certificateConfig_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder =
-                  null;
-              if (certificateConfigCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.security.privateca.v1beta1.CertificateConfig)
-                            certificateConfig_)
-                        .toBuilder();
-              }
-              certificateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.security.privateca.v1beta1.CertificateConfig)
-                        certificateConfig_);
-                certificateConfig_ = subBuilder.buildPartial();
-              }
-              certificateConfigCase_ = 3;
-              break;
+            certificateConfigCase_ = 3;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (lifetime_ != null) {
+              subBuilder = lifetime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (lifetime_ != null) {
-                subBuilder = lifetime_.toBuilder();
-              }
-              lifetime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lifetime_);
-                lifetime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lifetime_);
+              lifetime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder
-                  subBuilder = null;
-              if (revocationDetails_ != null) {
-                subBuilder = revocationDetails_.toBuilder();
-              }
-              revocationDetails_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(revocationDetails_);
-                revocationDetails_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 42: {
+            com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder subBuilder = null;
+            if (revocationDetails_ != null) {
+              subBuilder = revocationDetails_.toBuilder();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              pemCertificate_ = s;
-              break;
+            revocationDetails_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(revocationDetails_);
+              revocationDetails_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder
-                  subBuilder = null;
-              if (certificateDescription_ != null) {
-                subBuilder = certificateDescription_.toBuilder();
-              }
-              certificateDescription_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateDescription_);
-                certificateDescription_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            pemCertificate_ = s;
+            break;
+          }
+          case 58: {
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder subBuilder = null;
+            if (certificateDescription_ != null) {
+              subBuilder = certificateDescription_.toBuilder();
             }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pemCertificateChain_.add(s);
-              break;
+            certificateDescription_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateDescription_);
+              certificateDescription_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            pemCertificateChain_.add(s);
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
+            }
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -237,7 +190,8 @@ private Certificate(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCertificateChain_ = pemCertificateChain_.getUnmodifiableView();
@@ -246,90 +200,73 @@ private Certificate(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_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 11:
         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.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.Certificate.class,
-            com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.Certificate.class, com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
   }
 
-  public interface RevocationDetailsOrBuilder
-      extends
+  public interface RevocationDetailsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * * @return The enum numeric value on the wire for revocationState. */ int getRevocationStateValue(); /** - * - * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * * @return The revocationState. */ com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState(); /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return Whether the revocationTime field is set. */ boolean hasRevocationTime(); /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return The revocationTime. */ com.google.protobuf.Timestamp getRevocationTime(); /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
@@ -339,39 +276,37 @@ public interface RevocationDetailsOrBuilder com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder(); } /** - * - * *
    * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails} */ - public static final class RevocationDetails extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RevocationDetails extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) RevocationDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevocationDetails.newBuilder() to construct. private RevocationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RevocationDetails() { revocationState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RevocationDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RevocationDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -390,35 +325,32 @@ private RevocationDetails( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - revocationState_ = rawValue; - break; + revocationState_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (revocationTime_ != null) { + subBuilder = revocationTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (revocationTime_ != null) { - subBuilder = revocationTime_.toBuilder(); - } - revocationTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationTime_); - revocationTime_ = subBuilder.buildPartial(); - } - - break; + revocationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(revocationTime_); + revocationTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -426,78 +358,61 @@ private RevocationDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder - .class); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder.class); } public static final int REVOCATION_STATE_FIELD_NUMBER = 1; private int revocationState_; /** - * - * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override - public int getRevocationStateValue() { + @java.lang.Override public int getRevocationStateValue() { return revocationState_; } /** - * - * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * * @return The revocationState. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = - com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); + return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; } public static final int REVOCATION_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp revocationTime_; /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return Whether the revocationTime field is set. */ @java.lang.Override @@ -505,25 +420,18 @@ public boolean hasRevocationTime() { return revocationTime_ != null; } /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return The revocationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevocationTime() { - return revocationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revocationTime_; + return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; } /** - * - * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
@@ -536,7 +444,6 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -548,11 +455,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (revocationState_ - != com.google.cloud.security.privateca.v1beta1.RevocationReason - .REVOCATION_REASON_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (revocationState_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(1, revocationState_); } if (revocationTime_ != null) { @@ -567,14 +472,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (revocationState_ - != com.google.cloud.security.privateca.v1beta1.RevocationReason - .REVOCATION_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, revocationState_); + if (revocationState_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, revocationState_); } if (revocationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRevocationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRevocationTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -584,19 +488,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other = - (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) obj; + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other = (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) obj; if (revocationState_ != other.revocationState_) return false; if (hasRevocationTime() != other.hasRevocationTime()) return false; if (hasRevocationTime()) { - if (!getRevocationTime().equals(other.getRevocationTime())) return false; + if (!getRevocationTime() + .equals(other.getRevocationTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -620,101 +523,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - 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.security.privateca.v1beta1.Certificate.RevocationDetails 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.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -724,50 +614,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder - .class); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -783,22 +667,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails build() { - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -806,10 +687,8 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - buildPartial() { - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = - new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(this); + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails buildPartial() { + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(this); result.revocationState_ = revocationState_; if (revocationTimeBuilder_ == null) { result.revocationTime_ = revocationTime_; @@ -824,54 +703,46 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.Certificate.RevocationDetails) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other) { - if (other - == com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other) { + if (other == com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance()) return this; if (other.revocationState_ != 0) { setRevocationStateValue(other.getRevocationStateValue()); } @@ -893,14 +764,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -912,98 +780,73 @@ public Builder mergeFrom( private int revocationState_ = 0; /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override - public int getRevocationStateValue() { + @java.lang.Override public int getRevocationStateValue() { return revocationState_; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; * @param value The enum numeric value on the wire for revocationState to set. * @return This builder for chaining. */ public Builder setRevocationStateValue(int value) { - + revocationState_ = value; onChanged(); return this; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; * @return The revocationState. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = - com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); + return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; * @param value The revocationState to set. * @return This builder for chaining. */ - public Builder setRevocationState( - com.google.cloud.security.privateca.v1beta1.RevocationReason value) { + public Builder setRevocationState(com.google.cloud.security.privateca.v1beta1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; * @return This builder for chaining. */ public Builder clearRevocationState() { - + revocationState_ = 0; onChanged(); return this; @@ -1011,47 +854,34 @@ public Builder clearRevocationState() { private com.google.protobuf.Timestamp revocationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - revocationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revocationTimeBuilder_; /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return Whether the revocationTime field is set. */ public boolean hasRevocationTime() { return revocationTimeBuilder_ != null || revocationTime_ != null; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; - * * @return The revocationTime. */ public com.google.protobuf.Timestamp getRevocationTime() { if (revocationTimeBuilder_ == null) { - return revocationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revocationTime_; + return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; } else { return revocationTimeBuilder_.getMessage(); } } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -1072,15 +902,14 @@ public Builder setRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; */ - public Builder setRevocationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevocationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (revocationTimeBuilder_ == null) { revocationTime_ = builderForValue.build(); onChanged(); @@ -1091,8 +920,6 @@ public Builder setRevocationTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -1103,9 +930,7 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { if (revocationTimeBuilder_ == null) { if (revocationTime_ != null) { revocationTime_ = - com.google.protobuf.Timestamp.newBuilder(revocationTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(revocationTime_).mergeFrom(value).buildPartial(); } else { revocationTime_ = value; } @@ -1117,8 +942,6 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -1137,8 +960,6 @@ public Builder clearRevocationTime() { return this; } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -1146,13 +967,11 @@ public Builder clearRevocationTime() { * .google.protobuf.Timestamp revocation_time = 2; */ public com.google.protobuf.Timestamp.Builder getRevocationTimeBuilder() { - + onChanged(); return getRevocationTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -1163,14 +982,11 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { if (revocationTimeBuilder_ != null) { return revocationTimeBuilder_.getMessageOrBuilder(); } else { - return revocationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revocationTime_; + return revocationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; } } /** - * - * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -1178,22 +994,18 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { * .google.protobuf.Timestamp revocation_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getRevocationTimeFieldBuilder() { if (revocationTimeBuilder_ == null) { - revocationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRevocationTime(), getParentForChildren(), isClean()); + revocationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRevocationTime(), + getParentForChildren(), + isClean()); revocationTime_ = null; } return revocationTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1206,33 +1018,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) - private static final com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevocationDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevocationDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1244,24 +1053,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int certificateConfigCase_ = 0; private java.lang.Object certificateConfig_; - public enum CertificateConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PEM_CSR(2), CONFIG(3), CERTIFICATECONFIG_NOT_SET(0); private final int value; - private CertificateConfigCase(int value) { this.value = value; } @@ -1277,38 +1083,32 @@ public static CertificateConfigCase valueOf(int value) { public static CertificateConfigCase forNumber(int value) { switch (value) { - case 2: - return PEM_CSR; - case 3: - return CONFIG; - case 0: - return CERTIFICATECONFIG_NOT_SET; - default: - return null; + case 2: return PEM_CSR; + case 3: return CONFIG; + case 0: return CERTIFICATECONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CertificateConfigCase getCertificateConfigCase() { - return CertificateConfigCase.forNumber(certificateConfigCase_); + public CertificateConfigCase + getCertificateConfigCase() { + return CertificateConfigCase.forNumber( + certificateConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1317,30 +1117,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * 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 { @@ -1350,28 +1150,22 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PEM_CSR_FIELD_NUMBER = 2; /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return Whether the pemCsr field is set. */ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pemCsr. */ public java.lang.String getPemCsr() { @@ -1382,7 +1176,8 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -1391,24 +1186,23 @@ public java.lang.String getPemCsr() { } } /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -1420,17 +1214,12 @@ public com.google.protobuf.ByteString getPemCsrBytes() { public static final int CONFIG_FIELD_NUMBER = 3; /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ @java.lang.Override @@ -1438,43 +1227,33 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); } /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder - getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); } @@ -1482,8 +1261,6 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() public static final int LIFETIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration lifetime_; /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1491,10 +1268,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig()
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ @java.lang.Override @@ -1502,8 +1276,6 @@ public boolean hasLifetime() { return lifetime_ != null; } /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1511,10 +1283,7 @@ public boolean hasLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ @java.lang.Override @@ -1522,8 +1291,6 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1531,9 +1298,7 @@ public com.google.protobuf.Duration getLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -1541,20 +1306,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { } public static final int REVOCATION_DETAILS_FIELD_NUMBER = 5; - private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - revocationDetails_; + private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocationDetails_; /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revocationDetails field is set. */ @java.lang.Override @@ -1562,56 +1321,39 @@ public boolean hasRevocationDetails() { return revocationDetails_ != null; } /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revocationDetails. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - getRevocationDetails() { - return revocationDetails_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - .getDefaultInstance() - : revocationDetails_; + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getRevocationDetails() { + return revocationDetails_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; } /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder - getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { return getRevocationDetails(); } public static final int PEM_CERTIFICATE_FIELD_NUMBER = 6; private volatile java.lang.Object pemCertificate_; /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ @java.lang.Override @@ -1620,29 +1362,29 @@ public java.lang.String getPemCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; } } /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCertificateBytes() { + public com.google.protobuf.ByteString + getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -1651,19 +1393,13 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { } public static final int CERTIFICATE_DESCRIPTION_FIELD_NUMBER = 7; - private com.google.cloud.security.privateca.v1beta1.CertificateDescription - certificateDescription_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription certificateDescription_; /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certificateDescription field is set. */ @java.lang.Override @@ -1671,87 +1407,63 @@ public boolean hasCertificateDescription() { return certificateDescription_ != null; } /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certificateDescription. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - getCertificateDescription() { - return certificateDescription_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() - : certificateDescription_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCertificateDescription() { + return certificateDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() : certificateDescription_; } /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder - getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { return getCertificateDescription(); } public static final int PEM_CERTIFICATE_CHAIN_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList pemCertificateChain_; /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList + getPemCertificateChainList() { return pemCertificateChain_; } /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1759,35 +1471,28 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1795,15 +1500,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1811,14 +1512,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1828,15 +1526,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1844,15 +1538,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1860,14 +1550,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1875,23 +1562,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_Certificate_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.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_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_; } @@ -1900,30 +1588,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1931,12 +1617,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1944,16 +1629,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1961,11 +1646,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1973,7 +1659,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1985,7 +1670,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1993,8 +1679,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateConfig_); } if (certificateConfigCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); + output.writeMessage(3, (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); } if (lifetime_ != null) { output.writeMessage(4, getLifetime()); @@ -2017,8 +1702,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(10, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 11); unknownFields.writeTo(output); } @@ -2035,23 +1724,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateConfig_); } if (certificateConfigCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLifetime()); } if (revocationDetails_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRevocationDetails()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRevocationDetails()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pemCertificate_); } if (certificateDescription_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCertificateDescription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCertificateDescription()); } { int dataSize = 0; @@ -2062,20 +1751,22 @@ public int getSerializedSize() { size += 1 * getPemCertificateChainList().size(); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); - } - 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(11, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpdateTime()); + } + 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(11, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2085,45 +1776,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.Certificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.Certificate other = - (com.google.cloud.security.privateca.v1beta1.Certificate) obj; + com.google.cloud.security.privateca.v1beta1.Certificate other = (com.google.cloud.security.privateca.v1beta1.Certificate) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime().equals(other.getLifetime())) return false; + if (!getLifetime() + .equals(other.getLifetime())) return false; } if (hasRevocationDetails() != other.hasRevocationDetails()) return false; if (hasRevocationDetails()) { - if (!getRevocationDetails().equals(other.getRevocationDetails())) return false; + if (!getRevocationDetails() + .equals(other.getRevocationDetails())) return false; } - if (!getPemCertificate().equals(other.getPemCertificate())) return false; + if (!getPemCertificate() + .equals(other.getPemCertificate())) return false; if (hasCertificateDescription() != other.hasCertificateDescription()) return false; if (hasCertificateDescription()) { - if (!getCertificateDescription().equals(other.getCertificateDescription())) return false; + if (!getCertificateDescription() + .equals(other.getCertificateDescription())) return false; } - if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; + if (!getPemCertificateChainList() + .equals(other.getPemCertificateChainList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!getCertificateConfigCase().equals(other.getCertificateConfigCase())) return false; switch (certificateConfigCase_) { case 2: - if (!getPemCsr().equals(other.getPemCsr())) return false; + if (!getPemCsr() + .equals(other.getPemCsr())) return false; break; case 3: - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; break; case 0: default: @@ -2189,104 +1890,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.Certificate 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.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Certificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Certificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate] corresponds to a signed X.509 certificate issued by a
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -2294,43 +1987,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate)
       com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 11:
           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 11:
           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.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.Certificate.class,
-              com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.Certificate.class, com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder()
@@ -2338,15 +2031,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2393,9 +2087,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
     }
 
     @java.lang.Override
@@ -2414,8 +2108,7 @@ public com.google.cloud.security.privateca.v1beta1.Certificate build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.Certificate buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.Certificate result =
-          new com.google.cloud.security.privateca.v1beta1.Certificate(this);
+      com.google.cloud.security.privateca.v1beta1.Certificate result = new com.google.cloud.security.privateca.v1beta1.Certificate(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (certificateConfigCase_ == 2) {
@@ -2470,39 +2163,38 @@ public com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Certificate) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Certificate)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2510,8 +2202,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2545,24 +2236,22 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       switch (other.getCertificateConfigCase()) {
-        case PEM_CSR:
-          {
-            certificateConfigCase_ = 2;
-            certificateConfig_ = other.certificateConfig_;
-            onChanged();
-            break;
-          }
-        case CONFIG:
-          {
-            mergeConfig(other.getConfig());
-            break;
-          }
-        case CERTIFICATECONFIG_NOT_SET:
-          {
-            break;
-          }
+        case PEM_CSR: {
+          certificateConfigCase_ = 2;
+          certificateConfig_ = other.certificateConfig_;
+          onChanged();
+          break;
+        }
+        case CONFIG: {
+          mergeConfig(other.getConfig());
+          break;
+        }
+        case CERTIFICATECONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2583,8 +2272,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.Certificate) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.Certificate) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2593,12 +2281,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int certificateConfigCase_ = 0;
     private java.lang.Object certificateConfig_;
-
-    public CertificateConfigCase getCertificateConfigCase() {
-      return CertificateConfigCase.forNumber(certificateConfigCase_);
+    public CertificateConfigCase
+        getCertificateConfigCase() {
+      return CertificateConfigCase.forNumber(
+          certificateConfigCase_);
     }
 
     public Builder clearCertificateConfig() {
@@ -2612,21 +2300,19 @@ public Builder clearCertificateConfig() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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; @@ -2635,22 +2321,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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 { @@ -2658,78 +2343,68 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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 path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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 path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return Whether the pemCsr field is set. */ @java.lang.Override @@ -2737,14 +2412,11 @@ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pemCsr. */ @java.lang.Override @@ -2754,7 +2426,8 @@ public java.lang.String getPemCsr() { ref = certificateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -2765,25 +2438,24 @@ public java.lang.String getPemCsr() { } } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -2793,35 +2465,30 @@ public com.google.protobuf.ByteString getPemCsrBytes() { } } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - certificateConfigCase_ = 2; + public Builder setPemCsr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearPemCsr() { @@ -2833,22 +2500,20 @@ public Builder clearPemCsr() { return this; } /** - * - * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); @@ -2856,22 +2521,14 @@ public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> - configBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> configBuilder_; /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ @java.lang.Override @@ -2879,17 +2536,12 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ @java.lang.Override @@ -2907,16 +2559,12 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() } } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { @@ -2932,16 +2580,12 @@ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.Certificate return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig( com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder builderForValue) { @@ -2955,30 +2599,19 @@ public Builder setConfig( return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeConfig( - com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { + public Builder mergeConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { - if (certificateConfigCase_ == 3 - && certificateConfig_ - != com.google.cloud.security.privateca.v1beta1.CertificateConfig - .getDefaultInstance()) { - certificateConfig_ = - com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder( - (com.google.cloud.security.privateca.v1beta1.CertificateConfig) - certificateConfig_) - .mergeFrom(value) - .buildPartial(); + if (certificateConfigCase_ == 3 && + certificateConfig_ != com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance()) { + certificateConfig_ = com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder((com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_) + .mergeFrom(value).buildPartial(); } else { certificateConfig_ = value; } @@ -2994,16 +2627,12 @@ public Builder mergeConfig( return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -3022,36 +2651,26 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder - getConfigBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder - getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { if ((certificateConfigCase_ == 3) && (configBuilder_ != null)) { return configBuilder_.getMessageOrBuilder(); } else { @@ -3062,52 +2681,36 @@ public Builder clearConfig() { } } /** - * - * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { if (!(certificateConfigCase_ == 3)) { - certificateConfig_ = - com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); + certificateConfig_ = com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); } - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_, getParentForChildren(), isClean()); certificateConfig_ = null; } certificateConfigCase_ = 3; - onChanged(); - ; + onChanged();; return configBuilder_; } private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - lifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3115,18 +2718,13 @@ public Builder clearConfig() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3134,10 +2732,7 @@ public boolean hasLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -3148,8 +2743,6 @@ public com.google.protobuf.Duration getLifetime() { } } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3157,9 +2750,7 @@ public com.google.protobuf.Duration getLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -3175,8 +2766,6 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3184,11 +2773,10 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -3199,8 +2787,6 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3208,15 +2794,13 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue)
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -3228,8 +2812,6 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3237,9 +2819,7 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -3253,8 +2833,6 @@ public Builder clearLifetime() { return this; } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3262,18 +2840,14 @@ public Builder clearLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3281,20 +2855,17 @@ public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** - * - * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3302,90 +2873,62 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLifetime(), getParentForChildren(), isClean()); + lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getLifetime(), + getParentForChildren(), + isClean()); lifetime_ = null; } return lifetimeBuilder_; } - private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - revocationDetails_; + private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocationDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> - revocationDetailsBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> revocationDetailsBuilder_; /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revocationDetails field is set. */ public boolean hasRevocationDetails() { return revocationDetailsBuilder_ != null || revocationDetails_ != null; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revocationDetails. */ - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - getRevocationDetails() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getRevocationDetails() { if (revocationDetailsBuilder_ == null) { - return revocationDetails_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - .getDefaultInstance() - : revocationDetails_; + return revocationDetails_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; } else { return revocationDetailsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setRevocationDetails( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { + public Builder setRevocationDetails(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3399,20 +2942,15 @@ public Builder setRevocationDetails( return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevocationDetails( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder builderForValue) { if (revocationDetailsBuilder_ == null) { revocationDetails_ = builderForValue.build(); onChanged(); @@ -3423,26 +2961,18 @@ public Builder setRevocationDetails( return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeRevocationDetails( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { + public Builder mergeRevocationDetails(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (revocationDetails_ != null) { revocationDetails_ = - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder( - revocationDetails_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder(revocationDetails_).mergeFrom(value).buildPartial(); } else { revocationDetails_ = value; } @@ -3454,16 +2984,12 @@ public Builder mergeRevocationDetails( return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRevocationDetails() { if (revocationDetailsBuilder_ == null) { @@ -3477,70 +3003,51 @@ public Builder clearRevocationDetails() { return this; } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder - getRevocationDetailsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder getRevocationDetailsBuilder() { + onChanged(); return getRevocationDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder - getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { if (revocationDetailsBuilder_ != null) { return revocationDetailsBuilder_.getMessageOrBuilder(); } else { - return revocationDetails_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails - .getDefaultInstance() - : revocationDetails_; + return revocationDetails_ == null ? + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; } } /** - * - * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> getRevocationDetailsFieldBuilder() { if (revocationDetailsBuilder_ == null) { - revocationDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder>( - getRevocationDetails(), getParentForChildren(), isClean()); + revocationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder>( + getRevocationDetails(), + getParentForChildren(), + isClean()); revocationDetails_ = null; } return revocationDetailsBuilder_; @@ -3548,20 +3055,18 @@ public Builder clearRevocationDetails() { private java.lang.Object pemCertificate_ = ""; /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ public java.lang.String getPemCertificate() { java.lang.Object ref = pemCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; @@ -3570,21 +3075,20 @@ public java.lang.String getPemCertificate() { } } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCertificate. */ - public com.google.protobuf.ByteString getPemCertificateBytes() { + public com.google.protobuf.ByteString + getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -3592,126 +3096,96 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { } } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificate(java.lang.String value) { + public Builder setPemCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCertificate_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCertificate() { - + pemCertificate_ = getDefaultInstance().getPemCertificate(); onChanged(); return this; } /** - * - * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setPemCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCertificate_ = value; onChanged(); return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateDescription - certificateDescription_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription certificateDescription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> - certificateDescriptionBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> certificateDescriptionBuilder_; /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certificateDescription field is set. */ public boolean hasCertificateDescription() { return certificateDescriptionBuilder_ != null || certificateDescription_ != null; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certificateDescription. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - getCertificateDescription() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCertificateDescription() { if (certificateDescriptionBuilder_ == null) { - return certificateDescription_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription - .getDefaultInstance() - : certificateDescription_; + return certificateDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() : certificateDescription_; } else { return certificateDescriptionBuilder_.getMessage(); } } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCertificateDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { + public Builder setCertificateDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3725,19 +3199,14 @@ public Builder setCertificateDescription( return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCertificateDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { if (certificateDescriptionBuilder_ == null) { certificateDescription_ = builderForValue.build(); onChanged(); @@ -3748,25 +3217,17 @@ public Builder setCertificateDescription( return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCertificateDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { + public Builder mergeCertificateDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (certificateDescription_ != null) { certificateDescription_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder( - certificateDescription_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder(certificateDescription_).mergeFrom(value).buildPartial(); } else { certificateDescription_ = value; } @@ -3778,15 +3239,11 @@ public Builder mergeCertificateDescription( return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCertificateDescription() { if (certificateDescriptionBuilder_ == null) { @@ -3800,124 +3257,92 @@ public Builder clearCertificateDescription() { return this; } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - getCertificateDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder getCertificateDescriptionBuilder() { + onChanged(); return getCertificateDescriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder - getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { if (certificateDescriptionBuilder_ != null) { return certificateDescriptionBuilder_.getMessageOrBuilder(); } else { - return certificateDescription_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription - .getDefaultInstance() - : certificateDescription_; + return certificateDescription_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() : certificateDescription_; } } /** - * - * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> getCertificateDescriptionFieldBuilder() { if (certificateDescriptionBuilder_ == null) { - certificateDescriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( - getCertificateDescription(), getParentForChildren(), isClean()); + certificateDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( + getCertificateDescription(), + getParentForChildren(), + isClean()); certificateDescription_ = null; } return certificateDescriptionBuilder_; } - private com.google.protobuf.LazyStringList pemCertificateChain_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePemCertificateChainIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList(pemCertificateChain_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList + getPemCertificateChainList() { return pemCertificateChain_.getUnmodifiableView(); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -3925,100 +3350,85 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. */ - public Builder setPemCertificateChain(int index, java.lang.String value) { + public Builder setPemCertificateChain( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChain(java.lang.String value) { + public Builder addPemCertificateChain( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addAllPemCertificateChain(java.lang.Iterable values) { + public Builder addAllPemCertificateChain( + java.lang.Iterable values) { ensurePemCertificateChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificateChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pemCertificateChain_); onChanged(); return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPemCertificateChain() { @@ -4028,24 +3438,21 @@ public Builder clearPemCertificateChain() { return this; } /** - * - * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value) { + public Builder addPemCertificateChainBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); @@ -4054,58 +3461,39 @@ public Builder addPemCertificateChainBytes(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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4121,17 +3509,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.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(); @@ -4142,21 +3527,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.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; } @@ -4168,15 +3549,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4190,64 +3567,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -4255,58 +3616,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4322,17 +3664,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4343,21 +3682,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4369,15 +3704,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4391,84 +3722,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private 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(); @@ -4480,30 +3796,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4511,12 +3825,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4524,17 +3837,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4542,11 +3854,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -4554,66 +3867,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4623,12 +3939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.Certificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Certificate) private static final com.google.cloud.security.privateca.v1beta1.Certificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Certificate(); } @@ -4637,16 +3953,16 @@ public static com.google.cloud.security.privateca.v1beta1.Certificate getDefault 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 { - return new Certificate(input, extensionRegistry); - } - }; + 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 { + return new Certificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4661,4 +3977,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java index d5aa1b41..7ec4a263 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] represents an individual Certificate Authority.
  * A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority}
  */
-public final class CertificateAuthority extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateAuthority extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority)
     CertificateAuthorityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateAuthority.newBuilder() to construct.
   private CertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateAuthority() {
     name_ = "";
     type_ = 0;
@@ -50,15 +32,16 @@ private CertificateAuthority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateAuthority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateAuthority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,260 +61,204 @@ private CertificateAuthority(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
+
+            type_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
+
+            tier_ = rawValue;
+            break;
+          }
+          case 34: {
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
+            }
+            config_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 16:
-            {
-              int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (lifetime_ != null) {
+              subBuilder = lifetime_.toBuilder();
+            }
+            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lifetime_);
+              lifetime_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              int rawValue = input.readEnum();
 
-              tier_ = rawValue;
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder subBuilder = null;
+            if (keySpec_ != null) {
+              subBuilder = keySpec_.toBuilder();
+            }
+            keySpec_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(keySpec_);
+              keySpec_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder =
-                  null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder subBuilder = null;
+            if (certificatePolicy_ != null) {
+              subBuilder = certificatePolicy_.toBuilder();
+            }
+            certificatePolicy_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificatePolicy_);
+              certificatePolicy_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (lifetime_ != null) {
-                subBuilder = lifetime_.toBuilder();
-              }
-              lifetime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lifetime_);
-                lifetime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 66: {
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder subBuilder = null;
+            if (issuingOptions_ != null) {
+              subBuilder = issuingOptions_.toBuilder();
+            }
+            issuingOptions_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(issuingOptions_);
+              issuingOptions_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec
-                      .Builder
-                  subBuilder = null;
-              if (keySpec_ != null) {
-                subBuilder = keySpec_.toBuilder();
-              }
-              keySpec_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority
-                          .KeyVersionSpec.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(keySpec_);
-                keySpec_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority
-                      .CertificateAuthorityPolicy.Builder
-                  subBuilder = null;
-              if (certificatePolicy_ != null) {
-                subBuilder = certificatePolicy_.toBuilder();
-              }
-              certificatePolicy_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority
-                          .CertificateAuthorityPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificatePolicy_);
-                certificatePolicy_ = subBuilder.buildPartial();
-              }
+            pemCaCertificates_.add(s);
+            break;
+          }
+          case 80: {
+            int rawValue = input.readEnum();
 
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 98: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              caCertificateDescriptions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 66:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions
-                      .Builder
-                  subBuilder = null;
-              if (issuingOptions_ != null) {
-                subBuilder = issuingOptions_.toBuilder();
-              }
-              issuingOptions_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority
-                          .IssuingOptions.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(issuingOptions_);
-                issuingOptions_ = subBuilder.buildPartial();
-              }
+            caCertificateDescriptions_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(), extensionRegistry));
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              break;
+            gcsBucket_ = s;
+            break;
+          }
+          case 114: {
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder subBuilder = null;
+            if (accessUrls_ != null) {
+              subBuilder = accessUrls_.toBuilder();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              pemCaCertificates_.add(s);
-              break;
+            accessUrls_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(accessUrls_);
+              accessUrls_ = subBuilder.buildPartial();
             }
-          case 80:
-            {
-              int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            break;
+          }
+          case 122: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 98:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                caCertificateDescriptions_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1beta1.CertificateDescription>();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              caCertificateDescriptions_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(),
-                      extensionRegistry));
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              gcsBucket_ = s;
-              break;
+            break;
+          }
+          case 130: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 114:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder
-                  subBuilder = null;
-              if (accessUrls_ != null) {
-                subBuilder = accessUrls_.toBuilder();
-              }
-              accessUrls_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(accessUrls_);
-                accessUrls_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 138: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (deleteTime_ != null) {
+              subBuilder = deleteTime_.toBuilder();
             }
-          case 130:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(deleteTime_);
+              deleteTime_ = subBuilder.buildPartial();
             }
-          case 138:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (deleteTime_ != null) {
-                subBuilder = deleteTime_.toBuilder();
-              }
-              deleteTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(deleteTime_);
-                deleteTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 146: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 146:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000004;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 154: {
+            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder = null;
+            if (subordinateConfig_ != null) {
+              subBuilder = subordinateConfig_.toBuilder();
             }
-          case 154:
-            {
-              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder =
-                  null;
-              if (subordinateConfig_ != null) {
-                subBuilder = subordinateConfig_.toBuilder();
-              }
-              subordinateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subordinateConfig_);
-                subordinateConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subordinateConfig_);
+              subordinateConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -339,59 +266,54 @@ private CertificateAuthority(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCaCertificates_ = pemCaCertificates_.getUnmodifiableView();
       }
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        caCertificateDescriptions_ =
-            java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+        caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_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 18:
         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.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class,
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating its issuing chain.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -400,8 +322,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Self-signed CA.
      * 
@@ -410,8 +330,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ SELF_SIGNED(1), /** - * - * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * or an unmanaged CA.
@@ -424,8 +342,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -434,8 +350,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Self-signed CA.
      * 
@@ -444,8 +358,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SELF_SIGNED_VALUE = 1; /** - * - * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * or an unmanaged CA.
@@ -455,6 +367,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUBORDINATE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -479,51 +392,49 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0:
-          return TYPE_UNSPECIFIED;
-        case 1:
-          return SELF_SIGNED;
-        case 2:
-          return SUBORDINATE;
-        default:
-          return null;
+        case 0: return TYPE_UNSPECIFIED;
+        case 1: return SELF_SIGNED;
+        case 2: return SUBORDINATE;
+        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<
+        Type> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Type findValueByNumber(int number) {
+              return Type.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Type findValueByNumber(int number) {
-            return Type.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -541,8 +452,6 @@ private Type(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The tier of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating its supported
    * functionality and/or billing SKU.
@@ -550,10 +459,9 @@ private Type(int value) {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier}
    */
-  public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Tier
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -562,8 +470,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * Enterprise tier.
      * 
@@ -572,8 +478,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ ENTERPRISE(1), /** - * - * *
      * DevOps tier.
      * 
@@ -585,8 +489,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -595,8 +497,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Enterprise tier.
      * 
@@ -605,8 +505,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENTERPRISE_VALUE = 1; /** - * - * *
      * DevOps tier.
      * 
@@ -615,6 +513,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEVOPS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -639,51 +538,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return ENTERPRISE; - case 2: - return DEVOPS; - default: - return null; + case 0: return TIER_UNSPECIFIED; + case 1: return ENTERPRISE; + case 2: return DEVOPS; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -701,18 +598,15 @@ private Tier(int value) { } /** - * - * *
    * The state of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating if it can be used.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -721,8 +615,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA.
@@ -732,8 +624,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ENABLED(1),
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * 
@@ -742,8 +632,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DISABLED(2), /** - * - * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -752,8 +640,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PENDING_ACTIVATION(3), /** - * - * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -765,8 +651,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -775,8 +659,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA.
@@ -786,8 +668,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ENABLED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * 
@@ -796,8 +676,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISABLED_VALUE = 2; /** - * - * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -806,8 +684,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_ACTIVATION_VALUE = 3; /** - * - * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -816,6 +692,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_DELETION_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -840,55 +717,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - case 3: - return PENDING_ACTIVATION; - case 4: - return PENDING_DELETION; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + case 3: return PENDING_ACTIVATION; + case 4: return PENDING_DELETION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(2); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -906,8 +779,6 @@ private State(int value) { } /** - * - * *
    * The algorithm of a Cloud KMS CryptoKeyVersion of a
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] with the
@@ -920,13 +791,11 @@ private State(int value) {
    * https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
    * 
* - * Protobuf enum {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm} + * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm} */ - public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum { + public enum SignHashAlgorithm + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -935,8 +804,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ SIGN_HASH_ALGORITHM_UNSPECIFIED(0), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -945,8 +812,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PSS_2048_SHA256(1), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -955,8 +820,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PSS_3072_SHA256(2), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -965,8 +828,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PSS_4096_SHA256(3), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -975,8 +836,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PKCS1_2048_SHA256(6), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -985,8 +844,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PKCS1_3072_SHA256(7), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -995,8 +852,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ RSA_PKCS1_4096_SHA256(8), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -1005,8 +860,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ EC_P256_SHA256(4), /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -1018,8 +871,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Not specified.
      * 
@@ -1028,8 +879,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int SIGN_HASH_ALGORITHM_UNSPECIFIED_VALUE = 0; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -1038,8 +887,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -1048,8 +895,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -1058,8 +903,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -1068,8 +911,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PKCS1_2048_SHA256_VALUE = 6; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -1078,8 +919,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PKCS1_3072_SHA256_VALUE = 7; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -1088,8 +927,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int RSA_PKCS1_4096_SHA256_VALUE = 8; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -1098,8 +935,6 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int EC_P256_SHA256_VALUE = 4; /** - * - * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -1108,6 +943,7 @@ public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum */ public static final int EC_P384_SHA384_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1132,26 +968,16 @@ public static SignHashAlgorithm valueOf(int value) { */ public static SignHashAlgorithm forNumber(int value) { switch (value) { - case 0: - return SIGN_HASH_ALGORITHM_UNSPECIFIED; - case 1: - return RSA_PSS_2048_SHA256; - case 2: - return RSA_PSS_3072_SHA256; - case 3: - return RSA_PSS_4096_SHA256; - case 6: - return RSA_PKCS1_2048_SHA256; - case 7: - return RSA_PKCS1_3072_SHA256; - case 8: - return RSA_PKCS1_4096_SHA256; - case 4: - return EC_P256_SHA256; - case 5: - return EC_P384_SHA384; - default: - return null; + case 0: return SIGN_HASH_ALGORITHM_UNSPECIFIED; + case 1: return RSA_PSS_2048_SHA256; + case 2: return RSA_PSS_3072_SHA256; + case 3: return RSA_PSS_4096_SHA256; + case 6: return RSA_PKCS1_2048_SHA256; + case 7: return RSA_PKCS1_3072_SHA256; + case 8: return RSA_PKCS1_4096_SHA256; + case 4: return EC_P256_SHA256; + case 5: return EC_P384_SHA384; + default: return null; } } @@ -1159,31 +985,29 @@ public static SignHashAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SignHashAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignHashAlgorithm findValueByNumber(int number) { + return SignHashAlgorithm.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignHashAlgorithm findValueByNumber(int number) { - return SignHashAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor() - .getEnumTypes() - .get(3); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(3); } private static final SignHashAlgorithm[] VALUES = values(); @@ -1191,7 +1015,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SignHashAlgorithm 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; @@ -1208,28 +1033,22 @@ private SignHashAlgorithm(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm) } - public interface IssuingOptionsOrBuilder - extends + public interface IssuingOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. When true, includes a URL to the issuing CA certificate in the
      * "authority information access" X.509 extension.
      * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The includeCaCertUrl. */ boolean getIncludeCaCertUrl(); /** - * - * *
      * Required. When true, includes a URL to the CRL corresponding to certificates
      * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1238,44 +1057,41 @@ public interface IssuingOptionsOrBuilder
      * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The includeCrlAccessUrl. */ boolean getIncludeCrlAccessUrl(); } /** - * - * *
    * Options that affect all certificates issued by a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} */ - public static final class IssuingOptions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IssuingOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) IssuingOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IssuingOptions.newBuilder() to construct. private IssuingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IssuingOptions() {} + private IssuingOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IssuingOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IssuingOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1294,23 +1110,23 @@ private IssuingOptions( case 0: done = true; break; - case 8: - { - includeCaCertUrl_ = input.readBool(); - break; - } - case 16: - { - includeCrlAccessUrl_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + includeCaCertUrl_ = input.readBool(); + break; + } + case 16: { + + includeCrlAccessUrl_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1318,41 +1134,35 @@ private IssuingOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder.class); } public static final int INCLUDE_CA_CERT_URL_FIELD_NUMBER = 1; private boolean includeCaCertUrl_; /** - * - * *
      * Required. When true, includes a URL to the issuing CA certificate in the
      * "authority information access" X.509 extension.
      * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The includeCaCertUrl. */ @java.lang.Override @@ -1363,8 +1173,6 @@ public boolean getIncludeCaCertUrl() { public static final int INCLUDE_CRL_ACCESS_URL_FIELD_NUMBER = 2; private boolean includeCrlAccessUrl_; /** - * - * *
      * Required. When true, includes a URL to the CRL corresponding to certificates
      * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1373,7 +1181,6 @@ public boolean getIncludeCaCertUrl() {
      * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The includeCrlAccessUrl. */ @java.lang.Override @@ -1382,7 +1189,6 @@ public boolean getIncludeCrlAccessUrl() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1394,7 +1200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeCaCertUrl_ != false) { output.writeBool(1, includeCaCertUrl_); } @@ -1411,10 +1218,12 @@ public int getSerializedSize() { size = 0; if (includeCaCertUrl_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, includeCaCertUrl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, includeCaCertUrl_); } if (includeCrlAccessUrl_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeCrlAccessUrl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, includeCrlAccessUrl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1424,18 +1233,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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) obj; - if (getIncludeCaCertUrl() != other.getIncludeCaCertUrl()) return false; - if (getIncludeCrlAccessUrl() != other.getIncludeCrlAccessUrl()) return false; + if (getIncludeCaCertUrl() + != other.getIncludeCaCertUrl()) return false; + if (getIncludeCrlAccessUrl() + != other.getIncludeCrlAccessUrl()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1448,109 +1256,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_CA_CERT_URL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCaCertUrl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeCaCertUrl()); hash = (37 * hash) + INCLUDE_CRL_ACCESS_URL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCrlAccessUrl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeCrlAccessUrl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - 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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions 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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1560,52 +1357,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options that affect all certificates issued by a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1617,23 +1406,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1641,11 +1426,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions( - this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions(this); result.includeCaCertUrl_ = includeCaCertUrl_; result.includeCrlAccessUrl_ = includeCrlAccessUrl_; onBuilt(); @@ -1656,56 +1438,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance()) return this; if (other.getIncludeCaCertUrl() != false) { setIncludeCaCertUrl(other.getIncludeCaCertUrl()); } @@ -1727,14 +1499,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1744,17 +1513,14 @@ public Builder mergeFrom( return this; } - private boolean includeCaCertUrl_; + private boolean includeCaCertUrl_ ; /** - * - * *
        * Required. When true, includes a URL to the issuing CA certificate in the
        * "authority information access" X.509 extension.
        * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The includeCaCertUrl. */ @java.lang.Override @@ -1762,47 +1528,39 @@ public boolean getIncludeCaCertUrl() { return includeCaCertUrl_; } /** - * - * *
        * Required. When true, includes a URL to the issuing CA certificate in the
        * "authority information access" X.509 extension.
        * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The includeCaCertUrl to set. * @return This builder for chaining. */ public Builder setIncludeCaCertUrl(boolean value) { - + includeCaCertUrl_ = value; onChanged(); return this; } /** - * - * *
        * Required. When true, includes a URL to the issuing CA certificate in the
        * "authority information access" X.509 extension.
        * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIncludeCaCertUrl() { - + includeCaCertUrl_ = false; onChanged(); return this; } - private boolean includeCrlAccessUrl_; + private boolean includeCrlAccessUrl_ ; /** - * - * *
        * Required. When true, includes a URL to the CRL corresponding to certificates
        * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1811,7 +1569,6 @@ public Builder clearIncludeCaCertUrl() {
        * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The includeCrlAccessUrl. */ @java.lang.Override @@ -1819,8 +1576,6 @@ public boolean getIncludeCrlAccessUrl() { return includeCrlAccessUrl_; } /** - * - * *
        * Required. When true, includes a URL to the CRL corresponding to certificates
        * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1829,19 +1584,16 @@ public boolean getIncludeCrlAccessUrl() {
        * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The includeCrlAccessUrl to set. * @return This builder for chaining. */ public Builder setIncludeCrlAccessUrl(boolean value) { - + includeCrlAccessUrl_ = value; onChanged(); return this; } /** - * - * *
        * Required. When true, includes a URL to the CRL corresponding to certificates
        * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1850,16 +1602,14 @@ public Builder setIncludeCrlAccessUrl(boolean value) {
        * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIncludeCrlAccessUrl() { - + includeCrlAccessUrl_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1872,34 +1622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .IssuingOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuingOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuingOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1911,116 +1657,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CertificateAuthorityPolicyOrBuilder - extends + public interface CertificateAuthorityPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedConfigList field is set. */ boolean hasAllowedConfigList(); /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedConfigList. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .AllowedConfigList - getAllowedConfigList(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getAllowedConfigList(); /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .AllowedConfigListOrBuilder - getAllowedConfigListOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder getAllowedConfigListOrBuilder(); /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the overwriteConfigValues field is set. */ boolean hasOverwriteConfigValues(); /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The overwriteConfigValues. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getOverwriteConfigValues(); /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getOverwriteConfigValuesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getOverwriteConfigValuesOrBuilder(); /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2028,15 +1738,11 @@ public interface CertificateAuthorityPolicyOrBuilder
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAllowedLocationsAndOrganizationsList(); /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2044,15 +1750,10 @@ public interface CertificateAuthorityPolicyOrBuilder
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations( - int index); + com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations(int index); /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2060,14 +1761,10 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getAllowedLocationsAndOrganizationsCount(); /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2075,15 +1772,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAllowedLocationsAndOrganizationsOrBuilderList(); /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2091,16 +1784,12 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder - getAllowedLocationsAndOrganizationsOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocationsAndOrganizationsOrBuilder( + int index); /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2108,15 +1797,12 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedCommonNames. */ - java.util.List getAllowedCommonNamesList(); + java.util.List + getAllowedCommonNamesList(); /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2124,15 +1810,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedCommonNames. */ int getAllowedCommonNamesCount(); /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2140,16 +1822,12 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedCommonNames at the given index. */ java.lang.String getAllowedCommonNames(int index); /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2157,17 +1835,14 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedCommonNames at the given index. */ - com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index); + com.google.protobuf.ByteString + getAllowedCommonNamesBytes(int index); /** - * - * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2176,16 +1851,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * field.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedSans field is set. */ boolean hasAllowedSans(); /** - * - * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2194,18 +1864,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * field.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedSans. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .AllowedSubjectAltNames - getAllowedSans(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getAllowedSans(); /** - * - * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -2214,17 +1877,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * field.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .AllowedSubjectAltNamesOrBuilder - getAllowedSansOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder getAllowedSansOrBuilder(); /** - * - * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -2232,16 +1889,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * truncated.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maximumLifetime field is set. */ boolean hasMaximumLifetime(); /** - * - * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -2249,16 +1901,11 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * truncated.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The maximumLifetime. */ com.google.protobuf.Duration getMaximumLifetime(); /** - * - * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -2266,87 +1913,60 @@ com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrgani
      * truncated.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder(); /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedIssuanceModes field is set. */ boolean hasAllowedIssuanceModes(); /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedIssuanceModes. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .IssuanceModes - getAllowedIssuanceModes(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getAllowedIssuanceModes(); /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .IssuanceModesOrBuilder - getAllowedIssuanceModesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder(); - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.ConfigPolicyCase - getConfigPolicyCase(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.ConfigPolicyCase getConfigPolicyCase(); } /** - * - * *
    * The issuing policy for a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] will not be successfully issued from this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] if they violate the policy.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} */ - public static final class CertificateAuthorityPolicy - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CertificateAuthorityPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) CertificateAuthorityPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertificateAuthorityPolicy.newBuilder() to construct. private CertificateAuthorityPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CertificateAuthorityPolicy() { allowedLocationsAndOrganizations_ = java.util.Collections.emptyList(); allowedCommonNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -2354,15 +1974,16 @@ private CertificateAuthorityPolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CertificateAuthorityPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CertificateAuthorityPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2382,142 +2003,98 @@ private CertificateAuthorityPolicy( case 0: done = true; break; - case 10: - { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder - subBuilder = null; - if (configPolicyCase_ == 1) { - subBuilder = - ((com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_) - .toBuilder(); - } - configPolicy_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_); - configPolicy_ = subBuilder.buildPartial(); - } - configPolicyCase_ = 1; - break; + case 10: { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder subBuilder = null; + if (configPolicyCase_ == 1) { + subBuilder = ((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_).toBuilder(); } - case 18: - { - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - subBuilder = null; - if (configPolicyCase_ == 2) { - subBuilder = - ((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - configPolicy_) - .toBuilder(); - } - configPolicy_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - configPolicy_); - configPolicy_ = subBuilder.buildPartial(); - } - configPolicyCase_ = 2; - break; + configPolicy_ = + input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_); + configPolicy_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.Subject>(); - mutable_bitField0_ |= 0x00000001; - } - allowedLocationsAndOrganizations_.add( - input.readMessage( - com.google.cloud.security.privateca.v1beta1.Subject.parser(), - extensionRegistry)); - break; + configPolicyCase_ = 1; + break; + } + case 18: { + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder subBuilder = null; + if (configPolicyCase_ == 2) { + subBuilder = ((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_).toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - allowedCommonNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - allowedCommonNames_.add(s); - break; + configPolicy_ = + input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); + configPolicy_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder - subBuilder = null; - if (allowedSans_ != null) { - subBuilder = allowedSans_.toBuilder(); - } - allowedSans_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedSans_); - allowedSans_ = subBuilder.buildPartial(); - } - - break; + configPolicyCase_ = 2; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedLocationsAndOrganizations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allowedLocationsAndOrganizations_.add( + input.readMessage(com.google.cloud.security.privateca.v1beta1.Subject.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedCommonNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + allowedCommonNames_.add(s); + break; + } + case 42: { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder subBuilder = null; + if (allowedSans_ != null) { + subBuilder = allowedSans_.toBuilder(); + } + allowedSans_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowedSans_); + allowedSans_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maximumLifetime_ != null) { - subBuilder = maximumLifetime_.toBuilder(); - } - maximumLifetime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maximumLifetime_); - maximumLifetime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maximumLifetime_ != null) { + subBuilder = maximumLifetime_.toBuilder(); + } + maximumLifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maximumLifetime_); + maximumLifetime_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder - subBuilder = null; - if (allowedIssuanceModes_ != null) { - subBuilder = allowedIssuanceModes_.toBuilder(); - } - allowedIssuanceModes_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedIssuanceModes_); - allowedIssuanceModes_ = subBuilder.buildPartial(); - } - break; + break; + } + case 66: { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder subBuilder = null; + if (allowedIssuanceModes_ != null) { + subBuilder = allowedIssuanceModes_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowedIssuanceModes_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowedIssuanceModes_); + allowedIssuanceModes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2525,11 +2102,11 @@ private CertificateAuthorityPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = - java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizations_ = java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { allowedCommonNames_ = allowedCommonNames_.getUnmodifiableView(); @@ -2538,32 +2115,24 @@ private CertificateAuthorityPolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder.class); } - public interface AllowedConfigListOrBuilder - extends + public interface AllowedConfigListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2571,15 +2140,11 @@ public interface AllowedConfigListOrBuilder
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getAllowedConfigValuesList(); /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2587,15 +2152,10 @@ public interface AllowedConfigListOrBuilder
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues( - int index); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues(int index); /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2603,14 +2163,10 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConf
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getAllowedConfigValuesCount(); /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2618,16 +2174,11 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConf
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + java.util.List getAllowedConfigValuesOrBuilderList(); /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2635,42 +2186,39 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConf
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getAllowedConfigValuesOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getAllowedConfigValuesOrBuilder( + int index); } /** - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} */ - public static final class AllowedConfigList extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AllowedConfigList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) AllowedConfigListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedConfigList.newBuilder() to construct. private AllowedConfigList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllowedConfigList() { allowedConfigValues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllowedConfigList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AllowedConfigList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2690,28 +2238,22 @@ private AllowedConfigList( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedConfigValues_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper>(); - mutable_bitField0_ |= 0x00000001; - } - allowedConfigValues_.add( - input.readMessage( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedConfigValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowedConfigValues_.add( + input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2719,8 +2261,8 @@ private AllowedConfigList( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedConfigValues_ = java.util.Collections.unmodifiableList(allowedConfigValues_); @@ -2729,30 +2271,22 @@ private AllowedConfigList( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder.class); } public static final int ALLOWED_CONFIG_VALUES_FIELD_NUMBER = 1; - private java.util.List - allowedConfigValues_; - /** - * - * + private java.util.List allowedConfigValues_; + /** *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2760,18 +2294,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getAllowedConfigValuesList() { + public java.util.List getAllowedConfigValuesList() { return allowedConfigValues_; } /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2779,19 +2308,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + public java.util.List getAllowedConfigValuesOrBuilderList() { return allowedConfigValues_; } /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2799,17 +2323,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getAllowedConfigValuesCount() { return allowedConfigValues_.size(); } /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2817,18 +2337,13 @@ public int getAllowedConfigValuesCount() {
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - getAllowedConfigValues(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues(int index) { return allowedConfigValues_.get(index); } /** - * - * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2836,18 +2351,15 @@ public int getAllowedConfigValuesCount() {
        * allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getAllowedConfigValuesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getAllowedConfigValuesOrBuilder( + int index) { return allowedConfigValues_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2859,7 +2371,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < allowedConfigValues_.size(); i++) { output.writeMessage(1, allowedConfigValues_.get(i)); } @@ -2873,9 +2386,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < allowedConfigValues_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, allowedConfigValues_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, allowedConfigValues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2885,22 +2397,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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .AllowedConfigList - other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) obj; - if (!getAllowedConfigValuesList().equals(other.getAllowedConfigValuesList())) return false; + if (!getAllowedConfigValuesList() + .equals(other.getAllowedConfigValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2921,117 +2426,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList 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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3041,49 +2517,41 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAllowedConfigValuesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3097,26 +2565,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3124,14 +2585,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList(this); int from_bitField0_ = bitField0_; if (allowedConfigValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -3150,60 +2605,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) return this; if (allowedConfigValuesBuilder_ == null) { if (!other.allowedConfigValues_.isEmpty()) { if (allowedConfigValues_.isEmpty()) { @@ -3222,10 +2663,9 @@ public Builder mergeFrom( allowedConfigValuesBuilder_ = null; allowedConfigValues_ = other.allowedConfigValues_; bitField0_ = (bitField0_ & ~0x00000001); - allowedConfigValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAllowedConfigValuesFieldBuilder() - : null; + allowedConfigValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowedConfigValuesFieldBuilder() : null; } else { allowedConfigValuesBuilder_.addAllMessages(other.allowedConfigValues_); } @@ -3246,16 +2686,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3264,31 +2699,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - allowedConfigValues_ = java.util.Collections.emptyList(); - + private java.util.List allowedConfigValues_ = + java.util.Collections.emptyList(); private void ensureAllowedConfigValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedConfigValues_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper>( - allowedConfigValues_); + allowedConfigValues_ = new java.util.ArrayList(allowedConfigValues_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> - allowedConfigValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> allowedConfigValuesBuilder_; /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3296,12 +2721,9 @@ private void ensureAllowedConfigValuesIsMutable() {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getAllowedConfigValuesList() { + public java.util.List getAllowedConfigValuesList() { if (allowedConfigValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedConfigValues_); } else { @@ -3309,8 +2731,6 @@ private void ensureAllowedConfigValuesIsMutable() { } } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3318,9 +2738,7 @@ private void ensureAllowedConfigValuesIsMutable() {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getAllowedConfigValuesCount() { if (allowedConfigValuesBuilder_ == null) { @@ -3330,8 +2748,6 @@ public int getAllowedConfigValuesCount() { } } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3339,12 +2755,9 @@ public int getAllowedConfigValuesCount() {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - getAllowedConfigValues(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues(int index) { if (allowedConfigValuesBuilder_ == null) { return allowedConfigValues_.get(index); } else { @@ -3352,8 +2765,6 @@ public int getAllowedConfigValuesCount() { } } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3361,9 +2772,7 @@ public int getAllowedConfigValuesCount() {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAllowedConfigValues( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { @@ -3380,8 +2789,6 @@ public Builder setAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3389,14 +2796,10 @@ public Builder setAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAllowedConfigValues( - int index, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); allowedConfigValues_.set(index, builderForValue.build()); @@ -3407,8 +2810,6 @@ public Builder setAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3416,12 +2817,9 @@ public Builder setAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addAllowedConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder addAllowedConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (allowedConfigValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3435,8 +2833,6 @@ public Builder addAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3444,9 +2840,7 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllowedConfigValues( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { @@ -3463,8 +2857,6 @@ public Builder addAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3472,13 +2864,10 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllowedConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); allowedConfigValues_.add(builderForValue.build()); @@ -3489,8 +2878,6 @@ public Builder addAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3498,14 +2885,10 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllowedConfigValues( - int index, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); allowedConfigValues_.add(index, builderForValue.build()); @@ -3516,8 +2899,6 @@ public Builder addAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3525,17 +2906,14 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllAllowedConfigValues( - java.lang.Iterable< - ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper> - values) { + java.lang.Iterable values) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConfigValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedConfigValues_); onChanged(); } else { allowedConfigValuesBuilder_.addAllMessages(values); @@ -3543,8 +2921,6 @@ public Builder addAllAllowedConfigValues( return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3552,9 +2928,7 @@ public Builder addAllAllowedConfigValues(
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAllowedConfigValues() { if (allowedConfigValuesBuilder_ == null) { @@ -3567,8 +2941,6 @@ public Builder clearAllowedConfigValues() { return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3576,9 +2948,7 @@ public Builder clearAllowedConfigValues() {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeAllowedConfigValues(int index) { if (allowedConfigValuesBuilder_ == null) { @@ -3591,8 +2961,6 @@ public Builder removeAllowedConfigValues(int index) { return this; } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3600,17 +2968,13 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - getAllowedConfigValuesBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder getAllowedConfigValuesBuilder( + int index) { return getAllowedConfigValuesFieldBuilder().getBuilder(index); } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3618,21 +2982,16 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getAllowedConfigValuesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getAllowedConfigValuesOrBuilder( + int index) { if (allowedConfigValuesBuilder_ == null) { - return allowedConfigValues_.get(index); - } else { + return allowedConfigValues_.get(index); } else { return allowedConfigValuesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3640,14 +2999,10 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> - getAllowedConfigValuesOrBuilderList() { + public java.util.List + getAllowedConfigValuesOrBuilderList() { if (allowedConfigValuesBuilder_ != null) { return allowedConfigValuesBuilder_.getMessageOrBuilderList(); } else { @@ -3655,8 +3010,6 @@ public Builder removeAllowedConfigValues(int index) { } } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3664,20 +3017,13 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - addAllowedConfigValuesBuilder() { - return getAllowedConfigValuesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder addAllowedConfigValuesBuilder() { + return getAllowedConfigValuesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()); } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3685,21 +3031,14 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - addAllowedConfigValuesBuilder(int index) { - return getAllowedConfigValuesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder addAllowedConfigValuesBuilder( + int index) { + return getAllowedConfigValuesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()); } /** - * - * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3707,27 +3046,18 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder> - getAllowedConfigValuesBuilderList() { + public java.util.List + getAllowedConfigValuesBuilderList() { return getAllowedConfigValuesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getAllowedConfigValuesFieldBuilder() { if (allowedConfigValuesBuilder_ == null) { - allowedConfigValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( + allowedConfigValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( allowedConfigValues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3736,7 +3066,6 @@ public Builder removeAllowedConfigValues(int index) { } return allowedConfigValuesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3749,36 +3078,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedConfigList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedConfigList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedConfigList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedConfigList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3790,21 +3113,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AllowedSubjectAltNamesOrBuilder - extends + public interface AllowedSubjectAltNamesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3815,15 +3134,12 @@ public interface AllowedSubjectAltNamesOrBuilder
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedDnsNames. */ - java.util.List getAllowedDnsNamesList(); + java.util.List + getAllowedDnsNamesList(); /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3834,15 +3150,11 @@ public interface AllowedSubjectAltNamesOrBuilder
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedDnsNames. */ int getAllowedDnsNamesCount(); /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3853,16 +3165,12 @@ public interface AllowedSubjectAltNamesOrBuilder
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedDnsNames at the given index. */ java.lang.String getAllowedDnsNames(int index); /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3873,17 +3181,14 @@ public interface AllowedSubjectAltNamesOrBuilder
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedDnsNames at the given index. */ - com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index); + com.google.protobuf.ByteString + getAllowedDnsNamesBytes(int index); /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3891,13 +3196,11 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedUris. */ - java.util.List getAllowedUrisList(); + java.util.List + getAllowedUrisList(); /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3905,13 +3208,10 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedUris. */ int getAllowedUrisCount(); /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3919,14 +3219,11 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedUris at the given index. */ java.lang.String getAllowedUris(int index); /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3934,78 +3231,58 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedUris at the given index. */ - com.google.protobuf.ByteString getAllowedUrisBytes(int index); + com.google.protobuf.ByteString + getAllowedUrisBytes(int index); /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedEmailAddresses. */ - java.util.List getAllowedEmailAddressesList(); + java.util.List + getAllowedEmailAddressesList(); /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedEmailAddresses. */ int getAllowedEmailAddressesCount(); /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedEmailAddresses at the given index. */ java.lang.String getAllowedEmailAddresses(int index); /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedEmailAddresses at the given index. */ - com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index); + com.google.protobuf.ByteString + getAllowedEmailAddressesBytes(int index); /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4014,13 +3291,11 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedIps. */ - java.util.List getAllowedIpsList(); + java.util.List + getAllowedIpsList(); /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4029,13 +3304,10 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedIps. */ int getAllowedIpsCount(); /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4044,14 +3316,11 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedIps at the given index. */ java.lang.String getAllowedIps(int index); /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4060,62 +3329,51 @@ public interface AllowedSubjectAltNamesOrBuilder
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedIps at the given index. */ - com.google.protobuf.ByteString getAllowedIpsBytes(int index); + com.google.protobuf.ByteString + getAllowedIpsBytes(int index); /** - * - * *
        * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
        * wildcard certificates.
        * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowGlobbingDnsWildcards. */ boolean getAllowGlobbingDnsWildcards(); /** - * - * *
        * Optional. Specifies if to allow custom X509Extension values.
        * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowCustomSans. */ boolean getAllowCustomSans(); } /** - * - * *
      * [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] specifies the allowed values for
      * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} */ - public static final class AllowedSubjectAltNames extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AllowedSubjectAltNames extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) AllowedSubjectAltNamesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedSubjectAltNames.newBuilder() to construct. private AllowedSubjectAltNames(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AllowedSubjectAltNames() { allowedDnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowedUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -4125,15 +3383,16 @@ private AllowedSubjectAltNames() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AllowedSubjectAltNames(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AllowedSubjectAltNames( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4153,63 +3412,59 @@ private AllowedSubjectAltNames( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedDnsNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowedDnsNames_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - allowedUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - allowedUris_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - allowedEmailAddresses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - allowedEmailAddresses_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedDnsNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - allowedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - allowedIps_.add(s); - break; + allowedDnsNames_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 40: - { - allowGlobbingDnsWildcards_ = input.readBool(); - break; + allowedUris_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + allowedEmailAddresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 48: - { - allowCustomSans_ = input.readBool(); - break; + allowedEmailAddresses_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + allowedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowedIps_.add(s); + break; + } + case 40: { + + allowGlobbingDnsWildcards_ = input.readBool(); + break; + } + case 48: { + + allowCustomSans_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4217,8 +3472,8 @@ private AllowedSubjectAltNames( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedDnsNames_ = allowedDnsNames_.getUnmodifiableView(); @@ -4236,29 +3491,22 @@ private AllowedSubjectAltNames( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); } public static final int ALLOWED_DNS_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList allowedDnsNames_; /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -4269,17 +3517,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedDnsNames. */ - public com.google.protobuf.ProtocolStringList getAllowedDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getAllowedDnsNamesList() { return allowedDnsNames_; } /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -4290,17 +3535,13 @@ public com.google.protobuf.ProtocolStringList getAllowedDnsNamesList() {
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedDnsNames. */ public int getAllowedDnsNamesCount() { return allowedDnsNames_.size(); } /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -4311,9 +3552,7 @@ public int getAllowedDnsNamesCount() {
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedDnsNames at the given index. */ @@ -4321,8 +3560,6 @@ public java.lang.String getAllowedDnsNames(int index) { return allowedDnsNames_.get(index); } /** - * - * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -4333,21 +3570,18 @@ public java.lang.String getAllowedDnsNames(int index) {
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedDnsNames at the given index. */ - public com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedDnsNamesBytes(int index) { return allowedDnsNames_.getByteString(index); } public static final int ALLOWED_URIS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList allowedUris_; /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -4355,15 +3589,13 @@ public com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index) {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedUris. */ - public com.google.protobuf.ProtocolStringList getAllowedUrisList() { + public com.google.protobuf.ProtocolStringList + getAllowedUrisList() { return allowedUris_; } /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -4371,15 +3603,12 @@ public com.google.protobuf.ProtocolStringList getAllowedUrisList() {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedUris. */ public int getAllowedUrisCount() { return allowedUris_.size(); } /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -4387,7 +3616,6 @@ public int getAllowedUrisCount() {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedUris at the given index. */ @@ -4395,8 +3623,6 @@ public java.lang.String getAllowedUris(int index) { return allowedUris_.get(index); } /** - * - * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -4404,62 +3630,48 @@ public java.lang.String getAllowedUris(int index) {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedUris at the given index. */ - public com.google.protobuf.ByteString getAllowedUrisBytes(int index) { + public com.google.protobuf.ByteString + getAllowedUrisBytes(int index) { return allowedUris_.getByteString(index); } public static final int ALLOWED_EMAIL_ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList allowedEmailAddresses_; /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedEmailAddresses. */ - public com.google.protobuf.ProtocolStringList getAllowedEmailAddressesList() { + public com.google.protobuf.ProtocolStringList + getAllowedEmailAddressesList() { return allowedEmailAddresses_; } /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedEmailAddresses. */ public int getAllowedEmailAddressesCount() { return allowedEmailAddresses_.size(); } /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedEmailAddresses at the given index. */ @@ -4467,29 +3679,23 @@ public java.lang.String getAllowedEmailAddresses(int index) { return allowedEmailAddresses_.get(index); } /** - * - * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedEmailAddresses at the given index. */ - public com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedEmailAddressesBytes(int index) { return allowedEmailAddresses_.getByteString(index); } public static final int ALLOWED_IPS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedIps_; /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4498,15 +3704,13 @@ public com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index) {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedIps. */ - public com.google.protobuf.ProtocolStringList getAllowedIpsList() { + public com.google.protobuf.ProtocolStringList + getAllowedIpsList() { return allowedIps_; } /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4515,15 +3719,12 @@ public com.google.protobuf.ProtocolStringList getAllowedIpsList() {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedIps. */ public int getAllowedIpsCount() { return allowedIps_.size(); } /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4532,7 +3733,6 @@ public int getAllowedIpsCount() {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedIps at the given index. */ @@ -4540,8 +3740,6 @@ public java.lang.String getAllowedIps(int index) { return allowedIps_.get(index); } /** - * - * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4550,27 +3748,23 @@ public java.lang.String getAllowedIps(int index) {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedIps at the given index. */ - public com.google.protobuf.ByteString getAllowedIpsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedIpsBytes(int index) { return allowedIps_.getByteString(index); } public static final int ALLOW_GLOBBING_DNS_WILDCARDS_FIELD_NUMBER = 5; private boolean allowGlobbingDnsWildcards_; /** - * - * *
        * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
        * wildcard certificates.
        * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowGlobbingDnsWildcards. */ @java.lang.Override @@ -4581,14 +3775,11 @@ public boolean getAllowGlobbingDnsWildcards() { public static final int ALLOW_CUSTOM_SANS_FIELD_NUMBER = 6; private boolean allowCustomSans_; /** - * - * *
        * Optional. Specifies if to allow custom X509Extension values.
        * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowCustomSans. */ @java.lang.Override @@ -4597,7 +3788,6 @@ public boolean getAllowCustomSans() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4609,7 +3799,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < allowedDnsNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedDnsNames_.getRaw(i)); } @@ -4617,8 +3808,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allowedUris_.getRaw(i)); } for (int i = 0; i < allowedEmailAddresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, allowedEmailAddresses_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedEmailAddresses_.getRaw(i)); } for (int i = 0; i < allowedIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedIps_.getRaw(i)); @@ -4671,11 +3861,12 @@ public int getSerializedSize() { size += 1 * getAllowedIpsList().size(); } if (allowGlobbingDnsWildcards_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowGlobbingDnsWildcards_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, allowGlobbingDnsWildcards_); } if (allowCustomSans_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowCustomSans_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, allowCustomSans_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4685,28 +3876,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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .AllowedSubjectAltNames - other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames) - obj; - - if (!getAllowedDnsNamesList().equals(other.getAllowedDnsNamesList())) return false; - if (!getAllowedUrisList().equals(other.getAllowedUrisList())) return false; - if (!getAllowedEmailAddressesList().equals(other.getAllowedEmailAddressesList())) - return false; - if (!getAllowedIpsList().equals(other.getAllowedIpsList())) return false; - if (getAllowGlobbingDnsWildcards() != other.getAllowGlobbingDnsWildcards()) return false; - if (getAllowCustomSans() != other.getAllowCustomSans()) return false; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) obj; + + if (!getAllowedDnsNamesList() + .equals(other.getAllowedDnsNamesList())) return false; + if (!getAllowedUrisList() + .equals(other.getAllowedUrisList())) return false; + if (!getAllowedEmailAddressesList() + .equals(other.getAllowedEmailAddressesList())) return false; + if (!getAllowedIpsList() + .equals(other.getAllowedIpsList())) return false; + if (getAllowGlobbingDnsWildcards() + != other.getAllowGlobbingDnsWildcards()) return false; + if (getAllowCustomSans() + != other.getAllowCustomSans()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4735,126 +3923,98 @@ public int hashCode() { hash = (53 * hash) + getAllowedIpsList().hashCode(); } hash = (37 * hash) + ALLOW_GLOBBING_DNS_WILDCARDS_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowGlobbingDnsWildcards()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowGlobbingDnsWildcards()); hash = (37 * hash) + ALLOW_CUSTOM_SANS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCustomSans()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowCustomSans()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames 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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4864,55 +4024,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] specifies the allowed values for
        * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] when issuing
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4932,26 +4083,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4959,14 +4103,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowedDnsNames_ = allowedDnsNames_.getUnmodifiableView(); @@ -4998,61 +4136,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance()) return this; if (!other.allowedDnsNames_.isEmpty()) { if (allowedDnsNames_.isEmpty()) { allowedDnsNames_ = other.allowedDnsNames_; @@ -5114,16 +4237,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5132,21 +4250,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList allowedDnsNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedDnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedDnsNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allowedDnsNames_ = new com.google.protobuf.LazyStringArrayList(allowedDnsNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5157,17 +4270,14 @@ private void ensureAllowedDnsNamesIsMutable() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedDnsNames. */ - public com.google.protobuf.ProtocolStringList getAllowedDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getAllowedDnsNamesList() { return allowedDnsNames_.getUnmodifiableView(); } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5178,17 +4288,13 @@ public com.google.protobuf.ProtocolStringList getAllowedDnsNamesList() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedDnsNames. */ public int getAllowedDnsNamesCount() { return allowedDnsNames_.size(); } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5199,9 +4305,7 @@ public int getAllowedDnsNamesCount() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedDnsNames at the given index. */ @@ -5209,8 +4313,6 @@ public java.lang.String getAllowedDnsNames(int index) { return allowedDnsNames_.get(index); } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5221,18 +4323,15 @@ public java.lang.String getAllowedDnsNames(int index) {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedDnsNames at the given index. */ - public com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedDnsNamesBytes(int index) { return allowedDnsNames_.getByteString(index); } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5243,25 +4342,22 @@ public com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index) {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The allowedDnsNames to set. * @return This builder for chaining. */ - public Builder setAllowedDnsNames(int index, java.lang.String value) { + public Builder setAllowedDnsNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedDnsNamesIsMutable(); allowedDnsNames_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5272,24 +4368,21 @@ public Builder setAllowedDnsNames(int index, java.lang.String value) {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedDnsNames to add. * @return This builder for chaining. */ - public Builder addAllowedDnsNames(java.lang.String value) { + public Builder addAllowedDnsNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedDnsNamesIsMutable(); allowedDnsNames_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5300,21 +4393,19 @@ public Builder addAllowedDnsNames(java.lang.String value) {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedDnsNames to add. * @return This builder for chaining. */ - public Builder addAllAllowedDnsNames(java.lang.Iterable values) { + public Builder addAllAllowedDnsNames( + java.lang.Iterable values) { ensureAllowedDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedDnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedDnsNames_); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5325,9 +4416,7 @@ public Builder addAllAllowedDnsNames(java.lang.Iterable values
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedDnsNames() { @@ -5337,8 +4426,6 @@ public Builder clearAllowedDnsNames() { return this; } /** - * - * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -5349,35 +4436,30 @@ public Builder clearAllowedDnsNames() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the allowedDnsNames to add. * @return This builder for chaining. */ - public Builder addAllowedDnsNamesBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedDnsNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedDnsNamesIsMutable(); allowedDnsNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { allowedUris_ = new com.google.protobuf.LazyStringArrayList(allowedUris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5385,15 +4467,13 @@ private void ensureAllowedUrisIsMutable() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedUris. */ - public com.google.protobuf.ProtocolStringList getAllowedUrisList() { + public com.google.protobuf.ProtocolStringList + getAllowedUrisList() { return allowedUris_.getUnmodifiableView(); } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5401,15 +4481,12 @@ public com.google.protobuf.ProtocolStringList getAllowedUrisList() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedUris. */ public int getAllowedUrisCount() { return allowedUris_.size(); } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5417,7 +4494,6 @@ public int getAllowedUrisCount() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedUris at the given index. */ @@ -5425,8 +4501,6 @@ public java.lang.String getAllowedUris(int index) { return allowedUris_.get(index); } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5434,16 +4508,14 @@ public java.lang.String getAllowedUris(int index) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedUris at the given index. */ - public com.google.protobuf.ByteString getAllowedUrisBytes(int index) { + public com.google.protobuf.ByteString + getAllowedUrisBytes(int index) { return allowedUris_.getByteString(index); } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5451,23 +4523,21 @@ public com.google.protobuf.ByteString getAllowedUrisBytes(int index) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The allowedUris to set. * @return This builder for chaining. */ - public Builder setAllowedUris(int index, java.lang.String value) { + public Builder setAllowedUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedUrisIsMutable(); + throw new NullPointerException(); + } + ensureAllowedUrisIsMutable(); allowedUris_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5475,22 +4545,20 @@ public Builder setAllowedUris(int index, java.lang.String value) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowedUris to add. * @return This builder for chaining. */ - public Builder addAllowedUris(java.lang.String value) { + public Builder addAllowedUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedUrisIsMutable(); + throw new NullPointerException(); + } + ensureAllowedUrisIsMutable(); allowedUris_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5498,19 +4566,18 @@ public Builder addAllowedUris(java.lang.String value) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The allowedUris to add. * @return This builder for chaining. */ - public Builder addAllAllowedUris(java.lang.Iterable values) { + public Builder addAllAllowedUris( + java.lang.Iterable values) { ensureAllowedUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedUris_); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5518,7 +4585,6 @@ public Builder addAllAllowedUris(java.lang.Iterable values) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowedUris() { @@ -5528,8 +4594,6 @@ public Builder clearAllowedUris() { return this; } /** - * - * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -5537,77 +4601,60 @@ public Builder clearAllowedUris() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the allowedUris to add. * @return This builder for chaining. */ - public Builder addAllowedUrisBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedUrisIsMutable(); allowedUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedEmailAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedEmailAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - allowedEmailAddresses_ = - new com.google.protobuf.LazyStringArrayList(allowedEmailAddresses_); + allowedEmailAddresses_ = new com.google.protobuf.LazyStringArrayList(allowedEmailAddresses_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedEmailAddresses. */ - public com.google.protobuf.ProtocolStringList getAllowedEmailAddressesList() { + public com.google.protobuf.ProtocolStringList + getAllowedEmailAddressesList() { return allowedEmailAddresses_.getUnmodifiableView(); } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedEmailAddresses. */ public int getAllowedEmailAddressesCount() { return allowedEmailAddresses_.size(); } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedEmailAddresses at the given index. */ @@ -5615,105 +4662,85 @@ public java.lang.String getAllowedEmailAddresses(int index) { return allowedEmailAddresses_.get(index); } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedEmailAddresses at the given index. */ - public com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedEmailAddressesBytes(int index) { return allowedEmailAddresses_.getByteString(index); } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The allowedEmailAddresses to set. * @return This builder for chaining. */ - public Builder setAllowedEmailAddresses(int index, java.lang.String value) { + public Builder setAllowedEmailAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedEmailAddressesIsMutable(); allowedEmailAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedEmailAddresses to add. * @return This builder for chaining. */ - public Builder addAllowedEmailAddresses(java.lang.String value) { + public Builder addAllowedEmailAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedEmailAddressesIsMutable(); allowedEmailAddresses_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedEmailAddresses to add. * @return This builder for chaining. */ - public Builder addAllAllowedEmailAddresses(java.lang.Iterable values) { + public Builder addAllAllowedEmailAddresses( + java.lang.Iterable values) { ensureAllowedEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedEmailAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedEmailAddresses_); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedEmailAddresses() { @@ -5723,43 +4750,35 @@ public Builder clearAllowedEmailAddresses() { return this; } /** - * - * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the allowedEmailAddresses to add. * @return This builder for chaining. */ - public Builder addAllowedEmailAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedEmailAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedEmailAddressesIsMutable(); allowedEmailAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedIps_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedIpsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { allowedIps_ = new com.google.protobuf.LazyStringArrayList(allowedIps_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5768,15 +4787,13 @@ private void ensureAllowedIpsIsMutable() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedIps. */ - public com.google.protobuf.ProtocolStringList getAllowedIpsList() { + public com.google.protobuf.ProtocolStringList + getAllowedIpsList() { return allowedIps_.getUnmodifiableView(); } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5785,15 +4802,12 @@ public com.google.protobuf.ProtocolStringList getAllowedIpsList() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedIps. */ public int getAllowedIpsCount() { return allowedIps_.size(); } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5802,7 +4816,6 @@ public int getAllowedIpsCount() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedIps at the given index. */ @@ -5810,8 +4823,6 @@ public java.lang.String getAllowedIps(int index) { return allowedIps_.get(index); } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5820,16 +4831,14 @@ public java.lang.String getAllowedIps(int index) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedIps at the given index. */ - public com.google.protobuf.ByteString getAllowedIpsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedIpsBytes(int index) { return allowedIps_.getByteString(index); } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5838,23 +4847,21 @@ public com.google.protobuf.ByteString getAllowedIpsBytes(int index) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The allowedIps to set. * @return This builder for chaining. */ - public Builder setAllowedIps(int index, java.lang.String value) { + public Builder setAllowedIps( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedIpsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedIpsIsMutable(); allowedIps_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5863,22 +4870,20 @@ public Builder setAllowedIps(int index, java.lang.String value) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowedIps to add. * @return This builder for chaining. */ - public Builder addAllowedIps(java.lang.String value) { + public Builder addAllowedIps( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedIpsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedIpsIsMutable(); allowedIps_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5887,19 +4892,18 @@ public Builder addAllowedIps(java.lang.String value) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The allowedIps to add. * @return This builder for chaining. */ - public Builder addAllAllowedIps(java.lang.Iterable values) { + public Builder addAllAllowedIps( + java.lang.Iterable values) { ensureAllowedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedIps_); onChanged(); return this; } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5908,7 +4912,6 @@ public Builder addAllAllowedIps(java.lang.Iterable values) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowedIps() { @@ -5918,8 +4921,6 @@ public Builder clearAllowedIps() { return this; } /** - * - * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -5928,33 +4929,29 @@ public Builder clearAllowedIps() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the allowedIps to add. * @return This builder for chaining. */ - public Builder addAllowedIpsBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedIpsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedIpsIsMutable(); allowedIps_.add(value); onChanged(); return this; } - private boolean allowGlobbingDnsWildcards_; + private boolean allowGlobbingDnsWildcards_ ; /** - * - * *
          * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
          * wildcard certificates.
          * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowGlobbingDnsWildcards. */ @java.lang.Override @@ -5962,55 +4959,44 @@ public boolean getAllowGlobbingDnsWildcards() { return allowGlobbingDnsWildcards_; } /** - * - * *
          * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
          * wildcard certificates.
          * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowGlobbingDnsWildcards to set. * @return This builder for chaining. */ public Builder setAllowGlobbingDnsWildcards(boolean value) { - + allowGlobbingDnsWildcards_ = value; onChanged(); return this; } /** - * - * *
          * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
          * wildcard certificates.
          * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowGlobbingDnsWildcards() { - + allowGlobbingDnsWildcards_ = false; onChanged(); return this; } - private boolean allowCustomSans_; + private boolean allowCustomSans_ ; /** - * - * *
          * Optional. Specifies if to allow custom X509Extension values.
          * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowCustomSans. */ @java.lang.Override @@ -6018,41 +5004,34 @@ public boolean getAllowCustomSans() { return allowCustomSans_; } /** - * - * *
          * Optional. Specifies if to allow custom X509Extension values.
          * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowCustomSans to set. * @return This builder for chaining. */ public Builder setAllowCustomSans(boolean value) { - + allowCustomSans_ = value; onChanged(); return this; } /** - * - * *
          * Optional. Specifies if to allow custom X509Extension values.
          * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowCustomSans() { - + allowCustomSans_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6065,36 +5044,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedSubjectAltNames parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedSubjectAltNames(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedSubjectAltNames parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedSubjectAltNames(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6106,82 +5079,71 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IssuanceModesOrBuilder - extends + public interface IssuanceModesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The allowCsrBasedIssuance. */ boolean getAllowCsrBasedIssuance(); /** - * - * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The allowConfigBasedIssuance. */ boolean getAllowConfigBasedIssuance(); } /** - * - * *
      * [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] specifies the allowed ways in which
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] may be requested from this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} */ - public static final class IssuanceModes extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IssuanceModes extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) IssuanceModesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IssuanceModes.newBuilder() to construct. private IssuanceModes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IssuanceModes() {} + private IssuanceModes() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IssuanceModes(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IssuanceModes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6200,23 +5162,23 @@ private IssuanceModes( case 0: done = true; break; - case 8: - { - allowCsrBasedIssuance_ = input.readBool(); - break; - } - case 16: - { - allowConfigBasedIssuance_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + allowCsrBasedIssuance_ = input.readBool(); + break; + } + case 16: { + + allowConfigBasedIssuance_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6224,43 +5186,35 @@ private IssuanceModes( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder.class); } public static final int ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER = 1; private boolean allowCsrBasedIssuance_; /** - * - * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -6271,16 +5225,12 @@ public boolean getAllowCsrBasedIssuance() { public static final int ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER = 2; private boolean allowConfigBasedIssuance_; /** - * - * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -6289,7 +5239,6 @@ public boolean getAllowConfigBasedIssuance() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6301,7 +5250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowCsrBasedIssuance_ != false) { output.writeBool(1, allowCsrBasedIssuance_); } @@ -6318,11 +5268,12 @@ public int getSerializedSize() { size = 0; if (allowCsrBasedIssuance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowCsrBasedIssuance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowCsrBasedIssuance_); } if (allowConfigBasedIssuance_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowConfigBasedIssuance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowConfigBasedIssuance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6332,23 +5283,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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .IssuanceModes - other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes) - obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) obj; - if (getAllowCsrBasedIssuance() != other.getAllowCsrBasedIssuance()) return false; - if (getAllowConfigBasedIssuance() != other.getAllowConfigBasedIssuance()) return false; + if (getAllowCsrBasedIssuance() + != other.getAllowCsrBasedIssuance()) return false; + if (getAllowConfigBasedIssuance() + != other.getAllowConfigBasedIssuance()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6361,126 +5306,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCsrBasedIssuance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowCsrBasedIssuance()); hash = (37 * hash) + ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowConfigBasedIssuance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowConfigBasedIssuance()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes 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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6490,55 +5407,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] specifies the allowed ways in which
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] may be requested from this
        * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
        * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6550,26 +5458,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6577,14 +5478,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes(this); result.allowCsrBasedIssuance_ = allowCsrBasedIssuance_; result.allowConfigBasedIssuance_ = allowConfigBasedIssuance_; onBuilt(); @@ -6595,60 +5490,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance()) return this; if (other.getAllowCsrBasedIssuance() != false) { setAllowCsrBasedIssuance(other.getAllowCsrBasedIssuance()); } @@ -6670,16 +5551,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6689,17 +5565,14 @@ public Builder mergeFrom( return this; } - private boolean allowCsrBasedIssuance_; + private boolean allowCsrBasedIssuance_ ; /** - * - * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -6707,55 +5580,45 @@ public boolean getAllowCsrBasedIssuance() { return allowCsrBasedIssuance_; } /** - * - * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The allowCsrBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowCsrBasedIssuance(boolean value) { - + allowCsrBasedIssuance_ = value; onChanged(); return this; } /** - * - * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAllowCsrBasedIssuance() { - + allowCsrBasedIssuance_ = false; onChanged(); return this; } - private boolean allowConfigBasedIssuance_; + private boolean allowConfigBasedIssuance_ ; /** - * - * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -6763,45 +5626,36 @@ public boolean getAllowConfigBasedIssuance() { return allowConfigBasedIssuance_; } /** - * - * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The allowConfigBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowConfigBasedIssuance(boolean value) { - + allowConfigBasedIssuance_ = value; onChanged(); return this; } /** - * - * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAllowConfigBasedIssuance() { - + allowConfigBasedIssuance_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6814,36 +5668,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuanceModes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuanceModes(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuanceModes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuanceModes(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6855,25 +5703,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int configPolicyCase_ = 0; private java.lang.Object configPolicy_; - public enum ConfigPolicyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALLOWED_CONFIG_LIST(1), OVERWRITE_CONFIG_VALUES(2), CONFIGPOLICY_NOT_SET(0); private final int value; - private ConfigPolicyCase(int value) { this.value = value; } @@ -6889,39 +5733,31 @@ public static ConfigPolicyCase valueOf(int value) { public static ConfigPolicyCase forNumber(int value) { switch (value) { - case 1: - return ALLOWED_CONFIG_LIST; - case 2: - return OVERWRITE_CONFIG_VALUES; - case 0: - return CONFIGPOLICY_NOT_SET; - default: - return null; + case 1: return ALLOWED_CONFIG_LIST; + case 2: return OVERWRITE_CONFIG_VALUES; + case 0: return CONFIGPOLICY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConfigPolicyCase getConfigPolicyCase() { - return ConfigPolicyCase.forNumber(configPolicyCase_); + public ConfigPolicyCase + getConfigPolicyCase() { + return ConfigPolicyCase.forNumber( + configPolicyCase_); } public static final int ALLOWED_CONFIG_LIST_FIELD_NUMBER = 1; /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedConfigList field is set. */ @java.lang.Override @@ -6929,70 +5765,46 @@ public boolean hasAllowedConfigList() { return configPolicyCase_ == 1; } /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedConfigList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - getAllowedConfigList() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getAllowedConfigList() { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigListOrBuilder - getAllowedConfigListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder getAllowedConfigListOrBuilder() { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } public static final int OVERWRITE_CONFIG_VALUES_FIELD_NUMBER = 2; /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the overwriteConfigValues field is set. */ @java.lang.Override @@ -7000,56 +5812,42 @@ public boolean hasOverwriteConfigValues() { return configPolicyCase_ == 2; } /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The overwriteConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - getOverwriteConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getOverwriteConfigValues() { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } /** - * - * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getOverwriteConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getOverwriteConfigValuesOrBuilder() { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } public static final int ALLOWED_LOCATIONS_AND_ORGANIZATIONS_FIELD_NUMBER = 3; - private java.util.List - allowedLocationsAndOrganizations_; + private java.util.List allowedLocationsAndOrganizations_; /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7057,18 +5855,13 @@ public boolean hasOverwriteConfigValues() {
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getAllowedLocationsAndOrganizationsList() { + public java.util.List getAllowedLocationsAndOrganizationsList() { return allowedLocationsAndOrganizations_; } /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7076,18 +5869,14 @@ public boolean hasOverwriteConfigValues() {
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getAllowedLocationsAndOrganizationsOrBuilderList() { return allowedLocationsAndOrganizations_; } /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7095,17 +5884,13 @@ public boolean hasOverwriteConfigValues() {
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAllowedLocationsAndOrganizationsCount() { return allowedLocationsAndOrganizations_.size(); } /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7113,18 +5898,13 @@ public int getAllowedLocationsAndOrganizationsCount() {
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations( - int index) { + public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations(int index) { return allowedLocationsAndOrganizations_.get(index); } /** - * - * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7132,21 +5912,17 @@ public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAn
      * field, any value will be allowed for that field.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder - getAllowedLocationsAndOrganizationsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocationsAndOrganizationsOrBuilder( + int index) { return allowedLocationsAndOrganizations_.get(index); } public static final int ALLOWED_COMMON_NAMES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedCommonNames_; /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7154,17 +5930,14 @@ public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAn
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedCommonNames. */ - public com.google.protobuf.ProtocolStringList getAllowedCommonNamesList() { + public com.google.protobuf.ProtocolStringList + getAllowedCommonNamesList() { return allowedCommonNames_; } /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7172,17 +5945,13 @@ public com.google.protobuf.ProtocolStringList getAllowedCommonNamesList() {
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedCommonNames. */ public int getAllowedCommonNamesCount() { return allowedCommonNames_.size(); } /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7190,9 +5959,7 @@ public int getAllowedCommonNamesCount() {
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedCommonNames at the given index. */ @@ -7200,8 +5967,6 @@ public java.lang.String getAllowedCommonNames(int index) { return allowedCommonNames_.get(index); } /** - * - * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7209,23 +5974,18 @@ public java.lang.String getAllowedCommonNames(int index) {
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedCommonNames at the given index. */ - public com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedCommonNamesBytes(int index) { return allowedCommonNames_.getByteString(index); } public static final int ALLOWED_SANS_FIELD_NUMBER = 5; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - allowedSans_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowedSans_; /** - * - * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7234,10 +5994,7 @@ public com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index) {
      * field.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedSans field is set. */ @java.lang.Override @@ -7245,8 +6002,6 @@ public boolean hasAllowedSans() { return allowedSans_ != null; } /** - * - * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7255,24 +6010,14 @@ public boolean hasAllowedSans() {
      * field.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedSans. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - getAllowedSans() { - return allowedSans_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() - : allowedSans_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getAllowedSans() { + return allowedSans_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() : allowedSans_; } /** - * - * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7281,22 +6026,16 @@ public boolean hasAllowedSans() {
      * field.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder - getAllowedSansOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder getAllowedSansOrBuilder() { return getAllowedSans(); } public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 6; private com.google.protobuf.Duration maximumLifetime_; /** - * - * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7304,10 +6043,7 @@ public boolean hasAllowedSans() {
      * truncated.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maximumLifetime field is set. */ @java.lang.Override @@ -7315,8 +6051,6 @@ public boolean hasMaximumLifetime() { return maximumLifetime_ != null; } /** - * - * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7324,21 +6058,14 @@ public boolean hasMaximumLifetime() {
      * truncated.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The maximumLifetime. */ @java.lang.Override public com.google.protobuf.Duration getMaximumLifetime() { - return maximumLifetime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumLifetime_; + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; } /** - * - * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7346,9 +6073,7 @@ public com.google.protobuf.Duration getMaximumLifetime() {
      * truncated.
      * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { @@ -7356,21 +6081,14 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { } public static final int ALLOWED_ISSUANCE_MODES_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowedIssuanceModes_; /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedIssuanceModes field is set. */ @java.lang.Override @@ -7378,49 +6096,32 @@ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModes_ != null; } /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedIssuanceModes. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - getAllowedIssuanceModes() { - return allowedIssuanceModes_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() - : allowedIssuanceModes_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getAllowedIssuanceModes() { + return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; } /** - * - * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModesOrBuilder - getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { return getAllowedIssuanceModes(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7432,24 +6133,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 (configPolicyCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_); + output.writeMessage(1, (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_); } if (configPolicyCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); + output.writeMessage(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); } for (int i = 0; i < allowedLocationsAndOrganizations_.size(); i++) { output.writeMessage(3, allowedLocationsAndOrganizations_.get(i)); } for (int i = 0; i < allowedCommonNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, allowedCommonNames_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedCommonNames_.getRaw(i)); } if (allowedSans_ != null) { output.writeMessage(5, getAllowedSans()); @@ -7470,23 +6166,16 @@ public int getSerializedSize() { size = 0; if (configPolicyCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_); } if (configPolicyCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); } for (int i = 0; i < allowedLocationsAndOrganizations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, allowedLocationsAndOrganizations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, allowedLocationsAndOrganizations_.get(i)); } { int dataSize = 0; @@ -7497,14 +6186,16 @@ public int getSerializedSize() { size += 1 * getAllowedCommonNamesList().size(); } if (allowedSans_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAllowedSans()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAllowedSans()); } if (maximumLifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaximumLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMaximumLifetime()); } if (allowedIssuanceModes_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAllowedIssuanceModes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAllowedIssuanceModes()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7514,42 +6205,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy) - obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) obj; if (!getAllowedLocationsAndOrganizationsList() .equals(other.getAllowedLocationsAndOrganizationsList())) return false; - if (!getAllowedCommonNamesList().equals(other.getAllowedCommonNamesList())) return false; + if (!getAllowedCommonNamesList() + .equals(other.getAllowedCommonNamesList())) return false; if (hasAllowedSans() != other.hasAllowedSans()) return false; if (hasAllowedSans()) { - if (!getAllowedSans().equals(other.getAllowedSans())) return false; + if (!getAllowedSans() + .equals(other.getAllowedSans())) return false; } if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; if (hasMaximumLifetime()) { - if (!getMaximumLifetime().equals(other.getMaximumLifetime())) return false; + if (!getMaximumLifetime() + .equals(other.getMaximumLifetime())) return false; } if (hasAllowedIssuanceModes() != other.hasAllowedIssuanceModes()) return false; if (hasAllowedIssuanceModes()) { - if (!getAllowedIssuanceModes().equals(other.getAllowedIssuanceModes())) return false; + if (!getAllowedIssuanceModes() + .equals(other.getAllowedIssuanceModes())) return false; } if (!getConfigPolicyCase().equals(other.getConfigPolicyCase())) return false; switch (configPolicyCase_) { case 1: - if (!getAllowedConfigList().equals(other.getAllowedConfigList())) return false; + if (!getAllowedConfigList() + .equals(other.getAllowedConfigList())) return false; break; case 2: - if (!getOverwriteConfigValues().equals(other.getOverwriteConfigValues())) return false; + if (!getOverwriteConfigValues() + .equals(other.getOverwriteConfigValues())) return false; break; case 0: default: @@ -7602,114 +6292,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy 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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7719,57 +6383,47 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The issuing policy for a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] will not be successfully issued from this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] if they violate the policy.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAllowedLocationsAndOrganizationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7805,25 +6459,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7831,13 +6479,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy(this); int from_bitField0_ = bitField0_; if (configPolicyCase_ == 1) { if (allowedConfigListBuilder_ == null) { @@ -7855,14 +6498,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } if (allowedLocationsAndOrganizationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = - java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizations_ = java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); bitField0_ = (bitField0_ & ~0x00000001); } result.allowedLocationsAndOrganizations_ = allowedLocationsAndOrganizations_; } else { - result.allowedLocationsAndOrganizations_ = - allowedLocationsAndOrganizationsBuilder_.build(); + result.allowedLocationsAndOrganizations_ = allowedLocationsAndOrganizationsBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { allowedCommonNames_ = allowedCommonNames_.getUnmodifiableView(); @@ -7893,60 +6534,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance()) return this; if (allowedLocationsAndOrganizationsBuilder_ == null) { if (!other.allowedLocationsAndOrganizations_.isEmpty()) { if (allowedLocationsAndOrganizations_.isEmpty()) { @@ -7965,13 +6592,11 @@ public Builder mergeFrom( allowedLocationsAndOrganizationsBuilder_ = null; allowedLocationsAndOrganizations_ = other.allowedLocationsAndOrganizations_; bitField0_ = (bitField0_ & ~0x00000001); - allowedLocationsAndOrganizationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAllowedLocationsAndOrganizationsFieldBuilder() - : null; + allowedLocationsAndOrganizationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowedLocationsAndOrganizationsFieldBuilder() : null; } else { - allowedLocationsAndOrganizationsBuilder_.addAllMessages( - other.allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizationsBuilder_.addAllMessages(other.allowedLocationsAndOrganizations_); } } } @@ -7991,24 +6616,21 @@ public Builder mergeFrom( if (other.hasMaximumLifetime()) { mergeMaximumLifetime(other.getMaximumLifetime()); } - if (other.hasAllowedIssuanceModes()) { - mergeAllowedIssuanceModes(other.getAllowedIssuanceModes()); - } - switch (other.getConfigPolicyCase()) { - case ALLOWED_CONFIG_LIST: - { - mergeAllowedConfigList(other.getAllowedConfigList()); - break; - } - case OVERWRITE_CONFIG_VALUES: - { - mergeOverwriteConfigValues(other.getOverwriteConfigValues()); - break; - } - case CONFIGPOLICY_NOT_SET: - { - break; - } + if (other.hasAllowedIssuanceModes()) { + mergeAllowedIssuanceModes(other.getAllowedIssuanceModes()); + } + switch (other.getConfigPolicyCase()) { + case ALLOWED_CONFIG_LIST: { + mergeAllowedConfigList(other.getAllowedConfigList()); + break; + } + case OVERWRITE_CONFIG_VALUES: { + mergeOverwriteConfigValues(other.getOverwriteConfigValues()); + break; + } + case CONFIGPOLICY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -8025,15 +6647,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8042,12 +6660,12 @@ public Builder mergeFrom( } return this; } - private int configPolicyCase_ = 0; private java.lang.Object configPolicy_; - - public ConfigPolicyCase getConfigPolicyCase() { - return ConfigPolicyCase.forNumber(configPolicyCase_); + public ConfigPolicyCase + getConfigPolicyCase() { + return ConfigPolicyCase.forNumber( + configPolicyCase_); } public Builder clearConfigPolicy() { @@ -8060,25 +6678,14 @@ public Builder clearConfigPolicy() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigListOrBuilder> - allowedConfigListBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder> allowedConfigListBuilder_; /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedConfigList field is set. */ @java.lang.Override @@ -8086,55 +6693,37 @@ public boolean hasAllowedConfigList() { return configPolicyCase_ == 1; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedConfigList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - getAllowedConfigList() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getAllowedConfigList() { if (allowedConfigListBuilder_ == null) { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } else { if (configPolicyCase_ == 1) { return allowedConfigListBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAllowedConfigList( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - value) { + public Builder setAllowedConfigList(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList value) { if (allowedConfigListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8148,21 +6737,15 @@ public Builder setAllowedConfigList( return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedConfigList( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder builderForValue) { if (allowedConfigListBuilder_ == null) { configPolicy_ = builderForValue.build(); onChanged(); @@ -8173,34 +6756,19 @@ public Builder setAllowedConfigList( return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAllowedConfigList( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList - value) { + public Builder mergeAllowedConfigList(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList value) { if (allowedConfigListBuilder_ == null) { - if (configPolicyCase_ == 1 - && configPolicy_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) { - configPolicy_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.newBuilder( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_) - .mergeFrom(value) - .buildPartial(); + if (configPolicyCase_ == 1 && + configPolicy_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) { + configPolicy_ = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.newBuilder((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_) + .mergeFrom(value).buildPartial(); } else { configPolicy_ = value; } @@ -8216,16 +6784,12 @@ public Builder mergeAllowedConfigList( return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllowedConfigList() { if (allowedConfigListBuilder_ == null) { @@ -8244,115 +6808,72 @@ public Builder clearAllowedConfigList() { return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder - getAllowedConfigListBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder getAllowedConfigListBuilder() { return getAllowedConfigListFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigListOrBuilder - getAllowedConfigListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder getAllowedConfigListOrBuilder() { if ((configPolicyCase_ == 1) && (allowedConfigListBuilder_ != null)) { return allowedConfigListBuilder_.getMessageOrBuilder(); } else { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigListOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder> getAllowedConfigListFieldBuilder() { if (allowedConfigListBuilder_ == null) { if (!(configPolicyCase_ == 1)) { - configPolicy_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + configPolicy_ = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } - allowedConfigListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigListOrBuilder>( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedConfigList) - configPolicy_, + allowedConfigListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder>( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_, getParentForChildren(), isClean()); configPolicy_ = null; } configPolicyCase_ = 1; - onChanged(); - ; + onChanged();; return allowedConfigListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> - overwriteConfigValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> overwriteConfigValuesBuilder_; /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the overwriteConfigValues field is set. */ @java.lang.Override @@ -8360,53 +6881,39 @@ public boolean hasOverwriteConfigValues() { return configPolicyCase_ == 2; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The overwriteConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - getOverwriteConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getOverwriteConfigValues() { if (overwriteConfigValuesBuilder_ == null) { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } else { if (configPolicyCase_ == 2) { return overwriteConfigValuesBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setOverwriteConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder setOverwriteConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (overwriteConfigValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8420,21 +6927,16 @@ public Builder setOverwriteConfigValues( return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOverwriteConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { if (overwriteConfigValuesBuilder_ == null) { configPolicy_ = builderForValue.build(); onChanged(); @@ -8445,31 +6947,20 @@ public Builder setOverwriteConfigValues( return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeOverwriteConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder mergeOverwriteConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (overwriteConfigValuesBuilder_ == null) { - if (configPolicyCase_ == 2 - && configPolicy_ - != com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance()) { - configPolicy_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder( - (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - configPolicy_) - .mergeFrom(value) - .buildPartial(); + if (configPolicyCase_ == 2 && + configPolicy_ != com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()) { + configPolicy_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_) + .mergeFrom(value).buildPartial(); } else { configPolicy_ = value; } @@ -8485,17 +6976,13 @@ public Builder mergeOverwriteConfigValues( return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOverwriteConfigValues() { if (overwriteConfigValuesBuilder_ == null) { @@ -8514,110 +7001,78 @@ public Builder clearOverwriteConfigValues() { return this; } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - getOverwriteConfigValuesBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder getOverwriteConfigValuesBuilder() { return getOverwriteConfigValuesFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getOverwriteConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getOverwriteConfigValuesOrBuilder() { if ((configPolicyCase_ == 2) && (overwriteConfigValuesBuilder_ != null)) { return overwriteConfigValuesBuilder_.getMessageOrBuilder(); } else { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } } /** - * - * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getOverwriteConfigValuesFieldBuilder() { if (overwriteConfigValuesBuilder_ == null) { if (!(configPolicyCase_ == 2)) { - configPolicy_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - .getDefaultInstance(); + configPolicy_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } - overwriteConfigValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( + overwriteConfigValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_, getParentForChildren(), isClean()); configPolicy_ = null; } configPolicyCase_ = 2; - onChanged(); - ; + onChanged();; return overwriteConfigValuesBuilder_; } - private java.util.List - allowedLocationsAndOrganizations_ = java.util.Collections.emptyList(); - + private java.util.List allowedLocationsAndOrganizations_ = + java.util.Collections.emptyList(); private void ensureAllowedLocationsAndOrganizationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = - new java.util.ArrayList( - allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizations_ = new java.util.ArrayList(allowedLocationsAndOrganizations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> - allowedLocationsAndOrganizationsBuilder_; + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> allowedLocationsAndOrganizationsBuilder_; /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8625,12 +7080,9 @@ private void ensureAllowedLocationsAndOrganizationsIsMutable() {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAllowedLocationsAndOrganizationsList() { + public java.util.List getAllowedLocationsAndOrganizationsList() { if (allowedLocationsAndOrganizationsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); } else { @@ -8638,8 +7090,6 @@ private void ensureAllowedLocationsAndOrganizationsIsMutable() { } } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8647,9 +7097,7 @@ private void ensureAllowedLocationsAndOrganizationsIsMutable() {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAllowedLocationsAndOrganizationsCount() { if (allowedLocationsAndOrganizationsBuilder_ == null) { @@ -8659,8 +7107,6 @@ public int getAllowedLocationsAndOrganizationsCount() { } } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8668,12 +7114,9 @@ public int getAllowedLocationsAndOrganizationsCount() {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.Subject - getAllowedLocationsAndOrganizations(int index) { + public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations(int index) { if (allowedLocationsAndOrganizationsBuilder_ == null) { return allowedLocationsAndOrganizations_.get(index); } else { @@ -8681,8 +7124,6 @@ public int getAllowedLocationsAndOrganizationsCount() { } } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8690,9 +7131,7 @@ public int getAllowedLocationsAndOrganizationsCount() {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject value) { @@ -8709,8 +7148,6 @@ public Builder setAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8718,9 +7155,7 @@ public Builder setAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -8734,8 +7169,6 @@ public Builder setAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8743,12 +7176,9 @@ public Builder setAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAllowedLocationsAndOrganizations( - com.google.cloud.security.privateca.v1beta1.Subject value) { + public Builder addAllowedLocationsAndOrganizations(com.google.cloud.security.privateca.v1beta1.Subject value) { if (allowedLocationsAndOrganizationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8762,8 +7192,6 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8771,9 +7199,7 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject value) { @@ -8790,8 +7216,6 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8799,9 +7223,7 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllowedLocationsAndOrganizations( com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -8815,8 +7237,6 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8824,9 +7244,7 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -8840,8 +7258,6 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8849,13 +7265,10 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAllowedLocationsAndOrganizations( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (allowedLocationsAndOrganizationsBuilder_ == null) { ensureAllowedLocationsAndOrganizationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -8867,8 +7280,6 @@ public Builder addAllAllowedLocationsAndOrganizations( return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8876,9 +7287,7 @@ public Builder addAllAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllowedLocationsAndOrganizations() { if (allowedLocationsAndOrganizationsBuilder_ == null) { @@ -8891,8 +7300,6 @@ public Builder clearAllowedLocationsAndOrganizations() { return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8900,9 +7307,7 @@ public Builder clearAllowedLocationsAndOrganizations() {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAllowedLocationsAndOrganizations(int index) { if (allowedLocationsAndOrganizationsBuilder_ == null) { @@ -8915,8 +7320,6 @@ public Builder removeAllowedLocationsAndOrganizations(int index) { return this; } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8924,17 +7327,13 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.Subject.Builder - getAllowedLocationsAndOrganizationsBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.Subject.Builder getAllowedLocationsAndOrganizationsBuilder( + int index) { return getAllowedLocationsAndOrganizationsFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8942,21 +7341,16 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder - getAllowedLocationsAndOrganizationsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocationsAndOrganizationsOrBuilder( + int index) { if (allowedLocationsAndOrganizationsBuilder_ == null) { - return allowedLocationsAndOrganizations_.get(index); - } else { + return allowedLocationsAndOrganizations_.get(index); } else { return allowedLocationsAndOrganizationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8964,12 +7358,10 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAllowedLocationsAndOrganizationsOrBuilderList() { + public java.util.List + getAllowedLocationsAndOrganizationsOrBuilderList() { if (allowedLocationsAndOrganizationsBuilder_ != null) { return allowedLocationsAndOrganizationsBuilder_.getMessageOrBuilderList(); } else { @@ -8977,8 +7369,6 @@ public Builder removeAllowedLocationsAndOrganizations(int index) { } } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -8986,18 +7376,13 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.Subject.Builder - addAllowedLocationsAndOrganizationsBuilder() { - return getAllowedLocationsAndOrganizationsFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLocationsAndOrganizationsBuilder() { + return getAllowedLocationsAndOrganizationsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9005,19 +7390,14 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.Subject.Builder - addAllowedLocationsAndOrganizationsBuilder(int index) { - return getAllowedLocationsAndOrganizationsFieldBuilder() - .addBuilder( - index, com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLocationsAndOrganizationsBuilder( + int index) { + return getAllowedLocationsAndOrganizationsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); } /** - * - * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9025,26 +7405,18 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAllowedLocationsAndOrganizationsBuilderList() { + public java.util.List + getAllowedLocationsAndOrganizationsBuilderList() { return getAllowedLocationsAndOrganizationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> getAllowedLocationsAndOrganizationsFieldBuilder() { if (allowedLocationsAndOrganizationsBuilder_ == null) { - allowedLocationsAndOrganizationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( + allowedLocationsAndOrganizationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( allowedLocationsAndOrganizations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -9054,18 +7426,14 @@ public Builder removeAllowedLocationsAndOrganizations(int index) { return allowedLocationsAndOrganizationsBuilder_; } - private com.google.protobuf.LazyStringList allowedCommonNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedCommonNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedCommonNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { allowedCommonNames_ = new com.google.protobuf.LazyStringArrayList(allowedCommonNames_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9073,17 +7441,14 @@ private void ensureAllowedCommonNamesIsMutable() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedCommonNames. */ - public com.google.protobuf.ProtocolStringList getAllowedCommonNamesList() { + public com.google.protobuf.ProtocolStringList + getAllowedCommonNamesList() { return allowedCommonNames_.getUnmodifiableView(); } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9091,17 +7456,13 @@ public com.google.protobuf.ProtocolStringList getAllowedCommonNamesList() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedCommonNames. */ public int getAllowedCommonNamesCount() { return allowedCommonNames_.size(); } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9109,9 +7470,7 @@ public int getAllowedCommonNamesCount() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedCommonNames at the given index. */ @@ -9119,8 +7478,6 @@ public java.lang.String getAllowedCommonNames(int index) { return allowedCommonNames_.get(index); } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9128,18 +7485,15 @@ public java.lang.String getAllowedCommonNames(int index) {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedCommonNames at the given index. */ - public com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index) { + public com.google.protobuf.ByteString + getAllowedCommonNamesBytes(int index) { return allowedCommonNames_.getByteString(index); } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9147,25 +7501,22 @@ public com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index) {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The allowedCommonNames to set. * @return This builder for chaining. */ - public Builder setAllowedCommonNames(int index, java.lang.String value) { + public Builder setAllowedCommonNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedCommonNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedCommonNamesIsMutable(); allowedCommonNames_.set(index, value); onChanged(); return this; } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9173,24 +7524,21 @@ public Builder setAllowedCommonNames(int index, java.lang.String value) {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedCommonNames to add. * @return This builder for chaining. */ - public Builder addAllowedCommonNames(java.lang.String value) { + public Builder addAllowedCommonNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedCommonNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedCommonNamesIsMutable(); allowedCommonNames_.add(value); onChanged(); return this; } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9198,21 +7546,19 @@ public Builder addAllowedCommonNames(java.lang.String value) {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedCommonNames to add. * @return This builder for chaining. */ - public Builder addAllAllowedCommonNames(java.lang.Iterable values) { + public Builder addAllAllowedCommonNames( + java.lang.Iterable values) { ensureAllowedCommonNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCommonNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedCommonNames_); onChanged(); return this; } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9220,9 +7566,7 @@ public Builder addAllAllowedCommonNames(java.lang.Iterable val
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedCommonNames() { @@ -9232,8 +7576,6 @@ public Builder clearAllowedCommonNames() { return this; } /** - * - * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9241,37 +7583,26 @@ public Builder clearAllowedCommonNames() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the allowedCommonNames to add. * @return This builder for chaining. */ - public Builder addAllowedCommonNamesBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedCommonNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedCommonNamesIsMutable(); allowedCommonNames_.add(value); onChanged(); return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - allowedSans_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowedSans_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> - allowedSansBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> allowedSansBuilder_; /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9280,18 +7611,13 @@ public Builder addAllowedCommonNamesBytes(com.google.protobuf.ByteString value)
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedSans field is set. */ public boolean hasAllowedSans() { return allowedSansBuilder_ != null || allowedSans_ != null; } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9300,27 +7626,17 @@ public boolean hasAllowedSans() {
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedSans. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - getAllowedSans() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getAllowedSans() { if (allowedSansBuilder_ == null) { - return allowedSans_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() - : allowedSans_; + return allowedSans_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() : allowedSans_; } else { return allowedSansBuilder_.getMessage(); } } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9329,14 +7645,9 @@ public boolean hasAllowedSans() {
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAllowedSans( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - value) { + public Builder setAllowedSans(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames value) { if (allowedSansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9350,8 +7661,6 @@ public Builder setAllowedSans( return this; } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9360,14 +7669,10 @@ public Builder setAllowedSans(
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedSans( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder builderForValue) { if (allowedSansBuilder_ == null) { allowedSans_ = builderForValue.build(); onChanged(); @@ -9378,8 +7683,6 @@ public Builder setAllowedSans( return this; } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9388,21 +7691,13 @@ public Builder setAllowedSans(
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAllowedSans( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames - value) { + public Builder mergeAllowedSans(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames value) { if (allowedSansBuilder_ == null) { if (allowedSans_ != null) { allowedSans_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder(allowedSans_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder(allowedSans_).mergeFrom(value).buildPartial(); } else { allowedSans_ = value; } @@ -9414,8 +7709,6 @@ public Builder mergeAllowedSans( return this; } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9424,9 +7717,7 @@ public Builder mergeAllowedSans(
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllowedSans() { if (allowedSansBuilder_ == null) { @@ -9440,8 +7731,6 @@ public Builder clearAllowedSans() { return this; } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9450,20 +7739,14 @@ public Builder clearAllowedSans() {
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder - getAllowedSansBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder getAllowedSansBuilder() { + onChanged(); return getAllowedSansFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9472,25 +7755,17 @@ public Builder clearAllowedSans() {
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder - getAllowedSansOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder getAllowedSansOrBuilder() { if (allowedSansBuilder_ != null) { return allowedSansBuilder_.getMessageOrBuilder(); } else { - return allowedSans_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() - : allowedSans_; + return allowedSans_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() : allowedSans_; } } /** - * - * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -9499,28 +7774,17 @@ public Builder clearAllowedSans() {
        * field.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> getAllowedSansFieldBuilder() { if (allowedSansBuilder_ == null) { - allowedSansBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder>( - getAllowedSans(), getParentForChildren(), isClean()); + allowedSansBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder>( + getAllowedSans(), + getParentForChildren(), + isClean()); allowedSans_ = null; } return allowedSansBuilder_; @@ -9528,13 +7792,8 @@ public Builder clearAllowedSans() { private com.google.protobuf.Duration maximumLifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maximumLifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumLifetimeBuilder_; /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9542,18 +7801,13 @@ public Builder clearAllowedSans() {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maximumLifetime field is set. */ public boolean hasMaximumLifetime() { return maximumLifetimeBuilder_ != null || maximumLifetime_ != null; } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9561,24 +7815,17 @@ public boolean hasMaximumLifetime() {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The maximumLifetime. */ public com.google.protobuf.Duration getMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { - return maximumLifetime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumLifetime_; + return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; } else { return maximumLifetimeBuilder_.getMessage(); } } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9586,9 +7833,7 @@ public com.google.protobuf.Duration getMaximumLifetime() {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { @@ -9604,8 +7849,6 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9613,11 +7856,10 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaximumLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (maximumLifetimeBuilder_ == null) { maximumLifetime_ = builderForValue.build(); onChanged(); @@ -9628,8 +7870,6 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9637,17 +7877,13 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderFo
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { if (maximumLifetime_ != null) { maximumLifetime_ = - com.google.protobuf.Duration.newBuilder(maximumLifetime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(maximumLifetime_).mergeFrom(value).buildPartial(); } else { maximumLifetime_ = value; } @@ -9659,8 +7895,6 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9668,9 +7902,7 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { @@ -9684,8 +7916,6 @@ public Builder clearMaximumLifetime() { return this; } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9693,18 +7923,14 @@ public Builder clearMaximumLifetime() {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { - + onChanged(); return getMaximumLifetimeFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9712,22 +7938,17 @@ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { if (maximumLifetimeBuilder_ != null) { return maximumLifetimeBuilder_.getMessageOrBuilder(); } else { - return maximumLifetime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumLifetime_; + return maximumLifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; } } /** - * - * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -9735,97 +7956,62 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() {
        * truncated.
        * 
* - * - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getMaximumLifetimeFieldBuilder() { if (maximumLifetimeBuilder_ == null) { - maximumLifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaximumLifetime(), getParentForChildren(), isClean()); + maximumLifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaximumLifetime(), + getParentForChildren(), + isClean()); maximumLifetime_ = null; } return maximumLifetimeBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowedIssuanceModes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModesOrBuilder> - allowedIssuanceModesBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder> allowedIssuanceModesBuilder_; /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the allowedIssuanceModes field is set. */ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModesBuilder_ != null || allowedIssuanceModes_ != null; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The allowedIssuanceModes. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - getAllowedIssuanceModes() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { - return allowedIssuanceModes_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() - : allowedIssuanceModes_; + return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; } else { return allowedIssuanceModesBuilder_.getMessage(); } } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAllowedIssuanceModes( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - value) { + public Builder setAllowedIssuanceModes(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9839,21 +8025,15 @@ public Builder setAllowedIssuanceModes( return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAllowedIssuanceModes( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder builderForValue) { if (allowedIssuanceModesBuilder_ == null) { allowedIssuanceModes_ = builderForValue.build(); onChanged(); @@ -9864,28 +8044,18 @@ public Builder setAllowedIssuanceModes( return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAllowedIssuanceModes( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes - value) { + public Builder mergeAllowedIssuanceModes(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { if (allowedIssuanceModes_ != null) { allowedIssuanceModes_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.newBuilder(allowedIssuanceModes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.newBuilder(allowedIssuanceModes_).mergeFrom(value).buildPartial(); } else { allowedIssuanceModes_ = value; } @@ -9897,16 +8067,12 @@ public Builder mergeAllowedIssuanceModes( return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { @@ -9920,83 +8086,55 @@ public Builder clearAllowedIssuanceModes() { return this; } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder - getAllowedIssuanceModesBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder getAllowedIssuanceModesBuilder() { + onChanged(); return getAllowedIssuanceModesFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModesOrBuilder - getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { if (allowedIssuanceModesBuilder_ != null) { return allowedIssuanceModesBuilder_.getMessageOrBuilder(); } else { - return allowedIssuanceModes_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() - : allowedIssuanceModes_; + return allowedIssuanceModes_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; } } /** - * - * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModesOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder> getAllowedIssuanceModesFieldBuilder() { if (allowedIssuanceModesBuilder_ == null) { - allowedIssuanceModesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModes.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.IssuanceModesOrBuilder>( - getAllowedIssuanceModes(), getParentForChildren(), isClean()); + allowedIssuanceModesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder>( + getAllowedIssuanceModes(), + getParentForChildren(), + isClean()); allowedIssuanceModes_ = null; } return allowedIssuanceModesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10009,36 +8147,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateAuthorityPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateAuthorityPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateAuthorityPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10050,91 +8182,76 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AccessUrlsOrBuilder - extends + public interface AccessUrlsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The caCertificateAccessUrl. */ java.lang.String getCaCertificateAccessUrl(); /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The bytes for caCertificateAccessUrl. */ - com.google.protobuf.ByteString getCaCertificateAccessUrlBytes(); + com.google.protobuf.ByteString + getCaCertificateAccessUrlBytes(); /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; - * * @return The crlAccessUrl. */ java.lang.String getCrlAccessUrl(); /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; - * * @return The bytes for crlAccessUrl. */ - com.google.protobuf.ByteString getCrlAccessUrlBytes(); + com.google.protobuf.ByteString + getCrlAccessUrlBytes(); } /** - * - * *
    * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will publish content.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls} */ - public static final class AccessUrls extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AccessUrls extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) AccessUrlsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessUrls.newBuilder() to construct. private AccessUrls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AccessUrls() { caCertificateAccessUrl_ = ""; crlAccessUrl_ = ""; @@ -10142,15 +8259,16 @@ private AccessUrls() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AccessUrls(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AccessUrls( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10169,27 +8287,25 @@ private AccessUrls( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - caCertificateAccessUrl_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + caCertificateAccessUrl_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - crlAccessUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + crlAccessUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10197,41 +8313,35 @@ private AccessUrls( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder - .class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder.class); } public static final int CA_CERTIFICATE_ACCESS_URL_FIELD_NUMBER = 1; private volatile java.lang.Object caCertificateAccessUrl_; /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The caCertificateAccessUrl. */ @java.lang.Override @@ -10240,30 +8350,30 @@ public java.lang.String getCaCertificateAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; } } /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; - * * @return The bytes for caCertificateAccessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString + getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -10274,15 +8384,12 @@ public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { public static final int CRL_ACCESS_URL_FIELD_NUMBER = 2; private volatile java.lang.Object crlAccessUrl_; /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; - * * @return The crlAccessUrl. */ @java.lang.Override @@ -10291,30 +8398,30 @@ public java.lang.String getCrlAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crlAccessUrl_ = s; return s; } } /** - * - * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; - * * @return The bytes for crlAccessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getCrlAccessUrlBytes() { + public com.google.protobuf.ByteString + getCrlAccessUrlBytes() { java.lang.Object ref = crlAccessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crlAccessUrl_ = b; return b; } else { @@ -10323,7 +8430,6 @@ public com.google.protobuf.ByteString getCrlAccessUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10335,7 +8441,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caCertificateAccessUrl_); } @@ -10352,8 +8459,7 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crlAccessUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, crlAccessUrl_); @@ -10366,17 +8472,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.security.privateca.v1beta1.CertificateAuthority.AccessUrls)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) obj; - if (!getCaCertificateAccessUrl().equals(other.getCaCertificateAccessUrl())) return false; - if (!getCrlAccessUrl().equals(other.getCrlAccessUrl())) return false; + if (!getCaCertificateAccessUrl() + .equals(other.getCaCertificateAccessUrl())) return false; + if (!getCrlAccessUrl() + .equals(other.getCrlAccessUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10397,101 +8503,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - 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.security.privateca.v1beta1.CertificateAuthority.AccessUrls 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.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10501,50 +8594,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will publish content.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder - .class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -10556,22 +8643,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10579,10 +8663,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUr } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(this); result.caCertificateAccessUrl_ = caCertificateAccessUrl_; result.crlAccessUrl_ = crlAccessUrl_; onBuilt(); @@ -10593,55 +8675,46 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUr public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.AccessUrls) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance()) return this; if (!other.getCaCertificateAccessUrl().isEmpty()) { caCertificateAccessUrl_ = other.caCertificateAccessUrl_; onChanged(); @@ -10665,14 +8738,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10684,21 +8754,19 @@ public Builder mergeFrom( private java.lang.Object caCertificateAccessUrl_ = ""; /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @return The caCertificateAccessUrl. */ public java.lang.String getCaCertificateAccessUrl() { java.lang.Object ref = caCertificateAccessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; @@ -10707,22 +8775,21 @@ public java.lang.String getCaCertificateAccessUrl() { } } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @return The bytes for caCertificateAccessUrl. */ - public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString + getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -10730,64 +8797,57 @@ public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { } } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @param value The caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrl(java.lang.String value) { + public Builder setCaCertificateAccessUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificateAccessUrl_ = value; onChanged(); return this; } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @return This builder for chaining. */ public Builder clearCaCertificateAccessUrl() { - + caCertificateAccessUrl_ = getDefaultInstance().getCaCertificateAccessUrl(); onChanged(); return this; } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; - * * @param value The bytes for caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrlBytes(com.google.protobuf.ByteString value) { + public Builder setCaCertificateAccessUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificateAccessUrl_ = value; onChanged(); return this; @@ -10795,21 +8855,19 @@ public Builder setCaCertificateAccessUrlBytes(com.google.protobuf.ByteString val private java.lang.Object crlAccessUrl_ = ""; /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; - * * @return The crlAccessUrl. */ public java.lang.String getCrlAccessUrl() { java.lang.Object ref = crlAccessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crlAccessUrl_ = s; return s; @@ -10818,22 +8876,21 @@ public java.lang.String getCrlAccessUrl() { } } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; - * * @return The bytes for crlAccessUrl. */ - public com.google.protobuf.ByteString getCrlAccessUrlBytes() { + public com.google.protobuf.ByteString + getCrlAccessUrlBytes() { java.lang.Object ref = crlAccessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crlAccessUrl_ = b; return b; } else { @@ -10841,69 +8898,61 @@ public com.google.protobuf.ByteString getCrlAccessUrlBytes() { } } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; - * * @param value The crlAccessUrl to set. * @return This builder for chaining. */ - public Builder setCrlAccessUrl(java.lang.String value) { + public Builder setCrlAccessUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crlAccessUrl_ = value; onChanged(); return this; } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; - * * @return This builder for chaining. */ public Builder clearCrlAccessUrl() { - + crlAccessUrl_ = getDefaultInstance().getCrlAccessUrl(); onChanged(); return this; } /** - * - * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; - * * @param value The bytes for crlAccessUrl to set. * @return This builder for chaining. */ - public Builder setCrlAccessUrlBytes(com.google.protobuf.ByteString value) { + public Builder setCrlAccessUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crlAccessUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10916,33 +8965,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessUrls parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessUrls(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessUrls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessUrls(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10954,20 +9000,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface KeyVersionSpecOrBuilder - extends + public interface KeyVersionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -10977,13 +9020,10 @@ public interface KeyVersionSpecOrBuilder
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the cloudKmsKeyVersion field is set. */ boolean hasCloudKmsKeyVersion(); /** - * - * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -10993,13 +9033,10 @@ public interface KeyVersionSpecOrBuilder
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cloudKmsKeyVersion. */ java.lang.String getCloudKmsKeyVersion(); /** - * - * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -11009,98 +9046,78 @@ public interface KeyVersionSpecOrBuilder
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cloudKmsKeyVersion. */ - com.google.protobuf.ByteString getCloudKmsKeyVersionBytes(); + com.google.protobuf.ByteString + getCloudKmsKeyVersionBytes(); /** - * - * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the algorithm field is set. */ boolean hasAlgorithm(); /** - * - * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** - * - * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - getAlgorithm(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm getAlgorithm(); - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .KeyVersionCase - getKeyVersionCase(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase(); } /** - * - * *
    * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will use.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} */ - public static final class KeyVersionSpec extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KeyVersionSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) KeyVersionSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyVersionSpec.newBuilder() to construct. private KeyVersionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private KeyVersionSpec() {} + private KeyVersionSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KeyVersionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KeyVersionSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -11119,27 +9136,25 @@ private KeyVersionSpec( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - keyVersionCase_ = 1; - keyVersion_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - keyVersionCase_ = 2; - keyVersion_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + keyVersionCase_ = 1; + keyVersion_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + keyVersionCase_ = 2; + keyVersion_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11147,41 +9162,35 @@ private KeyVersionSpec( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder.class); } private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; - public enum KeyVersionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_KMS_KEY_VERSION(1), ALGORITHM(2), KEYVERSION_NOT_SET(0); private final int value; - private KeyVersionCase(int value) { this.value = value; } @@ -11197,30 +9206,25 @@ public static KeyVersionCase valueOf(int value) { public static KeyVersionCase forNumber(int value) { switch (value) { - case 1: - return CLOUD_KMS_KEY_VERSION; - case 2: - return ALGORITHM; - case 0: - return KEYVERSION_NOT_SET; - default: - return null; + case 1: return CLOUD_KMS_KEY_VERSION; + case 2: return ALGORITHM; + case 0: return KEYVERSION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public KeyVersionCase getKeyVersionCase() { - return KeyVersionCase.forNumber(keyVersionCase_); + public KeyVersionCase + getKeyVersionCase() { + return KeyVersionCase.forNumber( + keyVersionCase_); } public static final int CLOUD_KMS_KEY_VERSION_FIELD_NUMBER = 1; /** - * - * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -11230,15 +9234,12 @@ public KeyVersionCase getKeyVersionCase() {
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the cloudKmsKeyVersion field is set. */ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** - * - * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -11248,7 +9249,6 @@ public boolean hasCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cloudKmsKeyVersion. */ public java.lang.String getCloudKmsKeyVersion() { @@ -11259,7 +9259,8 @@ public java.lang.String getCloudKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -11268,8 +9269,6 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** - * - * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -11279,17 +9278,18 @@ public java.lang.String getCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cloudKmsKeyVersion. */ - public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -11301,36 +9301,26 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { public static final int ALGORITHM_FIELD_NUMBER = 2; /** - * - * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** - * - * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ public int getAlgorithmValue() { @@ -11340,38 +9330,26 @@ public int getAlgorithmValue() { return 0; } /** - * - * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - getAlgorithm() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - .valueOf((java.lang.Integer) keyVersion_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - .UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.valueOf( + (java.lang.Integer) keyVersion_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - .SIGN_HASH_ALGORITHM_UNSPECIFIED; + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11383,7 +9361,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (keyVersionCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyVersion_); } @@ -11403,9 +9382,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyVersion_); } if (keyVersionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) keyVersion_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, ((java.lang.Integer) keyVersion_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -11415,23 +9393,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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) obj; if (!getKeyVersionCase().equals(other.getKeyVersionCase())) return false; switch (keyVersionCase_) { case 1: - if (!getCloudKmsKeyVersion().equals(other.getCloudKmsKeyVersion())) return false; + if (!getCloudKmsKeyVersion() + .equals(other.getCloudKmsKeyVersion())) return false; break; case 2: - if (getAlgorithmValue() != other.getAlgorithmValue()) return false; + if (getAlgorithmValue() + != other.getAlgorithmValue()) return false; break; case 0: default: @@ -11464,101 +9441,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - 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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec 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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11568,52 +9532,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will use.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .class, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -11623,23 +9579,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11647,11 +9599,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec( - this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec(this); if (keyVersionCase_ == 1) { result.keyVersion_ = keyVersion_; } @@ -11667,73 +9616,60 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance()) return this; switch (other.getKeyVersionCase()) { - case CLOUD_KMS_KEY_VERSION: - { - keyVersionCase_ = 1; - keyVersion_ = other.keyVersion_; - onChanged(); - break; - } - case ALGORITHM: - { - setAlgorithmValue(other.getAlgorithmValue()); - break; - } - case KEYVERSION_NOT_SET: - { - break; - } + case CLOUD_KMS_KEY_VERSION: { + keyVersionCase_ = 1; + keyVersion_ = other.keyVersion_; + onChanged(); + break; + } + case ALGORITHM: { + setAlgorithmValue(other.getAlgorithmValue()); + break; + } + case KEYVERSION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -11750,14 +9686,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -11766,12 +9699,12 @@ public Builder mergeFrom( } return this; } - private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; - - public KeyVersionCase getKeyVersionCase() { - return KeyVersionCase.forNumber(keyVersionCase_); + public KeyVersionCase + getKeyVersionCase() { + return KeyVersionCase.forNumber( + keyVersionCase_); } public Builder clearKeyVersion() { @@ -11781,9 +9714,8 @@ public Builder clearKeyVersion() { return this; } + /** - * - * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -11793,7 +9725,6 @@ public Builder clearKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the cloudKmsKeyVersion field is set. */ @java.lang.Override @@ -11801,8 +9732,6 @@ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** - * - * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -11812,7 +9741,6 @@ public boolean hasCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cloudKmsKeyVersion. */ @java.lang.Override @@ -11822,7 +9750,8 @@ public java.lang.String getCloudKmsKeyVersion() { ref = keyVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -11833,8 +9762,6 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** - * - * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -11844,18 +9771,19 @@ public java.lang.String getCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for cloudKmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString + getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -11865,8 +9793,6 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { } } /** - * - * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -11876,22 +9802,20 @@ public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersion(java.lang.String value) { + public Builder setCloudKmsKeyVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - keyVersionCase_ = 1; + throw new NullPointerException(); + } + keyVersionCase_ = 1; keyVersion_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -11901,7 +9825,6 @@ public Builder setCloudKmsKeyVersion(java.lang.String value) {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCloudKmsKeyVersion() { @@ -11913,8 +9836,6 @@ public Builder clearCloudKmsKeyVersion() { return this; } /** - * - * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -11924,15 +9845,15 @@ public Builder clearCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value) { + public Builder setCloudKmsKeyVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); keyVersionCase_ = 1; keyVersion_ = value; onChanged(); @@ -11940,18 +9861,13 @@ public Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value) } /** - * - * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the algorithm field is set. */ @java.lang.Override @@ -11959,18 +9875,13 @@ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** - * - * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for algorithm. */ @java.lang.Override @@ -11981,18 +9892,13 @@ public int getAlgorithmValue() { return 0; } /** - * - * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm 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. */ @@ -12003,56 +9909,37 @@ public Builder setAlgorithmValue(int value) { return this; } /** - * - * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The algorithm. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - getAlgorithm() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - .valueOf((java.lang.Integer) keyVersion_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - .UNRECOGNIZED - : result; - } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - .SIGN_HASH_ALGORITHM_UNSPECIFIED; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.valueOf( + (java.lang.Integer) keyVersion_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; + } + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; } /** - * - * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm - value) { + public Builder setAlgorithm(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm value) { if (value == null) { throw new NullPointerException(); } @@ -12062,18 +9949,13 @@ public Builder setAlgorithm( return this; } /** - * - * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAlgorithm() { @@ -12084,7 +9966,6 @@ public Builder clearAlgorithm() { } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12097,34 +9978,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .KeyVersionSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyVersionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyVersionSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyVersionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyVersionSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12136,24 +10013,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -12162,30 +10036,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * 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 { @@ -12196,100 +10070,65 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED : result; } public static final int TIER_FIELD_NUMBER = 3; private int tier_; /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The tier. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED : result; } public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1beta1.CertificateConfig config_; /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ @java.lang.Override @@ -12297,46 +10136,32 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() { - return config_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder - getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int LIFETIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration lifetime_; /** - * - * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -12344,7 +10169,6 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig()
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -12352,8 +10176,6 @@ public boolean hasLifetime() { return lifetime_ != null; } /** - * - * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -12361,7 +10183,6 @@ public boolean hasLifetime() {
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The lifetime. */ @java.lang.Override @@ -12369,8 +10190,6 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** - * - * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -12387,8 +10206,6 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
   public static final int KEY_SPEC_FIELD_NUMBER = 6;
   private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec keySpec_;
   /**
-   *
-   *
    * 
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12396,10 +10213,7 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the keySpec field is set. */ @java.lang.Override @@ -12407,8 +10221,6 @@ public boolean hasKeySpec() { return keySpec_ != null; } /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12416,23 +10228,14 @@ public boolean hasKeySpec() {
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The keySpec. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - getKeySpec() { - return keySpec_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance() - : keySpec_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getKeySpec() { + return keySpec_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; } /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12440,32 +10243,22 @@ public boolean hasKeySpec() {
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder - getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { return getKeySpec(); } public static final int CERTIFICATE_POLICY_FIELD_NUMBER = 7; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - certificatePolicy_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificatePolicy_; /** - * - * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the certificatePolicy field is set. */ @java.lang.Override @@ -12473,61 +10266,40 @@ public boolean hasCertificatePolicy() { return certificatePolicy_ != null; } /** - * - * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The certificatePolicy. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - getCertificatePolicy() { - return certificatePolicy_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.getDefaultInstance() - : certificatePolicy_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy() { + return certificatePolicy_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance() : certificatePolicy_; } /** - * - * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder - getCertificatePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder() { return getCertificatePolicy(); } public static final int ISSUING_OPTIONS_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - issuingOptions_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuingOptions_; /** - * - * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the issuingOptions field is set. */ @java.lang.Override @@ -12535,60 +10307,41 @@ public boolean hasIssuingOptions() { return issuingOptions_ != null; } /** - * - * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuingOptions. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - getIssuingOptions() { - return issuingOptions_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .getDefaultInstance() - : issuingOptions_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getIssuingOptions() { + return issuingOptions_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance() : issuingOptions_; } /** - * - * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder - getIssuingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder() { return getIssuingOptions(); } public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 19; private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -12596,92 +10349,63 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int STATE_FIELD_NUMBER = 10; private int state_; /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED : result; } public static final int PEM_CA_CERTIFICATES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList pemCaCertificates_; /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -12689,17 +10413,14 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State ge
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCaCertificatesList() { return pemCaCertificates_; } /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -12707,17 +10428,13 @@ public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -12725,9 +10442,7 @@ public int getPemCaCertificatesCount() {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -12735,8 +10450,6 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -12744,110 +10457,83 @@ public java.lang.String getPemCaCertificates(int index) {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } public static final int CA_CERTIFICATE_DESCRIPTIONS_FIELD_NUMBER = 12; - private java.util.List - caCertificateDescriptions_; + private java.util.List caCertificateDescriptions_; /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getCaCertificateDescriptionsList() { + public java.util.List getCaCertificateDescriptionsList() { return caCertificateDescriptions_; } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + public java.util.List getCaCertificateDescriptionsOrBuilderList() { return caCertificateDescriptions_; } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getCaCertificateDescriptionsCount() { return caCertificateDescriptions_.size(); } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions(int index) { return caCertificateDescriptions_.get(index); } /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder - getCaCertificateDescriptionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( + int index) { return caCertificateDescriptions_.get(index); } public static final int GCS_BUCKET_FIELD_NUMBER = 13; private volatile java.lang.Object gcsBucket_; /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -12858,7 +10544,6 @@ public int getCaCertificateDescriptionsCount() {
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The gcsBucket. */ @java.lang.Override @@ -12867,15 +10552,14 @@ public java.lang.String getGcsBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; } } /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -12886,15 +10570,16 @@ public java.lang.String getGcsBucket() {
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for gcsBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsBucketBytes() { + public com.google.protobuf.ByteString + getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -12905,17 +10590,12 @@ public com.google.protobuf.ByteString getGcsBucketBytes() { public static final int ACCESS_URLS_FIELD_NUMBER = 14; private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls accessUrls_; /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accessUrls field is set. */ @java.lang.Override @@ -12923,57 +10603,39 @@ public boolean hasAccessUrls() { return accessUrls_ != null; } /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accessUrls. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - getAccessUrls() { - return accessUrls_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - .getDefaultInstance() - : accessUrls_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getAccessUrls() { + return accessUrls_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; } /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder - getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { return getAccessUrls(); } public static final int CREATE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -12981,15 +10643,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -12997,14 +10655,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -13014,15 +10669,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -13030,15 +10681,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -13046,14 +10693,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -13063,16 +10707,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 17; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -13080,16 +10720,12 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -13097,15 +10733,12 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -13113,23 +10746,24 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 18; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -13138,30 +10772,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -13169,12 +10801,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -13182,16 +10813,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -13199,11 +10830,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -13211,7 +10843,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13223,18 +10854,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 (type_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - if (tier_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED - .getNumber()) { + if (tier_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(3, tier_); } if (config_ != null) { @@ -13255,9 +10883,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pemCaCertificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pemCaCertificates_.getRaw(i)); } - if (state_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } for (int i = 0; i < caCertificateDescriptions_.size(); i++) { @@ -13278,8 +10904,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (deleteTime_ != null) { output.writeMessage(17, getDeleteTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 18); if (subordinateConfig_ != null) { output.writeMessage(19, getSubordinateConfig()); } @@ -13295,30 +10925,33 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } - if (tier_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, tier_); + if (tier_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, tier_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfig()); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLifetime()); } if (keySpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKeySpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getKeySpec()); } if (certificatePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCertificatePolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCertificatePolicy()); } if (issuingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIssuingOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getIssuingOptions()); } { int dataSize = 0; @@ -13328,43 +10961,46 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPemCaCertificatesList().size(); } - if (state_ - != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); } for (int i = 0; i < caCertificateDescriptions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, caCertificateDescriptions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, caCertificateDescriptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, gcsBucket_); } if (accessUrls_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getAccessUrls()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getAccessUrls()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getDeleteTime()); - } - 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(18, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getDeleteTime()); + } + 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(18, labels__); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getSubordinateConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -13374,63 +11010,76 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority other = - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; if (tier_ != other.tier_) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime().equals(other.getLifetime())) return false; + if (!getLifetime() + .equals(other.getLifetime())) return false; } if (hasKeySpec() != other.hasKeySpec()) return false; if (hasKeySpec()) { - if (!getKeySpec().equals(other.getKeySpec())) return false; + if (!getKeySpec() + .equals(other.getKeySpec())) return false; } if (hasCertificatePolicy() != other.hasCertificatePolicy()) return false; if (hasCertificatePolicy()) { - if (!getCertificatePolicy().equals(other.getCertificatePolicy())) return false; + if (!getCertificatePolicy() + .equals(other.getCertificatePolicy())) return false; } if (hasIssuingOptions() != other.hasIssuingOptions()) return false; if (hasIssuingOptions()) { - if (!getIssuingOptions().equals(other.getIssuingOptions())) return false; + if (!getIssuingOptions() + .equals(other.getIssuingOptions())) return false; } if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig() + .equals(other.getSubordinateConfig())) return false; } if (state_ != other.state_) return false; - if (!getPemCaCertificatesList().equals(other.getPemCaCertificatesList())) return false; - if (!getCaCertificateDescriptionsList().equals(other.getCaCertificateDescriptionsList())) - return false; - if (!getGcsBucket().equals(other.getGcsBucket())) return false; + if (!getPemCaCertificatesList() + .equals(other.getPemCaCertificatesList())) return false; + if (!getCaCertificateDescriptionsList() + .equals(other.getCaCertificateDescriptionsList())) return false; + if (!getGcsBucket() + .equals(other.getGcsBucket())) return false; if (hasAccessUrls() != other.hasAccessUrls()) return false; if (hasAccessUrls()) { - if (!getAccessUrls().equals(other.getAccessUrls())) return false; + if (!getAccessUrls() + .equals(other.getAccessUrls())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -13510,104 +11159,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority 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.security.privateca.v1beta1.CertificateAuthority parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] represents an individual Certificate Authority.
    * A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
@@ -13615,43 +11256,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority)
       com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 18:
           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 18:
           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.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class,
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder()
@@ -13659,17 +11300,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCaCertificateDescriptionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -13756,14 +11397,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateAuthority
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance();
     }
 
@@ -13778,8 +11418,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateAuthority buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateAuthority result =
-          new com.google.cloud.security.privateca.v1beta1.CertificateAuthority(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateAuthority result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.type_ = type_;
@@ -13822,8 +11461,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority buildPar
       result.pemCaCertificates_ = pemCaCertificates_;
       if (caCertificateDescriptionsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
-          caCertificateDescriptions_ =
-              java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+          caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
           bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.caCertificateDescriptions_ = caCertificateDescriptions_;
@@ -13861,50 +11499,46 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.CertificateAuthority other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -13964,10 +11598,9 @@ public Builder mergeFrom(
             caCertificateDescriptionsBuilder_ = null;
             caCertificateDescriptions_ = other.caCertificateDescriptions_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            caCertificateDescriptionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCaCertificateDescriptionsFieldBuilder()
-                    : null;
+            caCertificateDescriptionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCaCertificateDescriptionsFieldBuilder() : null;
           } else {
             caCertificateDescriptionsBuilder_.addAllMessages(other.caCertificateDescriptions_);
           }
@@ -13989,7 +11622,8 @@ public Builder mergeFrom(
       if (other.hasDeleteTime()) {
         mergeDeleteTime(other.getDeleteTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -14009,9 +11643,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.CertificateAuthority)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -14020,26 +11652,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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; @@ -14048,22 +11677,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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 { @@ -14071,64 +11699,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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; @@ -14136,103 +11757,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type value) { + public Builder setType(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -14240,103 +11831,73 @@ public Builder clearType() { private int tier_ = 0; /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The tier. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The tier to set. * @return This builder for chaining. */ - public Builder setTier( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier value) { + public Builder setTier(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; @@ -14344,58 +11905,39 @@ public Builder clearTier() { private com.google.cloud.security.privateca.v1beta1.CertificateConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> - configBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { @@ -14411,15 +11953,11 @@ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.Certificate return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setConfig( com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder builderForValue) { @@ -14433,24 +11971,17 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeConfig( - com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { + public Builder mergeConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -14462,15 +11993,11 @@ public Builder mergeConfig( return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -14484,66 +12011,48 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder - getConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder getConfigBuilder() { + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder - getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -14551,39 +12060,28 @@ public Builder clearConfig() { private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - lifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -14594,16 +12092,13 @@ public com.google.protobuf.Duration getLifetime() { } } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -14619,18 +12114,16 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime( + com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -14641,22 +12134,19 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -14668,16 +12158,13 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -14691,81 +12178,63 @@ public Builder clearLifetime() { return this; } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** - * - * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; */ 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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLifetime(), getParentForChildren(), isClean()); + lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getLifetime(), + getParentForChildren(), + isClean()); lifetime_ = null; } return lifetimeBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - keySpec_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec keySpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .KeyVersionSpecOrBuilder> - keySpecBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder> keySpecBuilder_; /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14773,18 +12242,13 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the keySpec field is set. */ public boolean hasKeySpec() { return keySpecBuilder_ != null || keySpec_ != null; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14792,26 +12256,17 @@ public boolean hasKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The keySpec. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - getKeySpec() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getKeySpec() { if (keySpecBuilder_ == null) { - return keySpec_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance() - : keySpec_; + return keySpec_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; } else { return keySpecBuilder_.getMessage(); } } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14819,12 +12274,9 @@ public boolean hasKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setKeySpec( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { + public Builder setKeySpec(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14838,8 +12290,6 @@ public Builder setKeySpec( return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14847,13 +12297,10 @@ public Builder setKeySpec(
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder setKeySpec( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder builderForValue) { if (keySpecBuilder_ == null) { keySpec_ = builderForValue.build(); onChanged(); @@ -14864,8 +12311,6 @@ public Builder setKeySpec( return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14873,19 +12318,13 @@ public Builder setKeySpec(
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeKeySpec( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { + public Builder mergeKeySpec(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (keySpec_ != null) { keySpec_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .newBuilder(keySpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.newBuilder(keySpec_).mergeFrom(value).buildPartial(); } else { keySpec_ = value; } @@ -14897,8 +12336,6 @@ public Builder mergeKeySpec( return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14906,9 +12343,7 @@ public Builder mergeKeySpec(
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearKeySpec() { if (keySpecBuilder_ == null) { @@ -14922,8 +12357,6 @@ public Builder clearKeySpec() { return this; } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14931,19 +12364,14 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder - getKeySpecBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder getKeySpecBuilder() { + onChanged(); return getKeySpecFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14951,24 +12379,17 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder - getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { if (keySpecBuilder_ != null) { return keySpecBuilder_.getMessageOrBuilder(); } else { - return keySpec_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .getDefaultInstance() - : keySpec_; + return keySpec_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; } } /** - * - * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -14976,98 +12397,62 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .KeyVersionSpecOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder> getKeySpecFieldBuilder() { if (keySpecBuilder_ == null) { - keySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec - .Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .KeyVersionSpecOrBuilder>(getKeySpec(), getParentForChildren(), isClean()); + keySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder>( + getKeySpec(), + getParentForChildren(), + isClean()); keySpec_ = null; } return keySpecBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - certificatePolicy_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificatePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder> - certificatePolicyBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder> certificatePolicyBuilder_; /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the certificatePolicy field is set. */ public boolean hasCertificatePolicy() { return certificatePolicyBuilder_ != null || certificatePolicy_ != null; } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The certificatePolicy. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy - getCertificatePolicy() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy() { if (certificatePolicyBuilder_ == null) { - return certificatePolicy_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.getDefaultInstance() - : certificatePolicy_; + return certificatePolicy_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance() : certificatePolicy_; } else { return certificatePolicyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCertificatePolicy( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - value) { + public Builder setCertificatePolicy(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy value) { if (certificatePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15081,21 +12466,15 @@ public Builder setCertificatePolicy( return this; } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCertificatePolicy( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - .Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder builderForValue) { if (certificatePolicyBuilder_ == null) { certificatePolicy_ = builderForValue.build(); onChanged(); @@ -15106,27 +12485,18 @@ public Builder setCertificatePolicy( return this; } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCertificatePolicy( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - value) { + public Builder mergeCertificatePolicy(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy value) { if (certificatePolicyBuilder_ == null) { if (certificatePolicy_ != null) { certificatePolicy_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.newBuilder(certificatePolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.newBuilder(certificatePolicy_).mergeFrom(value).buildPartial(); } else { certificatePolicy_ = value; } @@ -15138,16 +12508,12 @@ public Builder mergeCertificatePolicy( return this; } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCertificatePolicy() { if (certificatePolicyBuilder_ == null) { @@ -15161,147 +12527,96 @@ public Builder clearCertificatePolicy() { return this; } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.Builder - getCertificatePolicyBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder getCertificatePolicyBuilder() { + onChanged(); return getCertificatePolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder - getCertificatePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder() { if (certificatePolicyBuilder_ != null) { return certificatePolicyBuilder_.getMessageOrBuilder(); } else { - return certificatePolicy_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.getDefaultInstance() - : certificatePolicy_; + return certificatePolicy_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance() : certificatePolicy_; } } /** - * - * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder> getCertificatePolicyFieldBuilder() { if (certificatePolicyBuilder_ == null) { - certificatePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicy.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder>( - getCertificatePolicy(), getParentForChildren(), isClean()); + certificatePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder>( + getCertificatePolicy(), + getParentForChildren(), + isClean()); certificatePolicy_ = null; } return certificatePolicyBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - issuingOptions_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuingOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .IssuingOptionsOrBuilder> - issuingOptionsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder> issuingOptionsBuilder_; /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the issuingOptions field is set. */ public boolean hasIssuingOptions() { return issuingOptionsBuilder_ != null || issuingOptions_ != null; } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuingOptions. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - getIssuingOptions() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getIssuingOptions() { if (issuingOptionsBuilder_ == null) { - return issuingOptions_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .getDefaultInstance() - : issuingOptions_; + return issuingOptions_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance() : issuingOptions_; } else { return issuingOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIssuingOptions( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { + public Builder setIssuingOptions(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { if (issuingOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15315,20 +12630,15 @@ public Builder setIssuingOptions( return this; } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIssuingOptions( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder builderForValue) { if (issuingOptionsBuilder_ == null) { issuingOptions_ = builderForValue.build(); onChanged(); @@ -15339,26 +12649,18 @@ public Builder setIssuingOptions( return this; } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeIssuingOptions( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { + public Builder mergeIssuingOptions(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { if (issuingOptionsBuilder_ == null) { if (issuingOptions_ != null) { issuingOptions_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .newBuilder(issuingOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.newBuilder(issuingOptions_).mergeFrom(value).buildPartial(); } else { issuingOptions_ = value; } @@ -15370,16 +12672,12 @@ public Builder mergeIssuingOptions( return this; } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIssuingOptions() { if (issuingOptionsBuilder_ == null) { @@ -15393,73 +12691,51 @@ public Builder clearIssuingOptions() { return this; } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder - getIssuingOptionsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder getIssuingOptionsBuilder() { + onChanged(); return getIssuingOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder - getIssuingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder() { if (issuingOptionsBuilder_ != null) { return issuingOptionsBuilder_.getMessageOrBuilder(); } else { - return issuingOptions_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .getDefaultInstance() - : issuingOptions_; + return issuingOptions_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance() : issuingOptions_; } } /** - * - * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .IssuingOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder> getIssuingOptionsFieldBuilder() { if (issuingOptionsBuilder_ == null) { - issuingOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - .Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .IssuingOptionsOrBuilder>( - getIssuingOptions(), getParentForChildren(), isClean()); + issuingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder>( + getIssuingOptions(), + getParentForChildren(), + isClean()); issuingOptions_ = null; } return issuingOptionsBuilder_; @@ -15467,67 +12743,47 @@ public Builder clearIssuingOptions() { private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> - subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSubordinateConfig( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15541,17 +12797,13 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder builderForValue) { @@ -15565,27 +12817,19 @@ public Builder setSubordinateConfig( return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSubordinateConfig( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder( - subordinateConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); } else { subordinateConfig_ = value; } @@ -15597,17 +12841,13 @@ public Builder mergeSubordinateConfig( return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -15621,72 +12861,54 @@ public Builder clearSubordinateConfig() { return this; } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder - getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() - : subordinateConfig_; + return subordinateConfig_ == null ? + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; } } /** - * - * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), getParentForChildren(), isClean()); + subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), + getParentForChildren(), + isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -15694,120 +12916,86 @@ public Builder clearSubordinateConfig() { private int state_ = 0; /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State value) { + public Builder setState(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList pemCaCertificates_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pemCaCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePemCaCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCaCertificates_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15815,17 +13003,14 @@ private void ensurePemCaCertificatesIsMutable() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCaCertificatesList() { return pemCaCertificates_.getUnmodifiableView(); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15833,17 +13018,13 @@ public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15851,9 +13032,7 @@ public int getPemCaCertificatesCount() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -15861,8 +13040,6 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15870,18 +13047,15 @@ public java.lang.String getPemCaCertificates(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15889,25 +13063,22 @@ public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The pemCaCertificates to set. * @return This builder for chaining. */ - public Builder setPemCaCertificates(int index, java.lang.String value) { + public Builder setPemCaCertificates( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15915,24 +13086,21 @@ public Builder setPemCaCertificates(int index, java.lang.String value) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificates(java.lang.String value) { + public Builder addPemCaCertificates( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15940,21 +13108,19 @@ public Builder addPemCaCertificates(java.lang.String value) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCaCertificates(java.lang.Iterable values) { + public Builder addAllPemCaCertificates( + java.lang.Iterable values) { ensurePemCaCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCaCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pemCaCertificates_); onChanged(); return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15962,9 +13128,7 @@ public Builder addAllPemCaCertificates(java.lang.Iterable valu
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPemCaCertificates() { @@ -15974,8 +13138,6 @@ public Builder clearPemCaCertificates() { return this; } /** - * - * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -15983,56 +13145,43 @@ public Builder clearPemCaCertificates() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificatesBytes(com.google.protobuf.ByteString value) { + public Builder addPemCaCertificatesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } - private java.util.List - caCertificateDescriptions_ = java.util.Collections.emptyList(); - + private java.util.List caCertificateDescriptions_ = + java.util.Collections.emptyList(); private void ensureCaCertificateDescriptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - caCertificateDescriptions_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.CertificateDescription>( - caCertificateDescriptions_); + caCertificateDescriptions_ = new java.util.ArrayList(caCertificateDescriptions_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> - caCertificateDescriptionsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> caCertificateDescriptionsBuilder_; /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getCaCertificateDescriptionsList() { + public java.util.List getCaCertificateDescriptionsList() { if (caCertificateDescriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(caCertificateDescriptions_); } else { @@ -16040,16 +13189,12 @@ private void ensureCaCertificateDescriptionsIsMutable() { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getCaCertificateDescriptionsCount() { if (caCertificateDescriptionsBuilder_ == null) { @@ -16059,19 +13204,14 @@ public int getCaCertificateDescriptionsCount() { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { return caCertificateDescriptions_.get(index); } else { @@ -16079,16 +13219,12 @@ public int getCaCertificateDescriptionsCount() { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { @@ -16105,21 +13241,15 @@ public Builder setCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCaCertificateDescriptions( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.set(index, builderForValue.build()); @@ -16130,19 +13260,14 @@ public Builder setCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addCaCertificateDescriptions( - com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { + public Builder addCaCertificateDescriptions(com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { if (caCertificateDescriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16156,16 +13281,12 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { @@ -16182,20 +13303,15 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addCaCertificateDescriptions( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.add(builderForValue.build()); @@ -16206,21 +13322,15 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addCaCertificateDescriptions( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.add(index, builderForValue.build()); @@ -16231,24 +13341,19 @@ public Builder addCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllCaCertificateDescriptions( - java.lang.Iterable< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescription> - values) { + java.lang.Iterable values) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCertificateDescriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, caCertificateDescriptions_); onChanged(); } else { caCertificateDescriptionsBuilder_.addAllMessages(values); @@ -16256,16 +13361,12 @@ public Builder addAllCaCertificateDescriptions( return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCaCertificateDescriptions() { if (caCertificateDescriptionsBuilder_ == null) { @@ -16278,16 +13379,12 @@ public Builder clearCaCertificateDescriptions() { return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { @@ -16300,56 +13397,42 @@ public Builder removeCaCertificateDescriptions(int index) { return this; } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - getCaCertificateDescriptionsBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder getCaCertificateDescriptionsBuilder( + int index) { return getCaCertificateDescriptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder - getCaCertificateDescriptionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( + int index) { if (caCertificateDescriptionsBuilder_ == null) { - return caCertificateDescriptions_.get(index); - } else { + return caCertificateDescriptions_.get(index); } else { return caCertificateDescriptionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> - getCaCertificateDescriptionsOrBuilderList() { + public java.util.List + getCaCertificateDescriptionsOrBuilderList() { if (caCertificateDescriptionsBuilder_ != null) { return caCertificateDescriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -16357,73 +13440,48 @@ public Builder removeCaCertificateDescriptions(int index) { } } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - addCaCertificateDescriptionsBuilder() { - return getCaCertificateDescriptionsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder() { + return getCaCertificateDescriptionsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance()); } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder - addCaCertificateDescriptionsBuilder(int index) { - return getCaCertificateDescriptionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder( + int index) { + return getCaCertificateDescriptionsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance()); } /** - * - * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder> - getCaCertificateDescriptionsBuilderList() { + public java.util.List + getCaCertificateDescriptionsBuilderList() { return getCaCertificateDescriptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsFieldBuilder() { if (caCertificateDescriptionsBuilder_ == null) { - caCertificateDescriptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( + caCertificateDescriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( caCertificateDescriptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -16435,8 +13493,6 @@ public Builder removeCaCertificateDescriptions(int index) { private java.lang.Object gcsBucket_ = ""; /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -16447,13 +13503,13 @@ public Builder removeCaCertificateDescriptions(int index) {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The gcsBucket. */ public java.lang.String getGcsBucket() { java.lang.Object ref = gcsBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; @@ -16462,8 +13518,6 @@ public java.lang.String getGcsBucket() { } } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -16474,14 +13528,15 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for gcsBucket. */ - public com.google.protobuf.ByteString getGcsBucketBytes() { + public com.google.protobuf.ByteString + getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -16489,8 +13544,6 @@ public com.google.protobuf.ByteString getGcsBucketBytes() { } } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -16501,22 +13554,20 @@ public com.google.protobuf.ByteString getGcsBucketBytes() {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucket(java.lang.String value) { + public Builder setGcsBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsBucket_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -16527,18 +13578,15 @@ public Builder setGcsBucket(java.lang.String value) {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearGcsBucket() { - + gcsBucket_ = getDefaultInstance().getGcsBucket(); onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -16549,16 +13597,16 @@ public Builder clearGcsBucket() {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + public Builder setGcsBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; onChanged(); return this; @@ -16566,66 +13614,44 @@ public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls accessUrls_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> - accessUrlsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> accessUrlsBuilder_; /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accessUrls field is set. */ public boolean hasAccessUrls() { return accessUrlsBuilder_ != null || accessUrls_ != null; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accessUrls. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - getAccessUrls() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getAccessUrls() { if (accessUrlsBuilder_ == null) { - return accessUrls_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - .getDefaultInstance() - : accessUrls_; + return accessUrls_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; } else { return accessUrlsBuilder_.getMessage(); } } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setAccessUrls( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { + public Builder setAccessUrls(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16639,20 +13665,15 @@ public Builder setAccessUrls( return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAccessUrls( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder builderForValue) { if (accessUrlsBuilder_ == null) { accessUrls_ = builderForValue.build(); onChanged(); @@ -16663,26 +13684,18 @@ public Builder setAccessUrls( return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeAccessUrls( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { + public Builder mergeAccessUrls(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (accessUrls_ != null) { accessUrls_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - .newBuilder(accessUrls_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.newBuilder(accessUrls_).mergeFrom(value).buildPartial(); } else { accessUrls_ = value; } @@ -16694,16 +13707,12 @@ public Builder mergeAccessUrls( return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAccessUrls() { if (accessUrlsBuilder_ == null) { @@ -16717,70 +13726,51 @@ public Builder clearAccessUrls() { return this; } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder - getAccessUrlsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder getAccessUrlsBuilder() { + onChanged(); return getAccessUrlsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder - getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { if (accessUrlsBuilder_ != null) { return accessUrlsBuilder_.getMessageOrBuilder(); } else { - return accessUrls_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls - .getDefaultInstance() - : accessUrls_; + return accessUrls_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; } } /** - * - * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> getAccessUrlsFieldBuilder() { if (accessUrlsBuilder_ == null) { - accessUrlsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .AccessUrlsOrBuilder>(getAccessUrls(), getParentForChildren(), isClean()); + accessUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder>( + getAccessUrls(), + getParentForChildren(), + isClean()); accessUrls_ = null; } return accessUrlsBuilder_; @@ -16788,58 +13778,39 @@ public Builder clearAccessUrls() { 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 15 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 15 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -16855,17 +13826,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.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(); @@ -16876,21 +13844,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.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; } @@ -16902,15 +13866,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -16924,64 +13884,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> 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_; @@ -16989,58 +13933,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -17056,17 +13981,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -17077,21 +13999,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -17103,15 +14021,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -17125,64 +14039,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -17190,61 +14088,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -17260,18 +14139,15 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -17282,22 +14158,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -17309,16 +14181,12 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -17332,87 +14200,72 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - 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(); @@ -17424,30 +14277,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -17455,12 +14306,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -17468,17 +14318,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -17486,11 +14335,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -17498,66 +14348,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -17567,32 +14420,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateAuthority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateAuthority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateAuthority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -17604,8 +14455,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java index 8c0e447b..854ecf7f 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java @@ -1,157 +1,100 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateAuthorityOrBuilder - extends +public interface CertificateAuthorityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * 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 [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType(); /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The tier. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier(); /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig(); /** - * - * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -159,13 +102,10 @@ public interface CertificateAuthorityOrBuilder
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** - * - * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -173,13 +113,10 @@ public interface CertificateAuthorityOrBuilder
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** - * - * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -191,8 +128,6 @@ public interface CertificateAuthorityOrBuilder
   com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -200,16 +135,11 @@ public interface CertificateAuthorityOrBuilder
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the keySpec field is set. */ boolean hasKeySpec(); /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -217,16 +147,11 @@ public interface CertificateAuthorityOrBuilder
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The keySpec. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getKeySpec(); /** - * - * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -234,186 +159,123 @@ public interface CertificateAuthorityOrBuilder
    * is used to sign a CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder - getKeySpecOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder(); /** - * - * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the certificatePolicy field is set. */ boolean hasCertificatePolicy(); /** - * - * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The certificatePolicy. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy - getCertificatePolicy(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy(); /** - * - * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .CertificateAuthorityPolicyOrBuilder - getCertificatePolicyOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder(); /** - * - * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the issuingOptions field is set. */ boolean hasIssuingOptions(); /** - * - * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The issuingOptions. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions - getIssuingOptions(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getIssuingOptions(); /** - * - * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder - getIssuingOptionsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder(); /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig(); /** - * - * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder - getSubordinateConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState(); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -421,15 +283,12 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCaCertificates. */ - java.util.List getPemCaCertificatesList(); + java.util.List + getPemCaCertificatesList(); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -437,15 +296,11 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCaCertificates. */ int getPemCaCertificatesCount(); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -453,16 +308,12 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ java.lang.String getPemCaCertificates(int index); /** - * - * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -470,88 +321,63 @@ public interface CertificateAuthorityOrBuilder
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - com.google.protobuf.ByteString getPemCaCertificatesBytes(int index); + com.google.protobuf.ByteString + getPemCaCertificatesBytes(int index); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getCaCertificateDescriptionsList(); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions( - int index); + com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions(int index); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getCaCertificateDescriptionsCount(); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + java.util.List getCaCertificateDescriptionsOrBuilderList(); /** - * - * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder - getCaCertificateDescriptionsOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( + int index); /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -562,13 +388,10 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertific
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The gcsBucket. */ java.lang.String getGcsBucket(); /** - * - * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -579,176 +402,126 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertific
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for gcsBucket. */ - com.google.protobuf.ByteString getGcsBucketBytes(); + com.google.protobuf.ByteString + getGcsBucketBytes(); /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the accessUrls field is set. */ boolean hasAccessUrls(); /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The accessUrls. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getAccessUrls(); /** - * - * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder - getAccessUrlsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -757,31 +530,30 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertific */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -790,18 +562,18 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertific */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java similarity index 61% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java index c5a0fa6c..b53d4226 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig] describes an X.509 certificate or CSR that is to be
  * created, as an alternative to using ASN.1.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig}
  */
-public final class CertificateConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateConfig)
     CertificateConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateConfig.newBuilder() to construct.
   private CertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private CertificateConfig() {}
+  private CertificateConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,67 +53,52 @@ private CertificateConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder
-                  subBuilder = null;
-              if (subjectConfig_ != null) {
-                subBuilder = subjectConfig_.toBuilder();
-              }
-              subjectConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectConfig_);
-                subjectConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder subBuilder = null;
+            if (subjectConfig_ != null) {
+              subBuilder = subjectConfig_.toBuilder();
+            }
+            subjectConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subjectConfig_);
+              subjectConfig_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder subBuilder =
-                  null;
-              if (reusableConfig_ != null) {
-                subBuilder = reusableConfig_.toBuilder();
-              }
-              reusableConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(reusableConfig_);
-                reusableConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder subBuilder = null;
+            if (reusableConfig_ != null) {
+              subBuilder = reusableConfig_.toBuilder();
+            }
+            reusableConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(reusableConfig_);
+              reusableConfig_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
-              if (publicKey_ != null) {
-                subBuilder = publicKey_.toBuilder();
-              }
-              publicKey_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.PublicKey.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publicKey_);
-                publicKey_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
+            if (publicKey_ != null) {
+              subBuilder = publicKey_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.PublicKey.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publicKey_);
+              publicKey_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -137,144 +106,105 @@ private CertificateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.class,
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
   }
 
-  public interface SubjectConfigOrBuilder
-      extends
+  public interface SubjectConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subject field is set. */ boolean hasSubject(); /** - * - * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subject. */ com.google.cloud.security.privateca.v1beta1.Subject getSubject(); /** - * - * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder(); /** - * - * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The commonName. */ java.lang.String getCommonName(); /** - * - * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for commonName. */ - com.google.protobuf.ByteString getCommonNameBytes(); + com.google.protobuf.ByteString + getCommonNameBytes(); /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The subjectAltName. */ com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName(); /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); } /** - * - * *
    * These values are used to create the distinguished name and subject
    * alternative name fields in an X.509 certificate.
@@ -282,31 +212,31 @@ public interface SubjectConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig}
    */
-  public static final class SubjectConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SubjectConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
       SubjectConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SubjectConfig.newBuilder() to construct.
     private SubjectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SubjectConfig() {
       commonName_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SubjectConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private SubjectConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -325,55 +255,45 @@ private SubjectConfig(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null;
-                if (subject_ != null) {
-                  subBuilder = subject_.toBuilder();
-                }
-                subject_ =
-                    input.readMessage(
-                        com.google.cloud.security.privateca.v1beta1.Subject.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(subject_);
-                  subject_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null;
+              if (subject_ != null) {
+                subBuilder = subject_.toBuilder();
+              }
+              subject_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Subject.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subject_);
+                subject_ = subBuilder.buildPartial();
               }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
 
-                commonName_ = s;
-                break;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              commonName_ = s;
+              break;
+            }
+            case 26: {
+              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder = null;
+              if (subjectAltName_ != null) {
+                subBuilder = subjectAltName_.toBuilder();
               }
-            case 26:
-              {
-                com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder =
-                    null;
-                if (subjectAltName_ != null) {
-                  subBuilder = subjectAltName_.toBuilder();
-                }
-                subjectAltName_ =
-                    input.readMessage(
-                        com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(subjectAltName_);
-                  subjectAltName_ = subBuilder.buildPartial();
-                }
-
-                break;
+              subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectAltName_);
+                subjectAltName_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -381,42 +301,34 @@ private SubjectConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class,
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder.class);
     }
 
     public static final int SUBJECT_FIELD_NUMBER = 1;
     private com.google.cloud.security.privateca.v1beta1.Subject subject_;
     /**
-     *
-     *
      * 
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subject field is set. */ @java.lang.Override @@ -424,34 +336,23 @@ public boolean hasSubject() { return subject_ != null; } /** - * - * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { - return subject_ == null - ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; } /** - * - * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder() { @@ -461,14 +362,11 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr public static final int COMMON_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object commonName_; /** - * - * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The commonName. */ @java.lang.Override @@ -477,29 +375,29 @@ public java.lang.String getCommonName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; } } /** - * - * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for commonName. */ @java.lang.Override - public com.google.protobuf.ByteString getCommonNameBytes() { + public com.google.protobuf.ByteString + getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); commonName_ = b; return b; } else { @@ -510,16 +408,11 @@ public com.google.protobuf.ByteString getCommonNameBytes() { public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -527,43 +420,30 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } /** - * - * *
      * Optional. The subject alternative name fields.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { return getSubjectAltName(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -575,7 +455,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subject_ != null) { output.writeMessage(1, getSubject()); } @@ -595,13 +476,15 @@ public int getSerializedSize() { size = 0; if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubject()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commonName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commonName_); } if (subjectAltName_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubjectAltName()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubjectAltName()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -611,23 +494,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.security.privateca.v1beta1.CertificateConfig.SubjectConfig)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other = - (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) obj; + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other = (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) obj; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject().equals(other.getSubject())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; } - if (!getCommonName().equals(other.getCommonName())) return false; + if (!getCommonName() + .equals(other.getCommonName())) return false; if (hasSubjectAltName() != other.hasSubjectAltName()) return false; if (hasSubjectAltName()) { - if (!getSubjectAltName().equals(other.getSubjectAltName())) return false; + if (!getSubjectAltName() + .equals(other.getSubjectAltName())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -655,101 +539,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - 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.security.privateca.v1beta1.CertificateConfig.SubjectConfig 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.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -759,8 +630,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * These values are used to create the distinguished name and subject
      * alternative name fields in an X.509 certificate.
@@ -768,42 +637,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
         com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class,
-                com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder
-                    .class);
+                com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -825,22 +690,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
-          getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
-            .getDefaultInstance();
+      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig build() {
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result =
-            buildPartial();
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -848,10 +710,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConf
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
-          buildPartial() {
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result =
-            new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(this);
+      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig buildPartial() {
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result = new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(this);
         if (subjectBuilder_ == null) {
           result.subject_ = subject_;
         } else {
@@ -871,55 +731,46 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConf
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateConfig.SubjectConfig) {
-          return mergeFrom(
-              (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) other);
+        if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) {
+          return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other) {
-        if (other
-            == com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other) {
+        if (other == com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance()) return this;
         if (other.hasSubject()) {
           mergeSubject(other.getSubject());
         }
@@ -945,14 +796,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parsedMessage =
-            null;
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -964,58 +812,39 @@ public Builder mergeFrom(
 
       private com.google.cloud.security.privateca.v1beta1.Subject subject_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.security.privateca.v1beta1.Subject,
-              com.google.cloud.security.privateca.v1beta1.Subject.Builder,
-              com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>
-          subjectBuilder_;
+          com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> subjectBuilder_;
       /**
-       *
-       *
        * 
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subject. */ public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null - ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; } else { return subjectBuilder_.getMessage(); } } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubject(com.google.cloud.security.privateca.v1beta1.Subject value) { if (subjectBuilder_ == null) { @@ -1031,15 +860,11 @@ public Builder setSubject(com.google.cloud.security.privateca.v1beta1.Subject va return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubject( com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -1053,23 +878,17 @@ public Builder setSubject( return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject value) { if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = - com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial(); } else { subject_ = value; } @@ -1081,15 +900,11 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubject() { if (subjectBuilder_ == null) { @@ -1103,64 +918,48 @@ public Builder clearSubject() { return this; } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1beta1.Subject.Builder getSubjectBuilder() { - + onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder() { if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null - ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? + com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; } } /** - * - * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( - getSubject(), getParentForChildren(), isClean()); + subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( + getSubject(), + getParentForChildren(), + isClean()); subject_ = null; } return subjectBuilder_; @@ -1168,20 +967,18 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr private java.lang.Object commonName_ = ""; /** - * - * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The commonName. */ public java.lang.String getCommonName() { java.lang.Object ref = commonName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; @@ -1190,21 +987,20 @@ public java.lang.String getCommonName() { } } /** - * - * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for commonName. */ - public com.google.protobuf.ByteString getCommonNameBytes() { + public com.google.protobuf.ByteString + getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); commonName_ = b; return b; } else { @@ -1212,61 +1008,54 @@ public com.google.protobuf.ByteString getCommonNameBytes() { } } /** - * - * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The commonName to set. * @return This builder for chaining. */ - public Builder setCommonName(java.lang.String value) { + public Builder setCommonName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + commonName_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCommonName() { - + commonName_ = getDefaultInstance().getCommonName(); onChanged(); return this; } /** - * - * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for commonName to set. * @return This builder for chaining. */ - public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { + public Builder setCommonNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commonName_ = value; onChanged(); return this; @@ -1274,61 +1063,41 @@ public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> - subjectAltNameBuilder_; + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_; /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSubjectAltName( - com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder setSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1342,15 +1111,11 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSubjectAltName( com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder builderForValue) { @@ -1364,25 +1129,17 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSubjectAltName( - com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder( - subjectAltName_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); } else { subjectAltName_ = value; } @@ -1394,15 +1151,11 @@ public Builder mergeSubjectAltName( return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSubjectAltName() { if (subjectAltNameBuilder_ == null) { @@ -1416,71 +1169,52 @@ public Builder clearSubjectAltName() { return this; } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder - getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } } /** - * - * *
        * Optional. The subject alternative name fields.
        * 
* - * - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), getParentForChildren(), isClean()); + subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), + getParentForChildren(), + isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1493,33 +1227,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) - private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,27 +1262,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SUBJECT_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - subjectConfig_; + private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subjectConfig_; /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subjectConfig field is set. */ @java.lang.Override @@ -1559,59 +1284,40 @@ public boolean hasSubjectConfig() { return subjectConfig_ != null; } /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subjectConfig. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - getSubjectConfig() { - return subjectConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - .getDefaultInstance() - : subjectConfig_; + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getSubjectConfig() { + return subjectConfig_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; } /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder - getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { return getSubjectConfig(); } public static final int REUSABLE_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusableConfig_; /** - * - * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reusableConfig field is set. */ @java.lang.Override @@ -1619,58 +1325,41 @@ public boolean hasReusableConfig() { return reusableConfig_ != null; } /** - * - * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reusableConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getReusableConfig() { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() - : reusableConfig_; + return reusableConfig_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() : reusableConfig_; } /** - * - * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getReusableConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder() { return getReusableConfig(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publicKey field is set. */ @java.lang.Override @@ -1678,38 +1367,27 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; } /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder() { @@ -1717,7 +1395,6 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1729,7 +1406,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subjectConfig_ != null) { output.writeMessage(1, getSubjectConfig()); } @@ -1749,13 +1427,16 @@ public int getSerializedSize() { size = 0; if (subjectConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubjectConfig()); } if (reusableConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReusableConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReusableConfig()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPublicKey()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1765,25 +1446,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateConfig other = - (com.google.cloud.security.privateca.v1beta1.CertificateConfig) obj; + com.google.cloud.security.privateca.v1beta1.CertificateConfig other = (com.google.cloud.security.privateca.v1beta1.CertificateConfig) obj; if (hasSubjectConfig() != other.hasSubjectConfig()) return false; if (hasSubjectConfig()) { - if (!getSubjectConfig().equals(other.getSubjectConfig())) return false; + if (!getSubjectConfig() + .equals(other.getSubjectConfig())) return false; } if (hasReusableConfig() != other.hasReusableConfig()) return false; if (hasReusableConfig()) { - if (!getReusableConfig().equals(other.getReusableConfig())) return false; + if (!getReusableConfig() + .equals(other.getReusableConfig())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1814,104 +1497,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateConfig 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.security.privateca.v1beta1.CertificateConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig] describes an X.509 certificate or CSR that is to be
    * created, as an alternative to using ASN.1.
@@ -1919,23 +1594,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateConfig)
       com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.class,
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder()
@@ -1943,15 +1616,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1977,14 +1651,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.CertificateConfig getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance();
     }
 
@@ -1999,8 +1672,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateConfig result =
-          new com.google.cloud.security.privateca.v1beta1.CertificateConfig(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateConfig result = new com.google.cloud.security.privateca.v1beta1.CertificateConfig(this);
       if (subjectConfigBuilder_ == null) {
         result.subjectConfig_ = subjectConfig_;
       } else {
@@ -2024,39 +1696,38 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2064,9 +1735,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateConfig other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance()) return this;
       if (other.hasSubjectConfig()) {
         mergeSubjectConfig(other.getSubjectConfig());
       }
@@ -2095,9 +1764,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.CertificateConfig)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2107,69 +1774,46 @@ public Builder mergeFrom(
       return this;
     }
 
-    private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
-        subjectConfig_;
+    private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subjectConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig,
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder,
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder>
-        subjectConfigBuilder_;
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder> subjectConfigBuilder_;
     /**
-     *
-     *
      * 
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subjectConfig field is set. */ public boolean hasSubjectConfig() { return subjectConfigBuilder_ != null || subjectConfig_ != null; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subjectConfig. */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - getSubjectConfig() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getSubjectConfig() { if (subjectConfigBuilder_ == null) { - return subjectConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - .getDefaultInstance() - : subjectConfig_; + return subjectConfig_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; } else { return subjectConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSubjectConfig( - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { + public Builder setSubjectConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2183,20 +1827,15 @@ public Builder setSubjectConfig( return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubjectConfig( - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder builderForValue) { if (subjectConfigBuilder_ == null) { subjectConfig_ = builderForValue.build(); onChanged(); @@ -2207,26 +1846,18 @@ public Builder setSubjectConfig( return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSubjectConfig( - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { + public Builder mergeSubjectConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (subjectConfig_ != null) { subjectConfig_ = - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - .newBuilder(subjectConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.newBuilder(subjectConfig_).mergeFrom(value).buildPartial(); } else { subjectConfig_ = value; } @@ -2238,16 +1869,12 @@ public Builder mergeSubjectConfig( return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubjectConfig() { if (subjectConfigBuilder_ == null) { @@ -2261,70 +1888,51 @@ public Builder clearSubjectConfig() { return this; } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder - getSubjectConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder getSubjectConfigBuilder() { + onChanged(); return getSubjectConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder - getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { if (subjectConfigBuilder_ != null) { return subjectConfigBuilder_.getMessageOrBuilder(); } else { - return subjectConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig - .getDefaultInstance() - : subjectConfig_; + return subjectConfig_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; } } /** - * - * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder> getSubjectConfigFieldBuilder() { if (subjectConfigBuilder_ == null) { - subjectConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateConfig - .SubjectConfigOrBuilder>(getSubjectConfig(), getParentForChildren(), isClean()); + subjectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder>( + getSubjectConfig(), + getParentForChildren(), + isClean()); subjectConfig_ = null; } return subjectConfigBuilder_; @@ -2332,64 +1940,44 @@ public Builder clearSubjectConfig() { private com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusableConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> - reusableConfigBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> reusableConfigBuilder_; /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reusableConfig field is set. */ public boolean hasReusableConfig() { return reusableConfigBuilder_ != null || reusableConfig_ != null; } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reusableConfig. */ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getReusableConfig() { if (reusableConfigBuilder_ == null) { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() - : reusableConfig_; + return reusableConfig_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() : reusableConfig_; } else { return reusableConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder setReusableConfig(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (reusableConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2403,16 +1991,12 @@ public Builder setReusableConfig( return this; } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReusableConfig( com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { @@ -2426,26 +2010,18 @@ public Builder setReusableConfig( return this; } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeReusableConfig( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder mergeReusableConfig(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (reusableConfigBuilder_ == null) { if (reusableConfig_ != null) { reusableConfig_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder( - reusableConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder(reusableConfig_).mergeFrom(value).buildPartial(); } else { reusableConfig_ = value; } @@ -2457,16 +2033,12 @@ public Builder mergeReusableConfig( return this; } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReusableConfig() { if (reusableConfigBuilder_ == null) { @@ -2480,69 +2052,51 @@ public Builder clearReusableConfig() { return this; } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder - getReusableConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder getReusableConfigBuilder() { + onChanged(); return getReusableConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getReusableConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder() { if (reusableConfigBuilder_ != null) { return reusableConfigBuilder_.getMessageOrBuilder(); } else { - return reusableConfig_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() - : reusableConfig_; + return reusableConfig_ == null ? + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() : reusableConfig_; } } /** - * - * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getReusableConfigFieldBuilder() { if (reusableConfigBuilder_ == null) { - reusableConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( - getReusableConfig(), getParentForChildren(), isClean()); + reusableConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( + getReusableConfig(), + getParentForChildren(), + isClean()); reusableConfig_ = null; } return reusableConfigBuilder_; @@ -2550,64 +2104,45 @@ public Builder clearReusableConfig() { private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, - com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> - publicKeyBuilder_; + com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> publicKeyBuilder_; /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The publicKey. */ public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKey(com.google.cloud.security.privateca.v1beta1.PublicKey value) { if (publicKeyBuilder_ == null) { @@ -2623,17 +2158,13 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1beta1.PublicKe return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKey( com.google.cloud.security.privateca.v1beta1.PublicKey.Builder builderForValue) { @@ -2647,25 +2178,19 @@ public Builder setPublicKey( return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.PublicKey value) { if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); } else { publicKey_ = value; } @@ -2677,17 +2202,13 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.Public return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPublicKey() { if (publicKeyBuilder_ == null) { @@ -2701,77 +2222,61 @@ public Builder clearPublicKey() { return this; } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder() { if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? + com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; } } /** - * - * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, - com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, - com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( - getPublicKey(), getParentForChildren(), isClean()); + publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( + getPublicKey(), + getParentForChildren(), + isClean()); publicKey_ = null; } return publicKeyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2781,13 +2286,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateConfig) - private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateConfig(); } @@ -2796,16 +2300,16 @@ public static com.google.cloud.security.privateca.v1beta1.CertificateConfig getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2820,4 +2324,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.CertificateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java similarity index 59% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java index 45f8a057..7b8d3c4b 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java @@ -1,162 +1,102 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateConfigOrBuilder - extends +public interface CertificateConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subjectConfig field is set. */ boolean hasSubjectConfig(); /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subjectConfig. */ com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getSubjectConfig(); /** - * - * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder - getSubjectConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder(); /** - * - * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reusableConfig field is set. */ boolean hasReusableConfig(); /** - * - * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reusableConfig. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getReusableConfig(); /** - * - * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder - getReusableConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder(); /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The publicKey. */ com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey(); /** - * - * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java index 93bd1636..66bd326f 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [CertificateDescription][google.cloud.security.privateca.v1beta1.CertificateDescription] describes an X.509 certificate or CSR that has
  * been issued, as an alternative to using ASN.1 / X.509.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription}
  */
-public final class CertificateDescription extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateDescription extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription)
     CertificateDescriptionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateDescription.newBuilder() to construct.
   private CertificateDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateDescription() {
     crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -45,15 +27,16 @@ private CertificateDescription() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateDescription();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateDescription(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,146 +56,109 @@ private CertificateDescription(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
-                      .Builder
-                  subBuilder = null;
-              if (subjectDescription_ != null) {
-                subBuilder = subjectDescription_.toBuilder();
-              }
-              subjectDescription_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateDescription
-                          .SubjectDescription.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectDescription_);
-                subjectDescription_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder subBuilder = null;
+            if (subjectDescription_ != null) {
+              subBuilder = subjectDescription_.toBuilder();
+            }
+            subjectDescription_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subjectDescription_);
+              subjectDescription_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder = null;
+            if (configValues_ != null) {
+              subBuilder = configValues_.toBuilder();
+            }
+            configValues_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(configValues_);
+              configValues_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder =
-                  null;
-              if (configValues_ != null) {
-                subBuilder = configValues_.toBuilder();
-              }
-              configValues_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(configValues_);
-                configValues_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
+            if (publicKey_ != null) {
+              subBuilder = publicKey_.toBuilder();
+            }
+            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.PublicKey.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publicKey_);
+              publicKey_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
-              if (publicKey_ != null) {
-                subBuilder = publicKey_.toBuilder();
-              }
-              publicKey_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.PublicKey.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publicKey_);
-                publicKey_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder subBuilder = null;
+            if (subjectKeyId_ != null) {
+              subBuilder = subjectKeyId_.toBuilder();
+            }
+            subjectKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subjectKeyId_);
+              subjectKeyId_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
-                  subBuilder = null;
-              if (subjectKeyId_ != null) {
-                subBuilder = subjectKeyId_.toBuilder();
-              }
-              subjectKeyId_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectKeyId_);
-                subjectKeyId_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 42: {
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder subBuilder = null;
+            if (authorityKeyId_ != null) {
+              subBuilder = authorityKeyId_.toBuilder();
+            }
+            authorityKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(authorityKeyId_);
+              authorityKeyId_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
-                  subBuilder = null;
-              if (authorityKeyId_ != null) {
-                subBuilder = authorityKeyId_.toBuilder();
-              }
-              authorityKeyId_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(authorityKeyId_);
-                authorityKeyId_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              crlDistributionPoints_.add(s);
-              break;
+            crlDistributionPoints_.add(s);
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              aiaIssuingCertificateUrls_.add(s);
-              break;
+            aiaIssuingCertificateUrls_.add(s);
+            break;
+          }
+          case 66: {
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder subBuilder = null;
+            if (certFingerprint_ != null) {
+              subBuilder = certFingerprint_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription
-                      .CertificateFingerprint.Builder
-                  subBuilder = null;
-              if (certFingerprint_ != null) {
-                subBuilder = certFingerprint_.toBuilder();
-              }
-              certFingerprint_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateDescription
-                          .CertificateFingerprint.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certFingerprint_);
-                certFingerprint_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certFingerprint_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certFingerprint_);
+              certFingerprint_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -220,7 +166,8 @@ private CertificateDescription(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         crlDistributionPoints_ = crlDistributionPoints_.getUnmodifiableView();
@@ -232,54 +179,42 @@ private CertificateDescription(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.class,
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
   }
 
-  public interface SubjectDescriptionOrBuilder
-      extends
+  public interface SubjectDescriptionOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; - * * @return Whether the subject field is set. */ boolean hasSubject(); /** - * - * *
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; - * * @return The subject. */ com.google.cloud.security.privateca.v1beta1.Subject getSubject(); /** - * - * *
      * Contains distinguished name fields such as the location and organization.
      * 
@@ -289,120 +224,93 @@ public interface SubjectDescriptionOrBuilder com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder(); /** - * - * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; - * * @return The commonName. */ java.lang.String getCommonName(); /** - * - * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; - * * @return The bytes for commonName. */ - com.google.protobuf.ByteString getCommonNameBytes(); + com.google.protobuf.ByteString + getCommonNameBytes(); /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; - * * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; - * * @return The subjectAltName. */ com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName(); /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; - * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; - * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString getHexSerialNumberBytes(); + com.google.protobuf.ByteString + getHexSerialNumberBytes(); /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; - * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; - * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -413,32 +321,24 @@ public interface SubjectDescriptionOrBuilder
     com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; - * * @return Whether the notBeforeTime field is set. */ boolean hasNotBeforeTime(); /** - * - * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; - * * @return The notBeforeTime. */ com.google.protobuf.Timestamp getNotBeforeTime(); /** - * - * *
      * The time at which the certificate becomes valid.
      * 
@@ -448,32 +348,24 @@ public interface SubjectDescriptionOrBuilder com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder(); /** - * - * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; - * * @return Whether the notAfterTime field is set. */ boolean hasNotAfterTime(); /** - * - * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; - * * @return The notAfterTime. */ com.google.protobuf.Timestamp getNotAfterTime(); /** - * - * *
      * The time at which the certificate expires.
      * 
@@ -483,26 +375,22 @@ public interface SubjectDescriptionOrBuilder com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder(); } /** - * - * *
    * These values describe fields in an issued X.509 certificate such as the
    * distinguished name, subject alternative names, serial number, and lifetime.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} */ - public static final class SubjectDescription extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SubjectDescription extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) SubjectDescriptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubjectDescription.newBuilder() to construct. private SubjectDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubjectDescription() { commonName_ = ""; hexSerialNumber_ = ""; @@ -510,15 +398,16 @@ private SubjectDescription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubjectDescription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubjectDescription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -537,107 +426,90 @@ private SubjectDescription( case 0: done = true; break; - case 10: - { - com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null; - if (subject_ != null) { - subBuilder = subject_.toBuilder(); - } - subject_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.Subject.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subject_); - subject_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null; + if (subject_ != null) { + subBuilder = subject_.toBuilder(); + } + subject_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Subject.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subject_); + subject_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - commonName_ = s; - break; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + commonName_ = s; + break; + } + case 26: { + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder = null; + if (subjectAltName_ != null) { + subBuilder = subjectAltName_.toBuilder(); } - case 26: - { - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder = - null; - if (subjectAltName_ != null) { - subBuilder = subjectAltName_.toBuilder(); - } - subjectAltName_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subjectAltName_); - subjectAltName_ = subBuilder.buildPartial(); - } - - break; + subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subjectAltName_); + subjectAltName_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - hexSerialNumber_ = s; - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + hexSerialNumber_ = s; + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (lifetime_ != null) { + subBuilder = lifetime_.toBuilder(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (lifetime_ != null) { - subBuilder = lifetime_.toBuilder(); - } - lifetime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lifetime_); - lifetime_ = subBuilder.buildPartial(); - } - - break; + lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lifetime_); + lifetime_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notBeforeTime_ != null) { - subBuilder = notBeforeTime_.toBuilder(); - } - notBeforeTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notBeforeTime_); - notBeforeTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notBeforeTime_ != null) { + subBuilder = notBeforeTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notAfterTime_ != null) { - subBuilder = notAfterTime_.toBuilder(); - } - notAfterTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notAfterTime_); - notAfterTime_ = subBuilder.buildPartial(); - } - - break; + notBeforeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notBeforeTime_); + notBeforeTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notAfterTime_ != null) { + subBuilder = notAfterTime_.toBuilder(); + } + notAfterTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notAfterTime_); + notAfterTime_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -645,41 +517,34 @@ private SubjectDescription( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .class, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder.class); } public static final int SUBJECT_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.Subject subject_; /** - * - * *
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; - * * @return Whether the subject field is set. */ @java.lang.Override @@ -687,25 +552,18 @@ public boolean hasSubject() { return subject_ != null; } /** - * - * *
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; - * * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { - return subject_ == null - ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; } /** - * - * *
      * Contains distinguished name fields such as the location and organization.
      * 
@@ -720,14 +578,11 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr public static final int COMMON_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object commonName_; /** - * - * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; - * * @return The commonName. */ @java.lang.Override @@ -736,29 +591,29 @@ public java.lang.String getCommonName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; } } /** - * - * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; - * * @return The bytes for commonName. */ @java.lang.Override - public com.google.protobuf.ByteString getCommonNameBytes() { + public com.google.protobuf.ByteString + getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); commonName_ = b; return b; } else { @@ -769,14 +624,11 @@ public com.google.protobuf.ByteString getCommonNameBytes() { public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; - * * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -784,25 +636,18 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** - * - * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; - * * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } /** - * - * *
      * The subject alternative name fields.
      * 
@@ -810,22 +655,18 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAlt * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { return getSubjectAltName(); } public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 4; private volatile java.lang.Object hexSerialNumber_; /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; - * * @return The hexSerialNumber. */ @java.lang.Override @@ -834,29 +675,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** - * - * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; - * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -867,15 +708,12 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { public static final int LIFETIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration lifetime_; /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; - * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -883,15 +721,12 @@ public boolean hasLifetime() { return lifetime_ != null; } /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; - * * @return The lifetime. */ @java.lang.Override @@ -899,8 +734,6 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** - * - * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -916,14 +749,11 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
     public static final int NOT_BEFORE_TIME_FIELD_NUMBER = 6;
     private com.google.protobuf.Timestamp notBeforeTime_;
     /**
-     *
-     *
      * 
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; - * * @return Whether the notBeforeTime field is set. */ @java.lang.Override @@ -931,25 +761,18 @@ public boolean hasNotBeforeTime() { return notBeforeTime_ != null; } /** - * - * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; - * * @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_; } /** - * - * *
      * The time at which the certificate becomes valid.
      * 
@@ -964,14 +787,11 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { public static final int NOT_AFTER_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp notAfterTime_; /** - * - * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; - * * @return Whether the notAfterTime field is set. */ @java.lang.Override @@ -979,25 +799,18 @@ public boolean hasNotAfterTime() { return notAfterTime_ != null; } /** - * - * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; - * * @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_; } /** - * - * *
      * The time at which the certificate expires.
      * 
@@ -1010,7 +823,6 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1022,7 +834,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subject_ != null) { output.writeMessage(1, getSubject()); } @@ -1054,25 +867,30 @@ public int getSerializedSize() { size = 0; if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubject()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commonName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commonName_); } if (subjectAltName_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubjectAltName()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubjectAltName()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hexSerialNumber_); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLifetime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLifetime()); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1082,38 +900,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription other = - (com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) - obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) obj; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject().equals(other.getSubject())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; } - if (!getCommonName().equals(other.getCommonName())) return false; + if (!getCommonName() + .equals(other.getCommonName())) return false; if (hasSubjectAltName() != other.hasSubjectAltName()) return false; if (hasSubjectAltName()) { - if (!getSubjectAltName().equals(other.getSubjectAltName())) return false; + if (!getSubjectAltName() + .equals(other.getSubjectAltName())) return false; } - if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false; + if (!getHexSerialNumber() + .equals(other.getHexSerialNumber())) return false; if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime().equals(other.getLifetime())) return false; + if (!getLifetime() + .equals(other.getLifetime())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1155,114 +976,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - 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.security.privateca.v1beta1.CertificateDescription.SubjectDescription 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.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1272,54 +1067,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * These values describe fields in an issued X.509 certificate such as the
      * distinguished name, subject alternative names, serial number, and lifetime.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription.class, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1361,23 +1147,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - build() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription build() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1385,12 +1167,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - result = - new com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription(this); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription(this); if (subjectBuilder_ == null) { result.subject_ = subject_; } else { @@ -1426,58 +1204,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateDescription.SubjectDescription) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance()) return this; if (other.hasSubject()) { mergeSubject(other.getSubject()); } @@ -1516,15 +1282,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1536,47 +1298,34 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1beta1.Subject subject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> - subjectBuilder_; + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> subjectBuilder_; /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; - * * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; - * * @return The subject. */ public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null - ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; } else { return subjectBuilder_.getMessage(); } } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1597,8 +1346,6 @@ public Builder setSubject(com.google.cloud.security.privateca.v1beta1.Subject va return this; } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1617,8 +1364,6 @@ public Builder setSubject( return this; } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1629,9 +1374,7 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = - com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial(); } else { subject_ = value; } @@ -1643,8 +1386,6 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject return this; } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1663,8 +1404,6 @@ public Builder clearSubject() { return this; } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1672,13 +1411,11 @@ public Builder clearSubject() { * .google.cloud.security.privateca.v1beta1.Subject subject = 1; */ public com.google.cloud.security.privateca.v1beta1.Subject.Builder getSubjectBuilder() { - + onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1689,14 +1426,11 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null - ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? + com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; } } /** - * - * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1704,17 +1438,14 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr * .google.cloud.security.privateca.v1beta1.Subject subject = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, - com.google.cloud.security.privateca.v1beta1.Subject.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( - getSubject(), getParentForChildren(), isClean()); + subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( + getSubject(), + getParentForChildren(), + isClean()); subject_ = null; } return subjectBuilder_; @@ -1722,20 +1453,18 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr private java.lang.Object commonName_ = ""; /** - * - * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; - * * @return The commonName. */ public java.lang.String getCommonName() { java.lang.Object ref = commonName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; @@ -1744,21 +1473,20 @@ public java.lang.String getCommonName() { } } /** - * - * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; - * * @return The bytes for commonName. */ - public com.google.protobuf.ByteString getCommonNameBytes() { + public com.google.protobuf.ByteString + getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); commonName_ = b; return b; } else { @@ -1766,61 +1494,54 @@ public com.google.protobuf.ByteString getCommonNameBytes() { } } /** - * - * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; - * * @param value The commonName to set. * @return This builder for chaining. */ - public Builder setCommonName(java.lang.String value) { + public Builder setCommonName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + commonName_ = value; onChanged(); return this; } /** - * - * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; - * * @return This builder for chaining. */ public Builder clearCommonName() { - + commonName_ = getDefaultInstance().getCommonName(); onChanged(); return this; } /** - * - * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; - * * @param value The bytes for commonName to set. * @return This builder for chaining. */ - public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { + public Builder setCommonNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commonName_ = value; onChanged(); return this; @@ -1828,55 +1549,41 @@ public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> - subjectAltNameBuilder_; + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_; /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; - * * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; - * * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public Builder setSubjectAltName( - com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder setSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1890,8 +1597,6 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * The subject alternative name fields.
        * 
@@ -1910,23 +1615,17 @@ public Builder setSubjectAltName( return this; } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public Builder mergeSubjectAltName( - com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder( - subjectAltName_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); } else { subjectAltName_ = value; } @@ -1938,8 +1637,6 @@ public Builder mergeSubjectAltName( return this; } /** - * - * *
        * The subject alternative name fields.
        * 
@@ -1958,42 +1655,33 @@ public Builder clearSubjectAltName() { return this; } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder - getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** - * - * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder - getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null - ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() - : subjectAltName_; + return subjectAltName_ == null ? + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; } } /** - * - * *
        * The subject alternative name fields.
        * 
@@ -2001,17 +1689,14 @@ public Builder clearSubjectAltName() { * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), getParentForChildren(), isClean()); + subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), + getParentForChildren(), + isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; @@ -2019,20 +1704,18 @@ public Builder clearSubjectAltName() { private java.lang.Object hexSerialNumber_ = ""; /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; - * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -2041,21 +1724,20 @@ public java.lang.String getHexSerialNumber() { } } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; - * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -2063,61 +1745,54 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { } } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; - * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber(java.lang.String value) { + public Builder setHexSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; - * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** - * - * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; - * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -2125,35 +1800,26 @@ public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - lifetimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
        * 
* * .google.protobuf.Duration lifetime = 5; - * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
        * 
* * .google.protobuf.Duration lifetime = 5; - * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -2164,8 +1830,6 @@ public com.google.protobuf.Duration getLifetime() { } } /** - * - * *
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2187,8 +1851,6 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2196,7 +1858,8 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration lifetime = 5;
        */
-      public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setLifetime(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (lifetimeBuilder_ == null) {
           lifetime_ = builderForValue.build();
           onChanged();
@@ -2207,8 +1870,6 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue)
         return this;
       }
       /**
-       *
-       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2220,7 +1881,7 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
         if (lifetimeBuilder_ == null) {
           if (lifetime_ != null) {
             lifetime_ =
-                com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial();
           } else {
             lifetime_ = value;
           }
@@ -2232,8 +1893,6 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2253,8 +1912,6 @@ public Builder clearLifetime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2263,13 +1920,11 @@ public Builder clearLifetime() {
        * .google.protobuf.Duration lifetime = 5;
        */
       public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
-
+        
         onChanged();
         return getLifetimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2281,12 +1936,11 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
         if (lifetimeBuilder_ != null) {
           return lifetimeBuilder_.getMessageOrBuilder();
         } else {
-          return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_;
+          return lifetime_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : lifetime_;
         }
       }
       /**
-       *
-       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -2295,17 +1949,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
        * .google.protobuf.Duration lifetime = 5;
        */
       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> 
           getLifetimeFieldBuilder() {
         if (lifetimeBuilder_ == null) {
-          lifetimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getLifetime(), getParentForChildren(), isClean());
+          lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getLifetime(),
+                  getParentForChildren(),
+                  isClean());
           lifetime_ = null;
         }
         return lifetimeBuilder_;
@@ -2313,47 +1964,34 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
 
       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_;
       /**
-       *
-       *
        * 
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 6; - * * @return Whether the notBeforeTime field is set. */ public boolean hasNotBeforeTime() { return notBeforeTimeBuilder_ != null || notBeforeTime_ != null; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 6; - * * @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(); } } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2374,15 +2012,14 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 6; */ - 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(); @@ -2393,8 +2030,6 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2405,9 +2040,7 @@ 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; } @@ -2419,8 +2052,6 @@ public Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2439,8 +2070,6 @@ public Builder clearNotBeforeTime() { return this; } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2448,13 +2077,11 @@ public Builder clearNotBeforeTime() { * .google.protobuf.Timestamp not_before_time = 6; */ public com.google.protobuf.Timestamp.Builder getNotBeforeTimeBuilder() { - + onChanged(); return getNotBeforeTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2465,14 +2092,11 @@ 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_; } } /** - * - * *
        * The time at which the certificate becomes valid.
        * 
@@ -2480,17 +2104,14 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { * .google.protobuf.Timestamp not_before_time = 6; */ 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_; @@ -2498,47 +2119,34 @@ 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_; /** - * - * *
        * The time at which the certificate expires.
        * 
* * .google.protobuf.Timestamp not_after_time = 7; - * * @return Whether the notAfterTime field is set. */ public boolean hasNotAfterTime() { return notAfterTimeBuilder_ != null || notAfterTime_ != null; } /** - * - * *
        * The time at which the certificate expires.
        * 
* * .google.protobuf.Timestamp not_after_time = 7; - * * @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(); } } /** - * - * *
        * The time at which the certificate expires.
        * 
@@ -2559,15 +2167,14 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which the certificate expires.
        * 
* * .google.protobuf.Timestamp not_after_time = 7; */ - 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(); @@ -2578,8 +2185,6 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
        * The time at which the certificate expires.
        * 
@@ -2590,9 +2195,7 @@ 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; } @@ -2604,8 +2207,6 @@ public Builder mergeNotAfterTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The time at which the certificate expires.
        * 
@@ -2624,8 +2225,6 @@ public Builder clearNotAfterTime() { return this; } /** - * - * *
        * The time at which the certificate expires.
        * 
@@ -2633,13 +2232,11 @@ public Builder clearNotAfterTime() { * .google.protobuf.Timestamp not_after_time = 7; */ public com.google.protobuf.Timestamp.Builder getNotAfterTimeBuilder() { - + onChanged(); return getNotAfterTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The time at which the certificate expires.
        * 
@@ -2650,14 +2247,11 @@ 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_; } } /** - * - * *
        * The time at which the certificate expires.
        * 
@@ -2665,22 +2259,18 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { * .google.protobuf.Timestamp not_after_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> 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_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2693,36 +2283,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectDescription(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectDescription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2734,47 +2318,39 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface KeyIdOrBuilder - extends + public interface KeyIdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyId. */ java.lang.String getKeyId(); /** - * - * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyId. */ - com.google.protobuf.ByteString getKeyIdBytes(); + com.google.protobuf.ByteString + getKeyIdBytes(); } /** - * - * *
    * A KeyId identifies a specific public key, usually by hashing the public
    * key.
@@ -2782,31 +2358,31 @@ public interface KeyIdOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId}
    */
-  public static final class KeyId extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class KeyId extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)
       KeyIdOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use KeyId.newBuilder() to construct.
     private KeyId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private KeyId() {
       keyId_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new KeyId();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private KeyId(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2825,20 +2401,19 @@ private KeyId(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                keyId_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              keyId_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2846,41 +2421,35 @@ private KeyId(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class,
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder.class);
     }
 
     public static final int KEY_ID_FIELD_NUMBER = 1;
     private volatile java.lang.Object keyId_;
     /**
-     *
-     *
      * 
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyId. */ @java.lang.Override @@ -2889,30 +2458,30 @@ public java.lang.String getKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** - * - * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyId. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyIdBytes() { + public com.google.protobuf.ByteString + getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyId_ = b; return b; } else { @@ -2921,7 +2490,6 @@ public com.google.protobuf.ByteString getKeyIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2933,7 +2501,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); } @@ -2957,16 +2526,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.security.privateca.v1beta1.CertificateDescription.KeyId)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other = - (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) obj; - if (!getKeyId().equals(other.getKeyId())) return false; + if (!getKeyId() + .equals(other.getKeyId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2985,101 +2553,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - 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.security.privateca.v1beta1.CertificateDescription.KeyId 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.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3089,8 +2644,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A KeyId identifies a specific public key, usually by hashing the public
      * key.
@@ -3098,42 +2651,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)
         com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class,
-                com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
-                    .class);
+                com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3143,22 +2692,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
-          getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
-            .getDefaultInstance();
+      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId build() {
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result =
-            buildPartial();
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -3166,10 +2712,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
-          buildPartial() {
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result =
-            new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(this);
+      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId buildPartial() {
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(this);
         result.keyId_ = keyId_;
         onBuilt();
         return result;
@@ -3179,54 +2723,46 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateDescription.KeyId) {
-          return mergeFrom(
-              (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) other);
+        if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) {
+          return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other) {
-        if (other
-            == com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other) {
+        if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance()) return this;
         if (!other.getKeyId().isEmpty()) {
           keyId_ = other.keyId_;
           onChanged();
@@ -3246,14 +2782,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parsedMessage =
-            null;
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3265,21 +2798,19 @@ public Builder mergeFrom(
 
       private java.lang.Object keyId_ = "";
       /**
-       *
-       *
        * 
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; @@ -3288,22 +2819,21 @@ public java.lang.String getKeyId() { } } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for keyId. */ - public com.google.protobuf.ByteString getKeyIdBytes() { + public com.google.protobuf.ByteString + getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyId_ = b; return b; } else { @@ -3311,69 +2841,61 @@ public com.google.protobuf.ByteString getKeyIdBytes() { } } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The keyId to set. * @return This builder for chaining. */ - public Builder setKeyId(java.lang.String value) { + public Builder setKeyId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyId_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKeyId() { - + keyId_ = getDefaultInstance().getKeyId(); onChanged(); return this; } /** - * - * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for keyId to set. * @return This builder for chaining. */ - public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { + public Builder setKeyIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3386,33 +2908,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3424,77 +2943,68 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CertificateFingerprintOrBuilder - extends + public interface CertificateFingerprintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The sha256Hash. */ java.lang.String getSha256Hash(); /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The bytes for sha256Hash. */ - com.google.protobuf.ByteString getSha256HashBytes(); + com.google.protobuf.ByteString + getSha256HashBytes(); } /** - * - * *
    * A group of fingerprints for the x509 certificate.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} */ - public static final class CertificateFingerprint extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CertificateFingerprint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) CertificateFingerprintOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertificateFingerprint.newBuilder() to construct. private CertificateFingerprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CertificateFingerprint() { sha256Hash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CertificateFingerprint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CertificateFingerprint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3513,20 +3023,19 @@ private CertificateFingerprint( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sha256Hash_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sha256Hash_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3534,41 +3043,34 @@ private CertificateFingerprint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.class, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder.class); } public static final int SHA256_HASH_FIELD_NUMBER = 1; private volatile java.lang.Object sha256Hash_; /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The sha256Hash. */ @java.lang.Override @@ -3577,29 +3079,29 @@ public java.lang.String getSha256Hash() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; } } /** - * - * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; - * * @return The bytes for sha256Hash. */ @java.lang.Override - public com.google.protobuf.ByteString getSha256HashBytes() { + public com.google.protobuf.ByteString + getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -3608,7 +3110,6 @@ public com.google.protobuf.ByteString getSha256HashBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3620,7 +3121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256Hash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sha256Hash_); } @@ -3644,21 +3146,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.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - other = - (com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint) - obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) obj; - if (!getSha256Hash().equals(other.getSha256Hash())) return false; + if (!getSha256Hash() + .equals(other.getSha256Hash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3677,114 +3173,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - 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.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint 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.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3794,53 +3264,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A group of fingerprints for the x509 certificate.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.class, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3850,25 +3311,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - build() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint build() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3876,13 +3331,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - result = - new com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint(this); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint(this); result.sha256Hash_ = sha256Hash_; onBuilt(); return result; @@ -3892,59 +3342,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance()) return this; if (!other.getSha256Hash().isEmpty()) { sha256Hash_ = other.sha256Hash_; onChanged(); @@ -3964,15 +3401,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3984,20 +3417,18 @@ public Builder mergeFrom( private java.lang.Object sha256Hash_ = ""; /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @return The sha256Hash. */ public java.lang.String getSha256Hash() { java.lang.Object ref = sha256Hash_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; @@ -4006,21 +3437,20 @@ public java.lang.String getSha256Hash() { } } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @return The bytes for sha256Hash. */ - public com.google.protobuf.ByteString getSha256HashBytes() { + public com.google.protobuf.ByteString + getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -4028,66 +3458,58 @@ public com.google.protobuf.ByteString getSha256HashBytes() { } } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @param value The sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256Hash(java.lang.String value) { + public Builder setSha256Hash( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256Hash_ = value; onChanged(); return this; } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @return This builder for chaining. */ public Builder clearSha256Hash() { - + sha256Hash_ = getDefaultInstance().getSha256Hash(); onChanged(); return this; } /** - * - * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; - * * @param value The bytes for sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256HashBytes(com.google.protobuf.ByteString value) { + public Builder setSha256HashBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256Hash_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4100,36 +3522,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateFingerprint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateFingerprint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateFingerprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateFingerprint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4141,27 +3557,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - subjectDescription_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subjectDescription_; /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; * @return Whether the subjectDescription field is set. */ @java.lang.Override @@ -4169,57 +3579,39 @@ public boolean hasSubjectDescription() { return subjectDescription_ != null; } /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; * @return The subjectDescription. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - getSubjectDescription() { - return subjectDescription_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .getDefaultInstance() - : subjectDescription_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getSubjectDescription() { + return subjectDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; } /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescriptionOrBuilder - getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { return getSubjectDescription(); } public static final int CONFIG_VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues configValues_; /** - * - * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; - * * @return Whether the configValues field is set. */ @java.lang.Override @@ -4227,25 +3619,18 @@ public boolean hasConfigValues() { return configValues_ != null; } /** - * - * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; - * * @return The configValues. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfigValues() { - return configValues_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() - : configValues_; + return configValues_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : configValues_; } /** - * - * *
    * Describes some of the technical fields in a certificate.
    * 
@@ -4253,22 +3638,18 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfi * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getConfigValuesOrBuilder() { return getConfigValues(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; - * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -4276,25 +3657,18 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; - * * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; } /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -4309,16 +3683,12 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK public static final int SUBJECT_KEY_ID_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subjectKeyId_; /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; * @return Whether the subjectKeyId field is set. */ @java.lang.Override @@ -4326,57 +3696,40 @@ public boolean hasSubjectKeyId() { return subjectKeyId_ != null; } /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; * @return The subjectKeyId. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - getSubjectKeyId() { - return subjectKeyId_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - .getDefaultInstance() - : subjectKeyId_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getSubjectKeyId() { + return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; } /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder - getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { return getSubjectKeyId(); } public static final int AUTHORITY_KEY_ID_FIELD_NUMBER = 5; private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authorityKeyId_; /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; * @return Whether the authorityKeyId field is set. */ @java.lang.Override @@ -4384,50 +3737,34 @@ public boolean hasAuthorityKeyId() { return authorityKeyId_ != null; } /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; * @return The authorityKeyId. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - getAuthorityKeyId() { - return authorityKeyId_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - .getDefaultInstance() - : authorityKeyId_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getAuthorityKeyId() { + return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; } /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder - getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { return getAuthorityKeyId(); } public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList crlDistributionPoints_; /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4435,15 +3772,13 @@ public boolean hasAuthorityKeyId() {
    * 
* * repeated string crl_distribution_points = 6; - * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList + getCrlDistributionPointsList() { return crlDistributionPoints_; } /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4451,15 +3786,12 @@ public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() {
    * 
* * repeated string crl_distribution_points = 6; - * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4467,7 +3799,6 @@ public int getCrlDistributionPointsCount() {
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -4475,8 +3806,6 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -4484,56 +3813,48 @@ public java.lang.String getCrlDistributionPoints(int index) {
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString + getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_; /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList + getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_; } /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -4541,36 +3862,28 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString + getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } public static final int CERT_FINGERPRINT_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - certFingerprint_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint certFingerprint_; /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return Whether the certFingerprint field is set. */ @java.lang.Override @@ -4578,46 +3891,30 @@ public boolean hasCertFingerprint() { return certFingerprint_ != null; } /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return The certFingerprint. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - getCertFingerprint() { - return certFingerprint_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - .getDefaultInstance() - : certFingerprint_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getCertFingerprint() { + return certFingerprint_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; } /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprintOrBuilder - getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { return getCertFingerprint(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4629,7 +3926,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subjectDescription_ != null) { output.writeMessage(1, getSubjectDescription()); } @@ -4646,12 +3944,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(5, getAuthorityKeyId()); } for (int i = 0; i < crlDistributionPoints_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 6, crlDistributionPoints_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, crlDistributionPoints_.getRaw(i)); } for (int i = 0; i < aiaIssuingCertificateUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 7, aiaIssuingCertificateUrls_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, aiaIssuingCertificateUrls_.getRaw(i)); } if (certFingerprint_ != null) { output.writeMessage(8, getCertFingerprint()); @@ -4666,19 +3962,24 @@ public int getSerializedSize() { size = 0; if (subjectDescription_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectDescription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubjectDescription()); } if (configValues_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfigValues()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfigValues()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPublicKey()); } if (subjectKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubjectKeyId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSubjectKeyId()); } if (authorityKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorityKeyId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthorityKeyId()); } { int dataSize = 0; @@ -4697,7 +3998,8 @@ public int getSerializedSize() { size += 1 * getAiaIssuingCertificateUrlsList().size(); } if (certFingerprint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCertFingerprint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCertFingerprint()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4707,40 +4009,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription other = - (com.google.cloud.security.privateca.v1beta1.CertificateDescription) obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription) obj; if (hasSubjectDescription() != other.hasSubjectDescription()) return false; if (hasSubjectDescription()) { - if (!getSubjectDescription().equals(other.getSubjectDescription())) return false; + if (!getSubjectDescription() + .equals(other.getSubjectDescription())) return false; } if (hasConfigValues() != other.hasConfigValues()) return false; if (hasConfigValues()) { - if (!getConfigValues().equals(other.getConfigValues())) return false; + if (!getConfigValues() + .equals(other.getConfigValues())) 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 (hasSubjectKeyId() != other.hasSubjectKeyId()) return false; if (hasSubjectKeyId()) { - if (!getSubjectKeyId().equals(other.getSubjectKeyId())) return false; + if (!getSubjectKeyId() + .equals(other.getSubjectKeyId())) return false; } if (hasAuthorityKeyId() != other.hasAuthorityKeyId()) return false; if (hasAuthorityKeyId()) { - if (!getAuthorityKeyId().equals(other.getAuthorityKeyId())) return false; + if (!getAuthorityKeyId() + .equals(other.getAuthorityKeyId())) return false; } - if (!getCrlDistributionPointsList().equals(other.getCrlDistributionPointsList())) return false; - if (!getAiaIssuingCertificateUrlsList().equals(other.getAiaIssuingCertificateUrlsList())) - return false; + if (!getCrlDistributionPointsList() + .equals(other.getCrlDistributionPointsList())) return false; + if (!getAiaIssuingCertificateUrlsList() + .equals(other.getAiaIssuingCertificateUrlsList())) return false; if (hasCertFingerprint() != other.hasCertFingerprint()) return false; if (hasCertFingerprint()) { - if (!getCertFingerprint().equals(other.getCertFingerprint())) return false; + if (!getCertFingerprint() + .equals(other.getCertFingerprint())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4791,105 +4099,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateDescription 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.security.privateca.v1beta1.CertificateDescription parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - 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.security.privateca.v1beta1.CertificateDescription 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.security.privateca.v1beta1.CertificateDescription parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateDescription prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateDescription][google.cloud.security.privateca.v1beta1.CertificateDescription] describes an X.509 certificate or CSR that has
    * been issued, as an alternative to using ASN.1 / X.509.
@@ -4897,40 +4196,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription)
       com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.class,
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4978,16 +4275,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateDescription
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.CertificateDescription
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.CertificateDescription getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -5001,8 +4296,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription build(
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateDescription buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateDescription result =
-          new com.google.cloud.security.privateca.v1beta1.CertificateDescription(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateDescription result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription(this);
       int from_bitField0_ = bitField0_;
       if (subjectDescriptionBuilder_ == null) {
         result.subjectDescription_ = subjectDescription_;
@@ -5052,51 +4346,46 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription buildP
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.CertificateDescription) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.CertificateDescription
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance()) return this;
       if (other.hasSubjectDescription()) {
         mergeSubjectDescription(other.getSubjectDescription());
       }
@@ -5154,9 +4443,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.CertificateDescription)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -5165,75 +4452,48 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
-        subjectDescription_;
+    private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subjectDescription_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription,
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
-                .Builder,
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription
-                .SubjectDescriptionOrBuilder>
-        subjectDescriptionBuilder_;
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder> subjectDescriptionBuilder_;
     /**
-     *
-     *
      * 
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; * @return Whether the subjectDescription field is set. */ public boolean hasSubjectDescription() { return subjectDescriptionBuilder_ != null || subjectDescription_ != null; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; * @return The subjectDescription. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - getSubjectDescription() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getSubjectDescription() { if (subjectDescriptionBuilder_ == null) { - return subjectDescription_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .getDefaultInstance() - : subjectDescription_; + return subjectDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; } else { return subjectDescriptionBuilder_.getMessage(); } } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ - public Builder setSubjectDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - value) { + public Builder setSubjectDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription value) { if (subjectDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5247,21 +4507,15 @@ public Builder setSubjectDescription( return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ public Builder setSubjectDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder builderForValue) { if (subjectDescriptionBuilder_ == null) { subjectDescription_ = builderForValue.build(); onChanged(); @@ -5272,27 +4526,18 @@ public Builder setSubjectDescription( return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ - public Builder mergeSubjectDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - value) { + public Builder mergeSubjectDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription value) { if (subjectDescriptionBuilder_ == null) { if (subjectDescription_ != null) { subjectDescription_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .newBuilder(subjectDescription_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.newBuilder(subjectDescription_).mergeFrom(value).buildPartial(); } else { subjectDescription_ = value; } @@ -5304,16 +4549,12 @@ public Builder mergeSubjectDescription( return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ public Builder clearSubjectDescription() { if (subjectDescriptionBuilder_ == null) { @@ -5327,77 +4568,51 @@ public Builder clearSubjectDescription() { return this; } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .Builder - getSubjectDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder getSubjectDescriptionBuilder() { + onChanged(); return getSubjectDescriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescriptionOrBuilder - getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { if (subjectDescriptionBuilder_ != null) { return subjectDescriptionBuilder_.getMessageOrBuilder(); } else { - return subjectDescription_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .getDefaultInstance() - : subjectDescription_; + return subjectDescription_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; } } /** - * - * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - .Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescriptionOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder> getSubjectDescriptionFieldBuilder() { if (subjectDescriptionBuilder_ == null) { - subjectDescriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescription.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .SubjectDescriptionOrBuilder>( - getSubjectDescription(), getParentForChildren(), isClean()); + subjectDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder>( + getSubjectDescription(), + getParentForChildren(), + isClean()); subjectDescription_ = null; } return subjectDescriptionBuilder_; @@ -5405,55 +4620,41 @@ public Builder clearSubjectDescription() { private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues configValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> - configValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> configValuesBuilder_; /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; - * * @return Whether the configValues field is set. */ public boolean hasConfigValues() { return configValuesBuilder_ != null || configValues_ != null; } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; - * * @return The configValues. */ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfigValues() { if (configValuesBuilder_ == null) { - return configValues_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() - : configValues_; + return configValues_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : configValues_; } else { return configValuesBuilder_.getMessage(); } } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public Builder setConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder setConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (configValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5467,8 +4668,6 @@ public Builder setConfigValues( return this; } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
@@ -5487,23 +4686,17 @@ public Builder setConfigValues( return this; } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public Builder mergeConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder mergeConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (configValuesBuilder_ == null) { if (configValues_ != null) { configValues_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder( - configValues_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder(configValues_).mergeFrom(value).buildPartial(); } else { configValues_ = value; } @@ -5515,8 +4708,6 @@ public Builder mergeConfigValues( return this; } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
@@ -5535,42 +4726,33 @@ public Builder clearConfigValues() { return this; } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder - getConfigValuesBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder getConfigValuesBuilder() { + onChanged(); return getConfigValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getConfigValuesOrBuilder() { if (configValuesBuilder_ != null) { return configValuesBuilder_.getMessageOrBuilder(); } else { - return configValues_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() - : configValues_; + return configValues_ == null ? + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : configValues_; } } /** - * - * *
      * Describes some of the technical fields in a certificate.
      * 
@@ -5578,17 +4760,14 @@ public Builder clearConfigValues() { * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> getConfigValuesFieldBuilder() { if (configValuesBuilder_ == null) { - configValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( - getConfigValues(), getParentForChildren(), isClean()); + configValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( + getConfigValues(), + getParentForChildren(), + isClean()); configValues_ = null; } return configValuesBuilder_; @@ -5596,47 +4775,34 @@ public Builder clearConfigValues() { private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, - com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> - publicKeyBuilder_; + com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> publicKeyBuilder_; /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; - * * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; - * * @return The publicKey. */ public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5657,8 +4823,6 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1beta1.PublicKe return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5677,8 +4841,6 @@ public Builder setPublicKey( return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5689,9 +4851,7 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.Public if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); } else { publicKey_ = value; } @@ -5703,8 +4863,6 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.Public return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5723,8 +4881,6 @@ public Builder clearPublicKey() { return this; } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5732,13 +4888,11 @@ public Builder clearPublicKey() { * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; */ public com.google.cloud.security.privateca.v1beta1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5749,14 +4903,11 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() - : publicKey_; + return publicKey_ == null ? + com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; } } /** - * - * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -5764,17 +4915,14 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, - com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, - com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( - getPublicKey(), getParentForChildren(), isClean()); + publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( + getPublicKey(), + getParentForChildren(), + isClean()); publicKey_ = null; } return publicKeyBuilder_; @@ -5782,66 +4930,44 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subjectKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> - subjectKeyIdBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> subjectKeyIdBuilder_; /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; * @return Whether the subjectKeyId field is set. */ public boolean hasSubjectKeyId() { return subjectKeyIdBuilder_ != null || subjectKeyId_ != null; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; * @return The subjectKeyId. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - getSubjectKeyId() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { - return subjectKeyId_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - .getDefaultInstance() - : subjectKeyId_; + return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; } else { return subjectKeyIdBuilder_.getMessage(); } } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ - public Builder setSubjectKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder setSubjectKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5855,20 +4981,15 @@ public Builder setSubjectKeyId( return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ public Builder setSubjectKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder builderForValue) { if (subjectKeyIdBuilder_ == null) { subjectKeyId_ = builderForValue.build(); onChanged(); @@ -5879,26 +5000,18 @@ public Builder setSubjectKeyId( return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ - public Builder mergeSubjectKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder mergeSubjectKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (subjectKeyId_ != null) { subjectKeyId_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder( - subjectKeyId_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder(subjectKeyId_).mergeFrom(value).buildPartial(); } else { subjectKeyId_ = value; } @@ -5910,16 +5023,12 @@ public Builder mergeSubjectKeyId( return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ public Builder clearSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { @@ -5933,138 +5042,96 @@ public Builder clearSubjectKeyId() { return this; } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder - getSubjectKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder getSubjectKeyIdBuilder() { + onChanged(); return getSubjectKeyIdFieldBuilder().getBuilder(); } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder - getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { if (subjectKeyIdBuilder_ != null) { return subjectKeyIdBuilder_.getMessageOrBuilder(); } else { - return subjectKeyId_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - .getDefaultInstance() - : subjectKeyId_; + return subjectKeyId_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; } } /** - * - * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> getSubjectKeyIdFieldBuilder() { if (subjectKeyIdBuilder_ == null) { - subjectKeyIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( - getSubjectKeyId(), getParentForChildren(), isClean()); + subjectKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( + getSubjectKeyId(), + getParentForChildren(), + isClean()); subjectKeyId_ = null; } return subjectKeyIdBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - authorityKeyId_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authorityKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> - authorityKeyIdBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> authorityKeyIdBuilder_; /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; * @return Whether the authorityKeyId field is set. */ public boolean hasAuthorityKeyId() { return authorityKeyIdBuilder_ != null || authorityKeyId_ != null; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; * @return The authorityKeyId. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - getAuthorityKeyId() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { - return authorityKeyId_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - .getDefaultInstance() - : authorityKeyId_; + return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; } else { return authorityKeyIdBuilder_.getMessage(); } } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ - public Builder setAuthorityKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder setAuthorityKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6078,20 +5145,15 @@ public Builder setAuthorityKeyId( return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ public Builder setAuthorityKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder builderForValue) { if (authorityKeyIdBuilder_ == null) { authorityKeyId_ = builderForValue.build(); onChanged(); @@ -6102,26 +5164,18 @@ public Builder setAuthorityKeyId( return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ - public Builder mergeAuthorityKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder mergeAuthorityKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (authorityKeyId_ != null) { authorityKeyId_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder( - authorityKeyId_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder(authorityKeyId_).mergeFrom(value).buildPartial(); } else { authorityKeyId_ = value; } @@ -6133,16 +5187,12 @@ public Builder mergeAuthorityKeyId( return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ public Builder clearAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { @@ -6156,88 +5206,64 @@ public Builder clearAuthorityKeyId() { return this; } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder - getAuthorityKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder getAuthorityKeyIdBuilder() { + onChanged(); return getAuthorityKeyIdFieldBuilder().getBuilder(); } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder - getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { if (authorityKeyIdBuilder_ != null) { return authorityKeyIdBuilder_.getMessageOrBuilder(); } else { - return authorityKeyId_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId - .getDefaultInstance() - : authorityKeyId_; + return authorityKeyId_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; } } /** - * - * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> getAuthorityKeyIdFieldBuilder() { if (authorityKeyIdBuilder_ == null) { - authorityKeyIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( - getAuthorityKeyId(), getParentForChildren(), isClean()); + authorityKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( + getAuthorityKeyId(), + getParentForChildren(), + isClean()); authorityKeyId_ = null; } return authorityKeyIdBuilder_; } - private com.google.protobuf.LazyStringList crlDistributionPoints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCrlDistributionPointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crlDistributionPoints_ = - new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); + crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6245,15 +5271,13 @@ private void ensureCrlDistributionPointsIsMutable() {
      * 
* * repeated string crl_distribution_points = 6; - * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList + getCrlDistributionPointsList() { return crlDistributionPoints_.getUnmodifiableView(); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6261,15 +5285,12 @@ public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() {
      * 
* * repeated string crl_distribution_points = 6; - * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6277,7 +5298,6 @@ public int getCrlDistributionPointsCount() {
      * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -6285,8 +5305,6 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6294,16 +5312,14 @@ public java.lang.String getCrlDistributionPoints(int index) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString + getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6311,23 +5327,21 @@ public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param index The index to set the value at. * @param value The crlDistributionPoints to set. * @return This builder for chaining. */ - public Builder setCrlDistributionPoints(int index, java.lang.String value) { + public Builder setCrlDistributionPoints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.set(index, value); onChanged(); return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6335,22 +5349,20 @@ public Builder setCrlDistributionPoints(int index, java.lang.String value) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param value The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPoints(java.lang.String value) { + public Builder addCrlDistributionPoints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6358,19 +5370,18 @@ public Builder addCrlDistributionPoints(java.lang.String value) {
      * 
* * repeated string crl_distribution_points = 6; - * * @param values The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addAllCrlDistributionPoints(java.lang.Iterable values) { + public Builder addAllCrlDistributionPoints( + java.lang.Iterable values) { ensureCrlDistributionPointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlDistributionPoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crlDistributionPoints_); onChanged(); return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6378,7 +5389,6 @@ public Builder addAllCrlDistributionPoints(java.lang.Iterable
      * 
* * repeated string crl_distribution_points = 6; - * * @return This builder for chaining. */ public Builder clearCrlDistributionPoints() { @@ -6388,8 +5398,6 @@ public Builder clearCrlDistributionPoints() { return this; } /** - * - * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -6397,71 +5405,60 @@ public Builder clearCrlDistributionPoints() {
      * 
* * repeated string crl_distribution_points = 6; - * * @param value The bytes of the crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPointsBytes(com.google.protobuf.ByteString value) { + public Builder addCrlDistributionPointsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAiaIssuingCertificateUrlsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aiaIssuingCertificateUrls_ = - new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); + aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList + getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_.getUnmodifiableView(); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -6469,95 +5466,85 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString + getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index to set the value at. * @param value The aiaIssuingCertificateUrls to set. * @return This builder for chaining. */ - public Builder setAiaIssuingCertificateUrls(int index, java.lang.String value) { + public Builder setAiaIssuingCertificateUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param value The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrls(java.lang.String value) { + public Builder addAiaIssuingCertificateUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param values The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAllAiaIssuingCertificateUrls(java.lang.Iterable values) { + public Builder addAllAiaIssuingCertificateUrls( + java.lang.Iterable values) { ensureAiaIssuingCertificateUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaIssuingCertificateUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aiaIssuingCertificateUrls_); onChanged(); return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return This builder for chaining. */ public Builder clearAiaIssuingCertificateUrls() { @@ -6567,94 +5554,64 @@ public Builder clearAiaIssuingCertificateUrls() { return this; } /** - * - * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param value The bytes of the aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addAiaIssuingCertificateUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint - certFingerprint_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint certFingerprint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprintOrBuilder> - certFingerprintBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder> certFingerprintBuilder_; /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return Whether the certFingerprint field is set. */ public boolean hasCertFingerprint() { return certFingerprintBuilder_ != null || certFingerprint_ != null; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return The certFingerprint. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - getCertFingerprint() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getCertFingerprint() { if (certFingerprintBuilder_ == null) { - return certFingerprint_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.getDefaultInstance() - : certFingerprint_; + return certFingerprint_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; } else { return certFingerprintBuilder_.getMessage(); } } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public Builder setCertFingerprint( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - value) { + public Builder setCertFingerprint(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint value) { if (certFingerprintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6668,20 +5625,14 @@ public Builder setCertFingerprint( return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ public Builder setCertFingerprint( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - .Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder builderForValue) { if (certFingerprintBuilder_ == null) { certFingerprint_ = builderForValue.build(); onChanged(); @@ -6692,26 +5643,17 @@ public Builder setCertFingerprint( return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public Builder mergeCertFingerprint( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - value) { + public Builder mergeCertFingerprint(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint value) { if (certFingerprintBuilder_ == null) { if (certFingerprint_ != null) { certFingerprint_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.newBuilder(certFingerprint_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.newBuilder(certFingerprint_).mergeFrom(value).buildPartial(); } else { certFingerprint_ = value; } @@ -6723,15 +5665,11 @@ public Builder mergeCertFingerprint( return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ public Builder clearCertFingerprint() { if (certFingerprintBuilder_ == null) { @@ -6745,82 +5683,55 @@ public Builder clearCertFingerprint() { return this; } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - .Builder - getCertFingerprintBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder getCertFingerprintBuilder() { + onChanged(); return getCertFingerprintFieldBuilder().getBuilder(); } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprintOrBuilder - getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { if (certFingerprintBuilder_ != null) { return certFingerprintBuilder_.getMessageOrBuilder(); } else { - return certFingerprint_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.getDefaultInstance() - : certFingerprint_; + return certFingerprint_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; } } /** - * - * *
      * The hash of the x.509 certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprintOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder> getCertFingerprintFieldBuilder() { if (certFingerprintBuilder_ == null) { - certFingerprintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprint.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateDescription - .CertificateFingerprintOrBuilder>( - getCertFingerprint(), getParentForChildren(), isClean()); + certFingerprintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder>( + getCertFingerprint(), + getParentForChildren(), + isClean()); certFingerprint_ = null; } return certFingerprintBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6830,32 +5741,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateDescription(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateDescription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6867,8 +5776,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java index 005c90e7..473a779b 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java @@ -1,137 +1,88 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateDescriptionOrBuilder - extends +public interface CertificateDescriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; * @return Whether the subjectDescription field is set. */ boolean hasSubjectDescription(); /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; * @return The subjectDescription. */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription - getSubjectDescription(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getSubjectDescription(); /** - * - * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder - getSubjectDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder(); /** - * - * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; - * * @return Whether the configValues field is set. */ boolean hasConfigValues(); /** - * - * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; - * * @return The configValues. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfigValues(); /** - * - * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getConfigValuesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getConfigValuesOrBuilder(); /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; - * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; - * * @return The publicKey. */ com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey(); /** - * - * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -141,95 +92,66 @@ public interface CertificateDescriptionOrBuilder com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder(); /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; * @return Whether the subjectKeyId field is set. */ boolean hasSubjectKeyId(); /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; * @return The subjectKeyId. */ com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getSubjectKeyId(); /** - * - * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder - getSubjectKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder(); /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; * @return Whether the authorityKeyId field is set. */ boolean hasAuthorityKeyId(); /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; * @return The authorityKeyId. */ com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getAuthorityKeyId(); /** - * - * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder - getAuthorityKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder(); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -237,13 +159,11 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @return A list containing the crlDistributionPoints. */ - java.util.List getCrlDistributionPointsList(); + java.util.List + getCrlDistributionPointsList(); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -251,13 +171,10 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @return The count of crlDistributionPoints. */ int getCrlDistributionPointsCount(); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -265,14 +182,11 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ java.lang.String getCrlDistributionPoints(int index); /** - * - * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -280,107 +194,81 @@ public interface CertificateDescriptionOrBuilder
    * 
* * repeated string crl_distribution_points = 6; - * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index); + com.google.protobuf.ByteString + getCrlDistributionPointsBytes(int index); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return A list containing the aiaIssuingCertificateUrls. */ - java.util.List getAiaIssuingCertificateUrlsList(); + java.util.List + getAiaIssuingCertificateUrlsList(); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @return The count of aiaIssuingCertificateUrls. */ int getAiaIssuingCertificateUrlsCount(); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ java.lang.String getAiaIssuingCertificateUrls(int index); /** - * - * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; - * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index); + com.google.protobuf.ByteString + getAiaIssuingCertificateUrlsBytes(int index); /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return Whether the certFingerprint field is set. */ boolean hasCertFingerprint(); /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; * @return The certFingerprint. */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint - getCertFingerprint(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getCertFingerprint(); /** - * - * *
    * The hash of the x.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder - getCertFingerprintOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java index 6aba1cb1..41c6a706 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java @@ -1,139 +1,94 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateOrBuilder - extends +public interface CertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.Certificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return Whether the pemCsr field is set. */ boolean hasPemCsr(); /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The pemCsr. */ java.lang.String getPemCsr(); /** - * - * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString getPemCsrBytes(); + com.google.protobuf.ByteString + getPemCsrBytes(); /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The config. */ com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig(); /** - * - * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -141,16 +96,11 @@ public interface CertificateOrBuilder
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -158,16 +108,11 @@ public interface CertificateOrBuilder
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** - * - * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -175,262 +120,187 @@ public interface CertificateOrBuilder
    * past the life of any certificate authority in the issuing chain.
    * 
* - * - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revocationDetails field is set. */ boolean hasRevocationDetails(); /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revocationDetails. */ com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getRevocationDetails(); /** - * - * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder - getRevocationDetailsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder(); /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ java.lang.String getPemCertificate(); /** - * - * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCertificate. */ - com.google.protobuf.ByteString getPemCertificateBytes(); + com.google.protobuf.ByteString + getPemCertificateBytes(); /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the certificateDescription field is set. */ boolean hasCertificateDescription(); /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The certificateDescription. */ com.google.cloud.security.privateca.v1beta1.CertificateDescription getCertificateDescription(); /** - * - * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder - getCertificateDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder(); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the pemCertificateChain. */ - java.util.List getPemCertificateChainList(); + java.util.List + getPemCertificateChainList(); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of pemCertificateChain. */ int getPemCertificateChainCount(); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ java.lang.String getPemCertificateChain(int index); /** - * - * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - com.google.protobuf.ByteString getPemCertificateChainBytes(int index); + com.google.protobuf.ByteString + getPemCertificateChainBytes(int index); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -439,31 +309,30 @@ public interface CertificateOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -472,21 +341,20 @@ public interface CertificateOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); - public com.google.cloud.security.privateca.v1beta1.Certificate.CertificateConfigCase - getCertificateConfigCase(); + java.lang.String getLabelsOrThrow( + java.lang.String key); + + public com.google.cloud.security.privateca.v1beta1.Certificate.CertificateConfigCase getCertificateConfigCase(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java index 58a1a546..a9e86583 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] corresponds to a signed X.509 certificate
  * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList}
  */
-public final class CertificateRevocationList extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CertificateRevocationList extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList)
     CertificateRevocationListOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CertificateRevocationList.newBuilder() to construct.
   private CertificateRevocationList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CertificateRevocationList() {
     name_ = "";
     revokedCertificates_ = java.util.Collections.emptyList();
@@ -49,15 +31,16 @@ private CertificateRevocationList() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CertificateRevocationList();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CertificateRevocationList(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,105 +60,90 @@ private CertificateRevocationList(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              sequenceNumber_ = input.readInt64();
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                revokedCertificates_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
-                            .RevokedCertificate>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              revokedCertificates_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
-                          .RevokedCertificate.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 16: {
 
-              pemCrl_ = s;
-              break;
+            sequenceNumber_ = input.readInt64();
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              revokedCertificates_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            revokedCertificates_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              accessUrl_ = s;
-              break;
-            }
-          case 48:
-            {
-              int rawValue = input.readEnum();
+            pemCrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              state_ = rawValue;
-              break;
-            }
-          case 58:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
+            accessUrl_ = s;
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
 
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 58: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
+            }
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 66: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -183,7 +151,8 @@ private CertificateRevocationList(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         revokedCertificates_ = java.util.Collections.unmodifiableList(revokedCertificates_);
@@ -192,46 +161,41 @@ private CertificateRevocationList(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 9:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class,
-            com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The state of a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], indicating if it is current.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -240,8 +204,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is up to date.
      * 
@@ -250,8 +212,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is no longer current.
      * 
@@ -263,8 +223,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -273,8 +231,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is up to date.
      * 
@@ -283,8 +239,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is no longer current.
      * 
@@ -293,6 +247,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUPERSEDED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -317,51 +272,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return SUPERSEDED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return SUPERSEDED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -378,108 +331,87 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList.State) } - public interface RevokedCertificateOrBuilder - extends + public interface RevokedCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; - * * @return The certificate. */ java.lang.String getCertificate(); /** - * - * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; - * * @return The bytes for certificate. */ - com.google.protobuf.ByteString getCertificateBytes(); + com.google.protobuf.ByteString + getCertificateBytes(); /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString getHexSerialNumberBytes(); + com.google.protobuf.ByteString + getHexSerialNumberBytes(); /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * * @return The enum numeric value on the wire for revocationReason. */ int getRevocationReasonValue(); /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * * @return The revocationReason. */ com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason(); } /** - * - * *
    * Describes a revoked [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} */ - public static final class RevokedCertificate extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RevokedCertificate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) RevokedCertificateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevokedCertificate.newBuilder() to construct. private RevokedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RevokedCertificate() { certificate_ = ""; hexSerialNumber_ = ""; @@ -488,15 +420,16 @@ private RevokedCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RevokedCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RevokedCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -515,34 +448,31 @@ private RevokedCertificate( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - certificate_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + certificate_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - hexSerialNumber_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + hexSerialNumber_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - revocationReason_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + revocationReason_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,42 +480,35 @@ private RevokedCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.class, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private volatile java.lang.Object certificate_; /** - * - * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; - * * @return The certificate. */ @java.lang.Override @@ -594,30 +517,30 @@ public java.lang.String getCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; } } /** - * - * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; - * * @return The bytes for certificate. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateBytes() { + public com.google.protobuf.ByteString + getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificate_ = b; return b; } else { @@ -628,14 +551,11 @@ public com.google.protobuf.ByteString getCertificateBytes() { public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 2; private volatile java.lang.Object hexSerialNumber_; /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The hexSerialNumber. */ @java.lang.Override @@ -644,29 +564,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** - * - * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; - * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -677,43 +597,31 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { public static final int REVOCATION_REASON_FIELD_NUMBER = 3; private int revocationReason_; /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override - public int getRevocationReasonValue() { + @java.lang.Override public int getRevocationReasonValue() { return revocationReason_; } /** - * - * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * * @return The revocationReason. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = - com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); + return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -725,17 +633,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(certificate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hexSerialNumber_); } - if (revocationReason_ - != com.google.cloud.security.privateca.v1beta1.RevocationReason - .REVOCATION_REASON_UNSPECIFIED - .getNumber()) { + if (revocationReason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(3, revocationReason_); } unknownFields.writeTo(output); @@ -753,11 +659,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hexSerialNumber_); } - if (revocationReason_ - != com.google.cloud.security.privateca.v1beta1.RevocationReason - .REVOCATION_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, revocationReason_); + if (revocationReason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, revocationReason_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -767,22 +671,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.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - other = - (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate) - obj; - - if (!getCertificate().equals(other.getCertificate())) return false; - if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate other = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) obj; + + if (!getCertificate() + .equals(other.getCertificate())) return false; + if (!getHexSerialNumber() + .equals(other.getHexSerialNumber())) return false; if (revocationReason_ != other.revocationReason_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -806,114 +705,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - 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.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate 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.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -923,53 +796,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a revoked [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.class, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -983,25 +847,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - build() { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate build() { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1009,13 +867,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - result = - new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate(this); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate result = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate(this); result.certificate_ = certificate_; result.hexSerialNumber_ = hexSerialNumber_; result.revocationReason_ = revocationReason_; @@ -1027,59 +880,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate other) { + if (other == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()) return this; if (!other.getCertificate().isEmpty()) { certificate_ = other.certificate_; onChanged(); @@ -1106,15 +946,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1126,21 +962,19 @@ public Builder mergeFrom( private java.lang.Object certificate_ = ""; /** - * - * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; - * * @return The certificate. */ public java.lang.String getCertificate() { java.lang.Object ref = certificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; @@ -1149,22 +983,21 @@ public java.lang.String getCertificate() { } } /** - * - * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; - * * @return The bytes for certificate. */ - public com.google.protobuf.ByteString getCertificateBytes() { + public com.google.protobuf.ByteString + getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificate_ = b; return b; } else { @@ -1172,64 +1005,57 @@ public com.google.protobuf.ByteString getCertificateBytes() { } } /** - * - * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; - * * @param value The certificate to set. * @return This builder for chaining. */ - public Builder setCertificate(java.lang.String value) { + public Builder setCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificate_ = value; onChanged(); return this; } /** - * - * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; - * * @return This builder for chaining. */ public Builder clearCertificate() { - + certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } /** - * - * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; - * * @param value The bytes for certificate to set. * @return This builder for chaining. */ - public Builder setCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificate_ = value; onChanged(); return this; @@ -1237,20 +1063,18 @@ public Builder setCertificateBytes(com.google.protobuf.ByteString value) { private java.lang.Object hexSerialNumber_ = ""; /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1259,21 +1083,20 @@ public java.lang.String getHexSerialNumber() { } } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString getHexSerialNumberBytes() { + public com.google.protobuf.ByteString + getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1281,61 +1104,54 @@ public com.google.protobuf.ByteString getHexSerialNumberBytes() { } } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber(java.lang.String value) { + public Builder setHexSerialNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** - * - * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; - * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1343,103 +1159,77 @@ public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { private int revocationReason_ = 0; /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override - public int getRevocationReasonValue() { + @java.lang.Override public int getRevocationReasonValue() { return revocationReason_; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; * @param value The enum numeric value on the wire for revocationReason to set. * @return This builder for chaining. */ public Builder setRevocationReasonValue(int value) { - + revocationReason_ = value; onChanged(); return this; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; * @return The revocationReason. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = - com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); + return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; * @param value The revocationReason to set. * @return This builder for chaining. */ - public Builder setRevocationReason( - com.google.cloud.security.privateca.v1beta1.RevocationReason value) { + public Builder setRevocationReason(com.google.cloud.security.privateca.v1beta1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationReason_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; * @return This builder for chaining. */ public Builder clearRevocationReason() { - + revocationReason_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1452,36 +1242,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) - private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokedCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokedCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokedCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokedCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1493,17 +1277,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -1512,7 +1294,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1521,15 +1302,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 path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -1538,15 +1318,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 { @@ -1557,14 +1338,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long sequenceNumber_; /** - * - * *
    * Output only. The CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sequenceNumber. */ @java.lang.Override @@ -1573,105 +1351,73 @@ public long getSequenceNumber() { } public static final int REVOKED_CERTIFICATES_FIELD_NUMBER = 3; - private java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate> - revokedCertificates_; + private java.util.List revokedCertificates_; /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate> - getRevokedCertificatesList() { + public java.util.List getRevokedCertificatesList() { return revokedCertificates_; } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder> + public java.util.List getRevokedCertificatesOrBuilderList() { return revokedCertificates_; } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getRevokedCertificatesCount() { return revokedCertificates_.size(); } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { return revokedCertificates_.get(index); } /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder - getRevokedCertificatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( + int index) { return revokedCertificates_.get(index); } public static final int PEM_CRL_FIELD_NUMBER = 4; private volatile java.lang.Object pemCrl_; /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCrl. */ @java.lang.Override @@ -1680,29 +1426,29 @@ public java.lang.String getPemCrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; } } /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCrl. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCrlBytes() { + public com.google.protobuf.ByteString + getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -1713,14 +1459,11 @@ public com.google.protobuf.ByteString getPemCrlBytes() { public static final int ACCESS_URL_FIELD_NUMBER = 5; private volatile java.lang.Object accessUrl_; /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accessUrl. */ @java.lang.Override @@ -1729,29 +1472,29 @@ public java.lang.String getAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; } } /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessUrlBytes() { + public com.google.protobuf.ByteString + getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -1762,57 +1505,38 @@ public com.google.protobuf.ByteString getAccessUrlBytes() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf(state_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1820,15 +1544,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1836,14 +1556,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1853,15 +1570,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1869,15 +1582,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1885,14 +1594,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1900,23 +1606,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_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.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_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_; } @@ -1925,30 +1632,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1956,12 +1661,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1969,16 +1673,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1986,11 +1690,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1998,7 +1703,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2010,7 +1714,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -2026,10 +1731,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, accessUrl_); } - if (state_ - != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State - .STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (createTime_ != null) { @@ -2038,8 +1740,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(8, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); unknownFields.writeTo(output); } @@ -2053,11 +1759,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sequenceNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, sequenceNumber_); } for (int i = 0; i < revokedCertificates_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, revokedCertificates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, revokedCertificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pemCrl_); @@ -2065,27 +1772,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, accessUrl_); } - if (state_ - != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State - .STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2095,29 +1802,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateRevocationList)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other = - (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) obj; - - if (!getName().equals(other.getName())) return false; - if (getSequenceNumber() != other.getSequenceNumber()) return false; - if (!getRevokedCertificatesList().equals(other.getRevokedCertificatesList())) return false; - if (!getPemCrl().equals(other.getPemCrl())) return false; - if (!getAccessUrl().equals(other.getAccessUrl())) return false; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getSequenceNumber() + != other.getSequenceNumber()) return false; + if (!getRevokedCertificatesList() + .equals(other.getRevokedCertificatesList())) return false; + if (!getPemCrl() + .equals(other.getPemCrl())) return false; + if (!getAccessUrl() + .equals(other.getAccessUrl())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2132,7 +1846,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSequenceNumber()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSequenceNumber()); if (getRevokedCertificatesCount() > 0) { hash = (37 * hash) + REVOKED_CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getRevokedCertificatesList().hashCode(); @@ -2161,105 +1876,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList 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.security.privateca.v1beta1.CertificateRevocationList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - 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.security.privateca.v1beta1.CertificateRevocationList 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.security.privateca.v1beta1.CertificateRevocationList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] corresponds to a signed X.509 certificate
    * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -2268,62 +1974,61 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList)
       com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class,
-              com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getRevokedCertificatesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2360,16 +2065,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -2383,8 +2086,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList bui
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateRevocationList result =
-          new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateRevocationList result = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.sequenceNumber_ = sequenceNumber_;
@@ -2420,51 +2122,46 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList bui
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateRevocationList)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2490,10 +2187,9 @@ public Builder mergeFrom(
             revokedCertificatesBuilder_ = null;
             revokedCertificates_ = other.revokedCertificates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            revokedCertificatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRevokedCertificatesFieldBuilder()
-                    : null;
+            revokedCertificatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRevokedCertificatesFieldBuilder() : null;
           } else {
             revokedCertificatesBuilder_.addAllMessages(other.revokedCertificates_);
           }
@@ -2516,7 +2212,8 @@ public Builder mergeFrom(
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -2536,9 +2233,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2547,13 +2242,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2562,13 +2254,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; @@ -2577,8 +2269,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2587,14 +2277,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 { @@ -2602,8 +2293,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2612,22 +2301,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 path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2636,18 +2323,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 path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2656,31 +2340,28 @@ 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; } - private long sequenceNumber_; + private long sequenceNumber_ ; /** - * - * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sequenceNumber. */ @java.lang.Override @@ -2688,80 +2369,55 @@ public long getSequenceNumber() { return sequenceNumber_; } /** - * - * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { - + sequenceNumber_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSequenceNumber() { - + sequenceNumber_ = 0L; onChanged(); return this; } - private java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate> - revokedCertificates_ = java.util.Collections.emptyList(); - + private java.util.List revokedCertificates_ = + java.util.Collections.emptyList(); private void ensureRevokedCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - revokedCertificates_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate>(revokedCertificates_); + revokedCertificates_ = new java.util.ArrayList(revokedCertificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder> - revokedCertificatesBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder> revokedCertificatesBuilder_; /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate> - getRevokedCertificatesList() { + public java.util.List getRevokedCertificatesList() { if (revokedCertificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(revokedCertificates_); } else { @@ -2769,15 +2425,11 @@ private void ensureRevokedCertificatesIsMutable() { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getRevokedCertificatesCount() { if (revokedCertificatesBuilder_ == null) { @@ -2787,18 +2439,13 @@ public int getRevokedCertificatesCount() { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { return revokedCertificates_.get(index); } else { @@ -2806,20 +2453,14 @@ public int getRevokedCertificatesCount() { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - value) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2833,21 +2474,14 @@ public Builder setRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.set(index, builderForValue.build()); @@ -2858,19 +2492,13 @@ public Builder setRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addRevokedCertificates( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - value) { + public Builder addRevokedCertificates(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2884,20 +2512,14 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - value) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2911,20 +2533,14 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRevokedCertificates( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(builderForValue.build()); @@ -2935,21 +2551,14 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addRevokedCertificates( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(index, builderForValue.build()); @@ -2960,25 +2569,18 @@ public Builder addRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllRevokedCertificates( - java.lang.Iterable< - ? extends - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate> - values) { + java.lang.Iterable values) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revokedCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, revokedCertificates_); onChanged(); } else { revokedCertificatesBuilder_.addAllMessages(values); @@ -2986,15 +2588,11 @@ public Builder addAllRevokedCertificates( return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRevokedCertificates() { if (revokedCertificatesBuilder_ == null) { @@ -3007,15 +2605,11 @@ public Builder clearRevokedCertificates() { return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { @@ -3028,57 +2622,39 @@ public Builder removeRevokedCertificates(int index) { return this; } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder - getRevokedCertificatesBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder getRevokedCertificatesBuilder( + int index) { return getRevokedCertificatesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder - getRevokedCertificatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( + int index) { if (revokedCertificatesBuilder_ == null) { - return revokedCertificates_.get(index); - } else { + return revokedCertificates_.get(index); } else { return revokedCertificatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder> - getRevokedCertificatesOrBuilderList() { + public java.util.List + getRevokedCertificatesOrBuilderList() { if (revokedCertificatesBuilder_ != null) { return revokedCertificatesBuilder_.getMessageOrBuilderList(); } else { @@ -3086,79 +2662,45 @@ public Builder removeRevokedCertificates(int index) { } } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder - addRevokedCertificatesBuilder() { - return getRevokedCertificatesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder() { + return getRevokedCertificatesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder - addRevokedCertificatesBuilder(int index) { - return getRevokedCertificatesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder( + int index) { + return getRevokedCertificatesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); } /** - * - * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder> - getRevokedCertificatesBuilderList() { + public java.util.List + getRevokedCertificatesBuilderList() { return getRevokedCertificatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - .Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder> getRevokedCertificatesFieldBuilder() { if (revokedCertificatesBuilder_ == null) { - revokedCertificatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder>( + revokedCertificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder>( revokedCertificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3170,20 +2712,18 @@ public Builder removeRevokedCertificates(int index) { private java.lang.Object pemCrl_ = ""; /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCrl. */ public java.lang.String getPemCrl() { java.lang.Object ref = pemCrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; @@ -3192,21 +2732,20 @@ public java.lang.String getPemCrl() { } } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCrl. */ - public com.google.protobuf.ByteString getPemCrlBytes() { + public com.google.protobuf.ByteString + getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -3214,61 +2753,54 @@ public com.google.protobuf.ByteString getPemCrlBytes() { } } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrl(java.lang.String value) { + public Builder setPemCrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCrl() { - + pemCrl_ = getDefaultInstance().getPemCrl(); onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrlBytes(com.google.protobuf.ByteString value) { + public Builder setPemCrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCrl_ = value; onChanged(); return this; @@ -3276,20 +2808,18 @@ public Builder setPemCrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object accessUrl_ = ""; /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accessUrl. */ public java.lang.String getAccessUrl() { java.lang.Object ref = accessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; @@ -3298,21 +2828,20 @@ public java.lang.String getAccessUrl() { } } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accessUrl. */ - public com.google.protobuf.ByteString getAccessUrlBytes() { + public com.google.protobuf.ByteString + getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -3320,61 +2849,54 @@ public com.google.protobuf.ByteString getAccessUrlBytes() { } } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrl(java.lang.String value) { + public Builder setAccessUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accessUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearAccessUrl() { - + accessUrl_ = getDefaultInstance().getAccessUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrlBytes(com.google.protobuf.ByteString value) { + public Builder setAccessUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessUrl_ = value; onChanged(); return this; @@ -3382,104 +2904,73 @@ public Builder setAccessUrlBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf( - state_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf(state_); + return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State value) { + public Builder setState(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3487,58 +2978,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3554,17 +3026,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3575,21 +3044,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3601,15 +3066,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3623,64 +3084,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3688,58 +3133,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3755,17 +3181,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3776,21 +3199,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3802,15 +3221,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3824,84 +3239,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private 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(); @@ -3913,30 +3313,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3944,12 +3342,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3957,17 +3354,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3975,11 +3371,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -3987,66 +3384,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4056,32 +3456,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList) - private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateRevocationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateRevocationList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateRevocationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateRevocationList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4093,8 +3491,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java index 6f900ea9..9b78d9c7 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateRevocationListOrBuilder - extends +public interface CertificateRevocationListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateRevocationList) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -34,13 +16,10 @@ public interface CertificateRevocationListOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -49,251 +28,179 @@ public interface CertificateRevocationListOrBuilder
    * 
* * 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 CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The sequenceNumber. */ long getSequenceNumber(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate> + java.util.List getRevokedCertificatesList(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate - getRevokedCertificates(int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getRevokedCertificatesCount(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .RevokedCertificateOrBuilder> + java.util.List getRevokedCertificatesOrBuilderList(); /** - * - * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder - getRevokedCertificatesOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( + int index); /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCrl. */ java.lang.String getPemCrl(); /** - * - * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCrl. */ - com.google.protobuf.ByteString getPemCrlBytes(); + com.google.protobuf.ByteString + getPemCrlBytes(); /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The accessUrl. */ java.lang.String getAccessUrl(); /** - * - * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for accessUrl. */ - com.google.protobuf.ByteString getAccessUrlBytes(); + com.google.protobuf.ByteString + getAccessUrlBytes(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -302,31 +209,30 @@ public interface CertificateRevocationListOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -335,18 +241,18 @@ public interface CertificateRevocationListOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java index 6ee0afc9..a343446f 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest}
  */
-public final class CreateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)
     CreateCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateCertificateAuthorityRequest.newBuilder() to construct.
-  private CreateCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateCertificateAuthorityRequest() {
     parent_ = "";
     certificateAuthorityId_ = "";
@@ -47,15 +28,16 @@ private CreateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CreateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,52 +56,44 @@ private CreateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              certificateAuthorityId_ = s;
-              break;
+            certificateAuthorityId_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder = null;
+            if (certificateAuthority_ != null) {
+              subBuilder = certificateAuthority_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder =
-                  null;
-              if (certificateAuthority_ != null) {
-                subBuilder = certificateAuthority_.toBuilder();
-              }
-              certificateAuthority_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateAuthority_);
-                certificateAuthority_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateAuthority_);
+              certificateAuthority_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -127,44 +101,36 @@ private CreateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 @@ -173,33 +139,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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -210,15 +174,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateAuthorityId_; /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthorityId. */ @java.lang.Override @@ -227,30 +188,30 @@ public java.lang.String getCertificateAuthorityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; } } /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthorityId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -261,16 +222,11 @@ public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_; /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -278,47 +234,32 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getCertificateAuthority() { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -334,7 +275,6 @@ public boolean hasCertificateAuthority() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -343,15 +283,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -367,15 +306,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -384,7 +324,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +335,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -425,8 +365,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateAuthorityId_); } if (certificateAuthority_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificateAuthority()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -439,22 +379,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.security.privateca.v1beta1.CreateCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateAuthorityId().equals(other.getCertificateAuthorityId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateAuthorityId() + .equals(other.getCertificateAuthorityId())) return false; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority() + .equals(other.getCertificateAuthority())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -481,111 +423,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - 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.security.privateca.v1beta1.CreateCertificateAuthorityRequest 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.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -593,41 +521,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -647,22 +572,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -670,10 +592,8 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(this);
       result.parent_ = parent_;
       result.certificateAuthorityId_ = certificateAuthorityId_;
       if (certificateAuthorityBuilder_ == null) {
@@ -690,53 +610,46 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof
-          com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -767,14 +680,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -786,24 +696,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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; @@ -812,25 +718,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -838,73 +741,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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; @@ -912,21 +802,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateAuthorityId_ = ""; /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthorityId. */ public java.lang.String getCertificateAuthorityId() { java.lang.Object ref = certificateAuthorityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; @@ -935,22 +823,21 @@ public java.lang.String getCertificateAuthorityId() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthorityId. */ - public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -958,64 +845,57 @@ public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { } } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityId(java.lang.String value) { + public Builder setCertificateAuthorityId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateAuthorityId_ = value; onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateAuthorityId() { - + certificateAuthorityId_ = getDefaultInstance().getCertificateAuthorityId(); onChanged(); return this; } /** - * - * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateAuthorityId_ = value; onChanged(); return this; @@ -1023,62 +903,41 @@ public Builder setCertificateAuthorityIdBytes(com.google.protobuf.ByteString val private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> - certificateAuthorityBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_; /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getCertificateAuthority() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1092,15 +951,11 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { @@ -1114,25 +969,17 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder( - certificateAuthority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); } else { certificateAuthority_ = value; } @@ -1144,15 +991,11 @@ public Builder mergeCertificateAuthority( return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -1166,66 +1009,48 @@ public Builder clearCertificateAuthority() { return this; } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder - getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } } /** - * - * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), getParentForChildren(), isClean()); + certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), + getParentForChildren(), + isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -1233,8 +1058,6 @@ public Builder clearCertificateAuthority() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1250,13 +1073,13 @@ public Builder clearCertificateAuthority() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1265,8 +1088,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1282,14 +1103,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1297,8 +1119,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1314,22 +1134,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1345,18 +1163,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1372,23 +1187,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1398,33 +1213,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1436,8 +1248,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java index 15e0c27f..853ca91e 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface CreateCertificateAuthorityRequestOrBuilder - extends +public interface CreateCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthorityId. */ java.lang.String getCertificateAuthorityId(); /** - * - * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthorityId. */ - com.google.protobuf.ByteString getCertificateAuthorityIdBytes(); + com.google.protobuf.ByteString + getCertificateAuthorityIdBytes(); /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority(); /** - * - * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,13 +96,10 @@ public interface CreateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -165,8 +115,8 @@ public interface CreateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java index 8730e1ad..16365025 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateRequest} */ -public final class CreateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCertificateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) CreateCertificateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCertificateRequest.newBuilder() to construct. private CreateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCertificateRequest() { parent_ = ""; certificateId_ = ""; @@ -45,15 +27,16 @@ private CreateCertificateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,51 +55,44 @@ private CreateCertificateRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - certificateId_ = s; - break; + certificateId_ = s; + break; + } + case 26: { + com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); } - case 26: - { - com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - - break; + certificate_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -124,43 +100,36 @@ private CreateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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 @@ -169,33 +138,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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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 { @@ -206,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateId_; /** - * - * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -216,7 +181,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The certificateId. */ @java.lang.Override @@ -225,15 +189,14 @@ public java.lang.String getCertificateId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } } /** - * - * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -242,15 +205,16 @@ public java.lang.String getCertificateId() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for certificateId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateIdBytes() { + public com.google.protobuf.ByteString + getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateId_ = b; return b; } else { @@ -261,16 +225,11 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { public static final int CERTIFICATE_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ @java.lang.Override @@ -278,46 +237,32 @@ public boolean hasCertificate() { return certificate_ != null; } /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { - return certificate_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; } /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder - getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { return getCertificate(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -333,7 +278,6 @@ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate()
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -342,15 +286,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -366,15 +309,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -383,7 +327,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +338,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -424,7 +368,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateId_); } if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -437,21 +382,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.security.privateca.v1beta1.CreateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other = - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateId().equals(other.getCertificateId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateId() + .equals(other.getCertificateId())) return false; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate().equals(other.getCertificate())) return false; + if (!getCertificate() + .equals(other.getCertificate())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -479,145 +427,134 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest 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.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - 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.security.privateca.v1beta1.CreateCertificateRequest 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.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) com.google.cloud.security.privateca.v1beta1.CreateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -637,16 +574,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.getDefaultInstance(); } @java.lang.Override @@ -660,8 +595,7 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest buil @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest result = - new com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest(this); + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest(this); result.parent_ = parent_; result.certificateId_ = certificateId_; if (certificateBuilder_ == null) { @@ -678,51 +612,46 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -757,9 +686,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -771,24 +698,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string parent = 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; @@ -797,25 +720,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string parent = 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 { @@ -823,73 +743,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -897,8 +804,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateId_ = ""; /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -907,13 +812,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; @@ -922,8 +827,6 @@ public java.lang.String getCertificateId() { } } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -932,14 +835,15 @@ public java.lang.String getCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for certificateId. */ - public com.google.protobuf.ByteString getCertificateIdBytes() { + public com.google.protobuf.ByteString + getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateId_ = b; return b; } else { @@ -947,8 +851,6 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { } } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -957,22 +859,20 @@ public com.google.protobuf.ByteString getCertificateIdBytes() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateId(java.lang.String value) { + public Builder setCertificateId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -981,18 +881,15 @@ public Builder setCertificateId(java.lang.String value) {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCertificateId() { - + certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** - * - * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1001,16 +898,16 @@ public Builder clearCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateId_ = value; onChanged(); return this; @@ -1018,58 +915,39 @@ public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> - certificateBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> certificateBuilder_; /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { @@ -1085,15 +963,11 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certif return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate( com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { @@ -1107,23 +981,17 @@ public Builder setCertificate( return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); } else { certificate_ = value; } @@ -1135,15 +1003,11 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Cert return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -1157,65 +1021,48 @@ public Builder clearCertificate() { return this; } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder - getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; } } /** - * - * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( - getCertificate(), getParentForChildren(), isClean()); + certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( + getCertificate(), + getParentForChildren(), + isClean()); certificate_ = null; } return certificateBuilder_; @@ -1223,8 +1070,6 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1240,13 +1085,13 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1255,8 +1100,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1272,14 +1115,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1287,8 +1131,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1304,22 +1146,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1335,18 +1175,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1362,23 +1199,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1388,32 +1225,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1425,8 +1260,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java index e7a69236..0031c070 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface CreateCertificateRequestOrBuilder - extends +public interface CreateCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string parent = 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. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -67,13 +40,10 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The certificateId. */ java.lang.String getCertificateId(); /** - * - * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -82,55 +52,39 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for certificateId. */ - com.google.protobuf.ByteString getCertificateIdBytes(); + com.google.protobuf.ByteString + getCertificateIdBytes(); /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ boolean hasCertificate(); /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ com.google.cloud.security.privateca.v1beta1.Certificate getCertificate(); /** - * - * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -146,13 +100,10 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -168,8 +119,8 @@ public interface CreateCertificateRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java index 53ae8d49..287e1008 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest}
  */
-public final class DisableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DisableCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)
     DisableCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DisableCertificateAuthorityRequest.newBuilder() to construct.
-  private DisableCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DisableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DisableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private DisableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DisableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DisableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,25 @@ private DisableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,43 +81,35 @@ private DisableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -146,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -182,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -199,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -208,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -232,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,18 +258,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.security.privateca.v1beta1.DisableCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,154 +289,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - 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.security.privateca.v1beta1.DisableCertificateAuthorityRequest 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.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder - .class); + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,22 +430,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -505,10 +450,8 @@ public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRe } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = - new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -519,53 +462,46 @@ public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -589,14 +525,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,23 +541,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -633,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -658,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -729,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -746,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -761,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -778,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -793,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -810,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -841,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -868,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -894,34 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .DisableCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,8 +832,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java index 34db727f..e7835193 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface DisableCertificateAuthorityRequestOrBuilder - extends +public interface DisableCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface DisableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface DisableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java index 9f977bce..8f234e63 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest}
  */
-public final class EnableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EnableCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)
     EnableCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EnableCertificateAuthorityRequest.newBuilder() to construct.
-  private EnableCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private EnableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EnableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private EnableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EnableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EnableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,25 @@ private EnableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,43 +81,35 @@ private EnableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -146,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -182,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -199,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -208,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -232,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,17 +258,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.security.privateca.v1beta1.EnableCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,111 +289,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - 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.security.privateca.v1beta1.EnableCertificateAuthorityRequest 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.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -434,41 +387,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,22 +430,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -503,10 +450,8 @@ public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -517,53 +462,46 @@ public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof
-          com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -587,14 +525,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -606,23 +541,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -631,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -656,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -727,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -744,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -759,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -776,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -791,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -808,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -839,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -866,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -892,33 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,8 +832,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java index 496d274e..2f1d3131 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface EnableCertificateAuthorityRequestOrBuilder - extends +public interface EnableCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface EnableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface EnableCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java similarity index 56% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java index 751e5506..718f3256 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest}
  */
-public final class FetchCertificateAuthorityCsrRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FetchCertificateAuthorityCsrRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)
     FetchCertificateAuthorityCsrRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FetchCertificateAuthorityCsrRequest.newBuilder() to construct.
-  private FetchCertificateAuthorityCsrRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private FetchCertificateAuthorityCsrRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FetchCertificateAuthorityCsrRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FetchCertificateAuthorityCsrRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FetchCertificateAuthorityCsrRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +54,19 @@ private FetchCertificateAuthorityCsrRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,43 +74,35 @@ private FetchCertificateAuthorityCsrRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class,
-            com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -139,32 +111,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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -173,7 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,17 +179,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other = - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) obj; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,154 +206,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -395,22 +345,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest build() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -418,10 +365,8 @@ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = - new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(this); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(this); result.name_ = name_; onBuilt(); return result; @@ -431,54 +376,46 @@ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -498,14 +435,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,23 +451,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -542,24 +472,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -567,77 +494,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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); } @@ -647,34 +561,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -686,8 +596,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java new file mode 100644 index 00000000..fa142344 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface FetchCertificateAuthorityCsrRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
+   * format `projects/*/locations/*/certificateAuthorities/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
+   * format `projects/*/locations/*/certificateAuthorities/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java similarity index 57% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java index 9e3c781b..58e452a8 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java @@ -1,61 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
  * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} */ -public final class FetchCertificateAuthorityCsrResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchCertificateAuthorityCsrResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) FetchCertificateAuthorityCsrResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchCertificateAuthorityCsrResponse.newBuilder() to construct. - private FetchCertificateAuthorityCsrResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FetchCertificateAuthorityCsrResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchCertificateAuthorityCsrResponse() { pemCsr_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchCertificateAuthorityCsrResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FetchCertificateAuthorityCsrResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,20 +54,19 @@ private FetchCertificateAuthorityCsrResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pemCsr_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pemCsr_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,40 +74,34 @@ private FetchCertificateAuthorityCsrResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.Builder - .class); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.Builder.class); } public static final int PEM_CSR_FIELD_NUMBER = 1; private volatile java.lang.Object pemCsr_; /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCsr. */ @java.lang.Override @@ -137,29 +110,29 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; } } /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -168,7 +141,6 @@ public com.google.protobuf.ByteString getPemCsrBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,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(pemCsr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCsr_); } @@ -204,17 +177,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.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other = - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) obj; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) obj; - if (!getPemCsr().equals(other.getPemCsr())) return false; + if (!getPemCsr() + .equals(other.getPemCsr())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,155 +204,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - .class, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - .Builder.class); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -391,23 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - build() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse build() { + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -415,11 +363,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - buildPartial() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = - new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse( - this); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse buildPartial() { + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse(this); result.pemCsr_ = pemCsr_; onBuilt(); return result; @@ -429,54 +374,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other) { - if (other - == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other) { + if (other == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.getDefaultInstance()) return this; if (!other.getPemCsr().isEmpty()) { pemCsr_ = other.pemCsr_; onChanged(); @@ -496,14 +433,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,20 +449,18 @@ public Builder mergeFrom( private java.lang.Object pemCsr_ = ""; /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCsr. */ public java.lang.String getPemCsr() { java.lang.Object ref = pemCsr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; @@ -537,21 +469,20 @@ public java.lang.String getPemCsr() { } } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString getPemCsrBytes() { + public com.google.protobuf.ByteString + getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -559,68 +490,61 @@ public com.google.protobuf.ByteString getPemCsrBytes() { } } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr(java.lang.String value) { + public Builder setPemCsr( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCsr_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCsr() { - + pemCsr_ = getDefaultInstance().getPemCsr(); onChanged(); return this; } /** - * - * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCsr_ = 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); } @@ -630,34 +554,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) - private static final com.google.cloud.security.privateca.v1beta1 - .FetchCertificateAuthorityCsrResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse(); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,8 +589,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java similarity index 52% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java index e1c0bdd4..9976052c 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface FetchCertificateAuthorityCsrResponseOrBuilder - extends +public interface FetchCertificateAuthorityCsrResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCsr. */ java.lang.String getPemCsr(); /** - * - * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString getPemCsrBytes(); + com.google.protobuf.ByteString + getPemCsrBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java similarity index 57% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java index 8ede3b95..921802db 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest} */ -public final class GetCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCertificateAuthorityRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) GetCertificateAuthorityRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCertificateAuthorityRequest.newBuilder() to construct. - private GetCertificateAuthorityRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCertificateAuthorityRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCertificateAuthorityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCertificateAuthorityRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private GetCertificateAuthorityRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,43 +73,35 @@ private GetCertificateAuthorityRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder - .class); + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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 @@ -137,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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 { @@ -171,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,16 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,152 +205,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - 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.security.privateca.v1beta1.GetCertificateAuthorityRequest 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.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder - .class); + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -390,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -413,10 +363,8 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityReques } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = - new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(this); result.name_ = name_; onBuilt(); return result; @@ -426,52 +374,46 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -491,14 +433,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -510,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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; @@ -535,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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 { @@ -560,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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); } @@ -640,33 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -678,8 +594,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java new file mode 100644 index 00000000..810c0641 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetCertificateAuthorityRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java index c6d9e6d3..14577bec 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRequest}
  */
-public final class GetCertificateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCertificateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetCertificateRequest)
     GetCertificateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCertificateRequest.newBuilder() to construct.
   private GetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCertificateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GetCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private GetCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,41 +74,34 @@ private GetCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class,
-            com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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 @@ -135,31 +110,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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 { @@ -168,7 +141,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,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_); } @@ -204,15 +177,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.security.privateca.v1beta1.GetCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other = - (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,105 +205,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest 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.security.privateca.v1beta1.GetCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest - 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.security.privateca.v1beta1.GetCertificateRequest 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.security.privateca.v1beta1.GetCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate].
@@ -338,40 +302,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetCertificateRequest)
       com.google.cloud.security.privateca.v1beta1.GetCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class,
-              com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,14 +343,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance();
     }
 
@@ -403,8 +364,7 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.GetCertificateRequest result =
-          new com.google.cloud.security.privateca.v1beta1.GetCertificateRequest(this);
+      com.google.cloud.security.privateca.v1beta1.GetCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.GetCertificateRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -414,50 +374,46 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest 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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -481,9 +437,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -495,22 +449,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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; @@ -519,23 +469,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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 { @@ -543,74 +490,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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); } @@ -620,32 +554,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.GetCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,8 +589,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java new file mode 100644 index 00000000..c8f61e46 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetCertificateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java similarity index 56% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java index 82bba543..27242a4e 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList].
@@ -28,33 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest}
  */
-public final class GetCertificateRevocationListRequest
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetCertificateRevocationListRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)
     GetCertificateRevocationListRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetCertificateRevocationListRequest.newBuilder() to construct.
-  private GetCertificateRevocationListRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GetCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetCertificateRevocationListRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetCertificateRevocationListRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GetCertificateRevocationListRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,20 +54,19 @@ private GetCertificateRevocationListRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,43 +74,35 @@ private GetCertificateRevocationListRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class,
-            com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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 @@ -139,32 +111,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.security.privateca.v1beta1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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 { @@ -173,7 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +154,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,17 +179,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other = - (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,154 +206,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - 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.security.privateca.v1beta1.GetCertificateRevocationListRequest 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.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -395,22 +345,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest build() { - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -418,10 +365,8 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = - new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(this); + public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(this); result.name_ = name_; onBuilt(); return result; @@ -431,54 +376,46 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -498,14 +435,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,23 +451,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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; @@ -542,24 +472,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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 { @@ -567,77 +494,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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); } @@ -647,34 +561,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .GetCertificateRevocationListRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -686,8 +596,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java new file mode 100644 index 00000000..32369e72 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetCertificateRevocationListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java similarity index 62% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java index 4e93eda6..b127f96a 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.GetReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetReusableConfigRequest}
  */
-public final class GetReusableConfigRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetReusableConfigRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)
     GetReusableConfigRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetReusableConfigRequest.newBuilder() to construct.
   private GetReusableConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetReusableConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetReusableConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GetReusableConfigRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private GetReusableConfigRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,41 +74,34 @@ private GetReusableConfigRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class,
-            com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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 @@ -135,31 +110,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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 { @@ -168,7 +141,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,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_); } @@ -204,15 +177,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.security.privateca.v1beta1.GetReusableConfigRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other = - (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other = (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,105 +205,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest 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.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest - 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.security.privateca.v1beta1.GetReusableConfigRequest 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.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig].
@@ -338,40 +302,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetReusableConfigRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)
       com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class,
-              com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,16 +343,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -404,8 +364,7 @@ public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest buil
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest result =
-          new com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest(this);
+      com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest result = new com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -415,51 +374,46 @@ public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest buil
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -483,9 +437,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -497,22 +449,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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; @@ -521,23 +469,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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 { @@ -545,74 +490,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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][ReusableConfigs.name] of the [ReusableConfigs][] 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][ReusableConfigs.name] of the [ReusableConfigs][] 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); } @@ -622,32 +554,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReusableConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReusableConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReusableConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReusableConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -659,8 +589,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java new file mode 100644 index 00000000..e2769e39 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetReusableConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java index 4424520c..cabab65e 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [KeyUsage][google.cloud.security.privateca.v1beta1.KeyUsage] describes key usage values that may appear in an X.509
  * certificate.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage}
  */
-public final class KeyUsage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KeyUsage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.KeyUsage)
     KeyUsageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KeyUsage.newBuilder() to construct.
   private KeyUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KeyUsage() {
     unknownExtendedKeyUsages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KeyUsage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KeyUsage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,63 +55,48 @@ private KeyUsage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder
-                  subBuilder = null;
-              if (baseKeyUsage_ != null) {
-                subBuilder = baseKeyUsage_.toBuilder();
-              }
-              baseKeyUsage_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(baseKeyUsage_);
-                baseKeyUsage_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder subBuilder = null;
+            if (baseKeyUsage_ != null) {
+              subBuilder = baseKeyUsage_.toBuilder();
+            }
+            baseKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(baseKeyUsage_);
+              baseKeyUsage_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder
-                  subBuilder = null;
-              if (extendedKeyUsage_ != null) {
-                subBuilder = extendedKeyUsage_.toBuilder();
-              }
-              extendedKeyUsage_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(extendedKeyUsage_);
-                extendedKeyUsage_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder subBuilder = null;
+            if (extendedKeyUsage_ != null) {
+              subBuilder = extendedKeyUsage_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                unknownExtendedKeyUsages_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              unknownExtendedKeyUsages_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
-                      extensionRegistry));
-              break;
+            extendedKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(extendedKeyUsage_);
+              extendedKeyUsage_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              unknownExtendedKeyUsages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
+            unknownExtendedKeyUsages_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.ObjectId.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -136,158 +104,125 @@ private KeyUsage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        unknownExtendedKeyUsages_ =
-            java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+        unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.class,
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
   }
 
-  public interface KeyUsageOptionsOrBuilder
-      extends
+  public interface KeyUsageOptionsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; - * * @return The digitalSignature. */ boolean getDigitalSignature(); /** - * - * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; - * * @return The contentCommitment. */ boolean getContentCommitment(); /** - * - * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; - * * @return The keyEncipherment. */ boolean getKeyEncipherment(); /** - * - * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; - * * @return The dataEncipherment. */ boolean getDataEncipherment(); /** - * - * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; - * * @return The keyAgreement. */ boolean getKeyAgreement(); /** - * - * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; - * * @return The certSign. */ boolean getCertSign(); /** - * - * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; - * * @return The crlSign. */ boolean getCrlSign(); /** - * - * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; - * * @return The encipherOnly. */ boolean getEncipherOnly(); /** - * - * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; - * * @return The decipherOnly. */ boolean getDecipherOnly(); } /** - * - * *
    * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
    * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -295,29 +230,30 @@ public interface KeyUsageOptionsOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions}
    */
-  public static final class KeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class KeyUsageOptions extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
       KeyUsageOptionsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use KeyUsageOptions.newBuilder() to construct.
     private KeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private KeyUsageOptions() {}
+    private KeyUsageOptions() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new KeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private KeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -336,58 +272,58 @@ private KeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                digitalSignature_ = input.readBool();
-                break;
-              }
-            case 16:
-              {
-                contentCommitment_ = input.readBool();
-                break;
-              }
-            case 24:
-              {
-                keyEncipherment_ = input.readBool();
-                break;
-              }
-            case 32:
-              {
-                dataEncipherment_ = input.readBool();
-                break;
-              }
-            case 40:
-              {
-                keyAgreement_ = input.readBool();
-                break;
-              }
-            case 48:
-              {
-                certSign_ = input.readBool();
-                break;
-              }
-            case 56:
-              {
-                crlSign_ = input.readBool();
-                break;
-              }
-            case 64:
-              {
-                encipherOnly_ = input.readBool();
-                break;
-              }
-            case 72:
-              {
-                decipherOnly_ = input.readBool();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 8: {
+
+              digitalSignature_ = input.readBool();
+              break;
+            }
+            case 16: {
+
+              contentCommitment_ = input.readBool();
+              break;
+            }
+            case 24: {
+
+              keyEncipherment_ = input.readBool();
+              break;
+            }
+            case 32: {
+
+              dataEncipherment_ = input.readBool();
+              break;
+            }
+            case 40: {
+
+              keyAgreement_ = input.readBool();
+              break;
+            }
+            case 48: {
+
+              certSign_ = input.readBool();
+              break;
+            }
+            case 56: {
+
+              crlSign_ = input.readBool();
+              break;
+            }
+            case 64: {
+
+              encipherOnly_ = input.readBool();
+              break;
+            }
+            case 72: {
+
+              decipherOnly_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -395,39 +331,34 @@ private KeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class,
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
     }
 
     public static final int DIGITAL_SIGNATURE_FIELD_NUMBER = 1;
     private boolean digitalSignature_;
     /**
-     *
-     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; - * * @return The digitalSignature. */ @java.lang.Override @@ -438,15 +369,12 @@ public boolean getDigitalSignature() { public static final int CONTENT_COMMITMENT_FIELD_NUMBER = 2; private boolean contentCommitment_; /** - * - * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; - * * @return The contentCommitment. */ @java.lang.Override @@ -457,14 +385,11 @@ public boolean getContentCommitment() { public static final int KEY_ENCIPHERMENT_FIELD_NUMBER = 3; private boolean keyEncipherment_; /** - * - * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; - * * @return The keyEncipherment. */ @java.lang.Override @@ -475,14 +400,11 @@ public boolean getKeyEncipherment() { public static final int DATA_ENCIPHERMENT_FIELD_NUMBER = 4; private boolean dataEncipherment_; /** - * - * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; - * * @return The dataEncipherment. */ @java.lang.Override @@ -493,14 +415,11 @@ public boolean getDataEncipherment() { public static final int KEY_AGREEMENT_FIELD_NUMBER = 5; private boolean keyAgreement_; /** - * - * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; - * * @return The keyAgreement. */ @java.lang.Override @@ -511,14 +430,11 @@ public boolean getKeyAgreement() { public static final int CERT_SIGN_FIELD_NUMBER = 6; private boolean certSign_; /** - * - * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; - * * @return The certSign. */ @java.lang.Override @@ -529,14 +445,11 @@ public boolean getCertSign() { public static final int CRL_SIGN_FIELD_NUMBER = 7; private boolean crlSign_; /** - * - * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; - * * @return The crlSign. */ @java.lang.Override @@ -547,14 +460,11 @@ public boolean getCrlSign() { public static final int ENCIPHER_ONLY_FIELD_NUMBER = 8; private boolean encipherOnly_; /** - * - * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; - * * @return The encipherOnly. */ @java.lang.Override @@ -565,14 +475,11 @@ public boolean getEncipherOnly() { public static final int DECIPHER_ONLY_FIELD_NUMBER = 9; private boolean decipherOnly_; /** - * - * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; - * * @return The decipherOnly. */ @java.lang.Override @@ -581,7 +488,6 @@ public boolean getDecipherOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -593,7 +499,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (digitalSignature_ != false) { output.writeBool(1, digitalSignature_); } @@ -631,31 +538,40 @@ public int getSerializedSize() { size = 0; if (digitalSignature_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, digitalSignature_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, digitalSignature_); } if (contentCommitment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contentCommitment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, contentCommitment_); } if (keyEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, keyEncipherment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, keyEncipherment_); } if (dataEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dataEncipherment_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, dataEncipherment_); } if (keyAgreement_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, keyAgreement_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, keyAgreement_); } if (certSign_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, certSign_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, certSign_); } if (crlSign_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, crlSign_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, crlSign_); } if (encipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, encipherOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, encipherOnly_); } if (decipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, decipherOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, decipherOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -665,23 +581,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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other = - (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) obj; - - if (getDigitalSignature() != other.getDigitalSignature()) return false; - if (getContentCommitment() != other.getContentCommitment()) return false; - if (getKeyEncipherment() != other.getKeyEncipherment()) return false; - if (getDataEncipherment() != other.getDataEncipherment()) return false; - if (getKeyAgreement() != other.getKeyAgreement()) return false; - if (getCertSign() != other.getCertSign()) return false; - if (getCrlSign() != other.getCrlSign()) return false; - if (getEncipherOnly() != other.getEncipherOnly()) return false; - if (getDecipherOnly() != other.getDecipherOnly()) return false; + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other = (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) obj; + + if (getDigitalSignature() + != other.getDigitalSignature()) return false; + if (getContentCommitment() + != other.getContentCommitment()) return false; + if (getKeyEncipherment() + != other.getKeyEncipherment()) return false; + if (getDataEncipherment() + != other.getDataEncipherment()) return false; + if (getKeyAgreement() + != other.getKeyAgreement()) return false; + if (getCertSign() + != other.getCertSign()) return false; + if (getCrlSign() + != other.getCrlSign()) return false; + if (getEncipherOnly() + != other.getEncipherOnly()) return false; + if (getDecipherOnly() + != other.getDecipherOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -694,118 +618,119 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIGITAL_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDigitalSignature()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDigitalSignature()); hash = (37 * hash) + CONTENT_COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContentCommitment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getContentCommitment()); hash = (37 * hash) + KEY_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKeyEncipherment()); hash = (37 * hash) + DATA_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDataEncipherment()); hash = (37 * hash) + KEY_AGREEMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyAgreement()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getKeyAgreement()); hash = (37 * hash) + CERT_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCertSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCertSign()); hash = (37 * hash) + CRL_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCrlSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCrlSign()); hash = (37 * hash) + ENCIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEncipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEncipherOnly()); hash = (37 * hash) + DECIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDecipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDecipherOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions 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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - 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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions 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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -815,8 +740,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
      * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -824,41 +747,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
         com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class,
-                com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
+                com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder()
+      // Construct using com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -884,22 +804,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-            .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions
-          getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions
-            .getDefaultInstance();
+      public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions build() {
-        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result =
-            buildPartial();
+        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -908,8 +825,7 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions buil
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions buildPartial() {
-        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result =
-            new com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions(this);
+        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result = new com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions(this);
         result.digitalSignature_ = digitalSignature_;
         result.contentCommitment_ = contentCommitment_;
         result.keyEncipherment_ = keyEncipherment_;
@@ -927,53 +843,46 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions buil
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) {
-          return mergeFrom(
-              (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) other);
+          return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other) {
-        if (other
-            == com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other) {
+        if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance()) return this;
         if (other.getDigitalSignature() != false) {
           setDigitalSignature(other.getDigitalSignature());
         }
@@ -1020,9 +929,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1032,16 +939,13 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean digitalSignature_;
+      private boolean digitalSignature_ ;
       /**
-       *
-       *
        * 
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; - * * @return The digitalSignature. */ @java.lang.Override @@ -1049,52 +953,43 @@ public boolean getDigitalSignature() { return digitalSignature_; } /** - * - * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; - * * @param value The digitalSignature to set. * @return This builder for chaining. */ public Builder setDigitalSignature(boolean value) { - + digitalSignature_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; - * * @return This builder for chaining. */ public Builder clearDigitalSignature() { - + digitalSignature_ = false; onChanged(); return this; } - private boolean contentCommitment_; + private boolean contentCommitment_ ; /** - * - * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; - * * @return The contentCommitment. */ @java.lang.Override @@ -1102,53 +997,44 @@ public boolean getContentCommitment() { return contentCommitment_; } /** - * - * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; - * * @param value The contentCommitment to set. * @return This builder for chaining. */ public Builder setContentCommitment(boolean value) { - + contentCommitment_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; - * * @return This builder for chaining. */ public Builder clearContentCommitment() { - + contentCommitment_ = false; onChanged(); return this; } - private boolean keyEncipherment_; + private boolean keyEncipherment_ ; /** - * - * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; - * * @return The keyEncipherment. */ @java.lang.Override @@ -1156,51 +1042,42 @@ public boolean getKeyEncipherment() { return keyEncipherment_; } /** - * - * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; - * * @param value The keyEncipherment to set. * @return This builder for chaining. */ public Builder setKeyEncipherment(boolean value) { - + keyEncipherment_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; - * * @return This builder for chaining. */ public Builder clearKeyEncipherment() { - + keyEncipherment_ = false; onChanged(); return this; } - private boolean dataEncipherment_; + private boolean dataEncipherment_ ; /** - * - * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; - * * @return The dataEncipherment. */ @java.lang.Override @@ -1208,51 +1085,42 @@ public boolean getDataEncipherment() { return dataEncipherment_; } /** - * - * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; - * * @param value The dataEncipherment to set. * @return This builder for chaining. */ public Builder setDataEncipherment(boolean value) { - + dataEncipherment_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; - * * @return This builder for chaining. */ public Builder clearDataEncipherment() { - + dataEncipherment_ = false; onChanged(); return this; } - private boolean keyAgreement_; + private boolean keyAgreement_ ; /** - * - * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; - * * @return The keyAgreement. */ @java.lang.Override @@ -1260,51 +1128,42 @@ public boolean getKeyAgreement() { return keyAgreement_; } /** - * - * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; - * * @param value The keyAgreement to set. * @return This builder for chaining. */ public Builder setKeyAgreement(boolean value) { - + keyAgreement_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; - * * @return This builder for chaining. */ public Builder clearKeyAgreement() { - + keyAgreement_ = false; onChanged(); return this; } - private boolean certSign_; + private boolean certSign_ ; /** - * - * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; - * * @return The certSign. */ @java.lang.Override @@ -1312,51 +1171,42 @@ public boolean getCertSign() { return certSign_; } /** - * - * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; - * * @param value The certSign to set. * @return This builder for chaining. */ public Builder setCertSign(boolean value) { - + certSign_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; - * * @return This builder for chaining. */ public Builder clearCertSign() { - + certSign_ = false; onChanged(); return this; } - private boolean crlSign_; + private boolean crlSign_ ; /** - * - * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; - * * @return The crlSign. */ @java.lang.Override @@ -1364,51 +1214,42 @@ public boolean getCrlSign() { return crlSign_; } /** - * - * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; - * * @param value The crlSign to set. * @return This builder for chaining. */ public Builder setCrlSign(boolean value) { - + crlSign_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; - * * @return This builder for chaining. */ public Builder clearCrlSign() { - + crlSign_ = false; onChanged(); return this; } - private boolean encipherOnly_; + private boolean encipherOnly_ ; /** - * - * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; - * * @return The encipherOnly. */ @java.lang.Override @@ -1416,51 +1257,42 @@ public boolean getEncipherOnly() { return encipherOnly_; } /** - * - * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; - * * @param value The encipherOnly to set. * @return This builder for chaining. */ public Builder setEncipherOnly(boolean value) { - + encipherOnly_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; - * * @return This builder for chaining. */ public Builder clearEncipherOnly() { - + encipherOnly_ = false; onChanged(); return this; } - private boolean decipherOnly_; + private boolean decipherOnly_ ; /** - * - * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; - * * @return The decipherOnly. */ @java.lang.Override @@ -1468,41 +1300,34 @@ public boolean getDecipherOnly() { return decipherOnly_; } /** - * - * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; - * * @param value The decipherOnly to set. * @return This builder for chaining. */ public Builder setDecipherOnly(boolean value) { - + decipherOnly_ = value; onChanged(); return this; } /** - * - * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; - * * @return This builder for chaining. */ public Builder clearDecipherOnly() { - + decipherOnly_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1515,32 +1340,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) - private static final com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1552,104 +1375,83 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ExtendedKeyUsageOptionsOrBuilder - extends + public interface ExtendedKeyUsageOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; - * * @return The serverAuth. */ boolean getServerAuth(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; - * * @return The clientAuth. */ boolean getClientAuth(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; - * * @return The codeSigning. */ boolean getCodeSigning(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; - * * @return The emailProtection. */ boolean getEmailProtection(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; - * * @return The timeStamping. */ boolean getTimeStamping(); /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; - * * @return The ocspSigning. */ boolean getOcspSigning(); } /** - * - * *
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
    * certain common OIDs that could be specified as an extended key usage value.
@@ -1657,29 +1459,30 @@ public interface ExtendedKeyUsageOptionsOrBuilder
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions}
    */
-  public static final class ExtendedKeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ExtendedKeyUsageOptions extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)
       ExtendedKeyUsageOptionsOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ExtendedKeyUsageOptions.newBuilder() to construct.
     private ExtendedKeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private ExtendedKeyUsageOptions() {}
+    private ExtendedKeyUsageOptions() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ExtendedKeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ExtendedKeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1698,43 +1501,43 @@ private ExtendedKeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                serverAuth_ = input.readBool();
-                break;
-              }
-            case 16:
-              {
-                clientAuth_ = input.readBool();
-                break;
-              }
-            case 24:
-              {
-                codeSigning_ = input.readBool();
-                break;
-              }
-            case 32:
-              {
-                emailProtection_ = input.readBool();
-                break;
-              }
-            case 40:
-              {
-                timeStamping_ = input.readBool();
-                break;
-              }
-            case 48:
-              {
-                ocspSigning_ = input.readBool();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 8: {
+
+              serverAuth_ = input.readBool();
+              break;
+            }
+            case 16: {
+
+              clientAuth_ = input.readBool();
+              break;
+            }
+            case 24: {
+
+              codeSigning_ = input.readBool();
+              break;
+            }
+            case 32: {
+
+              emailProtection_ = input.readBool();
+              break;
+            }
+            case 40: {
+
+              timeStamping_ = input.readBool();
+              break;
+            }
+            case 48: {
+
+              ocspSigning_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1742,41 +1545,35 @@ private ExtendedKeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class,
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder.class);
     }
 
     public static final int SERVER_AUTH_FIELD_NUMBER = 1;
     private boolean serverAuth_;
     /**
-     *
-     *
      * 
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; - * * @return The serverAuth. */ @java.lang.Override @@ -1787,15 +1584,12 @@ public boolean getServerAuth() { public static final int CLIENT_AUTH_FIELD_NUMBER = 2; private boolean clientAuth_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; - * * @return The clientAuth. */ @java.lang.Override @@ -1806,15 +1600,12 @@ public boolean getClientAuth() { public static final int CODE_SIGNING_FIELD_NUMBER = 3; private boolean codeSigning_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; - * * @return The codeSigning. */ @java.lang.Override @@ -1825,15 +1616,12 @@ public boolean getCodeSigning() { public static final int EMAIL_PROTECTION_FIELD_NUMBER = 4; private boolean emailProtection_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; - * * @return The emailProtection. */ @java.lang.Override @@ -1844,15 +1632,12 @@ public boolean getEmailProtection() { public static final int TIME_STAMPING_FIELD_NUMBER = 5; private boolean timeStamping_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; - * * @return The timeStamping. */ @java.lang.Override @@ -1863,15 +1648,12 @@ public boolean getTimeStamping() { public static final int OCSP_SIGNING_FIELD_NUMBER = 6; private boolean ocspSigning_; /** - * - * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; - * * @return The ocspSigning. */ @java.lang.Override @@ -1880,7 +1662,6 @@ public boolean getOcspSigning() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1892,7 +1673,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (serverAuth_ != false) { output.writeBool(1, serverAuth_); } @@ -1921,22 +1703,28 @@ public int getSerializedSize() { size = 0; if (serverAuth_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, serverAuth_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, serverAuth_); } if (clientAuth_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientAuth_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clientAuth_); } if (codeSigning_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, codeSigning_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, codeSigning_); } if (emailProtection_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, emailProtection_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, emailProtection_); } if (timeStamping_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, timeStamping_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, timeStamping_); } if (ocspSigning_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, ocspSigning_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, ocspSigning_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1946,22 +1734,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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other = - (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) obj; - - if (getServerAuth() != other.getServerAuth()) return false; - if (getClientAuth() != other.getClientAuth()) return false; - if (getCodeSigning() != other.getCodeSigning()) return false; - if (getEmailProtection() != other.getEmailProtection()) return false; - if (getTimeStamping() != other.getTimeStamping()) return false; - if (getOcspSigning() != other.getOcspSigning()) return false; + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other = (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) obj; + + if (getServerAuth() + != other.getServerAuth()) return false; + if (getClientAuth() + != other.getClientAuth()) return false; + if (getCodeSigning() + != other.getCodeSigning()) return false; + if (getEmailProtection() + != other.getEmailProtection()) return false; + if (getTimeStamping() + != other.getTimeStamping()) return false; + if (getOcspSigning() + != other.getOcspSigning()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1974,117 +1765,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVER_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServerAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getServerAuth()); hash = (37 * hash) + CLIENT_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientAuth()); hash = (37 * hash) + CODE_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCodeSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCodeSigning()); hash = (37 * hash) + EMAIL_PROTECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailProtection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEmailProtection()); hash = (37 * hash) + TIME_STAMPING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTimeStamping()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTimeStamping()); hash = (37 * hash) + OCSP_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOcspSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOcspSigning()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - 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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions 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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2094,52 +1878,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
      * certain common OIDs that could be specified as an extended key usage value.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class, - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder - .class); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2159,22 +1936,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions build() { - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2182,10 +1956,8 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOpti } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - buildPartial() { - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = - new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(this); + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions buildPartial() { + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(this); result.serverAuth_ = serverAuth_; result.clientAuth_ = clientAuth_; result.codeSigning_ = codeSigning_; @@ -2200,55 +1972,46 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOpti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other) { - if (other - == com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other) { + if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance()) return this; if (other.getServerAuth() != false) { setServerAuth(other.getServerAuth()); } @@ -2282,14 +2045,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2299,17 +2059,14 @@ public Builder mergeFrom( return this; } - private boolean serverAuth_; + private boolean serverAuth_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; - * * @return The serverAuth. */ @java.lang.Override @@ -2317,54 +2074,45 @@ public boolean getServerAuth() { return serverAuth_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; - * * @param value The serverAuth to set. * @return This builder for chaining. */ public Builder setServerAuth(boolean value) { - + serverAuth_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; - * * @return This builder for chaining. */ public Builder clearServerAuth() { - + serverAuth_ = false; onChanged(); return this; } - private boolean clientAuth_; + private boolean clientAuth_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; - * * @return The clientAuth. */ @java.lang.Override @@ -2372,54 +2120,45 @@ public boolean getClientAuth() { return clientAuth_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; - * * @param value The clientAuth to set. * @return This builder for chaining. */ public Builder setClientAuth(boolean value) { - + clientAuth_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; - * * @return This builder for chaining. */ public Builder clearClientAuth() { - + clientAuth_ = false; onChanged(); return this; } - private boolean codeSigning_; + private boolean codeSigning_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; - * * @return The codeSigning. */ @java.lang.Override @@ -2427,54 +2166,45 @@ public boolean getCodeSigning() { return codeSigning_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; - * * @param value The codeSigning to set. * @return This builder for chaining. */ public Builder setCodeSigning(boolean value) { - + codeSigning_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; - * * @return This builder for chaining. */ public Builder clearCodeSigning() { - + codeSigning_ = false; onChanged(); return this; } - private boolean emailProtection_; + private boolean emailProtection_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; - * * @return The emailProtection. */ @java.lang.Override @@ -2482,54 +2212,45 @@ public boolean getEmailProtection() { return emailProtection_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; - * * @param value The emailProtection to set. * @return This builder for chaining. */ public Builder setEmailProtection(boolean value) { - + emailProtection_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; - * * @return This builder for chaining. */ public Builder clearEmailProtection() { - + emailProtection_ = false; onChanged(); return this; } - private boolean timeStamping_; + private boolean timeStamping_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; - * * @return The timeStamping. */ @java.lang.Override @@ -2537,54 +2258,45 @@ public boolean getTimeStamping() { return timeStamping_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; - * * @param value The timeStamping to set. * @return This builder for chaining. */ public Builder setTimeStamping(boolean value) { - + timeStamping_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; - * * @return This builder for chaining. */ public Builder clearTimeStamping() { - + timeStamping_ = false; onChanged(); return this; } - private boolean ocspSigning_; + private boolean ocspSigning_ ; /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; - * * @return The ocspSigning. */ @java.lang.Override @@ -2592,43 +2304,36 @@ public boolean getOcspSigning() { return ocspSigning_; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; - * * @param value The ocspSigning to set. * @return This builder for chaining. */ public Builder setOcspSigning(boolean value) { - + ocspSigning_ = value; onChanged(); return this; } /** - * - * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; - * * @return This builder for chaining. */ public Builder clearOcspSigning() { - + ocspSigning_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2641,34 +2346,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) - private static final com.google.cloud.security.privateca.v1beta1.KeyUsage - .ExtendedKeyUsageOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtendedKeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtendedKeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendedKeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtendedKeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2680,24 +2381,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BASE_KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions baseKeyUsage_; /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; * @return Whether the baseKeyUsage field is set. */ @java.lang.Override @@ -2705,53 +2402,37 @@ public boolean hasBaseKeyUsage() { return baseKeyUsage_ != null; } /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; * @return The baseKeyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { - return baseKeyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() - : baseKeyUsage_; + return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; } /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder - getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { return getBaseKeyUsage(); } public static final int EXTENDED_KEY_USAGE_FIELD_NUMBER = 2; - private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - extendedKeyUsage_; + private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return Whether the extendedKeyUsage field is set. */ @java.lang.Override @@ -2759,133 +2440,95 @@ public boolean hasExtendedKeyUsage() { return extendedKeyUsage_ != null; } /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return The extendedKeyUsage. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - getExtendedKeyUsage() { - return extendedKeyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance() - : extendedKeyUsage_; + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { + return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; } /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder - getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { return getExtendedKeyUsage(); } public static final int UNKNOWN_EXTENDED_KEY_USAGES_FIELD_NUMBER = 3; - private java.util.List - unknownExtendedKeyUsages_; + private java.util.List unknownExtendedKeyUsages_; /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public java.util.List - getUnknownExtendedKeyUsagesList() { + public java.util.List getUnknownExtendedKeyUsagesList() { return unknownExtendedKeyUsages_; } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public java.util.List + public java.util.List getUnknownExtendedKeyUsagesOrBuilderList() { return unknownExtendedKeyUsages_; } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override public int getUnknownExtendedKeyUsagesCount() { return unknownExtendedKeyUsages_.size(); } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages( - int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages(int index) { return unknownExtendedKeyUsages_.get(index); } /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder - getUnknownExtendedKeyUsagesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( + int index) { return unknownExtendedKeyUsages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2897,7 +2540,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (baseKeyUsage_ != null) { output.writeMessage(1, getBaseKeyUsage()); } @@ -2917,15 +2561,16 @@ public int getSerializedSize() { size = 0; if (baseKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBaseKeyUsage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBaseKeyUsage()); } if (extendedKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExtendedKeyUsage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExtendedKeyUsage()); } for (int i = 0; i < unknownExtendedKeyUsages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, unknownExtendedKeyUsages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, unknownExtendedKeyUsages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2935,24 +2580,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.security.privateca.v1beta1.KeyUsage)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.KeyUsage other = - (com.google.cloud.security.privateca.v1beta1.KeyUsage) obj; + com.google.cloud.security.privateca.v1beta1.KeyUsage other = (com.google.cloud.security.privateca.v1beta1.KeyUsage) obj; if (hasBaseKeyUsage() != other.hasBaseKeyUsage()) return false; if (hasBaseKeyUsage()) { - if (!getBaseKeyUsage().equals(other.getBaseKeyUsage())) return false; + if (!getBaseKeyUsage() + .equals(other.getBaseKeyUsage())) return false; } if (hasExtendedKeyUsage() != other.hasExtendedKeyUsage()) return false; if (hasExtendedKeyUsage()) { - if (!getExtendedKeyUsage().equals(other.getExtendedKeyUsage())) return false; + if (!getExtendedKeyUsage() + .equals(other.getExtendedKeyUsage())) return false; } - if (!getUnknownExtendedKeyUsagesList().equals(other.getUnknownExtendedKeyUsagesList())) - return false; + if (!getUnknownExtendedKeyUsagesList() + .equals(other.getUnknownExtendedKeyUsagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2982,103 +2628,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.KeyUsage 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.security.privateca.v1beta1.KeyUsage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.KeyUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [KeyUsage][google.cloud.security.privateca.v1beta1.KeyUsage] describes key usage values that may appear in an X.509
    * certificate.
@@ -3086,23 +2725,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.KeyUsage)
       com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.class,
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.KeyUsage.newBuilder()
@@ -3110,17 +2747,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getUnknownExtendedKeyUsagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3146,9 +2783,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
@@ -3167,8 +2804,7 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.KeyUsage buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.KeyUsage result =
-          new com.google.cloud.security.privateca.v1beta1.KeyUsage(this);
+      com.google.cloud.security.privateca.v1beta1.KeyUsage result = new com.google.cloud.security.privateca.v1beta1.KeyUsage(this);
       int from_bitField0_ = bitField0_;
       if (baseKeyUsageBuilder_ == null) {
         result.baseKeyUsage_ = baseKeyUsage_;
@@ -3182,8 +2818,7 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage buildPartial() {
       }
       if (unknownExtendedKeyUsagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          unknownExtendedKeyUsages_ =
-              java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+          unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.unknownExtendedKeyUsages_ = unknownExtendedKeyUsages_;
@@ -3198,39 +2833,38 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.KeyUsage) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3238,8 +2872,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()) return this;
       if (other.hasBaseKeyUsage()) {
         mergeBaseKeyUsage(other.getBaseKeyUsage());
       }
@@ -3264,10 +2897,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage ot
             unknownExtendedKeyUsagesBuilder_ = null;
             unknownExtendedKeyUsages_ = other.unknownExtendedKeyUsages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            unknownExtendedKeyUsagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getUnknownExtendedKeyUsagesFieldBuilder()
-                    : null;
+            unknownExtendedKeyUsagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getUnknownExtendedKeyUsagesFieldBuilder() : null;
           } else {
             unknownExtendedKeyUsagesBuilder_.addAllMessages(other.unknownExtendedKeyUsages_);
           }
@@ -3292,8 +2924,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.KeyUsage) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.KeyUsage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -3302,64 +2933,45 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions baseKeyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions,
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder,
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder>
-        baseKeyUsageBuilder_;
+        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder> baseKeyUsageBuilder_;
     /**
-     *
-     *
      * 
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; * @return Whether the baseKeyUsage field is set. */ public boolean hasBaseKeyUsage() { return baseKeyUsageBuilder_ != null || baseKeyUsage_ != null; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; * @return The baseKeyUsage. */ public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { if (baseKeyUsageBuilder_ == null) { - return baseKeyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - .getDefaultInstance() - : baseKeyUsage_; + return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; } else { return baseKeyUsageBuilder_.getMessage(); } } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public Builder setBaseKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { + public Builder setBaseKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3373,18 +2985,14 @@ public Builder setBaseKeyUsage( return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ public Builder setBaseKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder builderForValue) { if (baseKeyUsageBuilder_ == null) { baseKeyUsage_ = builderForValue.build(); onChanged(); @@ -3395,24 +3003,17 @@ public Builder setBaseKeyUsage( return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public Builder mergeBaseKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { + public Builder mergeBaseKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (baseKeyUsage_ != null) { baseKeyUsage_ = - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder( - baseKeyUsage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder(baseKeyUsage_).mergeFrom(value).buildPartial(); } else { baseKeyUsage_ = value; } @@ -3424,14 +3025,11 @@ public Builder mergeBaseKeyUsage( return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ public Builder clearBaseKeyUsage() { if (baseKeyUsageBuilder_ == null) { @@ -3445,129 +3043,90 @@ public Builder clearBaseKeyUsage() { return this; } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder - getBaseKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder getBaseKeyUsageBuilder() { + onChanged(); return getBaseKeyUsageFieldBuilder().getBuilder(); } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder - getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { if (baseKeyUsageBuilder_ != null) { return baseKeyUsageBuilder_.getMessageOrBuilder(); } else { - return baseKeyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions - .getDefaultInstance() - : baseKeyUsage_; + return baseKeyUsage_ == null ? + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; } } /** - * - * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder> getBaseKeyUsageFieldBuilder() { if (baseKeyUsageBuilder_ == null) { - baseKeyUsageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder>( - getBaseKeyUsage(), getParentForChildren(), isClean()); + baseKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder>( + getBaseKeyUsage(), + getParentForChildren(), + isClean()); baseKeyUsage_ = null; } return baseKeyUsageBuilder_; } - private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - extendedKeyUsage_; + private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> - extendedKeyUsageBuilder_; + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> extendedKeyUsageBuilder_; /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return Whether the extendedKeyUsage field is set. */ public boolean hasExtendedKeyUsage() { return extendedKeyUsageBuilder_ != null || extendedKeyUsage_ != null; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return The extendedKeyUsage. */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - getExtendedKeyUsage() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { - return extendedKeyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance() - : extendedKeyUsage_; + return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; } else { return extendedKeyUsageBuilder_.getMessage(); } } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public Builder setExtendedKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder setExtendedKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3581,19 +3140,14 @@ public Builder setExtendedKeyUsage( return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ public Builder setExtendedKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder builderForValue) { if (extendedKeyUsageBuilder_ == null) { extendedKeyUsage_ = builderForValue.build(); onChanged(); @@ -3604,25 +3158,17 @@ public Builder setExtendedKeyUsage( return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public Builder mergeExtendedKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder mergeExtendedKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (extendedKeyUsage_ != null) { extendedKeyUsage_ = - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .newBuilder(extendedKeyUsage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.newBuilder(extendedKeyUsage_).mergeFrom(value).buildPartial(); } else { extendedKeyUsage_ = value; } @@ -3634,15 +3180,11 @@ public Builder mergeExtendedKeyUsage( return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ public Builder clearExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { @@ -3656,106 +3198,74 @@ public Builder clearExtendedKeyUsage() { return this; } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder - getExtendedKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder getExtendedKeyUsageBuilder() { + onChanged(); return getExtendedKeyUsageFieldBuilder().getBuilder(); } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder - getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { if (extendedKeyUsageBuilder_ != null) { return extendedKeyUsageBuilder_.getMessageOrBuilder(); } else { - return extendedKeyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .getDefaultInstance() - : extendedKeyUsage_; + return extendedKeyUsage_ == null ? + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; } } /** - * - * *
      * Detailed scenarios in which a key may be used.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> getExtendedKeyUsageFieldBuilder() { if (extendedKeyUsageBuilder_ == null) { - extendedKeyUsageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - .Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsage - .ExtendedKeyUsageOptionsOrBuilder>( - getExtendedKeyUsage(), getParentForChildren(), isClean()); + extendedKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder>( + getExtendedKeyUsage(), + getParentForChildren(), + isClean()); extendedKeyUsage_ = null; } return extendedKeyUsageBuilder_; } - private java.util.List - unknownExtendedKeyUsages_ = java.util.Collections.emptyList(); - + private java.util.List unknownExtendedKeyUsages_ = + java.util.Collections.emptyList(); private void ensureUnknownExtendedKeyUsagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - unknownExtendedKeyUsages_ = - new java.util.ArrayList( - unknownExtendedKeyUsages_); + unknownExtendedKeyUsages_ = new java.util.ArrayList(unknownExtendedKeyUsages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> - unknownExtendedKeyUsagesBuilder_; + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> unknownExtendedKeyUsagesBuilder_; /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public java.util.List - getUnknownExtendedKeyUsagesList() { + public java.util.List getUnknownExtendedKeyUsagesList() { if (unknownExtendedKeyUsagesBuilder_ == null) { return java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_); } else { @@ -3763,16 +3273,12 @@ private void ensureUnknownExtendedKeyUsagesIsMutable() { } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public int getUnknownExtendedKeyUsagesCount() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3782,19 +3288,14 @@ public int getUnknownExtendedKeyUsagesCount() { } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages( - int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { return unknownExtendedKeyUsages_.get(index); } else { @@ -3802,16 +3303,12 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKe } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -3828,16 +3325,12 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -3851,19 +3344,14 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public Builder addUnknownExtendedKeyUsages( - com.google.cloud.security.privateca.v1beta1.ObjectId value) { + public Builder addUnknownExtendedKeyUsages(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (unknownExtendedKeyUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3877,16 +3365,12 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -3903,16 +3387,12 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder addUnknownExtendedKeyUsages( com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -3926,16 +3406,12 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -3949,22 +3425,19 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder addAllUnknownExtendedKeyUsages( java.lang.Iterable values) { if (unknownExtendedKeyUsagesBuilder_ == null) { ensureUnknownExtendedKeyUsagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unknownExtendedKeyUsages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unknownExtendedKeyUsages_); onChanged(); } else { unknownExtendedKeyUsagesBuilder_.addAllMessages(values); @@ -3972,16 +3445,12 @@ public Builder addAllUnknownExtendedKeyUsages( return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder clearUnknownExtendedKeyUsages() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3994,16 +3463,12 @@ public Builder clearUnknownExtendedKeyUsages() { return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ public Builder removeUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -4016,55 +3481,42 @@ public Builder removeUnknownExtendedKeyUsages(int index) { return this; } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder - getUnknownExtendedKeyUsagesBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getUnknownExtendedKeyUsagesBuilder( + int index) { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder - getUnknownExtendedKeyUsagesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( + int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { - return unknownExtendedKeyUsages_.get(index); - } else { + return unknownExtendedKeyUsages_.get(index); } else { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public java.util.List - getUnknownExtendedKeyUsagesOrBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesOrBuilderList() { if (unknownExtendedKeyUsagesBuilder_ != null) { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilderList(); } else { @@ -4072,68 +3524,48 @@ public Builder removeUnknownExtendedKeyUsages(int index) { } } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder - addUnknownExtendedKeyUsagesBuilder() { - return getUnknownExtendedKeyUsagesFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder() { + return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder - addUnknownExtendedKeyUsagesBuilder(int index) { - return getUnknownExtendedKeyUsagesFieldBuilder() - .addBuilder( - index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder( + int index) { + return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - public java.util.List - getUnknownExtendedKeyUsagesBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesBuilderList() { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> getUnknownExtendedKeyUsagesFieldBuilder() { if (unknownExtendedKeyUsagesBuilder_ == null) { - unknownExtendedKeyUsagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( + unknownExtendedKeyUsagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( unknownExtendedKeyUsages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4142,9 +3574,9 @@ public Builder removeUnknownExtendedKeyUsages(int index) { } return unknownExtendedKeyUsagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4154,12 +3586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.KeyUsage) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.KeyUsage) private static final com.google.cloud.security.privateca.v1beta1.KeyUsage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.KeyUsage(); } @@ -4168,16 +3600,16 @@ public static com.google.cloud.security.privateca.v1beta1.KeyUsage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4192,4 +3624,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.KeyUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java similarity index 58% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java index c020d95f..ada0a512 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java @@ -1,176 +1,112 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface KeyUsageOrBuilder - extends +public interface KeyUsageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.KeyUsage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; * @return Whether the baseKeyUsage field is set. */ boolean hasBaseKeyUsage(); /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; * @return The baseKeyUsage. */ com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getBaseKeyUsage(); /** - * - * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder - getBaseKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder(); /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return Whether the extendedKeyUsage field is set. */ boolean hasExtendedKeyUsage(); /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; * @return The extendedKeyUsage. */ - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions - getExtendedKeyUsage(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage(); /** - * - * *
    * Detailed scenarios in which a key may be used.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; */ - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder - getExtendedKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - java.util.List + java.util.List getUnknownExtendedKeyUsagesList(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages(int index); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ int getUnknownExtendedKeyUsagesCount(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - java.util.List + java.util.List getUnknownExtendedKeyUsagesOrBuilderList(); /** - * - * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; */ - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder - getUnknownExtendedKeyUsagesOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( + int index); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java index 2a0d68ed..4eca2a1d 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest}
  */
-public final class ListCertificateAuthoritiesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateAuthoritiesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)
     ListCertificateAuthoritiesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesRequest.newBuilder() to construct.
-  private ListCertificateAuthoritiesRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateAuthoritiesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,15 +29,16 @@ private ListCertificateAuthoritiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateAuthoritiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,46 +57,42 @@ private ListCertificateAuthoritiesRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageToken_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              orderBy_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderBy_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -122,44 +100,36 @@ private ListCertificateAuthoritiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class,
-            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 @@ -168,33 +138,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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -205,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
    * include in the response.
@@ -217,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -228,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -245,30 +207,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. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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 { @@ -279,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -295,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -328,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -344,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -375,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -416,7 +372,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_); @@ -435,20 +392,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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other = - (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) 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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -475,111 +435,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - 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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest 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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -587,41 +533,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)
       com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class,
-              com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -639,22 +582,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest build() {
-      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -662,10 +602,8 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result =
-          new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -679,53 +617,46 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof
-          com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -760,14 +691,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -779,24 +707,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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; @@ -805,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -831,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
      * include in the response.
@@ -917,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -925,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
      * include in the response.
@@ -937,19 +840,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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
      * include in the response.
@@ -960,11 +860,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; @@ -972,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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; @@ -995,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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 { @@ -1018,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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; @@ -1083,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1105,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1127,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1189,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1211,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1233,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1304,33 +1173,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1342,8 +1208,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java index bb2a7dc3..c81e9884 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateAuthoritiesRequestOrBuilder - extends +public interface ListCertificateAuthoritiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
    * include in the response.
@@ -69,85 +42,69 @@ public interface ListCertificateAuthoritiesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java index e500c46f..5c138370 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse}
  */
-public final class ListCertificateAuthoritiesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListCertificateAuthoritiesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)
     ListCertificateAuthoritiesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesResponse.newBuilder() to construct.
-  private ListCertificateAuthoritiesResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListCertificateAuthoritiesResponse() {
     certificateAuthorities_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -47,15 +28,16 @@ private ListCertificateAuthoritiesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListCertificateAuthoritiesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,44 +57,37 @@ private ListCertificateAuthoritiesResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                certificateAuthorities_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1beta1.CertificateAuthority>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              certificateAuthorities_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              certificateAuthorities_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            certificateAuthorities_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                unreachable_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              unreachable_.add(s);
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              unreachable_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            unreachable_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,7 +95,8 @@ private ListCertificateAuthoritiesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         certificateAuthorities_ = java.util.Collections.unmodifiableList(certificateAuthorities_);
@@ -132,112 +108,82 @@ private ListCertificateAuthoritiesResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class,
-            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder.class);
   }
 
   public static final int CERTIFICATE_AUTHORITIES_FIELD_NUMBER = 1;
-  private java.util.List
-      certificateAuthorities_;
+  private java.util.List certificateAuthorities_;
   /**
-   *
-   *
    * 
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public java.util.List - getCertificateAuthoritiesList() { + public java.util.List getCertificateAuthoritiesList() { return certificateAuthorities_; } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + public java.util.List getCertificateAuthoritiesOrBuilderList() { return certificateAuthorities_; } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override public int getCertificateAuthoritiesCount() { return certificateAuthorities_.size(); } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities(int index) { return certificateAuthorities_.get(index); } /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthoritiesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( + int index) { return certificateAuthorities_.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
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -245,7 +191,6 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCerti
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -254,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -270,15 +214,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 { @@ -289,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -332,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateAuthorities_.size(); i++) { output.writeMessage(1, certificateAuthorities_.get(i)); } @@ -380,9 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateAuthorities_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, certificateAuthorities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateAuthorities_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -403,20 +337,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.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other = - (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) obj; - if (!getCertificateAuthoritiesList().equals(other.getCertificateAuthoritiesList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificateAuthoritiesList() + .equals(other.getCertificateAuthoritiesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -443,156 +376,137 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - 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.security.privateca.v1beta1.ListCertificateAuthoritiesResponse 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.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder - .class); + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCertificateAuthoritiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -610,22 +524,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse build() { - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -633,10 +544,8 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRes } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = - new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(this); + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse buildPartial() { + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(this); int from_bitField0_ = bitField0_; if (certificateAuthoritiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -661,53 +570,46 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other) { + if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.getDefaultInstance()) return this; if (certificateAuthoritiesBuilder_ == null) { if (!other.certificateAuthorities_.isEmpty()) { if (certificateAuthorities_.isEmpty()) { @@ -726,10 +628,9 @@ public Builder mergeFrom( certificateAuthoritiesBuilder_ = null; certificateAuthorities_ = other.certificateAuthorities_; bitField0_ = (bitField0_ & ~0x00000001); - certificateAuthoritiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificateAuthoritiesFieldBuilder() - : null; + certificateAuthoritiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificateAuthoritiesFieldBuilder() : null; } else { certificateAuthoritiesBuilder_.addAllMessages(other.certificateAuthorities_); } @@ -764,14 +665,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -780,41 +678,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - certificateAuthorities_ = java.util.Collections.emptyList(); - + private java.util.List certificateAuthorities_ = + java.util.Collections.emptyList(); private void ensureCertificateAuthoritiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificateAuthorities_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority>( - certificateAuthorities_); + certificateAuthorities_ = new java.util.ArrayList(certificateAuthorities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> - certificateAuthoritiesBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> certificateAuthoritiesBuilder_; /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public java.util.List - getCertificateAuthoritiesList() { + public java.util.List getCertificateAuthoritiesList() { if (certificateAuthoritiesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateAuthorities_); } else { @@ -822,15 +707,11 @@ private void ensureCertificateAuthoritiesIsMutable() { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public int getCertificateAuthoritiesCount() { if (certificateAuthoritiesBuilder_ == null) { @@ -840,18 +721,13 @@ public int getCertificateAuthoritiesCount() { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getCertificateAuthorities(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { return certificateAuthorities_.get(index); } else { @@ -859,15 +735,11 @@ public int getCertificateAuthoritiesCount() { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder setCertificateAuthorities( int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { @@ -884,19 +756,14 @@ public Builder setCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder setCertificateAuthorities( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.set(index, builderForValue.build()); @@ -907,18 +774,13 @@ public Builder setCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public Builder addCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder addCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthoritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -932,15 +794,11 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder addCertificateAuthorities( int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { @@ -957,15 +815,11 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder addCertificateAuthorities( com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { @@ -979,19 +833,14 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder addCertificateAuthorities( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.add(index, builderForValue.build()); @@ -1002,23 +851,18 @@ public Builder addCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder addAllCertificateAuthorities( - java.lang.Iterable< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthority> - values) { + java.lang.Iterable values) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateAuthorities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateAuthorities_); onChanged(); } else { certificateAuthoritiesBuilder_.addAllMessages(values); @@ -1026,15 +870,11 @@ public Builder addAllCertificateAuthorities( return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder clearCertificateAuthorities() { if (certificateAuthoritiesBuilder_ == null) { @@ -1047,15 +887,11 @@ public Builder clearCertificateAuthorities() { return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ public Builder removeCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { @@ -1068,53 +904,39 @@ public Builder removeCertificateAuthorities(int index) { return this; } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder - getCertificateAuthoritiesBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder getCertificateAuthoritiesBuilder( + int index) { return getCertificateAuthoritiesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthoritiesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( + int index) { if (certificateAuthoritiesBuilder_ == null) { - return certificateAuthorities_.get(index); - } else { + return certificateAuthorities_.get(index); } else { return certificateAuthoritiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> - getCertificateAuthoritiesOrBuilderList() { + public java.util.List + getCertificateAuthoritiesOrBuilderList() { if (certificateAuthoritiesBuilder_ != null) { return certificateAuthoritiesBuilder_.getMessageOrBuilderList(); } else { @@ -1122,69 +944,45 @@ public Builder removeCertificateAuthorities(int index) { } } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder - addCertificateAuthoritiesBuilder() { - return getCertificateAuthoritiesFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder() { + return getCertificateAuthoritiesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder - addCertificateAuthoritiesBuilder(int index) { - return getCertificateAuthoritiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder( + int index) { + return getCertificateAuthoritiesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - public java.util.List - getCertificateAuthoritiesBuilderList() { + public java.util.List + getCertificateAuthoritiesBuilderList() { return getCertificateAuthoritiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesFieldBuilder() { if (certificateAuthoritiesBuilder_ == null) { - certificateAuthoritiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( + certificateAuthoritiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( certificateAuthorities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1196,8 +994,6 @@ public Builder removeCertificateAuthorities(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1205,13 +1001,13 @@ public Builder removeCertificateAuthorities(int index) {
      * 
* * 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; @@ -1220,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1229,14 +1023,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 { @@ -1244,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1253,22 +1046,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
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1276,18 +1067,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
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1295,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1363,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1456,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1489,34 +1255,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) - private static final com.google.cloud.security.privateca.v1beta1 - .ListCertificateAuthoritiesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1528,8 +1290,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java index 21eb6564..6106367e 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java @@ -1,97 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateAuthoritiesResponseOrBuilder - extends +public interface ListCertificateAuthoritiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - java.util.List + java.util.List getCertificateAuthoritiesList(); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities( - int index); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities(int index); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ int getCertificateAuthoritiesCount(); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + java.util.List getCertificateAuthoritiesOrBuilderList(); /** - * - * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthoritiesOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -99,13 +59,10 @@ com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateA
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -113,59 +70,49 @@ com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateA
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java index d1e1d1f5..f5902396 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java @@ -1,46 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
  * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} */ -public final class ListCertificateRevocationListsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificateRevocationListsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) ListCertificateRevocationListsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificateRevocationListsRequest.newBuilder() to construct. - private ListCertificateRevocationListsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListCertificateRevocationListsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificateRevocationListsRequest() { parent_ = ""; pageToken_ = ""; @@ -50,15 +29,16 @@ private ListCertificateRevocationListsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificateRevocationListsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCertificateRevocationListsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,46 +57,42 @@ private ListCertificateRevocationListsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -124,44 +100,36 @@ private ListCertificateRevocationListsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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 @@ -170,33 +138,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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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 { @@ -207,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -219,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -230,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -247,30 +207,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. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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 { @@ -281,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -297,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -330,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -346,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -377,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -418,7 +372,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_); @@ -437,21 +392,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.security.privateca.v1beta1.ListCertificateRevocationListsRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest other = - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) 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.security.privateca.v1beta1.ListCertificateRevocationListsRequest other = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,155 +435,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - 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.security.privateca.v1beta1.ListCertificateRevocationListsRequest 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.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - .class, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -644,23 +582,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - build() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest build() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -668,11 +602,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = - new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest( - this); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -686,54 +617,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -768,14 +691,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -787,24 +707,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * string parent = 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; @@ -813,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * string parent = 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 { @@ -839,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * string 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * 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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -925,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -933,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -945,19 +840,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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -968,11 +860,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; @@ -980,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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; @@ -1003,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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 { @@ -1026,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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; @@ -1091,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1113,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1135,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1197,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1219,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1241,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1312,34 +1173,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1351,8 +1208,9 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java index a378a19e..1424667d 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateRevocationListsRequestOrBuilder - extends +public interface ListCertificateRevocationListsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -69,85 +42,69 @@ public interface ListCertificateRevocationListsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java similarity index 62% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java index 4ca43739..6a742276 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java @@ -1,46 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
  * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} */ -public final class ListCertificateRevocationListsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificateRevocationListsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) ListCertificateRevocationListsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificateRevocationListsResponse.newBuilder() to construct. - private ListCertificateRevocationListsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListCertificateRevocationListsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificateRevocationListsResponse() { certificateRevocationLists_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -49,15 +28,16 @@ private ListCertificateRevocationListsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificateRevocationListsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCertificateRevocationListsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,45 +57,37 @@ private ListCertificateRevocationListsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>(); - mutable_bitField0_ |= 0x00000001; - } - certificateRevocationLists_.add( - input.readMessage( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificateRevocationLists_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + certificateRevocationLists_.add( + input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,11 +95,11 @@ private ListCertificateRevocationListsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = - java.util.Collections.unmodifiableList(certificateRevocationLists_); + certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { unreachable_ = unreachable_.getUnmodifiableView(); @@ -136,113 +108,82 @@ private ListCertificateRevocationListsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - .class, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.Builder.class); } public static final int CERTIFICATE_REVOCATION_LISTS_FIELD_NUMBER = 1; - private java.util.List - certificateRevocationLists_; + private java.util.List certificateRevocationLists_; /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public java.util.List - getCertificateRevocationListsList() { + public java.util.List getCertificateRevocationListsList() { return certificateRevocationLists_; } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + public java.util.List getCertificateRevocationListsOrBuilderList() { return certificateRevocationLists_; } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override public int getCertificateRevocationListsCount() { return certificateRevocationLists_.size(); } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationLists(int index) { return certificateRevocationLists_.get(index); } /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( + int index) { return certificateRevocationLists_.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
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -250,7 +191,6 @@ public int getCertificateRevocationListsCount() {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -259,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -275,15 +214,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 { @@ -294,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -337,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateRevocationLists_.size(); i++) { output.writeMessage(1, certificateRevocationLists_.get(i)); } @@ -385,9 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateRevocationLists_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, certificateRevocationLists_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateRevocationLists_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -408,20 +337,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.security.privateca.v1beta1.ListCertificateRevocationListsResponse)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other = - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) obj; - if (!getCertificateRevocationListsList().equals(other.getCertificateRevocationListsList())) - return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificateRevocationListsList() + .equals(other.getCertificateRevocationListsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,158 +376,137 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - 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.security.privateca.v1beta1.ListCertificateRevocationListsResponse 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.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - .class, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCertificateRevocationListsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -617,23 +524,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - build() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse build() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -641,16 +544,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = - new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse( - this); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse buildPartial() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse(this); int from_bitField0_ = bitField0_; if (certificateRevocationListsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = - java.util.Collections.unmodifiableList(certificateRevocationLists_); + certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_); bitField0_ = (bitField0_ & ~0x00000001); } result.certificateRevocationLists_ = certificateRevocationLists_; @@ -671,54 +570,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other) { + if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.getDefaultInstance()) return this; if (certificateRevocationListsBuilder_ == null) { if (!other.certificateRevocationLists_.isEmpty()) { if (certificateRevocationLists_.isEmpty()) { @@ -737,10 +628,9 @@ public Builder mergeFrom( certificateRevocationListsBuilder_ = null; certificateRevocationLists_ = other.certificateRevocationLists_; bitField0_ = (bitField0_ & ~0x00000001); - certificateRevocationListsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificateRevocationListsFieldBuilder() - : null; + certificateRevocationListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificateRevocationListsFieldBuilder() : null; } else { certificateRevocationListsBuilder_.addAllMessages(other.certificateRevocationLists_); } @@ -775,14 +665,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -791,41 +678,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - certificateRevocationLists_ = java.util.Collections.emptyList(); - + private java.util.List certificateRevocationLists_ = + java.util.Collections.emptyList(); private void ensureCertificateRevocationListsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>( - certificateRevocationLists_); + certificateRevocationLists_ = new java.util.ArrayList(certificateRevocationLists_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> - certificateRevocationListsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> certificateRevocationListsBuilder_; /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public java.util.List - getCertificateRevocationListsList() { + public java.util.List getCertificateRevocationListsList() { if (certificateRevocationListsBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateRevocationLists_); } else { @@ -833,15 +707,11 @@ private void ensureCertificateRevocationListsIsMutable() { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public int getCertificateRevocationListsCount() { if (certificateRevocationListsBuilder_ == null) { @@ -851,18 +721,13 @@ public int getCertificateRevocationListsCount() { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { return certificateRevocationLists_.get(index); } else { @@ -870,15 +735,11 @@ public int getCertificateRevocationListsCount() { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder setCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { @@ -895,20 +756,14 @@ public Builder setCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder setCertificateRevocationLists( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.set(index, builderForValue.build()); @@ -919,18 +774,13 @@ public Builder setCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public Builder addCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { + public Builder addCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { if (certificateRevocationListsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -944,15 +794,11 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { @@ -969,19 +815,14 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.add(builderForValue.build()); @@ -992,20 +833,14 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addCertificateRevocationLists( - int index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.add(index, builderForValue.build()); @@ -1016,23 +851,18 @@ public Builder addCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder addAllCertificateRevocationLists( - java.lang.Iterable< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> - values) { + java.lang.Iterable values) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateRevocationLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateRevocationLists_); onChanged(); } else { certificateRevocationListsBuilder_.addAllMessages(values); @@ -1040,15 +870,11 @@ public Builder addAllCertificateRevocationLists( return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder clearCertificateRevocationLists() { if (certificateRevocationListsBuilder_ == null) { @@ -1061,15 +887,11 @@ public Builder clearCertificateRevocationLists() { return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ public Builder removeCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { @@ -1082,54 +904,39 @@ public Builder removeCertificateRevocationLists(int index) { return this; } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - getCertificateRevocationListsBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder getCertificateRevocationListsBuilder( + int index) { return getCertificateRevocationListsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( + int index) { if (certificateRevocationListsBuilder_ == null) { - return certificateRevocationLists_.get(index); - } else { + return certificateRevocationLists_.get(index); } else { return certificateRevocationListsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public java.util.List< - ? extends - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> - getCertificateRevocationListsOrBuilderList() { + public java.util.List + getCertificateRevocationListsOrBuilderList() { if (certificateRevocationListsBuilder_ != null) { return certificateRevocationListsBuilder_.getMessageOrBuilderList(); } else { @@ -1137,70 +944,45 @@ public Builder removeCertificateRevocationLists(int index) { } } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - addCertificateRevocationListsBuilder() { - return getCertificateRevocationListsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder() { + return getCertificateRevocationListsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - addCertificateRevocationListsBuilder(int index) { - return getCertificateRevocationListsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder( + int index) { + return getCertificateRevocationListsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance()); } /** - * - * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - public java.util.List< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder> - getCertificateRevocationListsBuilderList() { + public java.util.List + getCertificateRevocationListsBuilderList() { return getCertificateRevocationListsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> getCertificateRevocationListsFieldBuilder() { if (certificateRevocationListsBuilder_ == null) { - certificateRevocationListsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( + certificateRevocationListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( certificateRevocationLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1212,8 +994,6 @@ public Builder removeCertificateRevocationLists(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1221,13 +1001,13 @@ public Builder removeCertificateRevocationLists(int index) {
      * 
* * 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; @@ -1236,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1245,14 +1023,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 { @@ -1260,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1269,22 +1046,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
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1292,18 +1067,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
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1311,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1379,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1472,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1505,34 +1255,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) - private static final com.google.cloud.security.privateca.v1beta1 - .ListCertificateRevocationListsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1544,8 +1290,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java index b9f5b669..3dcf680c 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java @@ -1,97 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateRevocationListsResponseOrBuilder - extends +public interface ListCertificateRevocationListsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - java.util.List + java.util.List getCertificateRevocationListsList(); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationLists(int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationLists(int index); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ int getCertificateRevocationListsCount(); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + java.util.List getCertificateRevocationListsOrBuilderList(); /** - * - * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListsOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -99,13 +59,10 @@ public interface ListCertificateRevocationListsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -113,59 +70,49 @@ public interface ListCertificateRevocationListsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java index f90c2cbc..30744272 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesRequest} */ -public final class ListCertificatesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificatesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) ListCertificatesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificatesRequest.newBuilder() to construct. private ListCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificatesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListCertificatesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCertificatesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListCertificatesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,43 +99,36 @@ private ListCertificatesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.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
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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 @@ -165,33 +137,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
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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 { @@ -202,8 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -225,15 +192,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -242,30 +206,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. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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 { @@ -276,8 +240,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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -285,7 +247,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -294,15 +255,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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -310,15 +270,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 { @@ -329,8 +290,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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -338,7 +297,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -347,15 +305,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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -363,15 +320,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 { @@ -380,7 +338,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -421,7 +379,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_); @@ -440,19 +399,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.security.privateca.v1beta1.ListCertificatesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest other = - (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) 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.security.privateca.v1beta1.ListCertificatesRequest other = (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,145 +443,134 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest 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.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - 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.security.privateca.v1beta1.ListCertificatesRequest 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.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) com.google.cloud.security.privateca.v1beta1.ListCertificatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -636,16 +588,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.getDefaultInstance(); } @java.lang.Override @@ -659,8 +609,7 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest build @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest result = - new com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest(this); + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest result = new com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -674,51 +623,46 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -757,9 +701,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -771,24 +713,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * string parent = 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; @@ -797,25 +735,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * string parent = 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 { @@ -823,82 +758,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * 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
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * string 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
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * - * 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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -909,7 +829,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -917,8 +836,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -929,19 +846,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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -952,11 +866,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; @@ -964,21 +877,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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; @@ -987,22 +898,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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 { @@ -1010,64 +920,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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; @@ -1075,8 +978,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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1084,13 +985,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; @@ -1099,8 +1000,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1108,14 +1007,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 { @@ -1123,8 +1023,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1132,22 +1030,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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1155,18 +1051,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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1174,16 +1067,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; @@ -1191,8 +1084,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1200,13 +1091,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; @@ -1215,8 +1106,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1224,14 +1113,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 { @@ -1239,8 +1129,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1248,22 +1136,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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1271,18 +1157,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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1290,23 +1173,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); } @@ -1316,32 +1199,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1353,8 +1234,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java index 0f0c7eb1..224e72d0 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificatesRequestOrBuilder - extends +public interface ListCertificatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * - * string parent = 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. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -69,41 +42,33 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -111,13 +76,10 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -125,14 +87,12 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * 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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -140,13 +100,10 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -154,8 +111,8 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java similarity index 73% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java index 87e58a1d..603e62e0 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Response message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesResponse} */ -public final class ListCertificatesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificatesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) ListCertificatesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificatesResponse.newBuilder() to construct. private ListCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificatesResponse() { certificates_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListCertificatesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCertificatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,44 +56,37 @@ private ListCertificatesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = - new java.util.ArrayList< - com.google.cloud.security.privateca.v1beta1.Certificate>(); - mutable_bitField0_ |= 0x00000001; - } - certificates_.add( - input.readMessage( - com.google.cloud.security.privateca.v1beta1.Certificate.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + certificates_.add( + input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,7 +94,8 @@ private ListCertificatesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); @@ -130,27 +107,22 @@ private ListCertificatesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private java.util.List certificates_; /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -158,13 +130,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List - getCertificatesList() { + public java.util.List getCertificatesList() { return certificates_; } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -172,13 +141,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -190,8 +157,6 @@ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -203,8 +168,6 @@ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificates(i return certificates_.get(index); } /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -220,8 +183,6 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti 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
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -229,7 +190,6 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -238,15 +198,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
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -254,15 +213,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -273,42 +233,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -316,23 +268,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } @@ -364,7 +314,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -385,17 +336,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.security.privateca.v1beta1.ListCertificatesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other = - (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other = (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) obj; - if (!getCertificatesList().equals(other.getCertificatesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -423,147 +376,135 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse 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.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - 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.security.privateca.v1beta1.ListCertificatesResponse 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.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) com.google.cloud.security.privateca.v1beta1.ListCertificatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,16 +522,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.getDefaultInstance(); } @java.lang.Override @@ -604,8 +543,7 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse buil @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse result = - new com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse(this); + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse result = new com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse(this); int from_bitField0_ = bitField0_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -630,51 +568,46 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other) { + if (other == com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.getDefaultInstance()) return this; if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { @@ -693,10 +626,9 @@ public Builder mergeFrom( certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); - certificatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificatesFieldBuilder() - : null; + certificatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificatesFieldBuilder() : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } @@ -735,9 +667,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -746,38 +676,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List certificates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificates_ = - new java.util.ArrayList( - certificates_); + certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> - certificatesBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> certificatesBuilder_; /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public java.util.List - getCertificatesList() { + public java.util.List getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { @@ -785,8 +705,6 @@ private void ensureCertificatesIsMutable() { } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -801,8 +719,6 @@ public int getCertificatesCount() { } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -817,8 +733,6 @@ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificates(i } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -840,8 +754,6 @@ public Builder setCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -849,8 +761,7 @@ public Builder setCertificates( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ public Builder setCertificates( - int index, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.set(index, builderForValue.build()); @@ -861,8 +772,6 @@ public Builder setCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -883,8 +792,6 @@ public Builder addCertificates(com.google.cloud.security.privateca.v1beta1.Certi return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -906,8 +813,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -926,8 +831,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -935,8 +838,7 @@ public Builder addCertificates( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ public Builder addCertificates( - int index, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(index, builderForValue.build()); @@ -947,8 +849,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -956,11 +856,11 @@ public Builder addCertificates( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ public Builder addAllCertificates( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); @@ -968,8 +868,6 @@ public Builder addAllCertificates( return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -987,8 +885,6 @@ public Builder clearCertificates() { return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -1006,8 +902,6 @@ public Builder removeCertificates(int index) { return this; } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -1019,34 +913,28 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif return getCertificatesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder - getCertificatesOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificatesOrBuilder( + int index) { if (certificatesBuilder_ == null) { - return certificates_.get(index); - } else { + return certificates_.get(index); } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> - getCertificatesOrBuilderList() { + public java.util.List + getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { @@ -1054,22 +942,17 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif } } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public com.google.cloud.security.privateca.v1beta1.Certificate.Builder - addCertificatesBuilder() { - return getCertificatesFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertificatesBuilder() { + return getCertificatesFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -1078,36 +961,30 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif */ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertificatesBuilder( int index) { - return getCertificatesFieldBuilder() - .addBuilder( - index, com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); } /** - * - * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public java.util.List - getCertificatesBuilderList() { + public java.util.List + getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { - certificatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( - certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( + certificates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); certificates_ = null; } return certificatesBuilder_; @@ -1115,8 +992,6 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertif private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1124,13 +999,13 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertif
      * 
* * 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; @@ -1139,8 +1014,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1148,14 +1021,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 { @@ -1163,8 +1037,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1172,22 +1044,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
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1195,18 +1065,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
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1214,67 +1081,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1282,90 +1139,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1375,30 +1222,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1408,32 +1253,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1445,8 +1288,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java similarity index 76% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java index e43dae2a..3673ce7d 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificatesResponseOrBuilder - extends +public interface ListCertificatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - java.util.List getCertificatesList(); + java.util.List + getCertificatesList(); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -44,8 +25,6 @@ public interface ListCertificatesResponseOrBuilder */ com.google.cloud.security.privateca.v1beta1.Certificate getCertificates(int index); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -54,19 +33,15 @@ public interface ListCertificatesResponseOrBuilder */ int getCertificatesCount(); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - java.util.List + java.util.List getCertificatesOrBuilderList(); /** - * - * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -77,8 +52,6 @@ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificates int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -86,13 +59,10 @@ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificates
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -100,59 +70,49 @@ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificates
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java index c0ae2a06..f45008f8 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest}
  */
-public final class ListReusableConfigsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListReusableConfigsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)
     ListReusableConfigsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListReusableConfigsRequest.newBuilder() to construct.
   private ListReusableConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListReusableConfigsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -47,15 +29,16 @@ private ListReusableConfigsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListReusableConfigsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListReusableConfigsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,46 +57,42 @@ private ListReusableConfigsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pageToken_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              orderBy_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderBy_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -121,43 +100,36 @@ private ListReusableConfigsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class,
-            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.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
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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 @@ -166,33 +138,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
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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 { @@ -203,8 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Limit on the number of
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -215,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -226,15 +193,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -243,30 +207,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. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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 { @@ -277,14 +241,11 @@ 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -293,29 +254,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -326,14 +287,11 @@ 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -342,29 +300,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -373,7 +331,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -385,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -414,7 +372,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_); @@ -433,19 +392,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.security.privateca.v1beta1.ListReusableConfigsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest other = - (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) 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.security.privateca.v1beta1.ListReusableConfigsRequest other = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -473,105 +436,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest 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.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest - 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.security.privateca.v1beta1.ListReusableConfigsRequest 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.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -579,40 +533,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)
       com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class,
-              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -630,22 +582,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest build() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -654,8 +603,7 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest bu
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result =
-          new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest(this);
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -669,51 +617,46 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest bu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -752,9 +695,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -766,24 +707,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name of the location associated with the
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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; @@ -792,25 +729,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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 { @@ -818,82 +752,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the location associated with the
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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. Limit on the number of
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -904,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -912,8 +830,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Limit on the number of
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -924,19 +840,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. Limit on the number of
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -947,11 +860,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; @@ -959,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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; @@ -982,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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 { @@ -1005,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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; @@ -1070,20 +972,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -1092,21 +992,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1114,61 +1013,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1176,20 +1068,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1198,21 +1088,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1220,68 +1109,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1291,32 +1173,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReusableConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReusableConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReusableConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReusableConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1328,8 +1208,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java index a2865dd6..238ad3ed 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListReusableConfigsRequestOrBuilder - extends +public interface ListReusableConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the location associated with the
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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. Limit on the number of
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -69,85 +42,69 @@ public interface ListReusableConfigsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java index 1c908faa..47bc8183 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Response message for
  * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse}
  */
-public final class ListReusableConfigsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListReusableConfigsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)
     ListReusableConfigsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListReusableConfigsResponse.newBuilder() to construct.
   private ListReusableConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListReusableConfigsResponse() {
     reusableConfigs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,15 +28,16 @@ private ListReusableConfigsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListReusableConfigsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListReusableConfigsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,44 +57,37 @@ private ListReusableConfigsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                reusableConfigs_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1beta1.ReusableConfig>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              reusableConfigs_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ReusableConfig.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              reusableConfigs_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reusableConfigs_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfig.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                unreachable_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              unreachable_.add(s);
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              unreachable_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            unreachable_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -119,7 +95,8 @@ private ListReusableConfigsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         reusableConfigs_ = java.util.Collections.unmodifiableList(reusableConfigs_);
@@ -131,105 +108,82 @@ private ListReusableConfigsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class,
-            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder.class);
   }
 
   public static final int REUSABLE_CONFIGS_FIELD_NUMBER = 1;
-  private java.util.List
-      reusableConfigs_;
+  private java.util.List reusableConfigs_;
   /**
-   *
-   *
    * 
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ @java.lang.Override - public java.util.List - getReusableConfigsList() { + public java.util.List getReusableConfigsList() { return reusableConfigs_; } /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> + public java.util.List getReusableConfigsOrBuilderList() { return reusableConfigs_; } /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ @java.lang.Override public int getReusableConfigsCount() { return reusableConfigs_.size(); } /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs(int index) { return reusableConfigs_.get(index); } /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder - getReusableConfigsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigsOrBuilder( + int index) { return reusableConfigs_.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
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -237,7 +191,6 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableCon
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -246,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -262,15 +214,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 { @@ -281,42 +234,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -324,23 +269,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < reusableConfigs_.size(); i++) { output.writeMessage(1, reusableConfigs_.get(i)); } @@ -372,7 +315,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < reusableConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reusableConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, reusableConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -393,17 +337,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.security.privateca.v1beta1.ListReusableConfigsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other = - (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) obj; - if (!getReusableConfigsList().equals(other.getReusableConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getReusableConfigsList() + .equals(other.getReusableConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -431,105 +377,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse 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.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse - 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.security.privateca.v1beta1.ListReusableConfigsResponse 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.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -537,43 +474,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)
       com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class,
-              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getReusableConfigsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,22 +524,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse build() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -615,8 +545,7 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result =
-          new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(this);
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(this);
       int from_bitField0_ = bitField0_;
       if (reusableConfigsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -641,52 +570,46 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse b
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) other);
+      if (other instanceof com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) {
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.getDefaultInstance()) return this;
       if (reusableConfigsBuilder_ == null) {
         if (!other.reusableConfigs_.isEmpty()) {
           if (reusableConfigs_.isEmpty()) {
@@ -705,10 +628,9 @@ public Builder mergeFrom(
             reusableConfigsBuilder_ = null;
             reusableConfigs_ = other.reusableConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            reusableConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReusableConfigsFieldBuilder()
-                    : null;
+            reusableConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReusableConfigsFieldBuilder() : null;
           } else {
             reusableConfigsBuilder_.addAllMessages(other.reusableConfigs_);
           }
@@ -747,9 +669,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -758,39 +678,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        reusableConfigs_ = java.util.Collections.emptyList();
-
+    private java.util.List reusableConfigs_ =
+      java.util.Collections.emptyList();
     private void ensureReusableConfigsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        reusableConfigs_ =
-            new java.util.ArrayList(
-                reusableConfigs_);
+        reusableConfigs_ = new java.util.ArrayList(reusableConfigs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.ReusableConfig,
-            com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder,
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>
-        reusableConfigsBuilder_;
+        com.google.cloud.security.privateca.v1beta1.ReusableConfig, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> reusableConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public java.util.List - getReusableConfigsList() { + public java.util.List getReusableConfigsList() { if (reusableConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(reusableConfigs_); } else { @@ -798,14 +707,11 @@ private void ensureReusableConfigsIsMutable() { } } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public int getReusableConfigsCount() { if (reusableConfigsBuilder_ == null) { @@ -815,17 +721,13 @@ public int getReusableConfigsCount() { } } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs(int index) { if (reusableConfigsBuilder_ == null) { return reusableConfigs_.get(index); } else { @@ -833,14 +735,11 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableCon } } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder setReusableConfigs( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { @@ -857,18 +756,14 @@ public Builder setReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder setReusableConfigs( - int index, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { if (reusableConfigsBuilder_ == null) { ensureReusableConfigsIsMutable(); reusableConfigs_.set(index, builderForValue.build()); @@ -879,17 +774,13 @@ public Builder setReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public Builder addReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { + public Builder addReusableConfigs(com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { if (reusableConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -903,14 +794,11 @@ public Builder addReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder addReusableConfigs( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { @@ -927,14 +815,11 @@ public Builder addReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder addReusableConfigs( com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { @@ -948,18 +833,14 @@ public Builder addReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder addReusableConfigs( - int index, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { if (reusableConfigsBuilder_ == null) { ensureReusableConfigsIsMutable(); reusableConfigs_.add(index, builderForValue.build()); @@ -970,21 +851,18 @@ public Builder addReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder addAllReusableConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (reusableConfigsBuilder_ == null) { ensureReusableConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reusableConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reusableConfigs_); onChanged(); } else { reusableConfigsBuilder_.addAllMessages(values); @@ -992,14 +870,11 @@ public Builder addAllReusableConfigs( return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder clearReusableConfigs() { if (reusableConfigsBuilder_ == null) { @@ -1012,14 +887,11 @@ public Builder clearReusableConfigs() { return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ public Builder removeReusableConfigs(int index) { if (reusableConfigsBuilder_ == null) { @@ -1032,50 +904,39 @@ public Builder removeReusableConfigs(int index) { return this; } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder - getReusableConfigsBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder getReusableConfigsBuilder( + int index) { return getReusableConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder - getReusableConfigsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigsOrBuilder( + int index) { if (reusableConfigsBuilder_ == null) { - return reusableConfigs_.get(index); - } else { + return reusableConfigs_.get(index); } else { return reusableConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> - getReusableConfigsOrBuilderList() { + public java.util.List + getReusableConfigsOrBuilderList() { if (reusableConfigsBuilder_ != null) { return reusableConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1083,64 +944,45 @@ public Builder removeReusableConfigs(int index) { } } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder - addReusableConfigsBuilder() { - return getReusableConfigsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder addReusableConfigsBuilder() { + return getReusableConfigsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder - addReusableConfigsBuilder(int index) { - return getReusableConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder addReusableConfigsBuilder( + int index) { + return getReusableConfigsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); } /** - * - * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - public java.util.List - getReusableConfigsBuilderList() { + public java.util.List + getReusableConfigsBuilderList() { return getReusableConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfig, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> getReusableConfigsFieldBuilder() { if (reusableConfigsBuilder_ == null) { - reusableConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, - com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>( + reusableConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfig, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>( reusableConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1152,8 +994,6 @@ public Builder removeReusableConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1161,13 +1001,13 @@ public Builder removeReusableConfigs(int index) {
      * 
* * 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; @@ -1176,8 +1016,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1185,14 +1023,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 { @@ -1200,8 +1039,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1209,22 +1046,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
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1232,18 +1067,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
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1251,67 +1083,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1319,90 +1141,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1412,30 +1224,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1445,33 +1255,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) - private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReusableConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReusableConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReusableConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReusableConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1483,8 +1290,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java index db4abc61..9d0d5cd0 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java @@ -1,90 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListReusableConfigsResponseOrBuilder - extends +public interface ListReusableConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - java.util.List + java.util.List getReusableConfigsList(); /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs(int index); /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ int getReusableConfigsCount(); /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ - java.util.List + java.util.List getReusableConfigsOrBuilderList(); /** - * - * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; - * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; */ com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigsOrBuilder( int index); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -92,13 +59,10 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableC
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results. Pass this value in
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -106,59 +70,49 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableC
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java index 3002b8e5..7aa1ae7c 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * An [ObjectId][google.cloud.security.privateca.v1beta1.ObjectId] specifies an object identifier (OID). These provide context
  * and describe types in ASN.1 messages.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ObjectId}
  */
-public final class ObjectId extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ObjectId extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ObjectId)
     ObjectIdOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ObjectId.newBuilder() to construct.
   private ObjectId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ObjectId() {
     objectIdPath_ = emptyIntList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ObjectId();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ObjectId(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,36 +55,34 @@ private ObjectId(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                objectIdPath_ = newIntList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              objectIdPath_.addInt(input.readInt32());
-              break;
+          case 8: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              objectIdPath_ = newIntList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            objectIdPath_.addInt(input.readInt32());
+            break;
+          }
+          case 10: {
+            int length = input.readRawVarint32();
+            int limit = input.pushLimit(length);
+            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+              objectIdPath_ = newIntList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 10:
-            {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
-                objectIdPath_ = newIntList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              while (input.getBytesUntilLimit() > 0) {
-                objectIdPath_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
+            while (input.getBytesUntilLimit() > 0) {
+              objectIdPath_.addInt(input.readInt32());
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            input.popLimit(limit);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,7 +90,8 @@ private ObjectId(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable(); // C
@@ -118,76 +100,63 @@ private ObjectId(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ObjectId.class,
-            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ObjectId.class, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
   }
 
   public static final int OBJECT_ID_PATH_FIELD_NUMBER = 1;
   private com.google.protobuf.Internal.IntList objectIdPath_;
   /**
-   *
-   *
    * 
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the objectIdPath. */ @java.lang.Override - public java.util.List getObjectIdPathList() { + public java.util.List + getObjectIdPathList() { return objectIdPath_; } /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } - private int objectIdPathMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getObjectIdPathList().size() > 0) { output.writeUInt32NoTag(10); @@ -220,13 +190,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < objectIdPath_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(objectIdPath_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(objectIdPath_.getInt(i)); } size += dataSize; if (!getObjectIdPathList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } objectIdPathMemoizedSerializedSize = dataSize; } @@ -238,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ObjectId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ObjectId other = - (com.google.cloud.security.privateca.v1beta1.ObjectId) obj; + com.google.cloud.security.privateca.v1beta1.ObjectId other = (com.google.cloud.security.privateca.v1beta1.ObjectId) obj; - if (!getObjectIdPathList().equals(other.getObjectIdPathList())) return false; + if (!getObjectIdPathList() + .equals(other.getObjectIdPathList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,103 +239,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ObjectId 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.security.privateca.v1beta1.ObjectId parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ObjectId][google.cloud.security.privateca.v1beta1.ObjectId] specifies an object identifier (OID). These provide context
    * and describe types in ASN.1 messages.
@@ -372,23 +336,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ObjectId}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ObjectId)
       com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ObjectId.class,
-              com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ObjectId.class, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.ObjectId.newBuilder()
@@ -396,15 +358,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +377,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
     }
 
     @java.lang.Override
@@ -435,8 +398,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ObjectId buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ObjectId result =
-          new com.google.cloud.security.privateca.v1beta1.ObjectId(this);
+      com.google.cloud.security.privateca.v1beta1.ObjectId result = new com.google.cloud.security.privateca.v1beta1.ObjectId(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable();
@@ -451,39 +413,38 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ObjectId) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ObjectId) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ObjectId)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -491,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ObjectId other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()) return this;
       if (!other.objectIdPath_.isEmpty()) {
         if (objectIdPath_.isEmpty()) {
           objectIdPath_ = other.objectIdPath_;
@@ -522,8 +482,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ObjectId) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ObjectId) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -532,59 +491,48 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Internal.IntList objectIdPath_ = emptyIntList();
-
     private void ensureObjectIdPathIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_ = mutableCopy(objectIdPath_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the objectIdPath. */ - public java.util.List getObjectIdPathList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(objectIdPath_) - : objectIdPath_; + public java.util.List + getObjectIdPathList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(objectIdPath_) : objectIdPath_; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ @@ -592,35 +540,30 @@ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The objectIdPath to set. * @return This builder for chaining. */ - public Builder setObjectIdPath(int index, int value) { + public Builder setObjectIdPath( + int index, int value) { ensureObjectIdPathIsMutable(); objectIdPath_.setInt(index, value); onChanged(); return this; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The objectIdPath to add. * @return This builder for chaining. */ @@ -631,34 +574,30 @@ public Builder addObjectIdPath(int value) { return this; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The objectIdPath to add. * @return This builder for chaining. */ - public Builder addAllObjectIdPath(java.lang.Iterable values) { + public Builder addAllObjectIdPath( + java.lang.Iterable values) { ensureObjectIdPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectIdPath_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectIdPath_); onChanged(); return this; } /** - * - * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObjectIdPath() { @@ -667,9 +606,9 @@ public Builder clearObjectIdPath() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -679,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ObjectId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ObjectId) private static final com.google.cloud.security.privateca.v1beta1.ObjectId DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ObjectId(); } @@ -693,16 +632,16 @@ public static com.google.cloud.security.privateca.v1beta1.ObjectId getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -717,4 +656,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.ObjectId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java index a2295a8a..5d346706 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java @@ -1,64 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ObjectIdOrBuilder - extends +public interface ObjectIdOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ObjectId) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the objectIdPath. */ java.util.List getObjectIdPathList(); /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of objectIdPath. */ int getObjectIdPathCount(); /** - * - * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java index 0544f01d..61ed1b00 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, - com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,29 +237,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,29 +283,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -387,29 +329,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -560,27 +499,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.OperationMetadata other = - (com.google.cloud.security.privateca.v1beta1.OperationMetadata) obj; + com.google.cloud.security.privateca.v1beta1.OperationMetadata other = (com.google.cloud.security.privateca.v1beta1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -616,127 +562,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.OperationMetadata 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.security.privateca.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.OperationMetadata) com.google.cloud.security.privateca.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, - com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.security.privateca.v1beta1.OperationMetadata.newBuilder() @@ -744,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -782,14 +719,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.OperationMetadata getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1beta1.OperationMetadata.getDefaultInstance(); } @@ -804,8 +740,7 @@ public com.google.cloud.security.privateca.v1beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.security.privateca.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.security.privateca.v1beta1.OperationMetadata result = - new com.google.cloud.security.privateca.v1beta1.OperationMetadata(this); + com.google.cloud.security.privateca.v1beta1.OperationMetadata result = new com.google.cloud.security.privateca.v1beta1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -829,39 +764,38 @@ public com.google.cloud.security.privateca.v1beta1.OperationMetadata buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.OperationMetadata) other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -869,9 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.OperationMetadata other) { - if (other - == com.google.cloud.security.privateca.v1beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1beta1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -916,9 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.OperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -930,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -997,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1018,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1044,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1066,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1131,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1170,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1193,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1213,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1238,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1259,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1319,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1341,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1363,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1425,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1447,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1469,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1531,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1553,21 +1382,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1575,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1647,7 +1466,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1655,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1665,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1686,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1698,20 +1510,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1720,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1742,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1813,13 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.OperationMetadata) - private static final com.google.cloud.security.privateca.v1beta1.OperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.OperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.OperationMetadata(); } @@ -1828,16 +1629,16 @@ public static com.google.cloud.security.privateca.v1beta1.OperationMetadata getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1852,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java index a3f8cedf..c134d97a 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java new file mode 100644 index 00000000..84405c39 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public final class PrivateCaProto { + private PrivateCaProto() {} + 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_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/security/privateca/v1beta" + + "1/service.proto\022\'google.cloud.security.p" + + "rivateca.v1beta1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\0327google/cloud/security/priva" + + "teca/v1beta1/resources.proto\032#google/lon" + + "grunning/operations.proto\032\036google/protob" + + "uf/duration.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\347\001\n\030CreateCertificateRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis." + + "com/CertificateAuthority\022\033\n\016certificate_" + + "id\030\002 \001(\tB\003\340A\001\022N\n\013certificate\030\003 \001(\01324.goo" + + "gle.cloud.security.privateca.v1beta1.Cer" + + "tificateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"S" + + "\n\025GetCertificateRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$privateca.googleapis.com/Certific" + + "ate\"\275\001\n\027ListCertificatesRequest\022E\n\006paren" + + "t\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.co" + + "m/CertificateAuthority\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\006filte" + + "r\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\224\001\n\030" + + "ListCertificatesResponse\022J\n\014certificates" + + "\030\001 \003(\01324.google.cloud.security.privateca" + + ".v1beta1.Certificate\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\277\001\n\030RevokeCer" + + "tificateRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$p" + + "rivateca.googleapis.com/Certificate\022N\n\006r" + + "eason\030\002 \001(\01629.google.cloud.security.priv" + + "ateca.v1beta1.RevocationReasonB\003\340A\002\022\027\n\nr" + + "equest_id\030\003 \001(\tB\003\340A\001\"\271\001\n\030UpdateCertifica" + + "teRequest\022N\n\013certificate\030\001 \001(\01324.google." + + "cloud.security.privateca.v1beta1.Certifi" + + "cateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 " + + "\001(\tB\003\340A\001\"\201\002\n#ActivateCertificateAuthorit" + + "yRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privatec" + + "a.googleapis.com/CertificateAuthority\022\037\n" + + "\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022[\n\022subord" + + "inate_config\030\003 \001(\0132:.google.cloud.securi" + + "ty.privateca.v1beta1.SubordinateConfigB\003" + + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\201\002\n!CreateC" + + "ertificateAuthorityRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022%\n\030certificate_authority_id\030\002 \001(\tB" + + "\003\340A\002\022a\n\025certificate_authority\030\003 \001(\0132=.go" + + "ogle.cloud.security.privateca.v1beta1.Ce" + + "rtificateAuthorityB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\"\202\001\n\"DisableCertificateAuthority" + + "Request\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca" + + ".googleapis.com/CertificateAuthority\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\201\001\n!EnableCertific" + + "ateAuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A" + + "/\n-privateca.googleapis.com/CertificateA" + + "uthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"j\n#Fet" + + "chCertificateAuthorityCsrRequest\022C\n\004name" + + "\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.com" + + "/CertificateAuthority\"<\n$FetchCertificat" + + "eAuthorityCsrResponse\022\024\n\007pem_csr\030\001 \001(\tB\003" + + "\340A\003\"e\n\036GetCertificateAuthorityRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapi" + + "s.com/CertificateAuthority\"\273\001\n!ListCerti" + + "ficateAuthoritiesRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"\262\001\n\"ListCertificateAuth" + + "oritiesResponse\022^\n\027certificate_authoriti" + + "es\030\001 \003(\0132=.google.cloud.security.private" + + "ca.v1beta1.CertificateAuthority\022\027\n\017next_" + + "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\001" + + "\n\"RestoreCertificateAuthorityRequest\022C\n\004" + + "name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis" + + ".com/CertificateAuthority\022\027\n\nrequest_id\030" + + "\002 \001(\tB\003\340A\001\"\211\001\n)ScheduleDeleteCertificate" + + "AuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + + "privateca.googleapis.com/CertificateAuth" + + "ority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\325\001\n!Updat" + + "eCertificateAuthorityRequest\022a\n\025certific" + + "ate_authority\030\001 \001(\0132=.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateAuthori" + + "tyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(" + + "\tB\003\340A\001\"o\n#GetCertificateRevocationListRe" + + "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2privateca.g" + + "oogleapis.com/CertificateRevocationList\"" + + "\313\001\n%ListCertificateRevocationListsReques" + + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.goo" + + "gleapis.com/CertificateAuthority\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(\t" + + "B\003\340A\001\"\300\001\n&ListCertificateRevocationLists" + + "Response\022h\n\034certificate_revocation_lists" + + "\030\001 \003(\0132B.google.cloud.security.privateca" + + ".v1beta1.CertificateRevocationList\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"\345\001\n&UpdateCertificateRevocationListRequ" + + "est\022l\n\033certificate_revocation_list\030\001 \001(\013" + + "2B.google.cloud.security.privateca.v1bet" + + "a1.CertificateRevocationListB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"Y\n\030GetR" + + "eusableConfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372" + + "A)\n\'privateca.googleapis.com/ReusableCon" + + "fig\"\264\001\n\032ListReusableConfigsRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\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\"\236\001\n\033ListReusa" + + "bleConfigsResponse\022Q\n\020reusable_configs\030\001" + + " \003(\01327.google.cloud.security.privateca.v" + + "1beta1.ReusableConfig\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\200\002\n\021Operatio" + + "nMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006ta" + + "rget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016st" + + "atus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_can" + + "cellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(" + + "\tB\003\340A\0032\321,\n\033CertificateAuthorityService\022\226" + + "\002\n\021CreateCertificate\022A.google.cloud.secu" + + "rity.privateca.v1beta1.CreateCertificate" + + "Request\0324.google.cloud.security.privatec" + + "a.v1beta1.Certificate\"\207\001\202\323\344\223\002]\"N/v1beta1" + + "/{parent=projects/*/locations/*/certific" + + "ateAuthorities/*}/certificates:\013certific" + + "ate\332A!parent,certificate,certificate_id\022" + + "\345\001\n\016GetCertificate\022>.google.cloud.securi" + + "ty.privateca.v1beta1.GetCertificateReque" + + "st\0324.google.cloud.security.privateca.v1b" + + "eta1.Certificate\"]\202\323\344\223\002P\022N/v1beta1/{name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*/certificates/*}\332A\004name\022\370\001\n\020List" + + "Certificates\022@.google.cloud.security.pri" + + "vateca.v1beta1.ListCertificatesRequest\032A" + + ".google.cloud.security.privateca.v1beta1" + + ".ListCertificatesResponse\"_\202\323\344\223\002P\022N/v1be" + + "ta1/{parent=projects/*/locations/*/certi" + + "ficateAuthorities/*}/certificates\332A\006pare" + + "nt\022\365\001\n\021RevokeCertificate\022A.google.cloud." + + "security.privateca.v1beta1.RevokeCertifi" + + "cateRequest\0324.google.cloud.security.priv" + + "ateca.v1beta1.Certificate\"g\202\323\344\223\002Z\"U/v1be" + + "ta1/{name=projects/*/locations/*/certifi" + + "cateAuthorities/*/certificates/*}:revoke" + + ":\001*\332A\004name\022\230\002\n\021UpdateCertificate\022A.googl" + + "e.cloud.security.privateca.v1beta1.Updat" + + "eCertificateRequest\0324.google.cloud.secur" + + "ity.privateca.v1beta1.Certificate\"\211\001\202\323\344\223" + + "\002i2Z/v1beta1/{certificate.name=projects/" + + "*/locations/*/certificateAuthorities/*/c" + + "ertificates/*}:\013certificate\332A\027certificat" + + "e,update_mask\022\224\002\n\034ActivateCertificateAut" + + "hority\022L.google.cloud.security.privateca" + + ".v1beta1.ActivateCertificateAuthorityReq" + + "uest\032\035.google.longrunning.Operation\"\206\001\202\323" + + "\344\223\002M\"H/v1beta1/{name=projects/*/location" + + "s/*/certificateAuthorities/*}:activate:\001" + + "*\332A\004name\312A)\n\024CertificateAuthority\022\021Opera" + + "tionMetadata\022\314\002\n\032CreateCertificateAuthor" + + "ity\022J.google.cloud.security.privateca.v1" + + "beta1.CreateCertificateAuthorityRequest\032" + + "\035.google.longrunning.Operation\"\302\001\202\323\344\223\002X\"" + + "?/v1beta1/{parent=projects/*/locations/*" + + "}/certificateAuthorities:\025certificate_au" + + "thority\332A5parent,certificate_authority,c" + + "ertificate_authority_id\312A)\n\024CertificateA" + + "uthority\022\021OperationMetadata\022\221\002\n\033DisableC" + + "ertificateAuthority\022K.google.cloud.secur" + + "ity.privateca.v1beta1.DisableCertificate" + + "AuthorityRequest\032\035.google.longrunning.Op" + + "eration\"\205\001\202\323\344\223\002L\"G/v1beta1/{name=project" + + "s/*/locations/*/certificateAuthorities/*" + + "}:disable:\001*\332A\004name\312A)\n\024CertificateAutho" + + "rity\022\021OperationMetadata\022\216\002\n\032EnableCertif" + + "icateAuthority\022J.google.cloud.security.p" + + "rivateca.v1beta1.EnableCertificateAuthor" + + "ityRequest\032\035.google.longrunning.Operatio" + + "n\"\204\001\202\323\344\223\002K\"F/v1beta1/{name=projects/*/lo" + + "cations/*/certificateAuthorities/*}:enab" + + "le:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021O" + + "perationMetadata\022\221\002\n\034FetchCertificateAut" + + "horityCsr\022L.google.cloud.security.privat" + + "eca.v1beta1.FetchCertificateAuthorityCsr" + + "Request\032M.google.cloud.security.privatec" + + "a.v1beta1.FetchCertificateAuthorityCsrRe" + + "sponse\"T\202\323\344\223\002G\022E/v1beta1/{name=projects/" + + "*/locations/*/certificateAuthorities/*}:" + + "fetch\332A\004name\022\361\001\n\027GetCertificateAuthority" + + "\022G.google.cloud.security.privateca.v1bet" + + "a1.GetCertificateAuthorityRequest\032=.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateAuthority\"N\202\323\344\223\002A\022?/v1beta1/{name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*}\332A\004name\022\207\002\n\032ListCertificateAuth" + + "orities\022J.google.cloud.security.privatec" + + "a.v1beta1.ListCertificateAuthoritiesRequ" + + "est\032K.google.cloud.security.privateca.v1" + + "beta1.ListCertificateAuthoritiesResponse" + + "\"P\202\323\344\223\002A\022?/v1beta1/{parent=projects/*/lo" + + "cations/*}/certificateAuthorities\332A\006pare" + + "nt\022\221\002\n\033RestoreCertificateAuthority\022K.goo" + + "gle.cloud.security.privateca.v1beta1.Res" + + "toreCertificateAuthorityRequest\032\035.google" + + ".longrunning.Operation\"\205\001\202\323\344\223\002L\"G/v1beta" + + "1/{name=projects/*/locations/*/certifica" + + "teAuthorities/*}:restore:\001*\332A\004name\312A)\n\024C" + + "ertificateAuthority\022\021OperationMetadata\022\246" + + "\002\n\"ScheduleDeleteCertificateAuthority\022R." + + "google.cloud.security.privateca.v1beta1." + + "ScheduleDeleteCertificateAuthorityReques" + + "t\032\035.google.longrunning.Operation\"\214\001\202\323\344\223\002" + + "S\"N/v1beta1/{name=projects/*/locations/*" + + "/certificateAuthorities/*}:scheduleDelet" + + "e:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021Op" + + "erationMetadata\022\316\002\n\032UpdateCertificateAut" + + "hority\022J.google.cloud.security.privateca" + + ".v1beta1.UpdateCertificateAuthorityReque" + + "st\032\035.google.longrunning.Operation\"\304\001\202\323\344\223" + + "\002n2U/v1beta1/{certificate_authority.name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*}:\025certificate_authority\332A!certi" + + "ficate_authority,update_mask\312A)\n\024Certifi" + + "cateAuthority\022\021OperationMetadata\022\235\002\n\034Get" + + "CertificateRevocationList\022L.google.cloud" + + ".security.privateca.v1beta1.GetCertifica" + + "teRevocationListRequest\032B.google.cloud.s" + + "ecurity.privateca.v1beta1.CertificateRev" + + "ocationList\"k\202\323\344\223\002^\022\\/v1beta1/{name=proj" + + "ects/*/locations/*/certificateAuthoritie" + + "s/*/certificateRevocationLists/*}\332A\004name" + + "\022\260\002\n\036ListCertificateRevocationLists\022N.go" + + "ogle.cloud.security.privateca.v1beta1.Li" + + "stCertificateRevocationListsRequest\032O.go" + + "ogle.cloud.security.privateca.v1beta1.Li" + + "stCertificateRevocationListsResponse\"m\202\323" + + "\344\223\002^\022\\/v1beta1/{parent=projects/*/locati" + + "ons/*/certificateAuthorities/*}/certific" + + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + + "rtificateRevocationList\022O.google.cloud.s" + + "ecurity.privateca.v1beta1.UpdateCertific" + + "ateRevocationListRequest\032\035.google.longru" + + "nning.Operation\"\371\001\202\323\344\223\002\227\0012x/v1beta1/{cer" + + "tificate_revocation_list.name=projects/*" + + "/locations/*/certificateAuthorities/*/ce" + + "rtificateRevocationLists/*}:\033certificate" + + "_revocation_list\332A\'certificate_revocatio" + + "n_list,update_mask\312A.\n\031CertificateRevoca" + + "tionList\022\021OperationMetadata\022\330\001\n\021GetReusa" + + "bleConfig\022A.google.cloud.security.privat" + + "eca.v1beta1.GetReusableConfigRequest\0327.g" + + "oogle.cloud.security.privateca.v1beta1.R" + + "eusableConfig\"G\202\323\344\223\002:\0228/v1beta1/{name=pr" + + "ojects/*/locations/*/reusableConfigs/*}\332" + + "A\004name\022\353\001\n\023ListReusableConfigs\022C.google." + + "cloud.security.privateca.v1beta1.ListReu" + + "sableConfigsRequest\032D.google.cloud.secur" + + "ity.privateca.v1beta1.ListReusableConfig" + + "sResponse\"I\202\323\344\223\002:\0228/v1beta1/{parent=proj" + + "ects/*/locations/*}/reusableConfigs\332A\006pa" + + "rent\032L\312A\030privateca.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\226\002\n+com.google.cloud.security.private" + + "ca.v1beta1B\016PrivateCaProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "ty/privateca/v1beta1;privateca\370\001\001\252\002\'Goog" + + "le.Cloud.Security.PrivateCA.V1Beta1\312\002\'Go" + + "ogle\\Cloud\\Security\\PrivateCA\\V1beta1\352\002+" + + "Google::Cloud::Security::PrivateCA::V1be" + + "ta1b\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.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateId", "Certificate", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor, + new java.lang.String[] { "Certificates", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor, + new java.lang.String[] { "Name", "Reason", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor, + new java.lang.String[] { "Certificate", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor, + new java.lang.String[] { "PemCsr", }); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor, + new java.lang.String[] { "CertificateAuthorities", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { "CertificateAuthority", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor, + new java.lang.String[] { "CertificateRevocationLists", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor, + new java.lang.String[] { "CertificateRevocationList", "UpdateMask", "RequestId", }); + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor, + new java.lang.String[] { "ReusableConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java new file mode 100644 index 00000000..fb4bb2a0 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java @@ -0,0 +1,724 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/resources.proto + +package com.google.cloud.security.privateca.v1beta1; + +public final class PrivateCaResourcesProto { + private PrivateCaResourcesProto() {} + 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_security_privateca_v1beta1_CertificateAuthority_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/security/privateca/v1beta" + + "1/resources.proto\022\'google.cloud.security" + + ".privateca.v1beta1\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\032\034google/api/annotations." + + "proto\"\250\034\n\024CertificateAuthority\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022X\n\004type\030\002 \001(\0162B.google.cloud.s" + + "ecurity.privateca.v1beta1.CertificateAut" + + "hority.TypeB\006\340A\002\340A\005\022X\n\004tier\030\003 \001(\0162B.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateAuthority.TierB\006\340A\002\340A\005\022R\n\006config\030" + + "\004 \001(\0132:.google.cloud.security.privateca." + + "v1beta1.CertificateConfigB\006\340A\002\340A\005\0220\n\010lif" + + "etime\030\005 \001(\0132\031.google.protobuf.DurationB\003" + + "\340A\002\022f\n\010key_spec\030\006 \001(\0132L.google.cloud.sec" + + "urity.privateca.v1beta1.CertificateAutho" + + "rity.KeyVersionSpecB\006\340A\002\340A\005\022y\n\022certifica" + + "te_policy\030\007 \001(\0132X.google.cloud.security." + + "privateca.v1beta1.CertificateAuthority.C" + + "ertificateAuthorityPolicyB\003\340A\001\022j\n\017issuin" + + "g_options\030\010 \001(\0132L.google.cloud.security." + + "privateca.v1beta1.CertificateAuthority.I" + + "ssuingOptionsB\003\340A\001\022[\n\022subordinate_config" + + "\030\023 \001(\0132:.google.cloud.security.privateca" + + ".v1beta1.SubordinateConfigB\003\340A\001\022W\n\005state" + + "\030\n \001(\0162C.google.cloud.security.privateca" + + ".v1beta1.CertificateAuthority.StateB\003\340A\003" + + "\022 \n\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022i\n\033ca" + + "_certificate_descriptions\030\014 \003(\0132?.google" + + ".cloud.security.privateca.v1beta1.Certif" + + "icateDescriptionB\003\340A\003\022\027\n\ngcs_bucket\030\r \001(" + + "\tB\003\340A\005\022b\n\013access_urls\030\016 \001(\0132H.google.clo" + + "ud.security.privateca.v1beta1.Certificat" + + "eAuthority.AccessUrlsB\003\340A\003\0224\n\013create_tim" + + "e\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\020 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013delete_time\030\021 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022^\n\006labels\030\022" + + " \003(\0132I.google.cloud.security.privateca.v" + + "1beta1.CertificateAuthority.LabelsEntryB" + + "\003\340A\001\032W\n\016IssuingOptions\022 \n\023include_ca_cer" + + "t_url\030\001 \001(\010B\003\340A\002\022#\n\026include_crl_access_u" + + "rl\030\002 \001(\010B\003\340A\002\032\276\t\n\032CertificateAuthorityPo" + + "licy\022\216\001\n\023allowed_config_list\030\001 \001(\0132j.goo" + + "gle.cloud.security.privateca.v1beta1.Cer" + + "tificateAuthority.CertificateAuthorityPo" + + "licy.AllowedConfigListB\003\340A\001H\000\022f\n\027overwri" + + "te_config_values\030\002 \001(\0132>.google.cloud.se" + + "curity.privateca.v1beta1.ReusableConfigW" + + "rapperB\003\340A\001H\000\022b\n#allowed_locations_and_o" + + "rganizations\030\003 \003(\01320.google.cloud.securi" + + "ty.privateca.v1beta1.SubjectB\003\340A\001\022!\n\024all" + + "owed_common_names\030\004 \003(\tB\003\340A\001\022\212\001\n\014allowed" + + "_sans\030\005 \001(\0132o.google.cloud.security.priv" + + "ateca.v1beta1.CertificateAuthority.Certi" + + "ficateAuthorityPolicy.AllowedSubjectAltN" + + "amesB\003\340A\001\0228\n\020maximum_lifetime\030\006 \001(\0132\031.go" + + "ogle.protobuf.DurationB\003\340A\001\022\213\001\n\026allowed_" + + "issuance_modes\030\010 \001(\0132f.google.cloud.secu" + + "rity.privateca.v1beta1.CertificateAuthor" + + "ity.CertificateAuthorityPolicy.IssuanceM" + + "odesB\003\340A\001\032w\n\021AllowedConfigList\022b\n\025allowe" + + "d_config_values\030\001 \003(\0132>.google.cloud.sec" + + "urity.privateca.v1beta1.ReusableConfigWr" + + "apperB\003\340A\002\032\336\001\n\026AllowedSubjectAltNames\022\036\n" + + "\021allowed_dns_names\030\001 \003(\tB\003\340A\001\022\031\n\014allowed" + + "_uris\030\002 \003(\tB\003\340A\001\022$\n\027allowed_email_addres" + + "ses\030\003 \003(\tB\003\340A\001\022\030\n\013allowed_ips\030\004 \003(\tB\003\340A\001" + + "\022)\n\034allow_globbing_dns_wildcards\030\005 \001(\010B\003" + + "\340A\001\022\036\n\021allow_custom_sans\030\006 \001(\010B\003\340A\001\032`\n\rI" + + "ssuanceModes\022%\n\030allow_csr_based_issuance" + + "\030\001 \001(\010B\003\340A\002\022(\n\033allow_config_based_issuan" + + "ce\030\002 \001(\010B\003\340A\002B\017\n\rconfig_policy\032G\n\nAccess" + + "Urls\022!\n\031ca_certificate_access_url\030\001 \001(\t\022" + + "\026\n\016crl_access_url\030\002 \001(\t\032\257\001\n\016KeyVersionSp" + + "ec\022$\n\025cloud_kms_key_version\030\001 \001(\tB\003\340A\002H\000" + + "\022i\n\talgorithm\030\002 \001(\0162O.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateAuthori" + + "ty.SignHashAlgorithmB\003\340A\002H\000B\014\n\nKeyVersio" + + "n\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017" + + "\n\013SELF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"8\n\004Tier" + + "\022\024\n\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n" + + "\n\006DEVOPS\020\002\"g\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\026\n\022PENDING" + + "_ACTIVATION\020\003\022\024\n\020PENDING_DELETION\020\004\"\374\001\n\021" + + "SignHashAlgorithm\022#\n\037SIGN_HASH_ALGORITHM" + + "_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022" + + "\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS_4096" + + "_SHA256\020\003\022\031\n\025RSA_PKCS1_2048_SHA256\020\006\022\031\n\025" + + "RSA_PKCS1_3072_SHA256\020\007\022\031\n\025RSA_PKCS1_409" + + "6_SHA256\020\010\022\022\n\016EC_P256_SHA256\020\004\022\022\n\016EC_P38" + + "4_SHA384\020\005:\213\001\352A\207\001\n-privateca.googleapis." + + "com/CertificateAuthority\022Vprojects/{proj" + + "ect}/locations/{location}/certificateAut" + + "horities/{certificate_authority}\"\371\007\n\031Cer" + + "tificateRevocationList\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\034\n\017sequence_number\030\002 \001(\003B\003\340A\003\022x\n\024revok" + + "ed_certificates\030\003 \003(\0132U.google.cloud.sec" + + "urity.privateca.v1beta1.CertificateRevoc" + + "ationList.RevokedCertificateB\003\340A\003\022\024\n\007pem" + + "_crl\030\004 \001(\tB\003\340A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003" + + "\022\\\n\005state\030\006 \001(\0162H.google.cloud.security." + + "privateca.v1beta1.CertificateRevocationL" + + "ist.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022c\n\006labels\030\t \003(\0132N.google.cloud.securi" + + "ty.privateca.v1beta1.CertificateRevocati" + + "onList.LabelsEntryB\003\340A\001\032\232\001\n\022RevokedCerti" + + "ficate\022\023\n\013certificate\030\001 \001(\t\022\031\n\021hex_seria" + + "l_number\030\002 \001(\t\022T\n\021revocation_reason\030\003 \001(" + + "\01629.google.cloud.security.privateca.v1be" + + "ta1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPER" + + "SEDED\020\002:\312\001\352A\306\001\n2privateca.googleapis.com" + + "/CertificateRevocationList\022\217\001projects/{p" + + "roject}/locations/{location}/certificate" + + "Authorities/{certificate_authority}/cert" + + "ificateRevocationLists/{certificate_revo" + + "cation_list}\"\232\010\n\013Certificate\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\026\n\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022Q\n\006confi" + + "g\030\003 \001(\0132:.google.cloud.security.privatec" + + "a.v1beta1.CertificateConfigB\003\340A\005H\000\0223\n\010li" + + "fetime\030\004 \001(\0132\031.google.protobuf.DurationB" + + "\006\340A\002\340A\005\022g\n\022revocation_details\030\005 \001(\0132F.go" + + "ogle.cloud.security.privateca.v1beta1.Ce" + + "rtificate.RevocationDetailsB\003\340A\003\022\034\n\017pem_" + + "certificate\030\006 \001(\tB\003\340A\003\022e\n\027certificate_de" + + "scription\030\007 \001(\0132?.google.cloud.security." + + "privateca.v1beta1.CertificateDescription" + + "B\003\340A\003\022\"\n\025pem_certificate_chain\030\010 \003(\tB\003\340A" + + "\003\0224\n\013create_time\030\t \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022U\n\006labels\030" + + "\013 \003(\0132@.google.cloud.security.privateca." + + "v1beta1.Certificate.LabelsEntryB\003\340A\001\032\235\001\n" + + "\021RevocationDetails\022S\n\020revocation_state\030\001" + + " \001(\01629.google.cloud.security.privateca.v" + + "1beta1.RevocationReason\0223\n\017revocation_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\235\001\352A\231\001\n$privateca.googleapis.com/Cer" + + "tificate\022qprojects/{project}/locations/{" + + "location}/certificateAuthorities/{certif" + + "icate_authority}/certificates/{certifica" + + "te}B\024\n\022certificate_config\"\377\003\n\016ReusableCo" + + "nfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022R\n\006values\030\002 \001(\0132" + + "=.google.cloud.security.privateca.v1beta" + + "1.ReusableConfigValuesB\003\340A\002\022\030\n\013descripti" + + "on\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022X\n\006labels\030\006 \003(\0132C.google.cloud.securit" + + "y.privateca.v1beta1.ReusableConfig.Label" + + "sEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:w\352At\n\'privateca.googl" + + "eapis.com/ReusableConfig\022Iprojects/{proj" + + "ect}/locations/{location}/reusableConfig" + + "s/{reusable_config}\"\211\004\n\024ReusableConfigVa" + + "lues\022I\n\tkey_usage\030\001 \001(\01321.google.cloud.s" + + "ecurity.privateca.v1beta1.KeyUsageB\003\340A\001\022" + + "`\n\nca_options\030\002 \001(\0132G.google.cloud.secur" + + "ity.privateca.v1beta1.ReusableConfigValu" + + "es.CaOptionsB\003\340A\001\022J\n\npolicy_ids\030\003 \003(\01321." + + "google.cloud.security.privateca.v1beta1." + + "ObjectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB" + + "\003\340A\001\022Z\n\025additional_extensions\030\005 \003(\01326.go" + + "ogle.cloud.security.privateca.v1beta1.X5" + + "09ExtensionB\003\340A\001\032}\n\tCaOptions\022.\n\005is_ca\030\001" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022@\n" + + "\026max_issuer_path_length\030\002 \001(\0132\033.google.p" + + "rotobuf.Int32ValueB\003\340A\001\"\256\001\n\025ReusableConf" + + "igWrapper\022\036\n\017reusable_config\030\001 \001(\tB\003\340A\002H" + + "\000\022d\n\026reusable_config_values\030\002 \001(\0132=.goog" + + "le.cloud.security.privateca.v1beta1.Reus" + + "ableConfigValuesB\003\340A\002H\000B\017\n\rconfig_values" + + "\"\374\001\n\021SubordinateConfig\022$\n\025certificate_au" + + "thority\030\001 \001(\tB\003\340A\002H\000\022r\n\020pem_issuer_chain" + + "\030\002 \001(\0132Q.google.cloud.security.privateca" + + ".v1beta1.SubordinateConfig.SubordinateCo" + + "nfigChainB\003\340A\002H\000\0327\n\026SubordinateConfigCha" + + "in\022\035\n\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022sub" + + "ordinate_config\"\262\001\n\tPublicKey\022M\n\004type\030\001 " + + "\001(\0162:.google.cloud.security.privateca.v1" + + "beta1.PublicKey.KeyTypeB\003\340A\002\022\020\n\003key\030\002 \001(" + + "\014B\003\340A\002\"D\n\007KeyType\022\030\n\024KEY_TYPE_UNSPECIFIE" + + "D\020\000\022\017\n\013PEM_RSA_KEY\020\001\022\016\n\nPEM_EC_KEY\020\002\"\362\003\n" + + "\021CertificateConfig\022e\n\016subject_config\030\001 \001" + + "(\0132H.google.cloud.security.privateca.v1b" + + "eta1.CertificateConfig.SubjectConfigB\003\340A" + + "\002\022\\\n\017reusable_config\030\002 \001(\0132>.google.clou" + + "d.security.privateca.v1beta1.ReusableCon" + + "figWrapperB\003\340A\002\022K\n\npublic_key\030\003 \001(\01322.go" + + "ogle.cloud.security.privateca.v1beta1.Pu" + + "blicKeyB\003\340A\001\032\312\001\n\rSubjectConfig\022F\n\007subjec" + + "t\030\001 \001(\01320.google.cloud.security.privatec" + + "a.v1beta1.SubjectB\003\340A\002\022\030\n\013common_name\030\002 " + + "\001(\tB\003\340A\001\022W\n\020subject_alt_name\030\003 \001(\01328.goo" + + "gle.cloud.security.privateca.v1beta1.Sub" + + "jectAltNamesB\003\340A\001\"\341\010\n\026CertificateDescrip" + + "tion\022o\n\023subject_description\030\001 \001(\0132R.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateDescription.SubjectDescription\022T\n" + + "\rconfig_values\030\002 \001(\0132=.google.cloud.secu" + + "rity.privateca.v1beta1.ReusableConfigVal" + + "ues\022F\n\npublic_key\030\003 \001(\01322.google.cloud.s" + + "ecurity.privateca.v1beta1.PublicKey\022]\n\016s" + + "ubject_key_id\030\004 \001(\0132E.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateDescrip" + + "tion.KeyId\022_\n\020authority_key_id\030\005 \001(\0132E.g" + + "oogle.cloud.security.privateca.v1beta1.C" + + "ertificateDescription.KeyId\022\037\n\027crl_distr" + + "ibution_points\030\006 \003(\t\022$\n\034aia_issuing_cert" + + "ificate_urls\030\007 \003(\t\022p\n\020cert_fingerprint\030\010" + + " \001(\0132V.google.cloud.security.privateca.v" + + "1beta1.CertificateDescription.Certificat" + + "eFingerprint\032\361\002\n\022SubjectDescription\022A\n\007s" + + "ubject\030\001 \001(\01320.google.cloud.security.pri" + + "vateca.v1beta1.Subject\022\023\n\013common_name\030\002 " + + "\001(\t\022R\n\020subject_alt_name\030\003 \001(\01328.google.c" + + "loud.security.privateca.v1beta1.SubjectA" + + "ltNames\022\031\n\021hex_serial_number\030\004 \001(\t\022+\n\010li" + + "fetime\030\005 \001(\0132\031.google.protobuf.Duration\022" + + "3\n\017not_before_time\030\006 \001(\0132\032.google.protob" + + "uf.Timestamp\0222\n\016not_after_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\032\034\n\005KeyId\022\023\n\006key" + + "_id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFingerprint" + + "\022\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016obj" + + "ect_id_path\030\001 \003(\005B\003\340A\002\"\205\001\n\rX509Extension" + + "\022I\n\tobject_id\030\001 \001(\01321.google.cloud.secur" + + "ity.privateca.v1beta1.ObjectIdB\003\340A\002\022\025\n\010c" + + "ritical\030\002 \001(\010B\003\340A\002\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\261" + + "\005\n\010KeyUsage\022Y\n\016base_key_usage\030\001 \001(\0132A.go" + + "ogle.cloud.security.privateca.v1beta1.Ke" + + "yUsage.KeyUsageOptions\022e\n\022extended_key_u" + + "sage\030\002 \001(\0132I.google.cloud.security.priva" + + "teca.v1beta1.KeyUsage.ExtendedKeyUsageOp" + + "tions\022V\n\033unknown_extended_key_usages\030\003 \003" + + "(\01321.google.cloud.security.privateca.v1b" + + "eta1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021dig" + + "ital_signature\030\001 \001(\010\022\032\n\022content_commitme" + + "nt\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n\021da" + + "ta_encipherment\030\004 \001(\010\022\025\n\rkey_agreement\030\005" + + " \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(" + + "\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_onl" + + "y\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023\n\013s" + + "erver_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n" + + "\014code_signing\030\003 \001(\010\022\030\n\020email_protection\030" + + "\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_sig" + + "ning\030\006 \001(\010\"\243\001\n\007Subject\022\024\n\014country_code\030\001" + + " \001(\t\022\024\n\014organization\030\002 \001(\t\022\033\n\023organizati" + + "onal_unit\030\003 \001(\t\022\020\n\010locality\030\004 \001(\t\022\020\n\010pro" + + "vince\030\005 \001(\t\022\026\n\016street_address\030\006 \001(\t\022\023\n\013p" + + "ostal_code\030\007 \001(\t\"\256\001\n\017SubjectAltNames\022\021\n\t" + + "dns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_a" + + "ddresses\030\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022K\n\013" + + "custom_sans\030\005 \003(\01326.google.cloud.securit" + + "y.privateca.v1beta1.X509Extension*\207\002\n\020Re" + + "vocationReason\022!\n\035REVOCATION_REASON_UNSP" + + "ECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFI" + + "CATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATI" + + "ON_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATIO" + + "N_OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027" + + "\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUT" + + "HORITY_COMPROMISE\020\010B\237\002\n+com.google.cloud" + + ".security.privateca.v1beta1B\027PrivateCaRe" + + "sourcesProtoP\001ZPgoogle.golang.org/genpro" + + "to/googleapis/cloud/security/privateca/v" + + "1beta1;privateca\370\001\001\252\002\'Google.Cloud.Secur" + + "ity.PrivateCA.V1Beta1\312\002\'Google\\Cloud\\Sec" + + "urity\\PrivateCA\\V1beta1\352\002+Google::Cloud:" + + ":Security::PrivateCA::V1beta1b\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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor, + new java.lang.String[] { "Name", "Type", "Tier", "Config", "Lifetime", "KeySpec", "CertificatePolicy", "IssuingOptions", "SubordinateConfig", "State", "PemCaCertificates", "CaCertificateDescriptions", "GcsBucket", "AccessUrls", "CreateTime", "UpdateTime", "DeleteTime", "Labels", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor, + new java.lang.String[] { "IncludeCaCertUrl", "IncludeCrlAccessUrl", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor, + new java.lang.String[] { "AllowedConfigList", "OverwriteConfigValues", "AllowedLocationsAndOrganizations", "AllowedCommonNames", "AllowedSans", "MaximumLifetime", "AllowedIssuanceModes", "ConfigPolicy", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor, + new java.lang.String[] { "AllowedConfigValues", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor, + new java.lang.String[] { "AllowedDnsNames", "AllowedUris", "AllowedEmailAddresses", "AllowedIps", "AllowGlobbingDnsWildcards", "AllowCustomSans", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor, + new java.lang.String[] { "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor, + new java.lang.String[] { "CaCertificateAccessUrl", "CrlAccessUrl", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor, + new java.lang.String[] { "CloudKmsKeyVersion", "Algorithm", "KeyVersion", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor, + new java.lang.String[] { "Name", "SequenceNumber", "RevokedCertificates", "PemCrl", "AccessUrl", "State", "CreateTime", "UpdateTime", "Labels", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor, + new java.lang.String[] { "Certificate", "HexSerialNumber", "RevocationReason", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor, + new java.lang.String[] { "Name", "PemCsr", "Config", "Lifetime", "RevocationDetails", "PemCertificate", "CertificateDescription", "PemCertificateChain", "CreateTime", "UpdateTime", "Labels", "CertificateConfig", }); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor, + new java.lang.String[] { "RevocationState", "RevocationTime", }); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor, + new java.lang.String[] { "Name", "Values", "Description", "CreateTime", "UpdateTime", "Labels", }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor, + new java.lang.String[] { "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor, + new java.lang.String[] { "IsCa", "MaxIssuerPathLength", }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor, + new java.lang.String[] { "ReusableConfig", "ReusableConfigValues", "ConfigValues", }); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor, + new java.lang.String[] { "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", }); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor, + new java.lang.String[] { "PemCertificates", }); + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor, + new java.lang.String[] { "Type", "Key", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor, + new java.lang.String[] { "SubjectConfig", "ReusableConfig", "PublicKey", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor, + new java.lang.String[] { "Subject", "CommonName", "SubjectAltName", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor, + new java.lang.String[] { "SubjectDescription", "ConfigValues", "PublicKey", "SubjectKeyId", "AuthorityKeyId", "CrlDistributionPoints", "AiaIssuingCertificateUrls", "CertFingerprint", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor, + new java.lang.String[] { "Subject", "CommonName", "SubjectAltName", "HexSerialNumber", "Lifetime", "NotBeforeTime", "NotAfterTime", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor, + new java.lang.String[] { "KeyId", }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor, + new java.lang.String[] { "Sha256Hash", }); + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor, + new java.lang.String[] { "ObjectIdPath", }); + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor, + new java.lang.String[] { "ObjectId", "Critical", "Value", }); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor, + new java.lang.String[] { "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", }); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor, + new java.lang.String[] { "DigitalSignature", "ContentCommitment", "KeyEncipherment", "DataEncipherment", "KeyAgreement", "CertSign", "CrlSign", "EncipherOnly", "DecipherOnly", }); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor, + new java.lang.String[] { "ServerAuth", "ClientAuth", "CodeSigning", "EmailProtection", "TimeStamping", "OcspSigning", }); + internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor, + new java.lang.String[] { "CountryCode", "Organization", "OrganizationalUnit", "Locality", "Province", "StreetAddress", "PostalCode", }); + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor, + new java.lang.String[] { "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java similarity index 68% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java index 47a992df..02764f99 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [PublicKey][google.cloud.security.privateca.v1beta1.PublicKey] describes a public key.
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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() { type_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; @@ -44,15 +26,16 @@ 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; } - private PublicKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,25 +54,24 @@ private PublicKey( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: - { - key_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = rawValue; + break; + } + case 18: { + + key_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,31 +79,27 @@ private PublicKey( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.PublicKey.class, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1beta1.PublicKey.class, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); } /** - * - * *
    * Types of public keys that are supported.
    * At a minimum, we support RSA and ECDSA, for the key sizes or curves listed:
@@ -130,10 +108,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1beta1.PublicKey.KeyType}
    */
-  public enum KeyType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum KeyType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default unspecified value.
      * 
@@ -142,8 +119,6 @@ public enum KeyType implements com.google.protobuf.ProtocolMessageEnum { */ KEY_TYPE_UNSPECIFIED(0), /** - * - * *
      * A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
      * 
@@ -152,8 +127,6 @@ public enum KeyType implements com.google.protobuf.ProtocolMessageEnum { */ PEM_RSA_KEY(1), /** - * - * *
      * A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
      * 
@@ -165,8 +138,6 @@ public enum KeyType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default unspecified value.
      * 
@@ -175,8 +146,6 @@ public enum KeyType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KEY_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
      * 
@@ -185,8 +154,6 @@ public enum KeyType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PEM_RSA_KEY_VALUE = 1; /** - * - * *
      * A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
      * 
@@ -195,6 +162,7 @@ public enum KeyType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PEM_EC_KEY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,51 +187,49 @@ public static KeyType valueOf(int value) { */ public static KeyType forNumber(int value) { switch (value) { - case 0: - return KEY_TYPE_UNSPECIFIED; - case 1: - return PEM_RSA_KEY; - case 2: - return PEM_EC_KEY; - default: - return null; + case 0: return KEY_TYPE_UNSPECIFIED; + case 1: return PEM_RSA_KEY; + case 2: return PEM_EC_KEY; + 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< + KeyType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KeyType findValueByNumber(int number) { + return KeyType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KeyType findValueByNumber(int number) { - return KeyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PublicKey.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PublicKey.getDescriptor().getEnumTypes().get(0); } private static final KeyType[] VALUES = values(); - public static KeyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static KeyType 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; @@ -283,57 +249,39 @@ private KeyType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
    * Required. The type of public key.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. The type of public key.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); + return result == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** - * - * *
    * Required. A public key. Padding and encoding varies by 'KeyType' and is described
    * along with the KeyType values.
    * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ @java.lang.Override @@ -342,7 +290,6 @@ public com.google.protobuf.ByteString getKey() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,10 +301,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (!key_.isEmpty()) { @@ -372,13 +318,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, key_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, key_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388,16 +334,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.PublicKey)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.PublicKey other = - (com.google.cloud.security.privateca.v1beta1.PublicKey) obj; + com.google.cloud.security.privateca.v1beta1.PublicKey other = (com.google.cloud.security.privateca.v1beta1.PublicKey) obj; if (type_ != other.type_) return false; - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -419,127 +365,117 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.PublicKey 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.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.PublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.PublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.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; } /** - * - * *
    * A [PublicKey][google.cloud.security.privateca.v1beta1.PublicKey] describes a public key.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey) com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.PublicKey.class, - com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1beta1.PublicKey.class, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); } // Construct using com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder() @@ -547,15 +483,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -567,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; } @java.lang.Override @@ -588,8 +525,7 @@ public com.google.cloud.security.privateca.v1beta1.PublicKey build() { @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey buildPartial() { - com.google.cloud.security.privateca.v1beta1.PublicKey result = - new com.google.cloud.security.privateca.v1beta1.PublicKey(this); + com.google.cloud.security.privateca.v1beta1.PublicKey result = new com.google.cloud.security.privateca.v1beta1.PublicKey(this); result.type_ = type_; result.key_ = key_; onBuilt(); @@ -600,39 +536,38 @@ public com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.PublicKey) other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.PublicKey)other); } else { super.mergeFrom(other); return this; @@ -640,8 +575,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.PublicKey other) { - if (other == com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance()) - return this; + if (other == com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -667,8 +601,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.PublicKey) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.PublicKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,75 +613,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
      * Required. The type of public key.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. The type of public key.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * Required. The type of public key.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); + return result == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED : result; } /** - * - * *
      * Required. The type of public key.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The type to set. * @return This builder for chaining. */ @@ -756,26 +665,21 @@ public Builder setType(com.google.cloud.security.privateca.v1beta1.PublicKey.Key if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The type of public key.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -783,15 +687,12 @@ public Builder clearType() { private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. A public key. Padding and encoding varies by 'KeyType' and is described
      * along with the KeyType values.
      * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The key. */ @java.lang.Override @@ -799,48 +700,42 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** - * - * *
      * Required. A public key. Padding and encoding varies by 'KeyType' and is described
      * along with the KeyType values.
      * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
      * Required. A public key. Padding and encoding varies by 'KeyType' and is described
      * along with the KeyType values.
      * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -850,12 +745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.PublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.PublicKey) private static final com.google.cloud.security.privateca.v1beta1.PublicKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.PublicKey(); } @@ -864,16 +759,16 @@ public static com.google.cloud.security.privateca.v1beta1.PublicKey getDefaultIn 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 { - return new PublicKey(input, extensionRegistry); - } - }; + 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 { + return new PublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,4 +783,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.PublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java new file mode 100644 index 00000000..0a1274d7 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/resources.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface PublicKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.PublicKey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The type of public key.
+   * 
+ * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+   * Required. The type of public key.
+   * 
+ * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The type. + */ + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType(); + + /** + *
+   * Required. A public key. Padding and encoding varies by 'KeyType' and is described
+   * along with the KeyType values.
+   * 
+ * + * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); +} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java similarity index 66% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java index 606f8be1..48b78261 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.RestoreCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority].
@@ -28,17 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest}
  */
-public final class RestoreCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RestoreCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)
     RestoreCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RestoreCertificateAuthorityRequest.newBuilder() to construct.
-  private RestoreCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private RestoreCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RestoreCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -46,15 +27,16 @@ private RestoreCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RestoreCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RestoreCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,27 +55,25 @@ private RestoreCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,43 +81,35 @@ private RestoreCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -146,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -182,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -199,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -208,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -232,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,18 +258,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.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,154 +289,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - 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.security.privateca.v1beta1.RestoreCertificateAuthorityRequest 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.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.RestoreCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder - .class); + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,22 +430,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -505,10 +450,8 @@ public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRe } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = - new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -519,53 +462,46 @@ public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -589,14 +525,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,23 +541,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -633,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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 { @@ -658,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -729,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -746,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -761,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -778,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -793,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -810,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -841,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -868,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -894,34 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .RestoreCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestoreCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,8 +832,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java index c9a42fd5..a689302c 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface RestoreCertificateAuthorityRequestOrBuilder - extends +public interface RestoreCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface RestoreCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface RestoreCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java index ce5030f6..69a6d861 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] refers to a managed [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues]. Those, in
  * turn, are used to describe certain fields of an X.509 certificate, such as
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfig}
  */
-public final class ReusableConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReusableConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfig)
     ReusableConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReusableConfig.newBuilder() to construct.
   private ReusableConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReusableConfig() {
     name_ = "";
     description_ = "";
@@ -47,15 +29,16 @@ private ReusableConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReusableConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReusableConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,88 +58,77 @@ private ReusableConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder = null;
+            if (values_ != null) {
+              subBuilder = values_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder =
-                  null;
-              if (values_ != null) {
-                subBuilder = values_.toBuilder();
-              }
-              values_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(values_);
-                values_ = subBuilder.buildPartial();
-              }
-
-              break;
+            values_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(values_);
+              values_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
+            }
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -164,51 +136,47 @@ private ReusableConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 6:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ReusableConfig.class,
-            com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -217,30 +185,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * 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 { @@ -251,16 +219,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues values_; /** - * - * *
    * Required. The config values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the values field is set. */ @java.lang.Override @@ -268,53 +231,38 @@ public boolean hasValues() { return values_ != null; } /** - * - * *
    * Required. The config values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The values. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getValues() { - return values_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() - : values_; + return values_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : values_; } /** - * - * *
    * Required. The config values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getValuesOrBuilder() { return getValues(); } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -323,30 +271,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -357,15 +305,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 @@ -373,15 +317,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 @@ -389,14 +329,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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() { @@ -406,15 +343,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -422,15 +355,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -438,14 +367,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -453,23 +379,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -478,30 +405,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -509,12 +434,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -522,16 +446,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -539,11 +463,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -551,7 +476,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,7 +487,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -579,8 +504,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); unknownFields.writeTo(output); } @@ -594,26 +523,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (values_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValues()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValues()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -623,29 +555,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfig other = - (com.google.cloud.security.privateca.v1beta1.ReusableConfig) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfig other = (com.google.cloud.security.privateca.v1beta1.ReusableConfig) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasValues() != other.hasValues()) return false; if (hasValues()) { - if (!getValues().equals(other.getValues())) return false; + if (!getValues() + .equals(other.getValues())) return false; } - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -683,104 +620,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ReusableConfig 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.security.privateca.v1beta1.ReusableConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] refers to a managed [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues]. Those, in
    * turn, are used to describe certain fields of an X.509 certificate, such as
@@ -790,43 +719,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfig)
       com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 6:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ReusableConfig.class,
-              com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfig.newBuilder()
@@ -834,15 +763,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -873,9 +803,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
     }
 
     @java.lang.Override
@@ -894,8 +824,7 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ReusableConfig buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ReusableConfig result =
-          new com.google.cloud.security.privateca.v1beta1.ReusableConfig(this);
+      com.google.cloud.security.privateca.v1beta1.ReusableConfig result = new com.google.cloud.security.privateca.v1beta1.ReusableConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (valuesBuilder_ == null) {
@@ -924,39 +853,38 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfig) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -964,8 +892,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfig other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -983,7 +910,8 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableCon
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -1003,8 +931,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ReusableConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1013,26 +940,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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; @@ -1041,22 +965,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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 { @@ -1064,64 +987,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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 path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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 path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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; @@ -1129,61 +1045,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues values_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> - valuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> valuesBuilder_; /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the values field is set. */ public boolean hasValues() { return valuesBuilder_ != null || values_ != null; } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The values. */ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getValues() { if (valuesBuilder_ == null) { - return values_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() - : values_; + return values_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : values_; } else { return valuesBuilder_.getMessage(); } } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder setValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1197,15 +1093,11 @@ public Builder setValues( return this; } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setValues( com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder builderForValue) { @@ -1219,24 +1111,17 @@ public Builder setValues( return this; } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder mergeValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (valuesBuilder_ == null) { if (values_ != null) { values_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder(values_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder(values_).mergeFrom(value).buildPartial(); } else { values_ = value; } @@ -1248,15 +1133,11 @@ public Builder mergeValues( return this; } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearValues() { if (valuesBuilder_ == null) { @@ -1270,66 +1151,48 @@ public Builder clearValues() { return this; } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder - getValuesBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder getValuesBuilder() { + onChanged(); return getValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getValuesOrBuilder() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilder(); } else { - return values_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() - : values_; + return values_ == null ? + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : values_; } } /** - * - * *
      * Required. The config values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( - getValues(), getParentForChildren(), isClean()); + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( + getValues(), + getParentForChildren(), + isClean()); values_ = null; } return valuesBuilder_; @@ -1337,21 +1200,19 @@ public Builder clearValues() { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1360,22 +1221,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1383,64 +1243,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1448,58 +1301,39 @@ public Builder setDescriptionBytes(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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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) { @@ -1515,17 +1349,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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(); @@ -1536,21 +1367,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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; } @@ -1562,15 +1389,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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) { @@ -1584,64 +1407,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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_; @@ -1649,58 +1456,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1716,17 +1504,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1737,21 +1522,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1763,15 +1544,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1785,84 +1562,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - 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(); @@ -1874,30 +1636,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -1905,12 +1665,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -1918,17 +1677,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -1936,11 +1694,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1948,66 +1707,69 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** - * - * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2017,12 +1779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfig) private static final com.google.cloud.security.privateca.v1beta1.ReusableConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfig(); } @@ -2031,16 +1793,16 @@ public static com.google.cloud.security.privateca.v1beta1.ReusableConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReusableConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReusableConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReusableConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReusableConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2055,4 +1817,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.ReusableConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java index 294c6d2d..a6d130e6 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java @@ -1,202 +1,138 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ReusableConfigOrBuilder - extends +public interface ReusableConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * 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. The config values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the values field is set. */ boolean hasValues(); /** - * - * *
    * Required. The config values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The values. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getValues(); /** - * - * *
    * Required. The config values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getValuesOrBuilder(); /** - * - * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -205,31 +141,30 @@ public interface ReusableConfigOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -238,18 +173,18 @@ public interface ReusableConfigOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java index 2dacd773..04067465 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
  * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues}
  */
-public final class ReusableConfigValues extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReusableConfigValues extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
     ReusableConfigValuesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReusableConfigValues.newBuilder() to construct.
   private ReusableConfigValues(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReusableConfigValues() {
     policyIds_ = java.util.Collections.emptyList();
     aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -47,15 +29,16 @@ private ReusableConfigValues() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReusableConfigValues();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReusableConfigValues(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,86 +58,66 @@ private ReusableConfigValues(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder subBuilder = null;
-              if (keyUsage_ != null) {
-                subBuilder = keyUsage_.toBuilder();
-              }
-              keyUsage_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.KeyUsage.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(keyUsage_);
-                keyUsage_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder subBuilder = null;
+            if (keyUsage_ != null) {
+              subBuilder = keyUsage_.toBuilder();
+            }
+            keyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.KeyUsage.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(keyUsage_);
+              keyUsage_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder
-                  subBuilder = null;
-              if (caOptions_ != null) {
-                subBuilder = caOptions_.toBuilder();
-              }
-              caOptions_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(caOptions_);
-                caOptions_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder subBuilder = null;
+            if (caOptions_ != null) {
+              subBuilder = caOptions_.toBuilder();
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                policyIds_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              policyIds_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
-                      extensionRegistry));
-              break;
+            caOptions_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(caOptions_);
+              caOptions_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              aiaOcspServers_.add(s);
-              break;
+
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              policyIds_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                additionalExtensions_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1beta1.X509Extension>();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              additionalExtensions_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.X509Extension.parser(),
-                      extensionRegistry));
-              break;
+            policyIds_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.ObjectId.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            aiaOcspServers_.add(s);
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              additionalExtensions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
+            additionalExtensions_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.X509Extension.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -162,7 +125,8 @@ private ReusableConfigValues(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         policyIds_ = java.util.Collections.unmodifiableList(policyIds_);
@@ -177,56 +141,44 @@ private ReusableConfigValues(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class,
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
   }
 
-  public interface CaOptionsOrBuilder
-      extends
+  public interface CaOptionsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the isCa field is set. */ boolean hasIsCa(); /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isCa. */ com.google.protobuf.BoolValue getIsCa(); /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
@@ -237,8 +189,6 @@ public interface CaOptionsOrBuilder
     com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder();
 
     /**
-     *
-     *
      * 
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -248,16 +198,11 @@ public interface CaOptionsOrBuilder
      * CA certificate.
      * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maxIssuerPathLength field is set. */ boolean hasMaxIssuerPathLength(); /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -267,16 +212,11 @@ public interface CaOptionsOrBuilder
      * CA certificate.
      * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maxIssuerPathLength. */ com.google.protobuf.Int32Value getMaxIssuerPathLength(); /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -286,44 +226,41 @@ public interface CaOptionsOrBuilder
      * CA certificate.
      * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder(); } /** - * - * *
    * Describes values that are relevant in a CA certificate.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions} */ - public static final class CaOptions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CaOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) CaOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CaOptions.newBuilder() to construct. private CaOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CaOptions() {} + private CaOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CaOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CaOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -342,43 +279,39 @@ private CaOptions( case 0: done = true; break; - case 10: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isCa_ != null) { - subBuilder = isCa_.toBuilder(); - } - isCa_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isCa_); - isCa_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCa_ != null) { + subBuilder = isCa_.toBuilder(); } - case 18: - { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (maxIssuerPathLength_ != null) { - subBuilder = maxIssuerPathLength_.toBuilder(); - } - maxIssuerPathLength_ = - input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxIssuerPathLength_); - maxIssuerPathLength_ = subBuilder.buildPartial(); - } - - break; + isCa_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCa_); + isCa_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (maxIssuerPathLength_ != null) { + subBuilder = maxIssuerPathLength_.toBuilder(); + } + maxIssuerPathLength_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxIssuerPathLength_); + maxIssuerPathLength_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -386,41 +319,35 @@ private CaOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder - .class); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder.class); } public static final int IS_CA_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue isCa_; /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the isCa field is set. */ @java.lang.Override @@ -428,15 +355,12 @@ public boolean hasIsCa() { return isCa_ != null; } /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isCa. */ @java.lang.Override @@ -444,8 +368,6 @@ public com.google.protobuf.BoolValue getIsCa() { return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_; } /** - * - * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
@@ -461,8 +383,6 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
     public static final int MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER = 2;
     private com.google.protobuf.Int32Value maxIssuerPathLength_;
     /**
-     *
-     *
      * 
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -472,10 +392,7 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
      * CA certificate.
      * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maxIssuerPathLength field is set. */ @java.lang.Override @@ -483,8 +400,6 @@ public boolean hasMaxIssuerPathLength() { return maxIssuerPathLength_ != null; } /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -494,21 +409,14 @@ public boolean hasMaxIssuerPathLength() {
      * CA certificate.
      * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maxIssuerPathLength. */ @java.lang.Override public com.google.protobuf.Int32Value getMaxIssuerPathLength() { - return maxIssuerPathLength_ == null - ? com.google.protobuf.Int32Value.getDefaultInstance() - : maxIssuerPathLength_; + return maxIssuerPathLength_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxIssuerPathLength_; } /** - * - * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -518,9 +426,7 @@ public com.google.protobuf.Int32Value getMaxIssuerPathLength() {
      * CA certificate.
      * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() { @@ -528,7 +434,6 @@ public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -540,7 +445,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (isCa_ != null) { output.writeMessage(1, getIsCa()); } @@ -557,11 +463,12 @@ public int getSerializedSize() { size = 0; if (isCa_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIsCa()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIsCa()); } if (maxIssuerPathLength_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxIssuerPathLength()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxIssuerPathLength()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -571,22 +478,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.security.privateca.v1beta1.ReusableConfigValues.CaOptions)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other = - (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) obj; if (hasIsCa() != other.hasIsCa()) return false; if (hasIsCa()) { - if (!getIsCa().equals(other.getIsCa())) return false; + if (!getIsCa() + .equals(other.getIsCa())) return false; } if (hasMaxIssuerPathLength() != other.hasMaxIssuerPathLength()) return false; if (hasMaxIssuerPathLength()) { - if (!getMaxIssuerPathLength().equals(other.getMaxIssuerPathLength())) return false; + if (!getMaxIssuerPathLength() + .equals(other.getMaxIssuerPathLength())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -612,101 +519,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - 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.security.privateca.v1beta1.ReusableConfigValues.CaOptions 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.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -716,50 +610,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes values that are relevant in a CA certificate.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder - .class); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,22 +667,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions build() { - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = - buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -802,10 +687,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOption } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - buildPartial() { - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = - new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(this); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions buildPartial() { + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(this); if (isCaBuilder_ == null) { result.isCa_ = isCa_; } else { @@ -824,54 +707,46 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOption public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.ReusableConfigValues.CaOptions) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other) { + if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance()) return this; if (other.hasIsCa()) { mergeIsCa(other.getIsCa()); } @@ -893,14 +768,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parsedMessage = - null; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -912,37 +784,26 @@ public Builder mergeFrom( private com.google.protobuf.BoolValue isCa_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isCaBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> isCaBuilder_; /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the isCa field is set. */ public boolean hasIsCa() { return isCaBuilder_ != null || isCa_ != null; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The isCa. */ public com.google.protobuf.BoolValue getIsCa() { @@ -953,15 +814,12 @@ public com.google.protobuf.BoolValue getIsCa() { } } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIsCa(com.google.protobuf.BoolValue value) { if (isCaBuilder_ == null) { @@ -977,17 +835,15 @@ public Builder setIsCa(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIsCa(com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setIsCa( + com.google.protobuf.BoolValue.Builder builderForValue) { if (isCaBuilder_ == null) { isCa_ = builderForValue.build(); onChanged(); @@ -998,20 +854,18 @@ public Builder setIsCa(com.google.protobuf.BoolValue.Builder builderForValue) { return this; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeIsCa(com.google.protobuf.BoolValue value) { if (isCaBuilder_ == null) { if (isCa_ != null) { - isCa_ = com.google.protobuf.BoolValue.newBuilder(isCa_).mergeFrom(value).buildPartial(); + isCa_ = + com.google.protobuf.BoolValue.newBuilder(isCa_).mergeFrom(value).buildPartial(); } else { isCa_ = value; } @@ -1023,15 +877,12 @@ public Builder mergeIsCa(com.google.protobuf.BoolValue value) { return this; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIsCa() { if (isCaBuilder_ == null) { @@ -1045,62 +896,51 @@ public Builder clearIsCa() { return this; } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.BoolValue.Builder getIsCaBuilder() { - + onChanged(); return getIsCaFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() { if (isCaBuilder_ != null) { return isCaBuilder_.getMessageOrBuilder(); } else { - return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_; + return isCa_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : isCa_; } } /** - * - * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getIsCaFieldBuilder() { if (isCaBuilder_ == null) { - isCaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsCa(), getParentForChildren(), isClean()); + isCaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getIsCa(), + getParentForChildren(), + isClean()); isCa_ = null; } return isCaBuilder_; @@ -1108,13 +948,8 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() { private com.google.protobuf.Int32Value maxIssuerPathLength_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder> - maxIssuerPathLengthBuilder_; + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> maxIssuerPathLengthBuilder_; /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1124,18 +959,13 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the maxIssuerPathLength field is set. */ public boolean hasMaxIssuerPathLength() { return maxIssuerPathLengthBuilder_ != null || maxIssuerPathLength_ != null; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1145,24 +975,17 @@ public boolean hasMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The maxIssuerPathLength. */ public com.google.protobuf.Int32Value getMaxIssuerPathLength() { if (maxIssuerPathLengthBuilder_ == null) { - return maxIssuerPathLength_ == null - ? com.google.protobuf.Int32Value.getDefaultInstance() - : maxIssuerPathLength_; + return maxIssuerPathLength_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxIssuerPathLength_; } else { return maxIssuerPathLengthBuilder_.getMessage(); } } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1172,9 +995,7 @@ public com.google.protobuf.Int32Value getMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) { if (maxIssuerPathLengthBuilder_ == null) { @@ -1190,8 +1011,6 @@ public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) { return this; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1201,9 +1020,7 @@ public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaxIssuerPathLength( com.google.protobuf.Int32Value.Builder builderForValue) { @@ -1217,8 +1034,6 @@ public Builder setMaxIssuerPathLength( return this; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1228,17 +1043,13 @@ public Builder setMaxIssuerPathLength(
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) { if (maxIssuerPathLengthBuilder_ == null) { if (maxIssuerPathLength_ != null) { maxIssuerPathLength_ = - com.google.protobuf.Int32Value.newBuilder(maxIssuerPathLength_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Int32Value.newBuilder(maxIssuerPathLength_).mergeFrom(value).buildPartial(); } else { maxIssuerPathLength_ = value; } @@ -1250,8 +1061,6 @@ public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) { return this; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1261,9 +1070,7 @@ public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMaxIssuerPathLength() { if (maxIssuerPathLengthBuilder_ == null) { @@ -1277,8 +1084,6 @@ public Builder clearMaxIssuerPathLength() { return this; } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1288,18 +1093,14 @@ public Builder clearMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int32Value.Builder getMaxIssuerPathLengthBuilder() { - + onChanged(); return getMaxIssuerPathLengthFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1309,22 +1110,17 @@ public com.google.protobuf.Int32Value.Builder getMaxIssuerPathLengthBuilder() {
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() { if (maxIssuerPathLengthBuilder_ != null) { return maxIssuerPathLengthBuilder_.getMessageOrBuilder(); } else { - return maxIssuerPathLength_ == null - ? com.google.protobuf.Int32Value.getDefaultInstance() - : maxIssuerPathLength_; + return maxIssuerPathLength_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : maxIssuerPathLength_; } } /** - * - * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1334,27 +1130,21 @@ public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder()
        * CA certificate.
        * 
* - * - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder> + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getMaxIssuerPathLengthFieldBuilder() { if (maxIssuerPathLengthBuilder_ == null) { - maxIssuerPathLengthBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder>( - getMaxIssuerPathLength(), getParentForChildren(), isClean()); + maxIssuerPathLengthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getMaxIssuerPathLength(), + getParentForChildren(), + isClean()); maxIssuerPathLength_ = null; } return maxIssuerPathLengthBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1367,33 +1157,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) - private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CaOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1405,25 +1192,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.KeyUsage keyUsage_; /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the keyUsage field is set. */ @java.lang.Override @@ -1431,34 +1213,23 @@ public boolean hasKeyUsage() { return keyUsage_ != null; } /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The keyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage() { - return keyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() - : keyUsage_; + return keyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() : keyUsage_; } /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder() { @@ -1468,17 +1239,12 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsage public static final int CA_OPTIONS_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions caOptions_; /** - * - * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the caOptions field is set. */ @java.lang.Override @@ -1486,122 +1252,89 @@ public boolean hasCaOptions() { return caOptions_ != null; } /** - * - * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The caOptions. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions() { - return caOptions_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - .getDefaultInstance() - : caOptions_; + return caOptions_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance() : caOptions_; } /** - * - * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder - getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder() { return getCaOptions(); } public static final int POLICY_IDS_FIELD_NUMBER = 3; private java.util.List policyIds_; /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getPolicyIdsList() { return policyIds_; } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getPolicyIdsOrBuilderList() { return policyIds_; } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPolicyIdsCount() { return policyIds_.size(); } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index) { return policyIds_.get(index); } /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder( @@ -1612,8 +1345,6 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId public static final int AIA_OCSP_SERVERS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList aiaOcspServers_; /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1621,15 +1352,13 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList + getAiaOcspServersList() { return aiaOcspServers_; } /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1637,15 +1366,12 @@ public com.google.protobuf.ProtocolStringList getAiaOcspServersList() {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1653,7 +1379,6 @@ public int getAiaOcspServersCount() {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -1661,8 +1386,6 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1670,100 +1393,75 @@ public java.lang.String getAiaOcspServers(int index) {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString + getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 5; - private java.util.List - additionalExtensions_; + private java.util.List additionalExtensions_; /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getAdditionalExtensionsList() { + public java.util.List getAdditionalExtensionsList() { return additionalExtensions_; } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + public java.util.List getAdditionalExtensionsOrBuilderList() { return additionalExtensions_; } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAdditionalExtensionsCount() { return additionalExtensions_.size(); } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions( - int index) { + public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(int index) { return additionalExtensions_.get(index); } /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder - getAdditionalExtensionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( + int index) { return additionalExtensions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1775,7 +1473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (keyUsage_ != null) { output.writeMessage(1, getKeyUsage()); } @@ -1801,13 +1500,16 @@ public int getSerializedSize() { size = 0; if (keyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyUsage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getKeyUsage()); } if (caOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCaOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCaOptions()); } for (int i = 0; i < policyIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyIds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, policyIds_.get(i)); } { int dataSize = 0; @@ -1818,8 +1520,8 @@ public int getSerializedSize() { size += 1 * getAiaOcspServersList().size(); } for (int i = 0; i < additionalExtensions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, additionalExtensions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, additionalExtensions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1829,25 +1531,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other = - (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) obj; if (hasKeyUsage() != other.hasKeyUsage()) return false; if (hasKeyUsage()) { - if (!getKeyUsage().equals(other.getKeyUsage())) return false; + if (!getKeyUsage() + .equals(other.getKeyUsage())) return false; } if (hasCaOptions() != other.hasCaOptions()) return false; if (hasCaOptions()) { - if (!getCaOptions().equals(other.getCaOptions())) return false; - } - if (!getPolicyIdsList().equals(other.getPolicyIdsList())) return false; - if (!getAiaOcspServersList().equals(other.getAiaOcspServersList())) return false; - if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false; + if (!getCaOptions() + .equals(other.getCaOptions())) return false; + } + if (!getPolicyIdsList() + .equals(other.getPolicyIdsList())) return false; + if (!getAiaOcspServersList() + .equals(other.getAiaOcspServersList())) return false; + if (!getAdditionalExtensionsList() + .equals(other.getAdditionalExtensionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1885,104 +1591,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues 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.security.privateca.v1beta1.ReusableConfigValues parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
    * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -1991,23 +1689,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
       com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class,
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder()
@@ -2015,18 +1711,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPolicyIdsFieldBuilder();
         getAdditionalExtensionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2060,14 +1756,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance();
     }
 
@@ -2082,8 +1777,7 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result =
-          new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(this);
+      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(this);
       int from_bitField0_ = bitField0_;
       if (keyUsageBuilder_ == null) {
         result.keyUsage_ = keyUsage_;
@@ -2126,50 +1820,46 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance()) return this;
       if (other.hasKeyUsage()) {
         mergeKeyUsage(other.getKeyUsage());
       }
@@ -2194,10 +1884,9 @@ public Builder mergeFrom(
             policyIdsBuilder_ = null;
             policyIds_ = other.policyIds_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            policyIdsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPolicyIdsFieldBuilder()
-                    : null;
+            policyIdsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPolicyIdsFieldBuilder() : null;
           } else {
             policyIdsBuilder_.addAllMessages(other.policyIds_);
           }
@@ -2231,10 +1920,9 @@ public Builder mergeFrom(
             additionalExtensionsBuilder_ = null;
             additionalExtensions_ = other.additionalExtensions_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            additionalExtensionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAdditionalExtensionsFieldBuilder()
-                    : null;
+            additionalExtensionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAdditionalExtensionsFieldBuilder() : null;
           } else {
             additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
           }
@@ -2259,9 +1947,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2270,63 +1956,43 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1beta1.KeyUsage keyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.KeyUsage,
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder,
-            com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>
-        keyUsageBuilder_;
+        com.google.cloud.security.privateca.v1beta1.KeyUsage, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder> keyUsageBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the keyUsage field is set. */ public boolean hasKeyUsage() { return keyUsageBuilder_ != null || keyUsage_ != null; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The keyUsage. */ public com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage() { if (keyUsageBuilder_ == null) { - return keyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() - : keyUsage_; + return keyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() : keyUsage_; } else { return keyUsageBuilder_.getMessage(); } } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage value) { if (keyUsageBuilder_ == null) { @@ -2342,15 +2008,11 @@ public Builder setKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKeyUsage( com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder builderForValue) { @@ -2364,23 +2026,17 @@ public Builder setKeyUsage( return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage value) { if (keyUsageBuilder_ == null) { if (keyUsage_ != null) { keyUsage_ = - com.google.cloud.security.privateca.v1beta1.KeyUsage.newBuilder(keyUsage_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.newBuilder(keyUsage_).mergeFrom(value).buildPartial(); } else { keyUsage_ = value; } @@ -2392,15 +2048,11 @@ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsag return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearKeyUsage() { if (keyUsageBuilder_ == null) { @@ -2414,64 +2066,48 @@ public Builder clearKeyUsage() { return this; } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder getKeyUsageBuilder() { - + onChanged(); return getKeyUsageFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder() { if (keyUsageBuilder_ != null) { return keyUsageBuilder_.getMessageOrBuilder(); } else { - return keyUsage_ == null - ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() - : keyUsage_; + return keyUsage_ == null ? + com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() : keyUsage_; } } /** - * - * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage, - com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder> + com.google.cloud.security.privateca.v1beta1.KeyUsage, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder> getKeyUsageFieldBuilder() { if (keyUsageBuilder_ == null) { - keyUsageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage, - com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, - com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>( - getKeyUsage(), getParentForChildren(), isClean()); + keyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.KeyUsage, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>( + getKeyUsage(), + getParentForChildren(), + isClean()); keyUsage_ = null; } return keyUsageBuilder_; @@ -2479,66 +2115,44 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsage private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions caOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> - caOptionsBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> caOptionsBuilder_; /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the caOptions field is set. */ public boolean hasCaOptions() { return caOptionsBuilder_ != null || caOptions_ != null; } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The caOptions. */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - getCaOptions() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions() { if (caOptionsBuilder_ == null) { - return caOptions_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - .getDefaultInstance() - : caOptions_; + return caOptions_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance() : caOptions_; } else { return caOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCaOptions( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { + public Builder setCaOptions(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { if (caOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2552,20 +2166,15 @@ public Builder setCaOptions( return this; } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCaOptions( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder builderForValue) { if (caOptionsBuilder_ == null) { caOptions_ = builderForValue.build(); onChanged(); @@ -2576,26 +2185,18 @@ public Builder setCaOptions( return this; } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCaOptions( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { + public Builder mergeCaOptions(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { if (caOptionsBuilder_ == null) { if (caOptions_ != null) { caOptions_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder( - caOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder(caOptions_).mergeFrom(value).buildPartial(); } else { caOptions_ = value; } @@ -2607,16 +2208,12 @@ public Builder mergeCaOptions( return this; } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCaOptions() { if (caOptionsBuilder_ == null) { @@ -2630,104 +2227,75 @@ public Builder clearCaOptions() { return this; } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder - getCaOptionsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder getCaOptionsBuilder() { + onChanged(); return getCaOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder - getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder() { if (caOptionsBuilder_ != null) { return caOptionsBuilder_.getMessageOrBuilder(); } else { - return caOptions_ == null - ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions - .getDefaultInstance() - : caOptions_; + return caOptions_ == null ? + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance() : caOptions_; } } /** - * - * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> getCaOptionsFieldBuilder() { if (caOptionsBuilder_ == null) { - caOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - .CaOptionsOrBuilder>(getCaOptions(), getParentForChildren(), isClean()); + caOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder>( + getCaOptions(), + getParentForChildren(), + isClean()); caOptions_ = null; } return caOptionsBuilder_; } private java.util.List policyIds_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePolicyIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policyIds_ = - new java.util.ArrayList( - policyIds_); + policyIds_ = new java.util.ArrayList(policyIds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> - policyIdsBuilder_; + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> policyIdsBuilder_; /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getPolicyIdsList() { if (policyIdsBuilder_ == null) { @@ -2737,16 +2305,12 @@ public java.util.List getP } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPolicyIdsCount() { if (policyIdsBuilder_ == null) { @@ -2756,16 +2320,12 @@ public int getPolicyIdsCount() { } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2775,16 +2335,12 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int ind } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -2801,16 +2357,12 @@ public Builder setPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -2824,16 +2376,12 @@ public Builder setPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (policyIdsBuilder_ == null) { @@ -2849,16 +2397,12 @@ public Builder addPolicyIds(com.google.cloud.security.privateca.v1beta1.ObjectId return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -2875,16 +2419,12 @@ public Builder addPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds( com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -2898,16 +2438,12 @@ public Builder addPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -2921,22 +2457,19 @@ public Builder addPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPolicyIds( java.lang.Iterable values) { if (policyIdsBuilder_ == null) { ensurePolicyIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyIds_); onChanged(); } else { policyIdsBuilder_.addAllMessages(values); @@ -2944,16 +2477,12 @@ public Builder addAllPolicyIds( return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPolicyIds() { if (policyIdsBuilder_ == null) { @@ -2966,16 +2495,12 @@ public Builder clearPolicyIds() { return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removePolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2988,55 +2513,42 @@ public Builder removePolicyIds(int index) { return this; } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getPolicyIdsBuilder( int index) { return getPolicyIdsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder( int index) { if (policyIdsBuilder_ == null) { - return policyIds_.get(index); - } else { + return policyIds_.get(index); } else { return policyIdsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPolicyIdsOrBuilderList() { + public java.util.List + getPolicyIdsOrBuilderList() { if (policyIdsBuilder_ != null) { return policyIdsBuilder_.getMessageOrBuilderList(); } else { @@ -3044,85 +2556,65 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId } } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIdsBuilder() { - return getPolicyIdsFieldBuilder() - .addBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + return getPolicyIdsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIdsBuilder( int index) { - return getPolicyIdsFieldBuilder() - .addBuilder( - index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + return getPolicyIdsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPolicyIdsBuilderList() { + public java.util.List + getPolicyIdsBuilderList() { return getPolicyIdsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> getPolicyIdsFieldBuilder() { if (policyIdsBuilder_ == null) { - policyIdsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( - policyIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + policyIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( + policyIds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); policyIds_ = null; } return policyIdsBuilder_; } - private com.google.protobuf.LazyStringList aiaOcspServers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAiaOcspServersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList(aiaOcspServers_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3130,15 +2622,13 @@ private void ensureAiaOcspServersIsMutable() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList + getAiaOcspServersList() { return aiaOcspServers_.getUnmodifiableView(); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3146,15 +2636,12 @@ public com.google.protobuf.ProtocolStringList getAiaOcspServersList() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3162,7 +2649,6 @@ public int getAiaOcspServersCount() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -3170,8 +2656,6 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3179,16 +2663,14 @@ public java.lang.String getAiaOcspServers(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString + getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3196,23 +2678,21 @@ public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The aiaOcspServers to set. * @return This builder for chaining. */ - public Builder setAiaOcspServers(int index, java.lang.String value) { + public Builder setAiaOcspServers( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3220,22 +2700,20 @@ public Builder setAiaOcspServers(int index, java.lang.String value) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServers(java.lang.String value) { + public Builder addAiaOcspServers( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3243,19 +2721,18 @@ public Builder addAiaOcspServers(java.lang.String value) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAllAiaOcspServers(java.lang.Iterable values) { + public Builder addAllAiaOcspServers( + java.lang.Iterable values) { ensureAiaOcspServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaOcspServers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, aiaOcspServers_); onChanged(); return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3263,7 +2740,6 @@ public Builder addAllAiaOcspServers(java.lang.Iterable values)
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAiaOcspServers() { @@ -3273,8 +2749,6 @@ public Builder clearAiaOcspServers() { return this; } /** - * - * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -3282,52 +2756,41 @@ public Builder clearAiaOcspServers() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServersBytes(com.google.protobuf.ByteString value) { + public Builder addAiaOcspServersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } - private java.util.List - additionalExtensions_ = java.util.Collections.emptyList(); - + private java.util.List additionalExtensions_ = + java.util.Collections.emptyList(); private void ensureAdditionalExtensionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - additionalExtensions_ = - new java.util.ArrayList( - additionalExtensions_); + additionalExtensions_ = new java.util.ArrayList(additionalExtensions_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> - additionalExtensionsBuilder_; + com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> additionalExtensionsBuilder_; /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsList() { + public java.util.List getAdditionalExtensionsList() { if (additionalExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalExtensions_); } else { @@ -3335,15 +2798,11 @@ private void ensureAdditionalExtensionsIsMutable() { } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAdditionalExtensionsCount() { if (additionalExtensionsBuilder_ == null) { @@ -3353,18 +2812,13 @@ public int getAdditionalExtensionsCount() { } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions( - int index) { + public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { return additionalExtensions_.get(index); } else { @@ -3372,15 +2826,11 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalEx } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1beta1.X509Extension value) { @@ -3397,19 +2847,14 @@ public Builder setAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdditionalExtensions( - int index, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); additionalExtensions_.set(index, builderForValue.build()); @@ -3420,18 +2865,13 @@ public Builder setAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAdditionalExtensions( - com.google.cloud.security.privateca.v1beta1.X509Extension value) { + public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1beta1.X509Extension value) { if (additionalExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3445,15 +2885,11 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1beta1.X509Extension value) { @@ -3470,15 +2906,11 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { @@ -3492,19 +2924,14 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdditionalExtensions( - int index, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); additionalExtensions_.add(index, builderForValue.build()); @@ -3515,22 +2942,18 @@ public Builder addAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAdditionalExtensions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalExtensions_); onChanged(); } else { additionalExtensionsBuilder_.addAllMessages(values); @@ -3538,15 +2961,11 @@ public Builder addAllAdditionalExtensions( return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdditionalExtensions() { if (additionalExtensionsBuilder_ == null) { @@ -3559,15 +2978,11 @@ public Builder clearAdditionalExtensions() { return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -3580,53 +2995,39 @@ public Builder removeAdditionalExtensions(int index) { return this; } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder - getAdditionalExtensionsBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder getAdditionalExtensionsBuilder( + int index) { return getAdditionalExtensionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder - getAdditionalExtensionsOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( + int index) { if (additionalExtensionsBuilder_ == null) { - return additionalExtensions_.get(index); - } else { + return additionalExtensions_.get(index); } else { return additionalExtensionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> - getAdditionalExtensionsOrBuilderList() { + public java.util.List + getAdditionalExtensionsOrBuilderList() { if (additionalExtensionsBuilder_ != null) { return additionalExtensionsBuilder_.getMessageOrBuilderList(); } else { @@ -3634,67 +3035,45 @@ public Builder removeAdditionalExtensions(int index) { } } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder - addAdditionalExtensionsBuilder() { - return getAdditionalExtensionsFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addAdditionalExtensionsBuilder() { + return getAdditionalExtensionsFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder - addAdditionalExtensionsBuilder(int index) { - return getAdditionalExtensionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addAdditionalExtensionsBuilder( + int index) { + return getAdditionalExtensionsFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** - * - * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdditionalExtensionsBuilderList() { + public java.util.List + getAdditionalExtensionsBuilderList() { return getAdditionalExtensionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> getAdditionalExtensionsFieldBuilder() { if (additionalExtensionsBuilder_ == null) { - additionalExtensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( + additionalExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( additionalExtensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3703,9 +3082,9 @@ public Builder removeAdditionalExtensions(int index) { } return additionalExtensionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3715,32 +3094,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues) - private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReusableConfigValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReusableConfigValues(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReusableConfigValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReusableConfigValues(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3752,8 +3129,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java similarity index 60% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java index f2673d65..0ba5c05c 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java @@ -1,184 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ReusableConfigValuesOrBuilder - extends +public interface ReusableConfigValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigValues) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the keyUsage field is set. */ boolean hasKeyUsage(); /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The keyUsage. */ com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage(); /** - * - * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder(); /** - * - * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the caOptions field is set. */ boolean hasCaOptions(); /** - * - * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The caOptions. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions(); /** - * - * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder - getCaOptionsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getPolicyIdsList(); + java.util.List + getPolicyIdsList(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getPolicyIdsCount(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getPolicyIdsOrBuilderList(); /** - * - * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder( + int index); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -186,13 +121,11 @@ public interface ReusableConfigValuesOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the aiaOcspServers. */ - java.util.List getAiaOcspServersList(); + java.util.List + getAiaOcspServersList(); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -200,13 +133,10 @@ public interface ReusableConfigValuesOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of aiaOcspServers. */ int getAiaOcspServersCount(); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -214,14 +144,11 @@ public interface ReusableConfigValuesOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ java.lang.String getAiaOcspServers(int index); /** - * - * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -229,73 +156,53 @@ public interface ReusableConfigValuesOrBuilder
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - com.google.protobuf.ByteString getAiaOcspServersBytes(int index); + com.google.protobuf.ByteString + getAiaOcspServersBytes(int index); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAdditionalExtensionsList(); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(int index); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAdditionalExtensionsCount(); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAdditionalExtensionsOrBuilderList(); /** - * - * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder - getAdditionalExtensionsOrBuilder(int index); + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( + int index); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java index 6648f3e1..00b369e7 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] describes values that may assist in creating an
  * X.509 certificate, or a reference to a pre-defined set of values.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigWrapper}
  */
-public final class ReusableConfigWrapper extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReusableConfigWrapper extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)
     ReusableConfigWrapperOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReusableConfigWrapper.newBuilder() to construct.
   private ReusableConfigWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ReusableConfigWrapper() {}
+  private ReusableConfigWrapper() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReusableConfigWrapper();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ReusableConfigWrapper(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,43 +53,33 @@ private ReusableConfigWrapper(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              configValuesCase_ = 1;
-              configValues_ = s;
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            configValuesCase_ = 1;
+            configValues_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder = null;
+            if (configValuesCase_ == 2) {
+              subBuilder = ((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_).toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder =
-                  null;
-              if (configValuesCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)
-                            configValues_)
-                        .toBuilder();
-              }
-              configValues_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)
-                        configValues_);
-                configValues_ = subBuilder.buildPartial();
-              }
-              configValuesCase_ = 2;
-              break;
+            configValues_ =
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_);
+              configValues_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            configValuesCase_ = 2;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,40 +87,35 @@ private ReusableConfigWrapper(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class,
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
   }
 
   private int configValuesCase_ = 0;
   private java.lang.Object configValues_;
-
   public enum ConfigValuesCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     REUSABLE_CONFIG(1),
     REUSABLE_CONFIG_VALUES(2),
     CONFIGVALUES_NOT_SET(0);
     private final int value;
-
     private ConfigValuesCase(int value) {
       this.value = value;
     }
@@ -162,52 +131,43 @@ public static ConfigValuesCase valueOf(int value) {
 
     public static ConfigValuesCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return REUSABLE_CONFIG;
-        case 2:
-          return REUSABLE_CONFIG_VALUES;
-        case 0:
-          return CONFIGVALUES_NOT_SET;
-        default:
-          return null;
+        case 1: return REUSABLE_CONFIG;
+        case 2: return REUSABLE_CONFIG_VALUES;
+        case 0: return CONFIGVALUES_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ConfigValuesCase getConfigValuesCase() {
-    return ConfigValuesCase.forNumber(configValuesCase_);
+  public ConfigValuesCase
+  getConfigValuesCase() {
+    return ConfigValuesCase.forNumber(
+        configValuesCase_);
   }
 
   public static final int REUSABLE_CONFIG_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the reusableConfig field is set. */ public boolean hasReusableConfig() { return configValuesCase_ == 1; } /** - * - * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reusableConfig. */ public java.lang.String getReusableConfig() { @@ -218,7 +178,8 @@ public java.lang.String getReusableConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (configValuesCase_ == 1) { configValues_ = s; @@ -227,25 +188,24 @@ public java.lang.String getReusableConfig() { } } /** - * - * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reusableConfig. */ - public com.google.protobuf.ByteString getReusableConfigBytes() { + public com.google.protobuf.ByteString + getReusableConfigBytes() { java.lang.Object ref = ""; if (configValuesCase_ == 1) { ref = configValues_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (configValuesCase_ == 1) { configValues_ = b; } @@ -257,16 +217,11 @@ public com.google.protobuf.ByteString getReusableConfigBytes() { public static final int REUSABLE_CONFIG_VALUES_FIELD_NUMBER = 2; /** - * - * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reusableConfigValues field is set. */ @java.lang.Override @@ -274,48 +229,36 @@ public boolean hasReusableConfigValues() { return configValuesCase_ == 2; } /** - * - * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reusableConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - getReusableConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getReusableConfigValues() { if (configValuesCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } /** - * - * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getReusableConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getReusableConfigValuesOrBuilder() { if (configValuesCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,13 +270,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (configValuesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configValues_); } if (configValuesCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); + output.writeMessage(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); } unknownFields.writeTo(output); } @@ -348,9 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configValues_); } if (configValuesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,21 +302,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.security.privateca.v1beta1.ReusableConfigWrapper)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other = - (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other = (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) obj; if (!getConfigValuesCase().equals(other.getConfigValuesCase())) return false; switch (configValuesCase_) { case 1: - if (!getReusableConfig().equals(other.getReusableConfig())) return false; + if (!getReusableConfig() + .equals(other.getReusableConfig())) return false; break; case 2: - if (!getReusableConfigValues().equals(other.getReusableConfigValues())) return false; + if (!getReusableConfigValues() + .equals(other.getReusableConfigValues())) return false; break; case 0: default: @@ -408,105 +351,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper 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.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - 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.security.privateca.v1beta1.ReusableConfigWrapper 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.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] describes values that may assist in creating an
    * X.509 certificate, or a reference to a pre-defined set of values.
@@ -514,40 +448,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigWrapper}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)
       com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class,
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -557,14 +489,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance();
     }
 
@@ -579,8 +510,7 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper result =
-          new com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper(this);
+      com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper result = new com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper(this);
       if (configValuesCase_ == 1) {
         result.configValues_ = configValues_;
       }
@@ -600,67 +530,60 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper 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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()) return this;
       switch (other.getConfigValuesCase()) {
-        case REUSABLE_CONFIG:
-          {
-            configValuesCase_ = 1;
-            configValues_ = other.configValues_;
-            onChanged();
-            break;
-          }
-        case REUSABLE_CONFIG_VALUES:
-          {
-            mergeReusableConfigValues(other.getReusableConfigValues());
-            break;
-          }
-        case CONFIGVALUES_NOT_SET:
-          {
-            break;
-          }
+        case REUSABLE_CONFIG: {
+          configValuesCase_ = 1;
+          configValues_ = other.configValues_;
+          onChanged();
+          break;
+        }
+        case REUSABLE_CONFIG_VALUES: {
+          mergeReusableConfigValues(other.getReusableConfigValues());
+          break;
+        }
+        case CONFIGVALUES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -681,9 +604,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -692,12 +613,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int configValuesCase_ = 0;
     private java.lang.Object configValues_;
-
-    public ConfigValuesCase getConfigValuesCase() {
-      return ConfigValuesCase.forNumber(configValuesCase_);
+    public ConfigValuesCase
+        getConfigValuesCase() {
+      return ConfigValuesCase.forNumber(
+          configValuesCase_);
     }
 
     public Builder clearConfigValues() {
@@ -707,16 +628,14 @@ public Builder clearConfigValues() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the reusableConfig field is set. */ @java.lang.Override @@ -724,15 +643,12 @@ public boolean hasReusableConfig() { return configValuesCase_ == 1; } /** - * - * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reusableConfig. */ @java.lang.Override @@ -742,7 +658,8 @@ public java.lang.String getReusableConfig() { ref = configValues_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (configValuesCase_ == 1) { configValues_ = s; @@ -753,26 +670,25 @@ public java.lang.String getReusableConfig() { } } /** - * - * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reusableConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getReusableConfigBytes() { + public com.google.protobuf.ByteString + getReusableConfigBytes() { java.lang.Object ref = ""; if (configValuesCase_ == 1) { ref = configValues_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (configValuesCase_ == 1) { configValues_ = b; } @@ -782,37 +698,32 @@ public com.google.protobuf.ByteString getReusableConfigBytes() { } } /** - * - * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The reusableConfig to set. * @return This builder for chaining. */ - public Builder setReusableConfig(java.lang.String value) { + public Builder setReusableConfig( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - configValuesCase_ = 1; + throw new NullPointerException(); + } + configValuesCase_ = 1; configValues_ = value; onChanged(); return this; } /** - * - * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearReusableConfig() { @@ -824,23 +735,21 @@ public Builder clearReusableConfig() { return this; } /** - * - * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for reusableConfig to set. * @return This builder for chaining. */ - public Builder setReusableConfigBytes(com.google.protobuf.ByteString value) { + public Builder setReusableConfigBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); configValuesCase_ = 1; configValues_ = value; onChanged(); @@ -848,21 +757,13 @@ public Builder setReusableConfigBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> - reusableConfigValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> reusableConfigValuesBuilder_; /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reusableConfigValues field is set. */ @java.lang.Override @@ -870,48 +771,35 @@ public boolean hasReusableConfigValues() { return configValuesCase_ == 2; } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reusableConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - getReusableConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getReusableConfigValues() { if (reusableConfigValuesBuilder_ == null) { if (configValuesCase_ == 2) { return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } else { if (configValuesCase_ == 2) { return reusableConfigValuesBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setReusableConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder setReusableConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (reusableConfigValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -925,15 +813,11 @@ public Builder setReusableConfigValues( return this; } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReusableConfigValues( com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder builderForValue) { @@ -947,29 +831,18 @@ public Builder setReusableConfigValues( return this; } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeReusableConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder mergeReusableConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (reusableConfigValuesBuilder_ == null) { - if (configValuesCase_ == 2 - && configValues_ - != com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - .getDefaultInstance()) { - configValues_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder( - (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) - configValues_) - .mergeFrom(value) - .buildPartial(); + if (configValuesCase_ == 2 && + configValues_ != com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance()) { + configValues_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_) + .mergeFrom(value).buildPartial(); } else { configValues_ = value; } @@ -985,15 +858,11 @@ public Builder mergeReusableConfigValues( return this; } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReusableConfigValues() { if (reusableConfigValuesBuilder_ == null) { @@ -1012,83 +881,61 @@ public Builder clearReusableConfigValues() { return this; } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder - getReusableConfigValuesBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder getReusableConfigValuesBuilder() { return getReusableConfigValuesFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getReusableConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getReusableConfigValuesOrBuilder() { if ((configValuesCase_ == 2) && (reusableConfigValuesBuilder_ != null)) { return reusableConfigValuesBuilder_.getMessageOrBuilder(); } else { if (configValuesCase_ == 2) { return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } } /** - * - * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> getReusableConfigValuesFieldBuilder() { if (reusableConfigValuesBuilder_ == null) { if (!(configValuesCase_ == 2)) { - configValues_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); + configValues_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } - reusableConfigValuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( + reusableConfigValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_, getParentForChildren(), isClean()); configValues_ = null; } configValuesCase_ = 2; - onChanged(); - ; + onChanged();; return reusableConfigValuesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1098,32 +945,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper(); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReusableConfigWrapper parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReusableConfigWrapper(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReusableConfigWrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReusableConfigWrapper(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +980,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java similarity index 62% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java index eb54dc6b..5e83bd06 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java @@ -1,110 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ReusableConfigWrapperOrBuilder - extends +public interface ReusableConfigWrapperOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the reusableConfig field is set. */ boolean hasReusableConfig(); /** - * - * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reusableConfig. */ java.lang.String getReusableConfig(); /** - * - * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reusableConfig. */ - com.google.protobuf.ByteString getReusableConfigBytes(); + com.google.protobuf.ByteString + getReusableConfigBytes(); /** - * - * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reusableConfigValues field is set. */ boolean hasReusableConfigValues(); /** - * - * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reusableConfigValues. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getReusableConfigValues(); /** - * - * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder - getReusableConfigValuesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getReusableConfigValuesOrBuilder(); - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.ConfigValuesCase - getConfigValuesCase(); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.ConfigValuesCase getConfigValuesCase(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java similarity index 78% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java index 8a038bb9..745792b4 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * A [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked,
  * and the reason for revocation. These correspond to standard revocation
@@ -31,10 +14,9 @@
  *
  * Protobuf enum {@code google.cloud.security.privateca.v1beta1.RevocationReason}
  */
-public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum {
+public enum RevocationReason
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -44,8 +26,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   REVOCATION_REASON_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have leaked.
    * 
@@ -54,8 +34,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ KEY_COMPROMISE(1), /** - * - * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -65,8 +43,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   CERTIFICATE_AUTHORITY_COMPROMISE(2),
   /**
-   *
-   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] have changed.
    * 
@@ -75,8 +51,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ AFFILIATION_CHANGED(3), /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been superseded.
    * 
@@ -85,8 +59,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ SUPERSEDED(4), /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -96,8 +68,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   CESSATION_OF_OPERATION(5),
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -107,8 +77,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   CERTIFICATE_HOLD(6),
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -118,8 +86,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   PRIVILEGE_WITHDRAWN(7),
   /**
-   *
-   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * may have been compromised.
@@ -132,8 +98,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
   ;
 
   /**
-   *
-   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -143,8 +107,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int REVOCATION_REASON_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have leaked.
    * 
@@ -153,8 +115,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int KEY_COMPROMISE_VALUE = 1; /** - * - * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -164,8 +124,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int CERTIFICATE_AUTHORITY_COMPROMISE_VALUE = 2;
   /**
-   *
-   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] have changed.
    * 
@@ -174,8 +132,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int AFFILIATION_CHANGED_VALUE = 3; /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been superseded.
    * 
@@ -184,8 +140,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum */ public static final int SUPERSEDED_VALUE = 4; /** - * - * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -195,8 +149,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int CESSATION_OF_OPERATION_VALUE = 5;
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -206,8 +158,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int CERTIFICATE_HOLD_VALUE = 6;
   /**
-   *
-   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -217,8 +167,6 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int PRIVILEGE_WITHDRAWN_VALUE = 7;
   /**
-   *
-   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * may have been compromised.
@@ -228,6 +176,7 @@ public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int ATTRIBUTE_AUTHORITY_COMPROMISE_VALUE = 8;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -252,63 +201,55 @@ public static RevocationReason valueOf(int value) {
    */
   public static RevocationReason forNumber(int value) {
     switch (value) {
-      case 0:
-        return REVOCATION_REASON_UNSPECIFIED;
-      case 1:
-        return KEY_COMPROMISE;
-      case 2:
-        return CERTIFICATE_AUTHORITY_COMPROMISE;
-      case 3:
-        return AFFILIATION_CHANGED;
-      case 4:
-        return SUPERSEDED;
-      case 5:
-        return CESSATION_OF_OPERATION;
-      case 6:
-        return CERTIFICATE_HOLD;
-      case 7:
-        return PRIVILEGE_WITHDRAWN;
-      case 8:
-        return ATTRIBUTE_AUTHORITY_COMPROMISE;
-      default:
-        return null;
+      case 0: return REVOCATION_REASON_UNSPECIFIED;
+      case 1: return KEY_COMPROMISE;
+      case 2: return CERTIFICATE_AUTHORITY_COMPROMISE;
+      case 3: return AFFILIATION_CHANGED;
+      case 4: return SUPERSEDED;
+      case 5: return CESSATION_OF_OPERATION;
+      case 6: return CERTIFICATE_HOLD;
+      case 7: return PRIVILEGE_WITHDRAWN;
+      case 8: return ATTRIBUTE_AUTHORITY_COMPROMISE;
+      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<
+      RevocationReason> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public RevocationReason findValueByNumber(int number) {
+            return RevocationReason.forNumber(number);
+          }
+        };
 
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public RevocationReason findValueByNumber(int number) {
-          return RevocationReason.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor()
-        .getEnumTypes()
-        .get(0);
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final RevocationReason[] VALUES = values();
 
-  public static RevocationReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static RevocationReason valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -324,3 +265,4 @@ private RevocationReason(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1beta1.RevocationReason)
 }
+
diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
similarity index 69%
rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
index 1f6718f8..54902c96 100644
--- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.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/security/privateca/v1beta1/service.proto
 
 package com.google.cloud.security.privateca.v1beta1;
 
 /**
- *
- *
  * 
  * Request message for
  * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.RevokeCertificateRequest}
  */
-public final class RevokeCertificateRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RevokeCertificateRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)
     RevokeCertificateRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RevokeCertificateRequest.newBuilder() to construct.
   private RevokeCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RevokeCertificateRequest() {
     name_ = "";
     reason_ = 0;
@@ -46,15 +28,16 @@ private RevokeCertificateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RevokeCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RevokeCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,34 +56,31 @@ private RevokeCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              reason_ = rawValue;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reason_ = rawValue;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,42 +88,35 @@ private RevokeCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class,
-            com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * - * string name = 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 @@ -152,32 +125,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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * - * string name = 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 { @@ -188,50 +159,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REASON_FIELD_NUMBER = 2; private int reason_; /** - * - * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reason. */ - @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason() { + @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = - com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); + return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; } public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -247,7 +201,6 @@ public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason()
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -256,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -280,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -297,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,14 +261,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 (reason_ - != com.google.cloud.security.privateca.v1beta1.RevocationReason - .REVOCATION_REASON_UNSPECIFIED - .getNumber()) { + if (reason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { @@ -334,11 +284,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (reason_ - != com.google.cloud.security.privateca.v1beta1.RevocationReason - .REVOCATION_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reason_); + if (reason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -351,17 +299,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other = - (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (reason_ != other.reason_) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,105 +334,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest 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.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest - 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.security.privateca.v1beta1.RevokeCertificateRequest 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.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate].
@@ -491,40 +431,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.RevokeCertificateRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)
       com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class,
-              com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -538,16 +476,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -561,8 +497,7 @@ public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest buil
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest result =
-          new com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest(this);
+      com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest(this);
       result.name_ = name_;
       result.reason_ = reason_;
       result.requestId_ = requestId_;
@@ -574,51 +509,46 @@ public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest buil
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -649,9 +579,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -663,23 +591,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * - * string name = 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; @@ -688,24 +612,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * - * string name = 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 { @@ -713,70 +634,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * - * 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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * - * string 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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * - * 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; @@ -784,75 +692,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int reason_ = 0; /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { - + reason_ = value; onChanged(); return this; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reason. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = - com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); - return result == null - ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED - : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); + return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The reason to set. * @return This builder for chaining. */ @@ -860,26 +744,21 @@ public Builder setReason(com.google.cloud.security.privateca.v1beta1.RevocationR if (value == null) { throw new NullPointerException(); } - + reason_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = 0; onChanged(); return this; @@ -887,8 +766,6 @@ public Builder clearReason() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -904,13 +781,13 @@ public Builder clearReason() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -919,8 +796,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -936,14 +811,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -951,8 +827,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -968,22 +842,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -999,18 +871,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1026,23 +895,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1052,32 +921,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokeCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokeCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokeCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1089,8 +956,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java index eb95c14e..6eb0b7c9 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java @@ -1,91 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface RevokeCertificateRequestOrBuilder - extends +public interface RevokeCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * - * string name = 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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * - * string name = 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 [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reason. */ com.google.cloud.security.privateca.v1beta1.RevocationReason getReason(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -101,13 +64,10 @@ public interface RevokeCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -123,8 +83,8 @@ public interface RevokeCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java similarity index 62% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java index 9834cda4..21d9c3f9 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java @@ -1,46 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.ScheduleDeleteCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority].
  * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} */ -public final class ScheduleDeleteCertificateAuthorityRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScheduleDeleteCertificateAuthorityRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) ScheduleDeleteCertificateAuthorityRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScheduleDeleteCertificateAuthorityRequest.newBuilder() to construct. - private ScheduleDeleteCertificateAuthorityRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ScheduleDeleteCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScheduleDeleteCertificateAuthorityRequest() { name_ = ""; requestId_ = ""; @@ -48,15 +27,16 @@ private ScheduleDeleteCertificateAuthorityRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScheduleDeleteCertificateAuthorityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScheduleDeleteCertificateAuthorityRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,27 +55,25 @@ private ScheduleDeleteCertificateAuthorityRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,44 +81,35 @@ private ScheduleDeleteCertificateAuthorityRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .class, - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 @@ -149,32 +118,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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 { @@ -185,8 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -202,7 +167,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -211,15 +175,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -235,15 +198,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,7 +216,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -294,18 +258,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.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,169 +289,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - 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.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest 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.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ScheduleDeleteCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) - com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .class, - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -500,23 +430,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - build() { - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest build() { + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -524,11 +450,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = - new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest( - this); + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -539,55 +462,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -611,14 +525,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,23 +541,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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; @@ -655,24 +562,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string name = 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,70 +584,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * - * 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; @@ -751,8 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -768,13 +657,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -783,8 +672,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -800,14 +687,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -815,8 +703,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -832,22 +718,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -863,18 +747,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -890,23 +771,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -916,36 +797,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1 - .ScheduleDeleteCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScheduleDeleteCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScheduleDeleteCertificateAuthorityRequest(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScheduleDeleteCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScheduleDeleteCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,8 +832,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java index cf18b5c2..25799eb7 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder - extends +public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -72,13 +45,10 @@ public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,8 +64,8 @@ public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java index ce728d71..ebe3b155 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
  * describes the subject of the certificate.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.Subject}
  */
-public final class Subject extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Subject extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.Subject)
     SubjectOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Subject.newBuilder() to construct.
   private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Subject() {
     countryCode_ = "";
     organization_ = "";
@@ -50,15 +32,16 @@ private Subject() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Subject();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Subject(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,62 +60,55 @@ private Subject(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              countryCode_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            countryCode_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              organization_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            organization_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              organizationalUnit_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            organizationalUnit_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              locality_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            locality_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              province_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            province_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              streetAddress_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            streetAddress_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              postalCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            postalCode_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -140,39 +116,34 @@ private Subject(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.Subject.class,
-            com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.Subject.class, com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
   }
 
   public static final int COUNTRY_CODE_FIELD_NUMBER = 1;
   private volatile java.lang.Object countryCode_;
   /**
-   *
-   *
    * 
    * The country code of the subject.
    * 
* * string country_code = 1; - * * @return The countryCode. */ @java.lang.Override @@ -181,29 +152,29 @@ public java.lang.String getCountryCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } } /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 1; - * * @return The bytes for countryCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCountryCodeBytes() { + public com.google.protobuf.ByteString + getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); countryCode_ = b; return b; } else { @@ -214,14 +185,11 @@ public com.google.protobuf.ByteString getCountryCodeBytes() { public static final int ORGANIZATION_FIELD_NUMBER = 2; private volatile java.lang.Object organization_; /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 2; - * * @return The organization. */ @java.lang.Override @@ -230,29 +198,29 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 2; - * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -263,14 +231,11 @@ public com.google.protobuf.ByteString getOrganizationBytes() { public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER = 3; private volatile java.lang.Object organizationalUnit_; /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; - * * @return The organizationalUnit. */ @java.lang.Override @@ -279,29 +244,29 @@ public java.lang.String getOrganizationalUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; } } /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; - * * @return The bytes for organizationalUnit. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString + getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -312,14 +277,11 @@ public com.google.protobuf.ByteString getOrganizationalUnitBytes() { public static final int LOCALITY_FIELD_NUMBER = 4; private volatile java.lang.Object locality_; /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 4; - * * @return The locality. */ @java.lang.Override @@ -328,29 +290,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 4; - * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -361,14 +323,11 @@ public com.google.protobuf.ByteString getLocalityBytes() { public static final int PROVINCE_FIELD_NUMBER = 5; private volatile java.lang.Object province_; /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; - * * @return The province. */ @java.lang.Override @@ -377,29 +336,29 @@ public java.lang.String getProvince() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } } /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; - * * @return The bytes for province. */ @java.lang.Override - public com.google.protobuf.ByteString getProvinceBytes() { + public com.google.protobuf.ByteString + getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); province_ = b; return b; } else { @@ -410,14 +369,11 @@ public com.google.protobuf.ByteString getProvinceBytes() { public static final int STREET_ADDRESS_FIELD_NUMBER = 6; private volatile java.lang.Object streetAddress_; /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 6; - * * @return The streetAddress. */ @java.lang.Override @@ -426,29 +382,29 @@ public java.lang.String getStreetAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; } } /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 6; - * * @return The bytes for streetAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getStreetAddressBytes() { + public com.google.protobuf.ByteString + getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -459,14 +415,11 @@ public com.google.protobuf.ByteString getStreetAddressBytes() { public static final int POSTAL_CODE_FIELD_NUMBER = 7; private volatile java.lang.Object postalCode_; /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; - * * @return The postalCode. */ @java.lang.Override @@ -475,29 +428,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; - * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -506,7 +459,6 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,7 +470,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, countryCode_); } @@ -578,21 +531,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.Subject)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.Subject other = - (com.google.cloud.security.privateca.v1beta1.Subject) obj; - - if (!getCountryCode().equals(other.getCountryCode())) return false; - if (!getOrganization().equals(other.getOrganization())) return false; - if (!getOrganizationalUnit().equals(other.getOrganizationalUnit())) return false; - if (!getLocality().equals(other.getLocality())) return false; - if (!getProvince().equals(other.getProvince())) return false; - if (!getStreetAddress().equals(other.getStreetAddress())) return false; - if (!getPostalCode().equals(other.getPostalCode())) return false; + com.google.cloud.security.privateca.v1beta1.Subject other = (com.google.cloud.security.privateca.v1beta1.Subject) obj; + + if (!getCountryCode() + .equals(other.getCountryCode())) return false; + if (!getOrganization() + .equals(other.getOrganization())) return false; + if (!getOrganizationalUnit() + .equals(other.getOrganizationalUnit())) return false; + if (!getLocality() + .equals(other.getLocality())) return false; + if (!getProvince() + .equals(other.getProvince())) return false; + if (!getStreetAddress() + .equals(other.getStreetAddress())) return false; + if (!getPostalCode() + .equals(other.getPostalCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -624,103 +583,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.Subject 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.security.privateca.v1beta1.Subject parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.Subject parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.Subject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.Subject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
    * describes the subject of the certificate.
@@ -728,23 +680,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.Subject}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.Subject)
       com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.Subject.class,
-              com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.Subject.class, com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.Subject.newBuilder()
@@ -752,15 +702,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -782,9 +733,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
     }
 
     @java.lang.Override
@@ -803,8 +754,7 @@ public com.google.cloud.security.privateca.v1beta1.Subject build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.Subject buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.Subject result =
-          new com.google.cloud.security.privateca.v1beta1.Subject(this);
+      com.google.cloud.security.privateca.v1beta1.Subject result = new com.google.cloud.security.privateca.v1beta1.Subject(this);
       result.countryCode_ = countryCode_;
       result.organization_ = organization_;
       result.organizationalUnit_ = organizationalUnit_;
@@ -820,39 +770,38 @@ public com.google.cloud.security.privateca.v1beta1.Subject buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.Subject) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Subject) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Subject)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -860,8 +809,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Subject other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()) return this;
       if (!other.getCountryCode().isEmpty()) {
         countryCode_ = other.countryCode_;
         onChanged();
@@ -909,8 +857,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.Subject) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.Subject) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -922,20 +869,18 @@ public Builder mergeFrom(
 
     private java.lang.Object countryCode_ = "";
     /**
-     *
-     *
      * 
      * The country code of the subject.
      * 
* * string country_code = 1; - * * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; @@ -944,21 +889,20 @@ public java.lang.String getCountryCode() { } } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 1; - * * @return The bytes for countryCode. */ - public com.google.protobuf.ByteString getCountryCodeBytes() { + public com.google.protobuf.ByteString + getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); countryCode_ = b; return b; } else { @@ -966,61 +910,54 @@ public com.google.protobuf.ByteString getCountryCodeBytes() { } } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 1; - * * @param value The countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCode(java.lang.String value) { + public Builder setCountryCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + countryCode_ = value; onChanged(); return this; } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 1; - * * @return This builder for chaining. */ public Builder clearCountryCode() { - + countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** - * - * *
      * The country code of the subject.
      * 
* * string country_code = 1; - * * @param value The bytes for countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCountryCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + countryCode_ = value; onChanged(); return this; @@ -1028,20 +965,18 @@ public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object organization_ = ""; /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 2; - * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -1050,21 +985,20 @@ public java.lang.String getOrganization() { } } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 2; - * * @return The bytes for organization. */ - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -1072,61 +1006,54 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 2; - * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization(java.lang.String value) { + public Builder setOrganization( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 2; - * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** - * - * *
      * The organization of the subject.
      * 
* * string organization = 2; - * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -1134,20 +1061,18 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { private java.lang.Object organizationalUnit_ = ""; /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; - * * @return The organizationalUnit. */ public java.lang.String getOrganizationalUnit() { java.lang.Object ref = organizationalUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; @@ -1156,21 +1081,20 @@ public java.lang.String getOrganizationalUnit() { } } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; - * * @return The bytes for organizationalUnit. */ - public com.google.protobuf.ByteString getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString + getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -1178,61 +1102,54 @@ public com.google.protobuf.ByteString getOrganizationalUnitBytes() { } } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; - * * @param value The organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnit(java.lang.String value) { + public Builder setOrganizationalUnit( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organizationalUnit_ = value; onChanged(); return this; } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; - * * @return This builder for chaining. */ public Builder clearOrganizationalUnit() { - + organizationalUnit_ = getDefaultInstance().getOrganizationalUnit(); onChanged(); return this; } /** - * - * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; - * * @param value The bytes for organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationalUnitBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organizationalUnit_ = value; onChanged(); return this; @@ -1240,20 +1157,18 @@ public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) private java.lang.Object locality_ = ""; /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 4; - * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1262,21 +1177,20 @@ public java.lang.String getLocality() { } } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 4; - * * @return The bytes for locality. */ - public com.google.protobuf.ByteString getLocalityBytes() { + public com.google.protobuf.ByteString + getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locality_ = b; return b; } else { @@ -1284,61 +1198,54 @@ public com.google.protobuf.ByteString getLocalityBytes() { } } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 4; - * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality(java.lang.String value) { + public Builder setLocality( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locality_ = value; onChanged(); return this; } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 4; - * * @return This builder for chaining. */ public Builder clearLocality() { - + locality_ = getDefaultInstance().getLocality(); onChanged(); return this; } /** - * - * *
      * The locality or city of the subject.
      * 
* * string locality = 4; - * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes(com.google.protobuf.ByteString value) { + public Builder setLocalityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locality_ = value; onChanged(); return this; @@ -1346,20 +1253,18 @@ public Builder setLocalityBytes(com.google.protobuf.ByteString value) { private java.lang.Object province_ = ""; /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; - * * @return The province. */ public java.lang.String getProvince() { java.lang.Object ref = province_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; @@ -1368,21 +1273,20 @@ public java.lang.String getProvince() { } } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; - * * @return The bytes for province. */ - public com.google.protobuf.ByteString getProvinceBytes() { + public com.google.protobuf.ByteString + getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); province_ = b; return b; } else { @@ -1390,61 +1294,54 @@ public com.google.protobuf.ByteString getProvinceBytes() { } } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; - * * @param value The province to set. * @return This builder for chaining. */ - public Builder setProvince(java.lang.String value) { + public Builder setProvince( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + province_ = value; onChanged(); return this; } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; - * * @return This builder for chaining. */ public Builder clearProvince() { - + province_ = getDefaultInstance().getProvince(); onChanged(); return this; } /** - * - * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; - * * @param value The bytes for province to set. * @return This builder for chaining. */ - public Builder setProvinceBytes(com.google.protobuf.ByteString value) { + public Builder setProvinceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + province_ = value; onChanged(); return this; @@ -1452,20 +1349,18 @@ public Builder setProvinceBytes(com.google.protobuf.ByteString value) { private java.lang.Object streetAddress_ = ""; /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 6; - * * @return The streetAddress. */ public java.lang.String getStreetAddress() { java.lang.Object ref = streetAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; @@ -1474,21 +1369,20 @@ public java.lang.String getStreetAddress() { } } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 6; - * * @return The bytes for streetAddress. */ - public com.google.protobuf.ByteString getStreetAddressBytes() { + public com.google.protobuf.ByteString + getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -1496,61 +1390,54 @@ public com.google.protobuf.ByteString getStreetAddressBytes() { } } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 6; - * * @param value The streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddress(java.lang.String value) { + public Builder setStreetAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + streetAddress_ = value; onChanged(); return this; } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 6; - * * @return This builder for chaining. */ public Builder clearStreetAddress() { - + streetAddress_ = getDefaultInstance().getStreetAddress(); onChanged(); return this; } /** - * - * *
      * The street address of the subject.
      * 
* * string street_address = 6; - * * @param value The bytes for streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) { + public Builder setStreetAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streetAddress_ = value; onChanged(); return this; @@ -1558,20 +1445,18 @@ public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object postalCode_ = ""; /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; - * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1580,21 +1465,20 @@ public java.lang.String getPostalCode() { } } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; - * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString getPostalCodeBytes() { + public com.google.protobuf.ByteString + getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1602,68 +1486,61 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; - * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode(java.lang.String value) { + public Builder setPostalCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postalCode_ = value; onChanged(); return this; } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; - * * @return This builder for chaining. */ public Builder clearPostalCode() { - + postalCode_ = getDefaultInstance().getPostalCode(); onChanged(); return this; } /** - * - * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; - * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { + public Builder setPostalCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postalCode_ = 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); } @@ -1673,12 +1550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.Subject) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Subject) private static final com.google.cloud.security.privateca.v1beta1.Subject DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Subject(); } @@ -1687,16 +1564,16 @@ public static com.google.cloud.security.privateca.v1beta1.Subject getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subject(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subject(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1711,4 +1588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.Subject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java similarity index 75% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java index 4a15d72c..3a44c040 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] corresponds to a more modern way of listing what
  * the asserted identity is in a certificate (i.e., compared to the "common
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubjectAltNames}
  */
-public final class SubjectAltNames extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SubjectAltNames extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.SubjectAltNames)
     SubjectAltNamesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SubjectAltNames.newBuilder() to construct.
   private SubjectAltNames(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SubjectAltNames() {
     dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -49,15 +31,16 @@ private SubjectAltNames() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SubjectAltNames();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SubjectAltNames(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,67 +60,58 @@ private SubjectAltNames(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                dnsNames_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              dnsNames_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              dnsNames_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                uris_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              uris_.add(s);
-              break;
+            dnsNames_.add(s);
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              uris_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              emailAddresses_.add(s);
-              break;
+            uris_.add(s);
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              ipAddresses_.add(s);
-              break;
+            emailAddresses_.add(s);
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                customSans_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.security.privateca.v1beta1.X509Extension>();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              customSans_.add(
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.X509Extension.parser(),
-                      extensionRegistry));
-              break;
+            ipAddresses_.add(s);
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              customSans_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            customSans_.add(
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.X509Extension.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -145,7 +119,8 @@ private SubjectAltNames(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -166,61 +141,50 @@ private SubjectAltNames(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class,
-            com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
   }
 
   public static final int DNS_NAMES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList dnsNames_;
   /**
-   *
-   *
    * 
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList getDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getDnsNamesList() { return dnsNames_; } /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -228,60 +192,50 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } public static final int URIS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList uris_; /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -289,60 +243,50 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList emailAddresses_; /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList + getEmailAddressesList() { return emailAddresses_; } /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -350,60 +294,50 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString + getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } public static final int IP_ADDRESSES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ipAddresses_; /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -411,26 +345,22 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int CUSTOM_SANS_FIELD_NUMBER = 5; private java.util.List customSans_; /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -438,13 +368,10 @@ public com.google.protobuf.ByteString getIpAddressesBytes(int index) { * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ @java.lang.Override - public java.util.List - getCustomSansList() { + public java.util.List getCustomSansList() { return customSans_; } /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -452,14 +379,11 @@ public com.google.protobuf.ByteString getIpAddressesBytes(int index) { * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + public java.util.List getCustomSansOrBuilderList() { return customSans_; } /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -471,8 +395,6 @@ public int getCustomSansCount() { return customSans_.size(); } /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -484,8 +406,6 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension getCustomSans(i return customSans_.get(index); } /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -499,7 +419,6 @@ public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getCus } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -511,7 +430,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < dnsNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsNames_.getRaw(i)); } @@ -569,7 +489,8 @@ public int getSerializedSize() { size += 1 * getIpAddressesList().size(); } for (int i = 0; i < customSans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customSans_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, customSans_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -579,19 +500,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.security.privateca.v1beta1.SubjectAltNames)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.SubjectAltNames other = - (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) obj; - - if (!getDnsNamesList().equals(other.getDnsNamesList())) return false; - if (!getUrisList().equals(other.getUrisList())) return false; - if (!getEmailAddressesList().equals(other.getEmailAddressesList())) return false; - if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; - if (!getCustomSansList().equals(other.getCustomSansList())) return false; + com.google.cloud.security.privateca.v1beta1.SubjectAltNames other = (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) obj; + + if (!getDnsNamesList() + .equals(other.getDnsNamesList())) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (!getEmailAddressesList() + .equals(other.getEmailAddressesList())) return false; + if (!getIpAddressesList() + .equals(other.getIpAddressesList())) return false; + if (!getCustomSansList() + .equals(other.getCustomSansList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -629,104 +554,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames 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.security.privateca.v1beta1.SubjectAltNames parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.SubjectAltNames prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.SubjectAltNames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] corresponds to a more modern way of listing what
    * the asserted identity is in a certificate (i.e., compared to the "common
@@ -735,23 +652,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubjectAltNames}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.SubjectAltNames)
       com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class,
-              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder()
@@ -759,17 +674,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCustomSansFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -791,9 +706,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
@@ -812,8 +727,7 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.SubjectAltNames buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.SubjectAltNames result =
-          new com.google.cloud.security.privateca.v1beta1.SubjectAltNames(this);
+      com.google.cloud.security.privateca.v1beta1.SubjectAltNames result = new com.google.cloud.security.privateca.v1beta1.SubjectAltNames(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -852,39 +766,38 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.SubjectAltNames) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubjectAltNames) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubjectAltNames)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -892,8 +805,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubjectAltNames other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance()) return this;
       if (!other.dnsNames_.isEmpty()) {
         if (dnsNames_.isEmpty()) {
           dnsNames_ = other.dnsNames_;
@@ -952,10 +864,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubjectAltN
             customSansBuilder_ = null;
             customSans_ = other.customSans_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            customSansBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCustomSansFieldBuilder()
-                    : null;
+            customSansBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCustomSansFieldBuilder() : null;
           } else {
             customSansBuilder_.addAllMessages(other.customSans_);
           }
@@ -980,8 +891,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -990,55 +900,44 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList dnsNames_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureDnsNamesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = new com.google.protobuf.LazyStringArrayList(dnsNames_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList getDnsNamesList() { + public com.google.protobuf.ProtocolStringList + getDnsNamesList() { return dnsNames_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -1046,90 +945,80 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString + getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param index The index to set the value at. * @param value The dnsNames to set. * @return This builder for chaining. */ - public Builder setDnsNames(int index, java.lang.String value) { + public Builder setDnsNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param value The dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNames(java.lang.String value) { + public Builder addDnsNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param values The dnsNames to add. * @return This builder for chaining. */ - public Builder addAllDnsNames(java.lang.Iterable values) { + public Builder addAllDnsNames( + java.lang.Iterable values) { ensureDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dnsNames_); onChanged(); return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @return This builder for chaining. */ public Builder clearDnsNames() { @@ -1139,74 +1028,62 @@ public Builder clearDnsNames() { return this; } /** - * - * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; - * * @param value The bytes of the dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNamesBytes(com.google.protobuf.ByteString value) { + public Builder addDnsNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList uris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -1214,90 +1091,80 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { + public Builder setUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { + public Builder addUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @return This builder for chaining. */ public Builder clearUris() { @@ -1307,74 +1174,62 @@ public Builder clearUris() { return this; } /** - * - * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList emailAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList emailAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { emailAddresses_ = new com.google.protobuf.LazyStringArrayList(emailAddresses_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList + getEmailAddressesList() { return emailAddresses_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -1382,90 +1237,80 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString + getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param index The index to set the value at. * @param value The emailAddresses to set. * @return This builder for chaining. */ - public Builder setEmailAddresses(int index, java.lang.String value) { + public Builder setEmailAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param value The emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddresses(java.lang.String value) { + public Builder addEmailAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param values The emailAddresses to add. * @return This builder for chaining. */ - public Builder addAllEmailAddresses(java.lang.Iterable values) { + public Builder addAllEmailAddresses( + java.lang.Iterable values) { ensureEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, emailAddresses_); onChanged(); return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @return This builder for chaining. */ public Builder clearEmailAddresses() { @@ -1475,74 +1320,62 @@ public Builder clearEmailAddresses() { return this; } /** - * - * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; - * * @param value The bytes of the emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addEmailAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1550,90 +1383,80 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1643,22 +1466,20 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); @@ -1666,34 +1487,25 @@ public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { } private java.util.List customSans_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomSansIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - customSans_ = - new java.util.ArrayList( - customSans_); + customSans_ = new java.util.ArrayList(customSans_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> - customSansBuilder_; + com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> customSansBuilder_; /** - * - * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public java.util.List - getCustomSansList() { + public java.util.List getCustomSansList() { if (customSansBuilder_ == null) { return java.util.Collections.unmodifiableList(customSans_); } else { @@ -1701,8 +1513,6 @@ private void ensureCustomSansIsMutable() { } } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1717,8 +1527,6 @@ public int getCustomSansCount() { } } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1733,8 +1541,6 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension getCustomSans(i } } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1756,8 +1562,6 @@ public Builder setCustomSans( return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1765,8 +1569,7 @@ public Builder setCustomSans( * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ public Builder setCustomSans( - int index, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (customSansBuilder_ == null) { ensureCustomSansIsMutable(); customSans_.set(index, builderForValue.build()); @@ -1777,8 +1580,6 @@ public Builder setCustomSans( return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1799,8 +1600,6 @@ public Builder addCustomSans(com.google.cloud.security.privateca.v1beta1.X509Ext return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1822,8 +1621,6 @@ public Builder addCustomSans( return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1842,8 +1639,6 @@ public Builder addCustomSans( return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1851,8 +1646,7 @@ public Builder addCustomSans( * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ public Builder addCustomSans( - int index, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (customSansBuilder_ == null) { ensureCustomSansIsMutable(); customSans_.add(index, builderForValue.build()); @@ -1863,8 +1657,6 @@ public Builder addCustomSans( return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1872,11 +1664,11 @@ public Builder addCustomSans( * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ public Builder addAllCustomSans( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (customSansBuilder_ == null) { ensureCustomSansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customSans_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, customSans_); onChanged(); } else { customSansBuilder_.addAllMessages(values); @@ -1884,8 +1676,6 @@ public Builder addAllCustomSans( return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1903,8 +1693,6 @@ public Builder clearCustomSans() { return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1922,8 +1710,6 @@ public Builder removeCustomSans(int index) { return this; } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1935,34 +1721,28 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder getCust return getCustomSansFieldBuilder().getBuilder(index); } /** - * - * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder - getCustomSansOrBuilder(int index) { + public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getCustomSansOrBuilder( + int index) { if (customSansBuilder_ == null) { - return customSans_.get(index); - } else { + return customSans_.get(index); } else { return customSansBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public java.util.List< - ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> - getCustomSansOrBuilderList() { + public java.util.List + getCustomSansOrBuilderList() { if (customSansBuilder_ != null) { return customSansBuilder_.getMessageOrBuilderList(); } else { @@ -1970,23 +1750,17 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder getCust } } /** - * - * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder - addCustomSansBuilder() { - return getCustomSansFieldBuilder() - .addBuilder( - com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addCustomSansBuilder() { + return getCustomSansFieldBuilder().addBuilder( + com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** - * - * *
      * Contains additional subject alternative name values.
      * 
@@ -1995,44 +1769,37 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder getCust */ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addCustomSansBuilder( int index) { - return getCustomSansFieldBuilder() - .addBuilder( - index, - com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + return getCustomSansFieldBuilder().addBuilder( + index, com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** - * - * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public java.util.List - getCustomSansBuilderList() { + public java.util.List + getCustomSansBuilderList() { return getCustomSansFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> getCustomSansFieldBuilder() { if (customSansBuilder_ == null) { - customSansBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, - com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( - customSans_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + customSansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( + customSans_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); customSans_ = null; } return customSansBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2042,12 +1809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.SubjectAltNames) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.SubjectAltNames) private static final com.google.cloud.security.privateca.v1beta1.SubjectAltNames DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.SubjectAltNames(); } @@ -2056,16 +1823,16 @@ public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectAltNames parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectAltNames(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectAltNames parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectAltNames(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2080,4 +1847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java similarity index 78% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java index d92584f6..d002839a 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java @@ -1,245 +1,186 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface SubjectAltNamesOrBuilder - extends +public interface SubjectAltNamesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.SubjectAltNames) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return A list containing the dnsNames. */ - java.util.List getDnsNamesList(); + java.util.List + getDnsNamesList(); /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @return The count of dnsNames. */ int getDnsNamesCount(); /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the element to return. * @return The dnsNames at the given index. */ java.lang.String getDnsNames(int index); /** - * - * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; - * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - com.google.protobuf.ByteString getDnsNamesBytes(int index); + com.google.protobuf.ByteString + getDnsNamesBytes(int index); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return A list containing the emailAddresses. */ - java.util.List getEmailAddressesList(); + java.util.List + getEmailAddressesList(); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @return The count of emailAddresses. */ int getEmailAddressesCount(); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ java.lang.String getEmailAddresses(int index); /** - * - * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; - * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - com.google.protobuf.ByteString getEmailAddressesBytes(int index); + com.google.protobuf.ByteString + getEmailAddressesBytes(int index); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); /** - * - * *
    * Contains additional subject alternative name values.
    * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - java.util.List getCustomSansList(); + java.util.List + getCustomSansList(); /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -248,8 +189,6 @@ public interface SubjectAltNamesOrBuilder */ com.google.cloud.security.privateca.v1beta1.X509Extension getCustomSans(int index); /** - * - * *
    * Contains additional subject alternative name values.
    * 
@@ -258,19 +197,15 @@ public interface SubjectAltNamesOrBuilder */ int getCustomSansCount(); /** - * - * *
    * Contains additional subject alternative name values.
    * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - java.util.List + java.util.List getCustomSansOrBuilderList(); /** - * - * *
    * Contains additional subject alternative name values.
    * 
diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java index f989da9f..fe0810a6 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java @@ -1,200 +1,149 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface SubjectOrBuilder - extends +public interface SubjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.Subject) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 1; - * * @return The countryCode. */ java.lang.String getCountryCode(); /** - * - * *
    * The country code of the subject.
    * 
* * string country_code = 1; - * * @return The bytes for countryCode. */ - com.google.protobuf.ByteString getCountryCodeBytes(); + com.google.protobuf.ByteString + getCountryCodeBytes(); /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 2; - * * @return The organization. */ java.lang.String getOrganization(); /** - * - * *
    * The organization of the subject.
    * 
* * string organization = 2; - * * @return The bytes for organization. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString + getOrganizationBytes(); /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; - * * @return The organizationalUnit. */ java.lang.String getOrganizationalUnit(); /** - * - * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; - * * @return The bytes for organizationalUnit. */ - com.google.protobuf.ByteString getOrganizationalUnitBytes(); + com.google.protobuf.ByteString + getOrganizationalUnitBytes(); /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 4; - * * @return The locality. */ java.lang.String getLocality(); /** - * - * *
    * The locality or city of the subject.
    * 
* * string locality = 4; - * * @return The bytes for locality. */ - com.google.protobuf.ByteString getLocalityBytes(); + com.google.protobuf.ByteString + getLocalityBytes(); /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; - * * @return The province. */ java.lang.String getProvince(); /** - * - * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; - * * @return The bytes for province. */ - com.google.protobuf.ByteString getProvinceBytes(); + com.google.protobuf.ByteString + getProvinceBytes(); /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 6; - * * @return The streetAddress. */ java.lang.String getStreetAddress(); /** - * - * *
    * The street address of the subject.
    * 
* * string street_address = 6; - * * @return The bytes for streetAddress. */ - com.google.protobuf.ByteString getStreetAddressBytes(); + com.google.protobuf.ByteString + getStreetAddressBytes(); /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; - * * @return The postalCode. */ java.lang.String getPostalCode(); /** - * - * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; - * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString getPostalCodeBytes(); + com.google.protobuf.ByteString + getPostalCodeBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java similarity index 65% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java index 712192f3..cfe8d3b2 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Describes a subordinate CA's issuers. This is either a resource path to a
  * known issuing [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig}
  */
-public final class SubordinateConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SubordinateConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig)
     SubordinateConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SubordinateConfig.newBuilder() to construct.
   private SubordinateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SubordinateConfig() {}
+  private SubordinateConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SubordinateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SubordinateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,47 +53,33 @@ private SubordinateConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              subordinateConfigCase_ = 1;
-              subordinateConfig_ = s;
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            subordinateConfigCase_ = 1;
+            subordinateConfig_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder subBuilder = null;
+            if (subordinateConfigCase_ == 2) {
+              subBuilder = ((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_).toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain
-                      .Builder
-                  subBuilder = null;
-              if (subordinateConfigCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.security.privateca.v1beta1.SubordinateConfig
-                                .SubordinateConfigChain)
-                            subordinateConfig_)
-                        .toBuilder();
-              }
-              subordinateConfig_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.SubordinateConfig
-                          .SubordinateConfigChain.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.security.privateca.v1beta1.SubordinateConfig
-                            .SubordinateConfigChain)
-                        subordinateConfig_);
-                subordinateConfig_ = subBuilder.buildPartial();
-              }
-              subordinateConfigCase_ = 2;
-              break;
+            subordinateConfig_ =
+                input.readMessage(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_);
+              subordinateConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            subordinateConfigCase_ = 2;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,120 +87,104 @@ private SubordinateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class,
-            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
   }
 
-  public interface SubordinateConfigChainOrBuilder
-      extends
+  public interface SubordinateConfigChainOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the pemCertificates. */ - java.util.List getPemCertificatesList(); + java.util.List + getPemCertificatesList(); /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of pemCertificates. */ int getPemCertificatesCount(); /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ java.lang.String getPemCertificates(int index); /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - com.google.protobuf.ByteString getPemCertificatesBytes(int index); + com.google.protobuf.ByteString + getPemCertificatesBytes(int index); } /** - * - * *
    * This message describes a subordinate CA's issuer certificate chain. This
    * wrapper exists for compatibility reasons.
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} */ - public static final class SubordinateConfigChain extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SubordinateConfigChain extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) SubordinateConfigChainOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubordinateConfigChain.newBuilder() to construct. private SubordinateConfigChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubordinateConfigChain() { pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubordinateConfigChain(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubordinateConfigChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,23 +204,22 @@ private SubordinateConfigChain( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - pemCertificates_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pemCertificates_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -274,7 +227,8 @@ private SubordinateConfigChain( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -283,63 +237,50 @@ private SubordinateConfigChain( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .class, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .Builder.class); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder.class); } public static final int PEM_CERTIFICATES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList pemCertificates_; /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCertificatesList() { return pemCertificates_; } /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -347,23 +288,20 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** - * - * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,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 { for (int i = 0; i < pemCertificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCertificates_.getRaw(i)); } @@ -404,18 +343,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.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain other = - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - obj; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain other = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) obj; - if (!getPemCertificatesList().equals(other.getPemCertificatesList())) return false; + if (!getPemCertificatesList() + .equals(other.getPemCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,114 +372,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - 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.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain 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.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -553,54 +463,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * This message describes a subordinate CA's issuer certificate chain. This
      * wrapper exists for compatibility reasons.
      * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .class, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .Builder.class); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -610,23 +511,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto - .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - build() { - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain build() { + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -634,12 +531,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - buildPartial() { - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - result = - new com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain(this); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain buildPartial() { + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain result = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -654,57 +547,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - other) { - if (other - == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain other) { + if (other == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) return this; if (!other.pemCertificates_.isEmpty()) { if (pemCertificates_.isEmpty()) { pemCertificates_ = other.pemCertificates_; @@ -730,14 +612,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -746,58 +625,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList pemCertificates_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePemCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCertificates_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList + getPemCertificatesList() { return pemCertificates_.getUnmodifiableView(); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -805,95 +670,80 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString + getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The pemCertificates to set. * @return This builder for chaining. */ - public Builder setPemCertificates(int index, java.lang.String value) { + public Builder setPemCertificates( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.set(index, value); onChanged(); return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificates(java.lang.String value) { + public Builder addPemCertificates( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param values The pemCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCertificates(java.lang.Iterable values) { + public Builder addAllPemCertificates( + java.lang.Iterable values) { ensurePemCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pemCertificates_); onChanged(); return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPemCertificates() { @@ -903,29 +753,25 @@ public Builder clearPemCertificates() { return this; } /** - * - * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificatesBytes(com.google.protobuf.ByteString value) { + public Builder addPemCertificatesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -938,36 +784,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain(); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfigChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfigChain(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfigChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfigChain(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -979,24 +819,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int subordinateConfigCase_ = 0; private java.lang.Object subordinateConfig_; - public enum SubordinateConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CERTIFICATE_AUTHORITY(1), PEM_ISSUER_CHAIN(2), SUBORDINATECONFIG_NOT_SET(0); private final int value; - private SubordinateConfigCase(int value) { this.value = value; } @@ -1012,30 +849,25 @@ public static SubordinateConfigCase valueOf(int value) { public static SubordinateConfigCase forNumber(int value) { switch (value) { - case 1: - return CERTIFICATE_AUTHORITY; - case 2: - return PEM_ISSUER_CHAIN; - case 0: - return SUBORDINATECONFIG_NOT_SET; - default: - return null; + case 1: return CERTIFICATE_AUTHORITY; + case 2: return PEM_ISSUER_CHAIN; + case 0: return SUBORDINATECONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SubordinateConfigCase getSubordinateConfigCase() { - return SubordinateConfigCase.forNumber(subordinateConfigCase_); + public SubordinateConfigCase + getSubordinateConfigCase() { + return SubordinateConfigCase.forNumber( + subordinateConfigCase_); } public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1; /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1044,15 +876,12 @@ public SubordinateConfigCase getSubordinateConfigCase() {
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1061,7 +890,6 @@ public boolean hasCertificateAuthority() {
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthority. */ public java.lang.String getCertificateAuthority() { @@ -1072,7 +900,8 @@ public java.lang.String getCertificateAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -1081,8 +910,6 @@ public java.lang.String getCertificateAuthority() { } } /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1091,17 +918,18 @@ public java.lang.String getCertificateAuthority() {
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthority. */ - public com.google.protobuf.ByteString getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -1113,17 +941,12 @@ public com.google.protobuf.ByteString getCertificateAuthorityBytes() { public static final int PEM_ISSUER_CHAIN_FIELD_NUMBER = 2; /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -1131,55 +954,38 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - getPemIssuerChain() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChainOrBuilder - getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1191,15 +997,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (subordinateConfigCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_); + output.writeMessage(2, (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); } unknownFields.writeTo(output); } @@ -1214,11 +1018,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - subordinateConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1228,21 +1029,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.security.privateca.v1beta1.SubordinateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.SubordinateConfig other = - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig) obj; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig other = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig) obj; if (!getSubordinateConfigCase().equals(other.getSubordinateConfigCase())) return false; switch (subordinateConfigCase_) { case 1: - if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority() + .equals(other.getCertificateAuthority())) return false; break; case 2: - if (!getPemIssuerChain().equals(other.getPemIssuerChain())) return false; + if (!getPemIssuerChain() + .equals(other.getPemIssuerChain())) return false; break; case 0: default: @@ -1276,104 +1078,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig 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.security.privateca.v1beta1.SubordinateConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.SubordinateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes a subordinate CA's issuers. This is either a resource path to a
    * known issuing [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -1381,23 +1175,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig)
       com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class,
-              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder()
@@ -1405,15 +1197,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1423,14 +1216,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.SubordinateConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance();
     }
 
@@ -1445,8 +1237,7 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.SubordinateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.SubordinateConfig result =
-          new com.google.cloud.security.privateca.v1beta1.SubordinateConfig(this);
+      com.google.cloud.security.privateca.v1beta1.SubordinateConfig result = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig(this);
       if (subordinateConfigCase_ == 1) {
         result.subordinateConfig_ = subordinateConfig_;
       }
@@ -1466,39 +1257,38 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.SubordinateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1506,26 +1296,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubordinateConfig other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance()) return this;
       switch (other.getSubordinateConfigCase()) {
-        case CERTIFICATE_AUTHORITY:
-          {
-            subordinateConfigCase_ = 1;
-            subordinateConfig_ = other.subordinateConfig_;
-            onChanged();
-            break;
-          }
-        case PEM_ISSUER_CHAIN:
-          {
-            mergePemIssuerChain(other.getPemIssuerChain());
-            break;
-          }
-        case SUBORDINATECONFIG_NOT_SET:
-          {
-            break;
-          }
+        case CERTIFICATE_AUTHORITY: {
+          subordinateConfigCase_ = 1;
+          subordinateConfig_ = other.subordinateConfig_;
+          onChanged();
+          break;
+        }
+        case PEM_ISSUER_CHAIN: {
+          mergePemIssuerChain(other.getPemIssuerChain());
+          break;
+        }
+        case SUBORDINATECONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1546,9 +1331,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.SubordinateConfig)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1557,12 +1340,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int subordinateConfigCase_ = 0;
     private java.lang.Object subordinateConfig_;
-
-    public SubordinateConfigCase getSubordinateConfigCase() {
-      return SubordinateConfigCase.forNumber(subordinateConfigCase_);
+    public SubordinateConfigCase
+        getSubordinateConfigCase() {
+      return SubordinateConfigCase.forNumber(
+          subordinateConfigCase_);
     }
 
     public Builder clearSubordinateConfig() {
@@ -1572,9 +1355,8 @@ public Builder clearSubordinateConfig() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1583,7 +1365,6 @@ public Builder clearSubordinateConfig() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -1591,8 +1372,6 @@ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1601,7 +1380,6 @@ public boolean hasCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthority. */ @java.lang.Override @@ -1611,7 +1389,8 @@ public java.lang.String getCertificateAuthority() { ref = subordinateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -1622,8 +1401,6 @@ public java.lang.String getCertificateAuthority() { } } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1632,18 +1409,19 @@ public java.lang.String getCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString + getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -1653,8 +1431,6 @@ public com.google.protobuf.ByteString getCertificateAuthorityBytes() { } } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1663,22 +1439,20 @@ public com.google.protobuf.ByteString getCertificateAuthorityBytes() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthority(java.lang.String value) { + public Builder setCertificateAuthority( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - subordinateConfigCase_ = 1; + throw new NullPointerException(); + } + subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); return this; } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1687,7 +1461,6 @@ public Builder setCertificateAuthority(java.lang.String value) {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateAuthority() { @@ -1699,8 +1472,6 @@ public Builder clearCertificateAuthority() { return this; } /** - * - * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1709,15 +1480,15 @@ public Builder clearCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); @@ -1725,24 +1496,14 @@ public Builder setCertificateAuthorityBytes(com.google.protobuf.ByteString value } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChainOrBuilder> - pemIssuerChainBuilder_; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder> pemIssuerChainBuilder_; /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -1750,53 +1511,37 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - getPemIssuerChain() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } else { if (subordinateConfigCase_ == 2) { return pemIssuerChainBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPemIssuerChain( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - value) { + public Builder setPemIssuerChain(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain value) { if (pemIssuerChainBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1810,20 +1555,15 @@ public Builder setPemIssuerChain( return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPemIssuerChain( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder builderForValue) { if (pemIssuerChainBuilder_ == null) { subordinateConfig_ = builderForValue.build(); onChanged(); @@ -1834,33 +1574,19 @@ public Builder setPemIssuerChain( return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergePemIssuerChain( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - value) { + public Builder mergePemIssuerChain(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain value) { if (pemIssuerChainBuilder_ == null) { - if (subordinateConfigCase_ == 2 - && subordinateConfig_ - != com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain.getDefaultInstance()) { - subordinateConfig_ = - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .newBuilder( - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain) - subordinateConfig_) - .mergeFrom(value) - .buildPartial(); + if (subordinateConfigCase_ == 2 && + subordinateConfig_ != com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) { + subordinateConfig_ = com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.newBuilder((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_) + .mergeFrom(value).buildPartial(); } else { subordinateConfig_ = value; } @@ -1876,16 +1602,12 @@ public Builder mergePemIssuerChain( return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { @@ -1904,98 +1626,64 @@ public Builder clearPemIssuerChain() { return this; } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .Builder - getPemIssuerChainBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder getPemIssuerChainBuilder() { return getPemIssuerChainFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChainOrBuilder - getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { if ((subordinateConfigCase_ == 2) && (pemIssuerChainBuilder_ != null)) { return pemIssuerChainBuilder_.getMessageOrBuilder(); } else { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain) - subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } } /** - * - * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChainOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder> getPemIssuerChainFieldBuilder() { if (pemIssuerChainBuilder_ == null) { if (!(subordinateConfigCase_ == 2)) { - subordinateConfig_ = - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .getDefaultInstance(); + subordinateConfig_ = com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); } - pemIssuerChainBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - .Builder, - com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChainOrBuilder>( - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig - .SubordinateConfigChain) - subordinateConfig_, + pemIssuerChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder>( + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_, getParentForChildren(), isClean()); subordinateConfig_ = null; } subordinateConfigCase_ = 2; - onChanged(); - ; + onChanged();; return pemIssuerChainBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2005,13 +1693,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig) - private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig(); } @@ -2020,16 +1707,16 @@ public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2044,4 +1731,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java index 873b96ed..940c14bd 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface SubordinateConfigOrBuilder - extends +public interface SubordinateConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.SubordinateConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -34,13 +16,10 @@ public interface SubordinateConfigOrBuilder
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -49,13 +28,10 @@ public interface SubordinateConfigOrBuilder
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateAuthority. */ java.lang.String getCertificateAuthority(); /** - * - * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -64,57 +40,40 @@ public interface SubordinateConfigOrBuilder
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateAuthority. */ - com.google.protobuf.ByteString getCertificateAuthorityBytes(); + com.google.protobuf.ByteString + getCertificateAuthorityBytes(); /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pemIssuerChain field is set. */ boolean hasPemIssuerChain(); /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pemIssuerChain. */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain - getPemIssuerChain(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain(); /** - * - * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder - getPemIssuerChainOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder(); - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigCase - getSubordinateConfigCase(); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigCase getSubordinateConfigCase(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java similarity index 64% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java index 276594d5..10149e1b 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest}
  */
-public final class UpdateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateCertificateAuthorityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)
     UpdateCertificateAuthorityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateCertificateAuthorityRequest.newBuilder() to construct.
-  private UpdateCertificateAuthorityRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateCertificateAuthorityRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UpdateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,53 +54,45 @@ private UpdateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder =
-                  null;
-              if (certificateAuthority_ != null) {
-                subBuilder = certificateAuthority_.toBuilder();
-              }
-              certificateAuthority_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(certificateAuthority_);
-                certificateAuthority_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder = null;
+            if (certificateAuthority_ != null) {
+              subBuilder = certificateAuthority_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.FieldMask.Builder subBuilder = null;
-              if (updateMask_ != null) {
-                subBuilder = updateMask_.toBuilder();
-              }
-              updateMask_ =
-                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateMask_);
-                updateMask_ = subBuilder.buildPartial();
-              }
-
-              break;
+            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(certificateAuthority_);
+              certificateAuthority_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestId_ = s;
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.FieldMask.Builder subBuilder = null;
+            if (updateMask_ != null) {
+              subBuilder = updateMask_.toBuilder();
+            }
+            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateMask_);
+              updateMask_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -126,42 +100,34 @@ private UpdateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-        .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class,
-            com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder
-                .class);
+            com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_;
   /**
-   *
-   *
    * 
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -169,54 +135,37 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getCertificateAuthority() { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -224,15 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -240,14 +185,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -257,8 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -274,7 +214,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -283,15 +222,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -307,15 +245,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -324,7 +263,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificateAuthority_ != null) { output.writeMessage(1, getCertificateAuthority()); } @@ -356,11 +295,12 @@ public int getSerializedSize() { size = 0; if (certificateAuthority_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateAuthority()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -373,24 +313,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.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other = - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) obj; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority() + .equals(other.getCertificateAuthority())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,111 +358,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - 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.security.privateca.v1beta1.UpdateCertificateAuthorityRequest 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.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -529,41 +456,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class,
-              com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder
-                  .class);
+              com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.newBuilder()
+    // Construct using com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -585,22 +509,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
-          .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
-          .getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result =
-          buildPartial();
+      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -608,10 +529,8 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
-        buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result =
-          new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(this);
       if (certificateAuthorityBuilder_ == null) {
         result.certificateAuthority_ = certificateAuthority_;
       } else {
@@ -631,53 +550,46 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other
-          instanceof
-          com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) {
-        return mergeFrom(
-            (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) other);
+      if (other instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) {
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other) {
-      if (other
-          == com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other) {
+      if (other == com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.getDefaultInstance()) return this;
       if (other.hasCertificateAuthority()) {
         mergeCertificateAuthority(other.getCertificateAuthority());
       }
@@ -703,14 +615,11 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parsedMessage =
-          null;
+      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parsedMessage = null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -722,62 +631,41 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority,
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder,
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>
-        certificateAuthorityBuilder_;
+        com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_;
     /**
-     *
-     *
      * 
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority - getCertificateAuthority() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -791,15 +679,11 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { @@ -813,25 +697,17 @@ public Builder setCertificateAuthority( return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder( - certificateAuthority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); } else { certificateAuthority_ = value; } @@ -843,15 +719,11 @@ public Builder mergeCertificateAuthority( return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -865,66 +737,48 @@ public Builder clearCertificateAuthority() { return this; } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder - getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() - : certificateAuthority_; + return certificateAuthority_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; } } /** - * - * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), getParentForChildren(), isClean()); + certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), + getParentForChildren(), + isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -932,55 +786,39 @@ public Builder clearCertificateAuthority() { 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. A 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. A 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. A 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) { @@ -996,16 +834,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -1016,20 +852,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1041,14 +874,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1062,61 +892,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1124,8 +941,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1141,13 +956,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1156,8 +971,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1173,14 +986,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1188,8 +1002,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1205,22 +1017,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1236,18 +1046,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1263,23 +1070,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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,33 +1096,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1327,8 +1131,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java index 302e992d..18b7809c 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java @@ -1,111 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface UpdateCertificateAuthorityRequestOrBuilder - extends +public interface UpdateCertificateAuthorityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority(); /** - * - * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder - getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -121,13 +77,10 @@ public interface UpdateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -143,8 +96,8 @@ public interface UpdateCertificateAuthorityRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java similarity index 69% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java index 9fd5a2d2..d66657cc 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRequest} */ -public final class UpdateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCertificateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) UpdateCertificateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCertificateRequest.newBuilder() to construct. private UpdateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCertificateRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,45 @@ private UpdateCertificateRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + certificate_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,41 +99,34 @@ private UpdateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ @java.lang.Override @@ -165,53 +134,37 @@ public boolean hasCertificate() { return certificate_ != null; } /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { - return certificate_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; } /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder - getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { return getCertificate(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -219,15 +172,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -235,14 +184,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -252,8 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -269,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -278,15 +221,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -302,15 +244,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -319,7 +262,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificate_ != null) { output.writeMessage(1, getCertificate()); } @@ -351,10 +294,12 @@ public int getSerializedSize() { size = 0; if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificate()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -367,23 +312,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.security.privateca.v1beta1.UpdateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other = - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) obj; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate().equals(other.getCertificate())) return false; + if (!getCertificate() + .equals(other.getCertificate())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,145 +358,134 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest 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.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - 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.security.privateca.v1beta1.UpdateCertificateRequest 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.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,16 +507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.getDefaultInstance(); } @java.lang.Override @@ -594,8 +528,7 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest buil @java.lang.Override public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest result = - new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest(this); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest(this); if (certificateBuilder_ == null) { result.certificate_ = certificate_; } else { @@ -615,51 +548,46 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.getDefaultInstance()) return this; if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } @@ -689,9 +617,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,58 +629,39 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> - certificateBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> certificateBuilder_; /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { @@ -770,15 +677,11 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certif return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate( com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { @@ -792,23 +695,17 @@ public Builder setCertificate( return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); } else { certificate_ = value; } @@ -820,15 +717,11 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Cert return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -842,65 +735,48 @@ public Builder clearCertificate() { return this; } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder - getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null - ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? + com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; } } /** - * - * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, - com.google.cloud.security.privateca.v1beta1.Certificate.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( - getCertificate(), getParentForChildren(), isClean()); + certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( + getCertificate(), + getParentForChildren(), + isClean()); certificate_ = null; } return certificateBuilder_; @@ -908,55 +784,39 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif 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. A 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. A 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. A 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) { @@ -972,16 +832,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -992,20 +850,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1017,14 +872,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1038,61 +890,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1100,8 +939,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1117,13 +954,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1132,8 +969,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1149,14 +984,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1164,8 +1000,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1181,22 +1015,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1212,18 +1044,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1239,23 +1068,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1265,32 +1094,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1302,8 +1129,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java index eed4a3ff..a9d543d5 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java @@ -1,110 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface UpdateCertificateRequestOrBuilder - extends +public interface UpdateCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ boolean hasCertificate(); /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ com.google.cloud.security.privateca.v1beta1.Certificate getCertificate(); /** - * - * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -120,13 +77,10 @@ public interface UpdateCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -142,8 +96,8 @@ public interface UpdateCertificateRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java similarity index 63% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java index f2e611dc..47d1c014 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java @@ -1,61 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList].
  * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} */ -public final class UpdateCertificateRevocationListRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCertificateRevocationListRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) UpdateCertificateRevocationListRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCertificateRevocationListRequest.newBuilder() to construct. - private UpdateCertificateRevocationListRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCertificateRevocationListRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCertificateRevocationListRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCertificateRevocationListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,54 +54,45 @@ private UpdateCertificateRevocationListRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - subBuilder = null; - if (certificateRevocationList_ != null) { - subBuilder = certificateRevocationList_.toBuilder(); - } - certificateRevocationList_ = - input.readMessage( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateRevocationList_); - certificateRevocationList_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder subBuilder = null; + if (certificateRevocationList_ != null) { + subBuilder = certificateRevocationList_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + certificateRevocationList_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificateRevocationList_); + certificateRevocationList_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,44 +100,34 @@ private UpdateCertificateRevocationListRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - .class, - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.Builder.class); } public static final int CERTIFICATE_REVOCATION_LIST_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - certificateRevocationList_; + private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList certificateRevocationList_; /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateRevocationList field is set. */ @java.lang.Override @@ -174,54 +135,37 @@ public boolean hasCertificateRevocationList() { return certificateRevocationList_ != null; } /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateRevocationList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList() { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() - : certificateRevocationList_; + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList() { + return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; } /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { return getCertificateRevocationList(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A 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 @@ -229,15 +173,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. A 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 @@ -245,14 +185,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A 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() { @@ -262,8 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -279,7 +214,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -288,15 +222,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -312,15 +245,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -329,7 +263,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (certificateRevocationList_ != null) { output.writeMessage(1, getCertificateRevocationList()); } @@ -361,12 +295,12 @@ public int getSerializedSize() { size = 0; if (certificateRevocationList_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getCertificateRevocationList()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateRevocationList()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -379,26 +313,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.security.privateca.v1beta1.UpdateCertificateRevocationListRequest)) { + if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other = - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) obj; if (hasCertificateRevocationList() != other.hasCertificateRevocationList()) return false; if (hasCertificateRevocationList()) { - if (!getCertificateRevocationList().equals(other.getCertificateRevocationList())) - return false; + if (!getCertificateRevocationList() + .equals(other.getCertificateRevocationList())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -425,156 +358,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - 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.security.privateca.v1beta1.UpdateCertificateRevocationListRequest 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.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList].
    * 
* - * Protobuf type {@code - * google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} + * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - .class, - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - .Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.Builder.class); } - // Construct using - // com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.newBuilder() + // Construct using com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -596,23 +509,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto - .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - .getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - build() { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = - buildPartial(); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest build() { + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -620,11 +529,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - buildPartial() { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = - new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest( - this); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest buildPartial() { + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest(this); if (certificateRevocationListBuilder_ == null) { result.certificateRevocationList_ = certificateRevocationList_; } else { @@ -644,54 +550,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) { - return mergeFrom( - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) - other); + if (other instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) { + return mergeFrom((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other) { - if (other - == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other) { + if (other == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.getDefaultInstance()) return this; if (other.hasCertificateRevocationList()) { mergeCertificateRevocationList(other.getCertificateRevocationList()); } @@ -717,14 +615,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -734,66 +629,43 @@ public Builder mergeFrom( return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - certificateRevocationList_; + private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList certificateRevocationList_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> - certificateRevocationListBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> certificateRevocationListBuilder_; /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateRevocationList field is set. */ public boolean hasCertificateRevocationList() { return certificateRevocationListBuilder_ != null || certificateRevocationList_ != null; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateRevocationList. */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance() - : certificateRevocationList_; + return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; } else { return certificateRevocationListBuilder_.getMessage(); } } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { + public Builder setCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -807,19 +679,14 @@ public Builder setCertificateRevocationList( return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListBuilder_ == null) { certificateRevocationList_ = builderForValue.build(); onChanged(); @@ -830,25 +697,17 @@ public Builder setCertificateRevocationList( return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { + public Builder mergeCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (certificateRevocationList_ != null) { certificateRevocationList_ = - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder( - certificateRevocationList_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder(certificateRevocationList_).mergeFrom(value).buildPartial(); } else { certificateRevocationList_ = value; } @@ -860,15 +719,11 @@ public Builder mergeCertificateRevocationList( return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { @@ -882,67 +737,48 @@ public Builder clearCertificateRevocationList() { return this; } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder - getCertificateRevocationListBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder getCertificateRevocationListBuilder() { + onChanged(); return getCertificateRevocationListFieldBuilder().getBuilder(); } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { if (certificateRevocationListBuilder_ != null) { return certificateRevocationListBuilder_.getMessageOrBuilder(); } else { - return certificateRevocationList_ == null - ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - .getDefaultInstance() - : certificateRevocationList_; + return certificateRevocationList_ == null ? + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; } } /** - * - * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> getCertificateRevocationListFieldBuilder() { if (certificateRevocationListBuilder_ == null) { - certificateRevocationListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( - getCertificateRevocationList(), getParentForChildren(), isClean()); + certificateRevocationListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( + getCertificateRevocationList(), + getParentForChildren(), + isClean()); certificateRevocationList_ = null; } return certificateRevocationListBuilder_; @@ -950,55 +786,39 @@ public Builder clearCertificateRevocationList() { 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. A 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. A 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. A 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) { @@ -1014,16 +834,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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(); @@ -1034,20 +852,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A 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; } @@ -1059,14 +874,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A 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) { @@ -1080,61 +892,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A 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. A 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. A 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_; @@ -1142,8 +941,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1159,13 +956,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1174,8 +971,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1191,14 +986,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1206,8 +1002,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1223,22 +1017,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1254,18 +1046,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1281,23 +1070,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1307,34 +1096,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1beta1 - .UpdateCertificateRevocationListRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest(); + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1346,8 +1131,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest - getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java index d539a069..92d737b9 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java @@ -1,112 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface UpdateCertificateRevocationListRequestOrBuilder - extends +public interface UpdateCertificateRevocationListRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateRevocationList field is set. */ boolean hasCertificateRevocationList(); /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateRevocationList. */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList - getCertificateRevocationList(); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList(); /** - * - * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder - getCertificateRevocationListOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder(); /** - * - * *
    * Required. A 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. A 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. A 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(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -122,13 +77,10 @@ public interface UpdateCertificateRevocationListRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -144,8 +96,8 @@ public interface UpdateCertificateRevocationListRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java similarity index 67% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java index 1aaa6acf..b902dc0f 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.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/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** - * - * *
  * An [X509Extension][google.cloud.security.privateca.v1beta1.X509Extension] specifies an X.509 extension, which may be used in
  * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.X509Extension}
  */
-public final class X509Extension extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class X509Extension extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.X509Extension)
     X509ExtensionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use X509Extension.newBuilder() to construct.
   private X509Extension(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private X509Extension() {
     value_ = 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 X509Extension();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private X509Extension(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,40 +54,36 @@ private X509Extension(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.security.privateca.v1beta1.ObjectId.Builder subBuilder = null;
-              if (objectId_ != null) {
-                subBuilder = objectId_.toBuilder();
-              }
-              objectId_ =
-                  input.readMessage(
-                      com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(objectId_);
-                objectId_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder subBuilder = null;
+            if (objectId_ != null) {
+              subBuilder = objectId_.toBuilder();
             }
-          case 16:
-            {
-              critical_ = input.readBool();
-              break;
+            objectId_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ObjectId.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(objectId_);
+              objectId_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              value_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 16: {
+
+            critical_ = input.readBool();
+            break;
+          }
+          case 26: {
+
+            value_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -112,41 +91,34 @@ private X509Extension(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-        .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.X509Extension.class,
-            com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.X509Extension.class, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
   }
 
   public static final int OBJECT_ID_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1beta1.ObjectId objectId_;
   /**
-   *
-   *
    * 
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the objectId field is set. */ @java.lang.Override @@ -154,34 +126,23 @@ public boolean hasObjectId() { return objectId_ != null; } /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The objectId. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId() { - return objectId_ == null - ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() - : objectId_; + return objectId_ == null ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() : objectId_; } /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder() { @@ -191,8 +152,6 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectId public static final int CRITICAL_FIELD_NUMBER = 2; private boolean critical_; /** - * - * *
    * Required. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -200,7 +159,6 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectId
    * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The critical. */ @java.lang.Override @@ -211,14 +169,11 @@ public boolean getCritical() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** - * - * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -227,7 +182,6 @@ public com.google.protobuf.ByteString getValue() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +193,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (objectId_ != null) { output.writeMessage(1, getObjectId()); } @@ -259,13 +214,16 @@ public int getSerializedSize() { size = 0; if (objectId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObjectId()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObjectId()); } if (critical_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, critical_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, critical_); } if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -275,20 +233,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.security.privateca.v1beta1.X509Extension)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.X509Extension other = - (com.google.cloud.security.privateca.v1beta1.X509Extension) obj; + com.google.cloud.security.privateca.v1beta1.X509Extension other = (com.google.cloud.security.privateca.v1beta1.X509Extension) obj; if (hasObjectId() != other.hasObjectId()) return false; if (hasObjectId()) { - if (!getObjectId().equals(other.getObjectId())) return false; + if (!getObjectId() + .equals(other.getObjectId())) return false; } - if (getCritical() != other.getCritical()) return false; - if (!getValue().equals(other.getValue())) return false; + if (getCritical() + != other.getCritical()) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,7 +265,8 @@ public int hashCode() { hash = (53 * hash) + getObjectId().hashCode(); } hash = (37 * hash) + CRITICAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCritical()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCritical()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -314,104 +275,96 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.X509Extension 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.security.privateca.v1beta1.X509Extension parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.security.privateca.v1beta1.X509Extension prototype) { + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.X509Extension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [X509Extension][google.cloud.security.privateca.v1beta1.X509Extension] specifies an X.509 extension, which may be used in
    * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -419,23 +372,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.X509Extension}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.X509Extension)
       com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.X509Extension.class,
-              com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.X509Extension.class, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.X509Extension.newBuilder()
@@ -443,15 +394,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -469,9 +421,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
-          .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
     }
 
     @java.lang.Override
@@ -490,8 +442,7 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.X509Extension buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.X509Extension result =
-          new com.google.cloud.security.privateca.v1beta1.X509Extension(this);
+      com.google.cloud.security.privateca.v1beta1.X509Extension result = new com.google.cloud.security.privateca.v1beta1.X509Extension(this);
       if (objectIdBuilder_ == null) {
         result.objectId_ = objectId_;
       } else {
@@ -507,39 +458,38 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.X509Extension) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.X509Extension) other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.X509Extension)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -547,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.X509Extension other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()) return this;
       if (other.hasObjectId()) {
         mergeObjectId(other.getObjectId());
       }
@@ -577,8 +526,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.security.privateca.v1beta1.X509Extension) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.security.privateca.v1beta1.X509Extension) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -590,58 +538,39 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1beta1.ObjectId objectId_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.security.privateca.v1beta1.ObjectId,
-            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder,
-            com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>
-        objectIdBuilder_;
+        com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> objectIdBuilder_;
     /**
-     *
-     *
      * 
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the objectId field is set. */ public boolean hasObjectId() { return objectIdBuilder_ != null || objectId_ != null; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The objectId. */ public com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId() { if (objectIdBuilder_ == null) { - return objectId_ == null - ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() - : objectId_; + return objectId_ == null ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() : objectId_; } else { return objectIdBuilder_.getMessage(); } } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setObjectId(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (objectIdBuilder_ == null) { @@ -657,15 +586,11 @@ public Builder setObjectId(com.google.cloud.security.privateca.v1beta1.ObjectId return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setObjectId( com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -679,23 +604,17 @@ public Builder setObjectId( return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeObjectId(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (objectIdBuilder_ == null) { if (objectId_ != null) { objectId_ = - com.google.cloud.security.privateca.v1beta1.ObjectId.newBuilder(objectId_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.security.privateca.v1beta1.ObjectId.newBuilder(objectId_).mergeFrom(value).buildPartial(); } else { objectId_ = value; } @@ -707,15 +626,11 @@ public Builder mergeObjectId(com.google.cloud.security.privateca.v1beta1.ObjectI return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearObjectId() { if (objectIdBuilder_ == null) { @@ -729,73 +644,55 @@ public Builder clearObjectId() { return this; } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getObjectIdBuilder() { - + onChanged(); return getObjectIdFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder() { if (objectIdBuilder_ != null) { return objectIdBuilder_.getMessageOrBuilder(); } else { - return objectId_ == null - ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() - : objectId_; + return objectId_ == null ? + com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() : objectId_; } } /** - * - * *
      * Required. The OID for this X.509 extension.
      * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> getObjectIdFieldBuilder() { if (objectIdBuilder_ == null) { - objectIdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, - com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( - getObjectId(), getParentForChildren(), isClean()); + objectIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( + getObjectId(), + getParentForChildren(), + isClean()); objectId_ = null; } return objectIdBuilder_; } - private boolean critical_; + private boolean critical_ ; /** - * - * *
      * Required. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -803,7 +700,6 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectId
      * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The critical. */ @java.lang.Override @@ -811,8 +707,6 @@ public boolean getCritical() { return critical_; } /** - * - * *
      * Required. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -820,19 +714,16 @@ public boolean getCritical() {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The critical to set. * @return This builder for chaining. */ public Builder setCritical(boolean value) { - + critical_ = value; onChanged(); return this; } /** - * - * *
      * Required. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -840,11 +731,10 @@ public Builder setCritical(boolean value) {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCritical() { - + critical_ = false; onChanged(); return this; @@ -852,14 +742,11 @@ public Builder clearCritical() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -867,46 +754,40 @@ public com.google.protobuf.ByteString getValue() { return value_; } /** - * - * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,12 +797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.X509Extension) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.X509Extension) private static final com.google.cloud.security.privateca.v1beta1.X509Extension DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.X509Extension(); } @@ -930,16 +811,16 @@ public static com.google.cloud.security.privateca.v1beta1.X509Extension getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509Extension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509Extension(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509Extension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509Extension(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.X509Extension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java similarity index 56% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java index 2453b823..d642584b 100644 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java @@ -1,72 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface X509ExtensionOrBuilder - extends +public interface X509ExtensionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.X509Extension) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the objectId field is set. */ boolean hasObjectId(); /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The objectId. */ com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId(); /** - * - * *
    * Required. The OID for this X.509 extension.
    * 
* - * - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder(); /** - * - * *
    * Required. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -74,20 +42,16 @@ public interface X509ExtensionOrBuilder
    * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The critical. */ boolean getCritical(); /** - * - * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ com.google.protobuf.ByteString getValue(); diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto similarity index 100% rename from proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java new file mode 100644 index 00000000..d413eb3d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.SubordinateConfig; +import com.google.longrunning.Operation; + +public class AsyncActivateCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncActivateCertificateAuthority(); + } + + public static void asyncActivateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ActivateCertificateAuthorityRequest request = + ActivateCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPemCaCertificate("pemCaCertificate2100567073") + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .activateCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java new file mode 100644 index 00000000..fcaf0c08 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; +import com.google.cloud.security.privateca.v1beta1.SubordinateConfig; + +public class AsyncActivateCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncActivateCertificateAuthorityLRO(); + } + + public static void asyncActivateCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ActivateCertificateAuthorityRequest request = + ActivateCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPemCaCertificate("pemCaCertificate2100567073") + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .activateCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java new file mode 100644 index 00000000..ad27130c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.SubordinateConfig; + +public class SyncActivateCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncActivateCertificateAuthority(); + } + + public static void syncActivateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ActivateCertificateAuthorityRequest request = + ActivateCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPemCaCertificate("pemCaCertificate2100567073") + .setSubordinateConfig(SubordinateConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.activateCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..800cff8c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncActivateCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncActivateCertificateAuthorityCertificateauthorityname(); + } + + public static void syncActivateCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.activateCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java new file mode 100644 index 00000000..a11cbf9b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncActivateCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncActivateCertificateAuthorityString(); + } + + public static void syncActivateCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.activateCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..affddf89 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; +import com.google.cloud.security.privateca.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..61727bf3 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newBuilder() + .setTransportChannelProvider( + CertificateAuthorityServiceSettings.defaultHttpJsonTransportProviderBuilder() + .build()) + .build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..bf598a7d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_create_setendpoint_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; +import com.google.cloud.security.privateca.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + CertificateAuthorityServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java new file mode 100644 index 00000000..3da9c9ee --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; + +public class AsyncCreateCertificate { + + public static void main(String[] args) throws Exception { + asyncCreateCertificate(); + } + + public static void asyncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateRequest request = + CreateCertificateRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setCertificateId("certificateId-644529902") + .setCertificate(Certificate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.createCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java new file mode 100644 index 00000000..5462b0d0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest; + +public class SyncCreateCertificate { + + public static void main(String[] args) throws Exception { + syncCreateCertificate(); + } + + public static void syncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateRequest request = + CreateCertificateRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setCertificateId("certificateId-644529902") + .setCertificate(Certificate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Certificate response = certificateAuthorityServiceClient.createCertificate(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java new file mode 100644 index 00000000..3653c95c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_certificateauthoritynamecertificatestring_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncCreateCertificateCertificateauthoritynameCertificateString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateCertificateauthoritynameCertificateString(); + } + + public static void syncCreateCertificateCertificateauthoritynameCertificateString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + Certificate response = + certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_certificateauthoritynamecertificatestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java new file mode 100644 index 00000000..e385b1b2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncCreateCertificateStringCertificateString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateStringCertificateString(); + } + + public static void syncCreateCertificateStringCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + Certificate certificate = Certificate.newBuilder().build(); + String certificateId = "certificateId-644529902"; + Certificate response = + certificateAuthorityServiceClient.createCertificate(parent, certificate, certificateId); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java new file mode 100644 index 00000000..b9c9c8c9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateAuthority(); + } + + public static void asyncCreateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateAuthorityRequest request = + CreateCertificateAuthorityRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateAuthorityId("certificateAuthorityId-1652580953") + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .createCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java new file mode 100644 index 00000000..19f97bdd --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; + +public class AsyncCreateCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateAuthorityLRO(); + } + + public static void asyncCreateCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateAuthorityRequest request = + CreateCertificateAuthorityRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateAuthorityId("certificateAuthorityId-1652580953") + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .createCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java new file mode 100644 index 00000000..8c795df7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class SyncCreateCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncCreateCertificateAuthority(); + } + + public static void syncCreateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CreateCertificateAuthorityRequest request = + CreateCertificateAuthorityRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateAuthorityId("certificateAuthorityId-1652580953") + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.createCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java new file mode 100644 index 00000000..9c0965d6 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_locationnamecertificateauthoritystring_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class SyncCreateCertificateAuthorityLocationnameCertificateauthorityString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateAuthorityLocationnameCertificateauthorityString(); + } + + public static void syncCreateCertificateAuthorityLocationnameCertificateauthorityString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + CertificateAuthority response = + certificateAuthorityServiceClient + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_locationnamecertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java new file mode 100644 index 00000000..d84198af --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class SyncCreateCertificateAuthorityStringCertificateauthorityString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateAuthorityStringCertificateauthorityString(); + } + + public static void syncCreateCertificateAuthorityStringCertificateauthorityString() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + String certificateAuthorityId = "certificateAuthorityId-1652580953"; + CertificateAuthority response = + certificateAuthorityServiceClient + .createCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId) + .get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java new file mode 100644 index 00000000..e34372bf --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncDisableCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncDisableCertificateAuthority(); + } + + public static void asyncDisableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DisableCertificateAuthorityRequest request = + DisableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .disableCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java new file mode 100644 index 00000000..02415b24 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; + +public class AsyncDisableCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncDisableCertificateAuthorityLRO(); + } + + public static void asyncDisableCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DisableCertificateAuthorityRequest request = + DisableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .disableCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java new file mode 100644 index 00000000..b84c2a8a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest; + +public class SyncDisableCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncDisableCertificateAuthority(); + } + + public static void syncDisableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + DisableCertificateAuthorityRequest request = + DisableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.disableCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..4607b41c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncDisableCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncDisableCertificateAuthorityCertificateauthorityname(); + } + + public static void syncDisableCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.disableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java new file mode 100644 index 00000000..6b29c850 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncDisableCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncDisableCertificateAuthorityString(); + } + + public static void syncDisableCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.disableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java new file mode 100644 index 00000000..c0cd717b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncEnableCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncEnableCertificateAuthority(); + } + + public static void asyncEnableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + EnableCertificateAuthorityRequest request = + EnableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .enableCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java new file mode 100644 index 00000000..eb63a740 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; + +public class AsyncEnableCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncEnableCertificateAuthorityLRO(); + } + + public static void asyncEnableCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + EnableCertificateAuthorityRequest request = + EnableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .enableCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java new file mode 100644 index 00000000..8a9d3418 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest; + +public class SyncEnableCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncEnableCertificateAuthority(); + } + + public static void syncEnableCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + EnableCertificateAuthorityRequest request = + EnableCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.enableCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..a183faf1 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncEnableCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncEnableCertificateAuthorityCertificateauthorityname(); + } + + public static void syncEnableCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.enableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java new file mode 100644 index 00000000..476db15a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncEnableCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncEnableCertificateAuthorityString(); + } + + public static void syncEnableCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.enableCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java new file mode 100644 index 00000000..8ac459ee --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; + +public class AsyncFetchCertificateAuthorityCsr { + + public static void main(String[] args) throws Exception { + asyncFetchCertificateAuthorityCsr(); + } + + public static void asyncFetchCertificateAuthorityCsr() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + FetchCertificateAuthorityCsrRequest request = + FetchCertificateAuthorityCsrRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .fetchCertificateAuthorityCsrCallable() + .futureCall(request); + // Do something. + FetchCertificateAuthorityCsrResponse response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java new file mode 100644 index 00000000..f387da51 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; + +public class SyncFetchCertificateAuthorityCsr { + + public static void main(String[] args) throws Exception { + syncFetchCertificateAuthorityCsr(); + } + + public static void syncFetchCertificateAuthorityCsr() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + FetchCertificateAuthorityCsrRequest request = + FetchCertificateAuthorityCsrRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + FetchCertificateAuthorityCsrResponse response = + certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java new file mode 100644 index 00000000..a8efa696 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; + +public class SyncFetchCertificateAuthorityCsrCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncFetchCertificateAuthorityCsrCertificateauthorityname(); + } + + public static void syncFetchCertificateAuthorityCsrCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + FetchCertificateAuthorityCsrResponse response = + certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java new file mode 100644 index 00000000..17c59eef --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; + +public class SyncFetchCertificateAuthorityCsrString { + + public static void main(String[] args) throws Exception { + syncFetchCertificateAuthorityCsrString(); + } + + public static void syncFetchCertificateAuthorityCsrString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + FetchCertificateAuthorityCsrResponse response = + certificateAuthorityServiceClient.fetchCertificateAuthorityCsr(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java new file mode 100644 index 00000000..1230d43c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; +import com.google.cloud.security.privateca.v1beta1.GetCertificateRequest; + +public class AsyncGetCertificate { + + public static void main(String[] args) throws Exception { + asyncGetCertificate(); + } + + public static void asyncGetCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRequest request = + GetCertificateRequest.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java new file mode 100644 index 00000000..460134cc --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; +import com.google.cloud.security.privateca.v1beta1.GetCertificateRequest; + +public class SyncGetCertificate { + + public static void main(String[] args) throws Exception { + syncGetCertificate(); + } + + public static void syncGetCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRequest request = + GetCertificateRequest.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .build(); + Certificate response = certificateAuthorityServiceClient.getCertificate(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java new file mode 100644 index 00000000..1635f4b2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; + +public class SyncGetCertificateCertificatename { + + public static void main(String[] args) throws Exception { + syncGetCertificateCertificatename(); + } + + public static void syncGetCertificateCertificatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); + Certificate response = certificateAuthorityServiceClient.getCertificate(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java new file mode 100644 index 00000000..e796c291 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_string_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; + +public class SyncGetCertificateString { + + public static void main(String[] args) throws Exception { + syncGetCertificateString(); + } + + public static void syncGetCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString(); + Certificate response = certificateAuthorityServiceClient.getCertificate(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java new file mode 100644 index 00000000..62bfe44d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest; + +public class AsyncGetCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncGetCertificateAuthority(); + } + + public static void asyncGetCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateAuthorityRequest request = + GetCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getCertificateAuthorityCallable().futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java new file mode 100644 index 00000000..a7b40b43 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest; + +public class SyncGetCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncGetCertificateAuthority(); + } + + public static void syncGetCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateAuthorityRequest request = + GetCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.getCertificateAuthority(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..ea2eb48c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncGetCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncGetCertificateAuthorityCertificateauthorityname(); + } + + public static void syncGetCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.getCertificateAuthority(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java new file mode 100644 index 00000000..3af97e9b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncGetCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncGetCertificateAuthorityString(); + } + + public static void syncGetCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.getCertificateAuthority(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java new file mode 100644 index 00000000..4d112612 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; +import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest; + +public class AsyncGetCertificateRevocationList { + + public static void main(String[] args) throws Exception { + asyncGetCertificateRevocationList(); + } + + public static void asyncGetCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRevocationListRequest request = + GetCertificateRevocationListRequest.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .getCertificateRevocationListCallable() + .futureCall(request); + // Do something. + CertificateRevocationList response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java new file mode 100644 index 00000000..76185c35 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; +import com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest; + +public class SyncGetCertificateRevocationList { + + public static void main(String[] args) throws Exception { + syncGetCertificateRevocationList(); + } + + public static void syncGetCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetCertificateRevocationListRequest request = + GetCertificateRevocationListRequest.newBuilder() + .setName( + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString()) + .build(); + CertificateRevocationList response = + certificateAuthorityServiceClient.getCertificateRevocationList(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java new file mode 100644 index 00000000..c254816f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; + +public class SyncGetCertificateRevocationListCertificaterevocationlistname { + + public static void main(String[] args) throws Exception { + syncGetCertificateRevocationListCertificaterevocationlistname(); + } + + public static void syncGetCertificateRevocationListCertificaterevocationlistname() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateRevocationListName name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]"); + CertificateRevocationList response = + certificateAuthorityServiceClient.getCertificateRevocationList(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java new file mode 100644 index 00000000..607560c7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; + +public class SyncGetCertificateRevocationListString { + + public static void main(String[] args) throws Exception { + syncGetCertificateRevocationListString(); + } + + public static void syncGetCertificateRevocationListString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateRevocationListName.of( + "[PROJECT]", + "[LOCATION]", + "[CERTIFICATE_AUTHORITY]", + "[CERTIFICATE_REVOCATION_LIST]") + .toString(); + CertificateRevocationList response = + certificateAuthorityServiceClient.getCertificateRevocationList(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java new file mode 100644 index 00000000..06f50b39 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; +import com.google.cloud.security.privateca.v1beta1.ReusableConfigName; + +public class AsyncGetReusableConfig { + + public static void main(String[] args) throws Exception { + asyncGetReusableConfig(); + } + + public static void asyncGetReusableConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetReusableConfigRequest request = + GetReusableConfigRequest.newBuilder() + .setName( + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]").toString()) + .build(); + ApiFuture future = + certificateAuthorityServiceClient.getReusableConfigCallable().futureCall(request); + // Do something. + ReusableConfig response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java new file mode 100644 index 00000000..93cb53f2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; +import com.google.cloud.security.privateca.v1beta1.ReusableConfigName; + +public class SyncGetReusableConfig { + + public static void main(String[] args) throws Exception { + syncGetReusableConfig(); + } + + public static void syncGetReusableConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + GetReusableConfigRequest request = + GetReusableConfigRequest.newBuilder() + .setName( + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]").toString()) + .build(); + ReusableConfig response = certificateAuthorityServiceClient.getReusableConfig(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java new file mode 100644 index 00000000..bfd4726e --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_reusableconfigname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; +import com.google.cloud.security.privateca.v1beta1.ReusableConfigName; + +public class SyncGetReusableConfigReusableconfigname { + + public static void main(String[] args) throws Exception { + syncGetReusableConfigReusableconfigname(); + } + + public static void syncGetReusableConfigReusableconfigname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ReusableConfigName name = + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"); + ReusableConfig response = certificateAuthorityServiceClient.getReusableConfig(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_reusableconfigname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java new file mode 100644 index 00000000..bc19c5d5 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; +import com.google.cloud.security.privateca.v1beta1.ReusableConfigName; + +public class SyncGetReusableConfigString { + + public static void main(String[] args) throws Exception { + syncGetReusableConfigString(); + } + + public static void syncGetReusableConfigString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + ReusableConfigName.of("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]").toString(); + ReusableConfig response = certificateAuthorityServiceClient.getReusableConfig(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java new file mode 100644 index 00000000..4e18f5d5 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class AsyncListCertificateAuthorities { + + public static void main(String[] args) throws Exception { + asyncListCertificateAuthorities(); + } + + public static void asyncListCertificateAuthorities() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateAuthoritiesRequest request = + ListCertificateAuthoritiesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .listCertificateAuthoritiesPagedCallable() + .futureCall(request); + // Do something. + for (CertificateAuthority element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java new file mode 100644 index 00000000..ddef0837 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCertificateAuthoritiesPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateAuthoritiesPaged(); + } + + public static void asyncListCertificateAuthoritiesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateAuthoritiesRequest request = + ListCertificateAuthoritiesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateAuthoritiesResponse response = + certificateAuthorityServiceClient.listCertificateAuthoritiesCallable().call(request); + for (CertificateAuthority element : response.getCertificateAuthoritiesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java new file mode 100644 index 00000000..673bec9e --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class SyncListCertificateAuthorities { + + public static void main(String[] args) throws Exception { + syncListCertificateAuthorities(); + } + + public static void syncListCertificateAuthorities() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateAuthoritiesRequest request = + ListCertificateAuthoritiesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateAuthority element : + certificateAuthorityServiceClient.listCertificateAuthorities(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java new file mode 100644 index 00000000..58ec7522 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_locationname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class SyncListCertificateAuthoritiesLocationname { + + public static void main(String[] args) throws Exception { + syncListCertificateAuthoritiesLocationname(); + } + + public static void syncListCertificateAuthoritiesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CertificateAuthority element : + certificateAuthorityServiceClient.listCertificateAuthorities(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_locationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java new file mode 100644 index 00000000..7863aac9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.LocationName; + +public class SyncListCertificateAuthoritiesString { + + public static void main(String[] args) throws Exception { + syncListCertificateAuthoritiesString(); + } + + public static void syncListCertificateAuthoritiesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CertificateAuthority element : + certificateAuthorityServiceClient.listCertificateAuthorities(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java new file mode 100644 index 00000000..2fce12a0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; + +public class AsyncListCertificateRevocationLists { + + public static void main(String[] args) throws Exception { + asyncListCertificateRevocationLists(); + } + + public static void asyncListCertificateRevocationLists() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateRevocationListsRequest request = + ListCertificateRevocationListsRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .listCertificateRevocationListsPagedCallable() + .futureCall(request); + // Do something. + for (CertificateRevocationList element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java new file mode 100644 index 00000000..ae72e57b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse; +import com.google.common.base.Strings; + +public class AsyncListCertificateRevocationListsPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateRevocationListsPaged(); + } + + public static void asyncListCertificateRevocationListsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateRevocationListsRequest request = + ListCertificateRevocationListsRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateRevocationListsResponse response = + certificateAuthorityServiceClient + .listCertificateRevocationListsCallable() + .call(request); + for (CertificateRevocationList element : response.getCertificateRevocationListsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java new file mode 100644 index 00000000..07534e19 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest; + +public class SyncListCertificateRevocationLists { + + public static void main(String[] args) throws Exception { + syncListCertificateRevocationLists(); + } + + public static void syncListCertificateRevocationLists() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificateRevocationListsRequest request = + ListCertificateRevocationListsRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateRevocationList element : + certificateAuthorityServiceClient.listCertificateRevocationLists(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java new file mode 100644 index 00000000..52a59481 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; + +public class SyncListCertificateRevocationListsCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncListCertificateRevocationListsCertificateauthorityname(); + } + + public static void syncListCertificateRevocationListsCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + for (CertificateRevocationList element : + certificateAuthorityServiceClient.listCertificateRevocationLists(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java new file mode 100644 index 00000000..303844e6 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; + +public class SyncListCertificateRevocationListsString { + + public static void main(String[] args) throws Exception { + syncListCertificateRevocationListsString(); + } + + public static void syncListCertificateRevocationListsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + for (CertificateRevocationList element : + certificateAuthorityServiceClient.listCertificateRevocationLists(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java new file mode 100644 index 00000000..c2390925 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; + +public class AsyncListCertificates { + + public static void main(String[] args) throws Exception { + asyncListCertificates(); + } + + public static void asyncListCertificates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificatesRequest request = + ListCertificatesRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.listCertificatesPagedCallable().futureCall(request); + // Do something. + for (Certificate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java new file mode 100644 index 00000000..db98a843 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_paged_async] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; +import com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse; +import com.google.common.base.Strings; + +public class AsyncListCertificatesPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificatesPaged(); + } + + public static void asyncListCertificatesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificatesRequest request = + ListCertificatesRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificatesResponse response = + certificateAuthorityServiceClient.listCertificatesCallable().call(request); + for (Certificate element : response.getCertificatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java new file mode 100644 index 00000000..52d97866 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest; + +public class SyncListCertificates { + + public static void main(String[] args) throws Exception { + syncListCertificates(); + } + + public static void syncListCertificates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListCertificatesRequest request = + ListCertificatesRequest.newBuilder() + .setParent( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Certificate element : + certificateAuthorityServiceClient.listCertificates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java new file mode 100644 index 00000000..c7633f14 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncListCertificatesCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncListCertificatesCertificateauthorityname(); + } + + public static void syncListCertificatesCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + for (Certificate element : + certificateAuthorityServiceClient.listCertificates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java new file mode 100644 index 00000000..c60c473f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_string_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncListCertificatesString { + + public static void main(String[] args) throws Exception { + syncListCertificatesString(); + } + + public static void syncListCertificatesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + for (Certificate element : + certificateAuthorityServiceClient.listCertificates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java new file mode 100644 index 00000000..391385e6 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; + +public class AsyncListReusableConfigs { + + public static void main(String[] args) throws Exception { + asyncListReusableConfigs(); + } + + public static void asyncListReusableConfigs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListReusableConfigsRequest request = + ListReusableConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.listReusableConfigsPagedCallable().futureCall(request); + // Do something. + for (ReusableConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java new file mode 100644 index 00000000..ea888cab --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_paged_async] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; +import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; +import com.google.common.base.Strings; + +public class AsyncListReusableConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListReusableConfigsPaged(); + } + + public static void asyncListReusableConfigsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListReusableConfigsRequest request = + ListReusableConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListReusableConfigsResponse response = + certificateAuthorityServiceClient.listReusableConfigsCallable().call(request); + for (ReusableConfig element : response.getReusableConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java new file mode 100644 index 00000000..b2d7ed64 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; + +public class SyncListReusableConfigs { + + public static void main(String[] args) throws Exception { + syncListReusableConfigs(); + } + + public static void syncListReusableConfigs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ListReusableConfigsRequest request = + ListReusableConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ReusableConfig element : + certificateAuthorityServiceClient.listReusableConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java new file mode 100644 index 00000000..b75a62c2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_locationname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; + +public class SyncListReusableConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListReusableConfigsLocationname(); + } + + public static void syncListReusableConfigsLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ReusableConfig element : + certificateAuthorityServiceClient.listReusableConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_locationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java new file mode 100644 index 00000000..139d9a90 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.LocationName; +import com.google.cloud.security.privateca.v1beta1.ReusableConfig; + +public class SyncListReusableConfigsString { + + public static void main(String[] args) throws Exception { + syncListReusableConfigsString(); + } + + public static void syncListReusableConfigsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ReusableConfig element : + certificateAuthorityServiceClient.listReusableConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java new file mode 100644 index 00000000..798a9b6b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncRestoreCertificateAuthority(); + } + + public static void asyncRestoreCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RestoreCertificateAuthorityRequest request = + RestoreCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .restoreCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java new file mode 100644 index 00000000..38abfce2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; +import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; + +public class AsyncRestoreCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreCertificateAuthorityLRO(); + } + + public static void asyncRestoreCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RestoreCertificateAuthorityRequest request = + RestoreCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .restoreCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java new file mode 100644 index 00000000..dde0ac62 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest; + +public class SyncRestoreCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncRestoreCertificateAuthority(); + } + + public static void syncRestoreCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RestoreCertificateAuthorityRequest request = + RestoreCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.restoreCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..3fd35dab --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncRestoreCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncRestoreCertificateAuthorityCertificateauthorityname(); + } + + public static void syncRestoreCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.restoreCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java new file mode 100644 index 00000000..127f7625 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncRestoreCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncRestoreCertificateAuthorityString(); + } + + public static void syncRestoreCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.restoreCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java new file mode 100644 index 00000000..bfacfb7f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; +import com.google.cloud.security.privateca.v1beta1.RevocationReason; +import com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest; + +public class AsyncRevokeCertificate { + + public static void main(String[] args) throws Exception { + asyncRevokeCertificate(); + } + + public static void asyncRevokeCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RevokeCertificateRequest request = + RevokeCertificateRequest.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setReason(RevocationReason.forNumber(0)) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.revokeCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java new file mode 100644 index 00000000..18068cd5 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; +import com.google.cloud.security.privateca.v1beta1.RevocationReason; +import com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest; + +public class SyncRevokeCertificate { + + public static void main(String[] args) throws Exception { + syncRevokeCertificate(); + } + + public static void syncRevokeCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + RevokeCertificateRequest request = + RevokeCertificateRequest.newBuilder() + .setName( + CertificateName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString()) + .setReason(RevocationReason.forNumber(0)) + .setRequestId("requestId693933066") + .build(); + Certificate response = certificateAuthorityServiceClient.revokeCertificate(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java new file mode 100644 index 00000000..036b4699 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; + +public class SyncRevokeCertificateCertificatename { + + public static void main(String[] args) throws Exception { + syncRevokeCertificateCertificatename(); + } + + public static void syncRevokeCertificateCertificatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateName name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"); + Certificate response = certificateAuthorityServiceClient.revokeCertificate(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java new file mode 100644 index 00000000..38499865 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_string_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateName; + +public class SyncRevokeCertificateString { + + public static void main(String[] args) throws Exception { + syncRevokeCertificateString(); + } + + public static void syncRevokeCertificateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]") + .toString(); + Certificate response = certificateAuthorityServiceClient.revokeCertificate(name); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java new file mode 100644 index 00000000..029f678b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; +import com.google.longrunning.Operation; + +public class AsyncScheduleDeleteCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncScheduleDeleteCertificateAuthority(); + } + + public static void asyncScheduleDeleteCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ScheduleDeleteCertificateAuthorityRequest request = + ScheduleDeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .scheduleDeleteCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java new file mode 100644 index 00000000..85a1800b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; +import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; + +public class AsyncScheduleDeleteCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncScheduleDeleteCertificateAuthorityLRO(); + } + + public static void asyncScheduleDeleteCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ScheduleDeleteCertificateAuthorityRequest request = + ScheduleDeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .scheduleDeleteCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java new file mode 100644 index 00000000..9c67fb48 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest; + +public class SyncScheduleDeleteCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncScheduleDeleteCertificateAuthority(); + } + + public static void syncScheduleDeleteCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + ScheduleDeleteCertificateAuthorityRequest request = + ScheduleDeleteCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 00000000..c6aabf7c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_certificateauthorityname_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncScheduleDeleteCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncScheduleDeleteCertificateAuthorityCertificateauthorityname(); + } + + public static void syncScheduleDeleteCertificateAuthorityCertificateauthorityname() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"); + CertificateAuthority response = + certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java new file mode 100644 index 00000000..c88ea83d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_string_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; + +public class SyncScheduleDeleteCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncScheduleDeleteCertificateAuthorityString(); + } + + public static void syncScheduleDeleteCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + String name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]") + .toString(); + CertificateAuthority response = + certificateAuthorityServiceClient.scheduleDeleteCertificateAuthorityAsync(name).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java new file mode 100644 index 00000000..347e854f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificate { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificate(); + } + + public static void asyncUpdateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRequest request = + UpdateCertificateRequest.newBuilder() + .setCertificate(Certificate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient.updateCertificateCallable().futureCall(request); + // Do something. + Certificate response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java new file mode 100644 index 00000000..6361a326 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificate { + + public static void main(String[] args) throws Exception { + syncUpdateCertificate(); + } + + public static void syncUpdateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRequest request = + UpdateCertificateRequest.newBuilder() + .setCertificate(Certificate.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Certificate response = certificateAuthorityServiceClient.updateCertificate(request); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java new file mode 100644 index 00000000..151887ca --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] +import com.google.cloud.security.privateca.v1beta1.Certificate; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateCertificateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateCertificateFieldmask(); + } + + public static void syncUpdateCertificateCertificateFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + Certificate certificate = Certificate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Certificate response = + certificateAuthorityServiceClient.updateCertificate(certificate, updateMask); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java new file mode 100644 index 00000000..e5f20e66 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateAuthority(); + } + + public static void asyncUpdateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateAuthorityRequest request = + UpdateCertificateAuthorityRequest.newBuilder() + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .updateCertificateAuthorityCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java new file mode 100644 index 00000000..69d690c9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateAuthorityLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateAuthorityLRO(); + } + + public static void asyncUpdateCertificateAuthorityLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateAuthorityRequest request = + UpdateCertificateAuthorityRequest.newBuilder() + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .updateCertificateAuthorityOperationCallable() + .futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java new file mode 100644 index 00000000..3a1a46dc --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateAuthority(); + } + + public static void syncUpdateCertificateAuthority() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateAuthorityRequest request = + UpdateCertificateAuthorityRequest.newBuilder() + .setCertificateAuthority(CertificateAuthority.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateAuthority response = + certificateAuthorityServiceClient.updateCertificateAuthorityAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java new file mode 100644 index 00000000..60535fc3 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateAuthorityCertificateauthorityFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateAuthorityCertificateauthorityFieldmask(); + } + + public static void syncUpdateCertificateAuthorityCertificateauthorityFieldmask() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateAuthority certificateAuthority = CertificateAuthority.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CertificateAuthority response = + certificateAuthorityServiceClient + .updateCertificateAuthorityAsync(certificateAuthority, updateMask) + .get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java new file mode 100644 index 00000000..1658bbd4 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateRevocationList { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateRevocationList(); + } + + public static void asyncUpdateCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRevocationListRequest request = + UpdateCertificateRevocationListRequest.newBuilder() + .setCertificateRevocationList(CertificateRevocationList.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + certificateAuthorityServiceClient + .updateCertificateRevocationListCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java new file mode 100644 index 00000000..7434744d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.OperationMetadata; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCertificateRevocationListLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCertificateRevocationListLRO(); + } + + public static void asyncUpdateCertificateRevocationListLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRevocationListRequest request = + UpdateCertificateRevocationListRequest.newBuilder() + .setCertificateRevocationList(CertificateRevocationList.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + certificateAuthorityServiceClient + .updateCertificateRevocationListOperationCallable() + .futureCall(request); + // Do something. + CertificateRevocationList response = future.get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java new file mode 100644 index 00000000..aa034e51 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateRevocationList { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateRevocationList(); + } + + public static void syncUpdateCertificateRevocationList() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + UpdateCertificateRevocationListRequest request = + UpdateCertificateRevocationListRequest.newBuilder() + .setCertificateRevocationList(CertificateRevocationList.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + CertificateRevocationList response = + certificateAuthorityServiceClient.updateCertificateRevocationListAsync(request).get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java new file mode 100644 index 00000000..e920ec01 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; +import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCertificateRevocationListCertificaterevocationlistFieldmask(); + } + + public static void syncUpdateCertificateRevocationListCertificaterevocationlistFieldmask() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CertificateAuthorityServiceClient certificateAuthorityServiceClient = + CertificateAuthorityServiceClient.create()) { + CertificateRevocationList certificateRevocationList = + CertificateRevocationList.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CertificateRevocationList response = + certificateAuthorityServiceClient + .updateCertificateRevocationListAsync(certificateRevocationList, updateMask) + .get(); + } + } +} +// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java new file mode 100644 index 00000000..7290d95b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.samples; + +// [START privateca_v1beta1_generated_certificateauthorityservicesettings_createcertificate_sync] +import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; +import java.time.Duration; + +public class SyncCreateCertificate { + + public static void main(String[] args) throws Exception { + syncCreateCertificate(); + } + + public static void syncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceSettings.Builder certificateAuthorityServiceSettingsBuilder = + CertificateAuthorityServiceSettings.newBuilder(); + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .setRetrySettings( + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CertificateAuthorityServiceSettings certificateAuthorityServiceSettings = + certificateAuthorityServiceSettingsBuilder.build(); + } +} +// [END privateca_v1beta1_generated_certificateauthorityservicesettings_createcertificate_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java new file mode 100644 index 00000000..9875fdd5 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1.stub.samples; + +// [START privateca_v1beta1_generated_certificateauthorityservicestubsettings_createcertificate_sync] +import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; +import java.time.Duration; + +public class SyncCreateCertificate { + + public static void main(String[] args) throws Exception { + syncCreateCertificate(); + } + + public static void syncCreateCertificate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CertificateAuthorityServiceStubSettings.Builder certificateAuthorityServiceSettingsBuilder = + CertificateAuthorityServiceStubSettings.newBuilder(); + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .setRetrySettings( + certificateAuthorityServiceSettingsBuilder + .createCertificateSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CertificateAuthorityServiceStubSettings certificateAuthorityServiceSettings = + certificateAuthorityServiceSettingsBuilder.build(); + } +} +// [END privateca_v1beta1_generated_certificateauthorityservicestubsettings_createcertificate_sync] diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java deleted file mode 100644 index 8e979132..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.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/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface FetchCertificateAuthorityCsrRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
-   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
-   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java deleted file mode 100644 index bdc066df..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCaPoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCaPoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java deleted file mode 100644 index 236eb1e1..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.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/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateAuthorityRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java deleted file mode 100644 index 57d34b00..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java deleted file mode 100644 index 09cd9cc3..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.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/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateRevocationListRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java deleted file mode 100644 index cfebc0ed..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.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/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java deleted file mode 100644 index 140434ca..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java +++ /dev/null @@ -1,906 +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/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public final class PrivateCaProto { - private PrivateCaProto() {} - - 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_security_privateca_v1_CreateCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/security/privateca/v1/ser" - + "vice.proto\022\"google.cloud.security.privat" - + "eca.v1\032\034google/api/annotations.proto\032\027go" - + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\0322google/cloud/security/privateca/v1/re" - + "sources.proto\032#google/longrunning/operat" - + "ions.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\237\002" - + "\n\030CreateCertificateRequest\0227\n\006parent\030\001 \001" - + "(\tB\'\340A\002\372A!\n\037privateca.googleapis.com/CaP" - + "ool\022\033\n\016certificate_id\030\002 \001(\tB\003\340A\001\022I\n\013cert" - + "ificate\030\003 \001(\0132/.google.cloud.security.pr" - + "ivateca.v1.CertificateB\003\340A\002\022\027\n\nrequest_i" - + "d\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001" - + "\022-\n issuing_certificate_authority_id\030\006 \001" - + "(\tB\003\340A\001\"S\n\025GetCertificateRequest\022:\n\004name" - + "\030\001 \001(\tB,\340A\002\372A&\n$privateca.googleapis.com" - + "/Certificate\"\257\001\n\027ListCertificatesRequest" - + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goog" - + "leapis.com/CaPool\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\"\217\001\n\030ListC" - + "ertificatesResponse\022E\n\014certificates\030\001 \003(" - + "\0132/.google.cloud.security.privateca.v1.C" - + "ertificate\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" - + "nreachable\030\003 \003(\t\"\272\001\n\030RevokeCertificateRe" - + "quest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$privateca.g" - + "oogleapis.com/Certificate\022I\n\006reason\030\002 \001(" - + "\01624.google.cloud.security.privateca.v1.R" - + "evocationReasonB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" - + "B\003\340A\001\"\264\001\n\030UpdateCertificateRequest\022I\n\013ce" - + "rtificate\030\001 \001(\0132/.google.cloud.security." - + "privateca.v1.CertificateB\003\340A\002\0224\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" - + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\374\001\n#Activat" - + "eCertificateAuthorityRequest\022C\n\004name\030\001 \001" - + "(\tB5\340A\002\372A/\n-privateca.googleapis.com/Cer" - + "tificateAuthority\022\037\n\022pem_ca_certificate\030" - + "\002 \001(\tB\003\340A\002\022V\n\022subordinate_config\030\003 \001(\01325" - + ".google.cloud.security.privateca.v1.Subo" - + "rdinateConfigB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" - + "\340A\001\"\372\001\n!CreateCertificateAuthorityReques" - + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goo" - + "gleapis.com/CaPool\022%\n\030certificate_author" - + "ity_id\030\002 \001(\tB\003\340A\002\022\\\n\025certificate_authori" - + "ty\030\003 \001(\01328.google.cloud.security.private" - + "ca.v1.CertificateAuthorityB\003\340A\002\022\027\n\nreque" - + "st_id\030\004 \001(\tB\003\340A\001\"\202\001\n\"DisableCertificateA" - + "uthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-p" - + "rivateca.googleapis.com/CertificateAutho" - + "rity\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\201\001\n!Enable" - + "CertificateAuthorityRequest\022C\n\004name\030\001 \001(" - + "\tB5\340A\002\372A/\n-privateca.googleapis.com/Cert" - + "ificateAuthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" - + "\001\"j\n#FetchCertificateAuthorityCsrRequest" - + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.google" - + "apis.com/CertificateAuthority\"<\n$FetchCe" - + "rtificateAuthorityCsrResponse\022\024\n\007pem_csr" - + "\030\001 \001(\tB\003\340A\003\"e\n\036GetCertificateAuthorityRe" - + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.g" - + "oogleapis.com/CertificateAuthority\"\271\001\n!L" - + "istCertificateAuthoritiesRequest\0227\n\006pare" - + "nt\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.googleapis.c" - + "om/CaPool\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" - + "e_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\"\255\001\n\"ListCertifica" - + "teAuthoritiesResponse\022Y\n\027certificate_aut" - + "horities\030\001 \003(\01328.google.cloud.security.p" - + "rivateca.v1.CertificateAuthority\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\203" - + "\001\n#UndeleteCertificateAuthorityRequest\022C" - + "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleap" - + "is.com/CertificateAuthority\022\027\n\nrequest_i" - + "d\030\002 \001(\tB\003\340A\001\"\312\001\n!DeleteCertificateAuthor" - + "ityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privat" - + "eca.googleapis.com/CertificateAuthority\022" - + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\'\n\032ignore_activ" - + "e_certificates\030\004 \001(\010B\003\340A\001\022\036\n\021skip_grace_" - + "period\030\005 \001(\010B\003\340A\001\"\320\001\n!UpdateCertificateA" - + "uthorityRequest\022\\\n\025certificate_authority" - + "\030\001 \001(\01328.google.cloud.security.privateca" - + ".v1.CertificateAuthorityB\003\340A\002\0224\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" - + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\304\001\n\023CreateC" - + "aPoolRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" - + "cations.googleapis.com/Location\022\027\n\nca_po" - + "ol_id\030\002 \001(\tB\003\340A\002\022@\n\007ca_pool\030\003 \001(\0132*.goog" - + "le.cloud.security.privateca.v1.CaPoolB\003\340" - + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\246\001\n\023UpdateCa" - + "PoolRequest\022@\n\007ca_pool\030\001 \001(\0132*.google.cl" - + "oud.security.privateca.v1.CaPoolB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"e\n\023" - + "DeleteCaPoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" - + "!\n\037privateca.googleapis.com/CaPool\022\027\n\nre" - + "quest_id\030\002 \001(\tB\003\340A\001\"h\n\023FetchCaCertsReque" - + "st\0228\n\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.g" - + "oogleapis.com/CaPool\022\027\n\nrequest_id\030\002 \001(\t" - + "B\003\340A\001\"\217\001\n\024FetchCaCertsResponse\022T\n\010ca_cer" - + "ts\030\001 \003(\0132B.google.cloud.security.private" - + "ca.v1.FetchCaCertsResponse.CertChain\032!\n\t" - + "CertChain\022\024\n\014certificates\030\001 \003(\t\"I\n\020GetCa" - + "PoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037priva" - + "teca.googleapis.com/CaPool\"\254\001\n\022ListCaPoo" - + "lsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" - + "ions.googleapis.com/Location\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" - + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A" - + "\001\"\201\001\n\023ListCaPoolsResponse\022<\n\010ca_pools\030\001 " - + "\003(\0132*.google.cloud.security.privateca.v1" - + ".CaPool\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"o\n#GetCertificateRevocatio" - + "nListRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2priv" - + "ateca.googleapis.com/CertificateRevocati" - + "onList\"\313\001\n%ListCertificateRevocationList" - + "sRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privat" - + "eca.googleapis.com/CertificateAuthority\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_b" - + "y\030\005 \001(\tB\003\340A\001\"\273\001\n&ListCertificateRevocati" - + "onListsResponse\022c\n\034certificate_revocatio" - + "n_lists\030\001 \003(\0132=.google.cloud.security.pr" - + "ivateca.v1.CertificateRevocationList\022\027\n\017" - + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" - + "(\t\"\340\001\n&UpdateCertificateRevocationListRe" - + "quest\022g\n\033certificate_revocation_list\030\001 \001" - + "(\0132=.google.cloud.security.privateca.v1." - + "CertificateRevocationListB\003\340A\002\0224\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\370\001\n Create" - + "CertificateTemplateRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022$\n\027certificate_template_id\030\002 \001(\tB\003" - + "\340A\002\022Z\n\024certificate_template\030\003 \001(\01327.goog" - + "le.cloud.security.privateca.v1.Certifica" - + "teTemplateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" - + "\"\177\n DeleteCertificateTemplateRequest\022B\n\004" - + "name\030\001 \001(\tB4\340A\002\372A.\n,privateca.googleapis" - + ".com/CertificateTemplate\022\027\n\nrequest_id\030\002" - + " \001(\tB\003\340A\001\"c\n\035GetCertificateTemplateReque" - + "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,privateca.goog" - + "leapis.com/CertificateTemplate\"\271\001\n\037ListC" - + "ertificateTemplatesRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" - + "rder_by\030\005 \001(\tB\003\340A\001\"\250\001\n ListCertificateTe" - + "mplatesResponse\022V\n\025certificate_templates" - + "\030\001 \003(\01327.google.cloud.security.privateca" - + ".v1.CertificateTemplate\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\315\001\n Update" - + "CertificateTemplateRequest\022Z\n\024certificat" - + "e_template\030\001 \001(\01327.google.cloud.security" - + ".privateca.v1.CertificateTemplateB\003\340A\002\0224" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\200\002" - + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" - + "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" - + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" - + "rsion\030\007 \001(\tB\003\340A\0032\372;\n\033CertificateAuthorit" - + "yService\022\367\001\n\021CreateCertificate\022<.google." - + "cloud.security.privateca.v1.CreateCertif" - + "icateRequest\032/.google.cloud.security.pri" - + "vateca.v1.Certificate\"s\202\323\344\223\002I\":/v1/{pare" - + "nt=projects/*/locations/*/caPools/*}/cer" - + "tificates:\013certificate\332A!parent,certific" - + "ate,certificate_id\022\307\001\n\016GetCertificate\0229." - + "google.cloud.security.privateca.v1.GetCe" - + "rtificateRequest\032/.google.cloud.security" - + ".privateca.v1.Certificate\"I\202\323\344\223\002<\022:/v1/{" - + "name=projects/*/locations/*/caPools/*/ce" - + "rtificates/*}\332A\004name\022\332\001\n\020ListCertificate" - + "s\022;.google.cloud.security.privateca.v1.L" - + "istCertificatesRequest\032<.google.cloud.se" - + "curity.privateca.v1.ListCertificatesResp" - + "onse\"K\202\323\344\223\002<\022:/v1/{parent=projects/*/loc" - + "ations/*/caPools/*}/certificates\332A\006paren" - + "t\022\327\001\n\021RevokeCertificate\022<.google.cloud.s" - + "ecurity.privateca.v1.RevokeCertificateRe" - + "quest\032/.google.cloud.security.privateca." - + "v1.Certificate\"S\202\323\344\223\002F\"A/v1/{name=projec" - + "ts/*/locations/*/caPools/*/certificates/" - + "*}:revoke:\001*\332A\004name\022\371\001\n\021UpdateCertificat" - + "e\022<.google.cloud.security.privateca.v1.U" - + "pdateCertificateRequest\032/.google.cloud.s" - + "ecurity.privateca.v1.Certificate\"u\202\323\344\223\002U" - + "2F/v1/{certificate.name=projects/*/locat" - + "ions/*/caPools/*/certificates/*}:\013certif" - + "icate\332A\027certificate,update_mask\022\224\002\n\034Acti" - + "vateCertificateAuthority\022G.google.cloud." - + "security.privateca.v1.ActivateCertificat" - + "eAuthorityRequest\032\035.google.longrunning.O" - + "peration\"\213\001\202\323\344\223\002R\"M/v1/{name=projects/*/" - + "locations/*/caPools/*/certificateAuthori" - + "ties/*}:activate:\001*\332A\004name\312A)\n\024Certifica" - + "teAuthority\022\021OperationMetadata\022\314\002\n\032Creat" - + "eCertificateAuthority\022E.google.cloud.sec" - + "urity.privateca.v1.CreateCertificateAuth" - + "orityRequest\032\035.google.longrunning.Operat" - + "ion\"\307\001\202\323\344\223\002]\"D/v1/{parent=projects/*/loc" - + "ations/*/caPools/*}/certificateAuthoriti" - + "es:\025certificate_authority\332A5parent,certi" - + "ficate_authority,certificate_authority_i" - + "d\312A)\n\024CertificateAuthority\022\021OperationMet" - + "adata\022\221\002\n\033DisableCertificateAuthority\022F." - + "google.cloud.security.privateca.v1.Disab" - + "leCertificateAuthorityRequest\032\035.google.l" - + "ongrunning.Operation\"\212\001\202\323\344\223\002Q\"L/v1/{name" - + "=projects/*/locations/*/caPools/*/certif" - + "icateAuthorities/*}:disable:\001*\332A\004name\312A)" - + "\n\024CertificateAuthority\022\021OperationMetadat" - + "a\022\216\002\n\032EnableCertificateAuthority\022E.googl" - + "e.cloud.security.privateca.v1.EnableCert" - + "ificateAuthorityRequest\032\035.google.longrun" - + "ning.Operation\"\211\001\202\323\344\223\002P\"K/v1/{name=proje" - + "cts/*/locations/*/caPools/*/certificateA" - + "uthorities/*}:enable:\001*\332A\004name\312A)\n\024Certi" - + "ficateAuthority\022\021OperationMetadata\022\214\002\n\034F" - + "etchCertificateAuthorityCsr\022G.google.clo" - + "ud.security.privateca.v1.FetchCertificat" - + "eAuthorityCsrRequest\032H.google.cloud.secu" - + "rity.privateca.v1.FetchCertificateAuthor" - + "ityCsrResponse\"Y\202\323\344\223\002L\022J/v1/{name=projec" - + "ts/*/locations/*/caPools/*/certificateAu" - + "thorities/*}:fetch\332A\004name\022\354\001\n\027GetCertifi" - + "cateAuthority\022B.google.cloud.security.pr" - + "ivateca.v1.GetCertificateAuthorityReques" - + "t\0328.google.cloud.security.privateca.v1.C" - + "ertificateAuthority\"S\202\323\344\223\002F\022D/v1/{name=p" - + "rojects/*/locations/*/caPools/*/certific" - + "ateAuthorities/*}\332A\004name\022\202\002\n\032ListCertifi" - + "cateAuthorities\022E.google.cloud.security." - + "privateca.v1.ListCertificateAuthoritiesR" - + "equest\032F.google.cloud.security.privateca" - + ".v1.ListCertificateAuthoritiesResponse\"U" - + "\202\323\344\223\002F\022D/v1/{parent=projects/*/locations" - + "/*/caPools/*}/certificateAuthorities\332A\006p" - + "arent\022\224\002\n\034UndeleteCertificateAuthority\022G" - + ".google.cloud.security.privateca.v1.Unde" - + "leteCertificateAuthorityRequest\032\035.google" - + ".longrunning.Operation\"\213\001\202\323\344\223\002R\"M/v1/{na" - + "me=projects/*/locations/*/caPools/*/cert" - + "ificateAuthorities/*}:undelete:\001*\332A\004name" - + "\312A)\n\024CertificateAuthority\022\021OperationMeta" - + "data\022\203\002\n\032DeleteCertificateAuthority\022E.go" - + "ogle.cloud.security.privateca.v1.DeleteC" - + "ertificateAuthorityRequest\032\035.google.long" - + "running.Operation\"\177\202\323\344\223\002F*D/v1/{name=pro" - + "jects/*/locations/*/caPools/*/certificat" - + "eAuthorities/*}\332A\004name\312A)\n\024CertificateAu" - + "thority\022\021OperationMetadata\022\316\002\n\032UpdateCer" - + "tificateAuthority\022E.google.cloud.securit" - + "y.privateca.v1.UpdateCertificateAuthorit" - + "yRequest\032\035.google.longrunning.Operation\"" - + "\311\001\202\323\344\223\002s2Z/v1/{certificate_authority.nam" - + "e=projects/*/locations/*/caPools/*/certi" - + "ficateAuthorities/*}:\025certificate_author" - + "ity\332A!certificate_authority,update_mask\312" - + "A)\n\024CertificateAuthority\022\021OperationMetad" - + "ata\022\336\001\n\014CreateCaPool\0227.google.cloud.secu" - + "rity.privateca.v1.CreateCaPoolRequest\032\035." - + "google.longrunning.Operation\"v\202\323\344\223\0026\"+/v" - + "1/{parent=projects/*/locations/*}/caPool" - + "s:\007ca_pool\332A\031parent,ca_pool,ca_pool_id\312A" - + "\033\n\006CaPool\022\021OperationMetadata\022\340\001\n\014UpdateC" - + "aPool\0227.google.cloud.security.privateca." - + "v1.UpdateCaPoolRequest\032\035.google.longrunn" - + "ing.Operation\"x\202\323\344\223\002>23/v1/{ca_pool.name" - + "=projects/*/locations/*/caPools/*}:\007ca_p" - + "ool\332A\023ca_pool,update_mask\312A\033\n\006CaPool\022\021Op" - + "erationMetadata\022\251\001\n\tGetCaPool\0224.google.c" - + "loud.security.privateca.v1.GetCaPoolRequ" - + "est\032*.google.cloud.security.privateca.v1" - + ".CaPool\":\202\323\344\223\002-\022+/v1/{name=projects/*/lo" - + "cations/*/caPools/*}\332A\004name\022\274\001\n\013ListCaPo" - + "ols\0226.google.cloud.security.privateca.v1" - + ".ListCaPoolsRequest\0327.google.cloud.secur" - + "ity.privateca.v1.ListCaPoolsResponse\"<\202\323" - + "\344\223\002-\022+/v1/{parent=projects/*/locations/*" - + "}/caPools\332A\006parent\022\317\001\n\014DeleteCaPool\0227.go" - + "ogle.cloud.security.privateca.v1.DeleteC" - + "aPoolRequest\032\035.google.longrunning.Operat" - + "ion\"g\202\323\344\223\002-*+/v1/{name=projects/*/locati" - + "ons/*/caPools/*}\332A\004name\312A*\n\025google.proto" - + "buf.Empty\022\021OperationMetadata\022\323\001\n\014FetchCa" - + "Certs\0227.google.cloud.security.privateca." - + "v1.FetchCaCertsRequest\0328.google.cloud.se" - + "curity.privateca.v1.FetchCaCertsResponse" - + "\"P\202\323\344\223\002@\";/v1/{ca_pool=projects/*/locati" - + "ons/*/caPools/*}:fetchCaCerts:\001*\332A\007ca_po" - + "ol\022\230\002\n\034GetCertificateRevocationList\022G.go" - + "ogle.cloud.security.privateca.v1.GetCert" - + "ificateRevocationListRequest\032=.google.cl" - + "oud.security.privateca.v1.CertificateRev" - + "ocationList\"p\202\323\344\223\002c\022a/v1/{name=projects/" - + "*/locations/*/caPools/*/certificateAutho" - + "rities/*/certificateRevocationLists/*}\332A" - + "\004name\022\253\002\n\036ListCertificateRevocationLists" - + "\022I.google.cloud.security.privateca.v1.Li" - + "stCertificateRevocationListsRequest\032J.go" - + "ogle.cloud.security.privateca.v1.ListCer" - + "tificateRevocationListsResponse\"r\202\323\344\223\002c\022" - + "a/v1/{parent=projects/*/locations/*/caPo" - + "ols/*/certificateAuthorities/*}/certific" - + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" - + "rtificateRevocationList\022J.google.cloud.s" - + "ecurity.privateca.v1.UpdateCertificateRe" - + "vocationListRequest\032\035.google.longrunning" - + ".Operation\"\376\001\202\323\344\223\002\234\0012}/v1/{certificate_r" - + "evocation_list.name=projects/*/locations" - + "/*/caPools/*/certificateAuthorities/*/ce" - + "rtificateRevocationLists/*}:\033certificate" - + "_revocation_list\332A\'certificate_revocatio" - + "n_list,update_mask\312A.\n\031CertificateRevoca" - + "tionList\022\021OperationMetadata\022\272\002\n\031CreateCe" - + "rtificateTemplate\022D.google.cloud.securit" - + "y.privateca.v1.CreateCertificateTemplate" - + "Request\032\035.google.longrunning.Operation\"\267" - + "\001\202\323\344\223\002P\"8/v1/{parent=projects/*/location" - + "s/*}/certificateTemplates:\024certificate_t" - + "emplate\332A3parent,certificate_template,ce" - + "rtificate_template_id\312A(\n\023CertificateTem" - + "plate\022\021OperationMetadata\022\232\002\n\031DeleteCerti" - + "ficateTemplate\022D.google.cloud.security.p" - + "rivateca.v1.DeleteCertificateTemplateReq" - + "uest\032\035.google.longrunning.Operation\"\227\001\202\323" - + "\344\223\002:*8/v1/{name=projects/*/locations/*/c" - + "ertificateTemplates/*}\332A\004name\312AM\n\025google" - + ".protobuf.Empty\0224google.cloud.security.p" - + "rivateca.v1.OperationMetadata\022\335\001\n\026GetCer" - + "tificateTemplate\022A.google.cloud.security" - + ".privateca.v1.GetCertificateTemplateRequ" - + "est\0327.google.cloud.security.privateca.v1" - + ".CertificateTemplate\"G\202\323\344\223\002:\0228/v1/{name=" - + "projects/*/locations/*/certificateTempla" - + "tes/*}\332A\004name\022\360\001\n\030ListCertificateTemplat" - + "es\022C.google.cloud.security.privateca.v1." - + "ListCertificateTemplatesRequest\032D.google" - + ".cloud.security.privateca.v1.ListCertifi" - + "cateTemplatesResponse\"I\202\323\344\223\002:\0228/v1/{pare" - + "nt=projects/*/locations/*}/certificateTe" - + "mplates\332A\006parent\022\274\002\n\031UpdateCertificateTe" - + "mplate\022D.google.cloud.security.privateca" - + ".v1.UpdateCertificateTemplateRequest\032\035.g" - + "oogle.longrunning.Operation\"\271\001\202\323\344\223\002e2M/v" - + "1/{certificate_template.name=projects/*/" - + "locations/*/certificateTemplates/*}:\024cer" - + "tificate_template\332A certificate_template" - + ",update_mask\312A(\n\023CertificateTemplate\022\021Op" - + "erationMetadata\032L\312A\030privateca.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\375\001\n&com.google.cloud.secur" - + "ity.privateca.v1B\016PrivateCaProtoP\001ZKgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "security/privateca/v1;privateca\370\001\001\252\002\"Goo" - + "gle.Cloud.Security.PrivateCA.V1\312\002\"Google" - + "\\Cloud\\Security\\PrivateCA\\V1\352\002&Google::C" - + "loud::Security::PrivateCA::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.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor, - new java.lang.String[] { - "Parent", - "CertificateId", - "Certificate", - "RequestId", - "ValidateOnly", - "IssuingCertificateAuthorityId", - }); - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor, - new java.lang.String[] { - "Certificates", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor, - new java.lang.String[] { - "Name", "Reason", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor, - new java.lang.String[] { - "Certificate", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor, - new java.lang.String[] { - "PemCsr", - }); - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor, - new java.lang.String[] { - "CertificateAuthorities", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", "IgnoreActiveCertificates", "SkipGracePeriod", - }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "CertificateAuthority", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor, - new java.lang.String[] { - "Parent", "CaPoolId", "CaPool", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor, - new java.lang.String[] { - "CaPool", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor, - new java.lang.String[] { - "CaPool", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor, - new java.lang.String[] { - "CaCerts", - }); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor = - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor, - new java.lang.String[] { - "Certificates", - }); - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor, - new java.lang.String[] { - "CaPools", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor, - new java.lang.String[] { - "CertificateRevocationLists", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor, - new java.lang.String[] { - "CertificateRevocationList", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateTemplateId", "CertificateTemplate", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor, - new java.lang.String[] { - "CertificateTemplates", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor, - new java.lang.String[] { - "CertificateTemplate", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java deleted file mode 100644 index 0a2942a2..00000000 --- a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java +++ /dev/null @@ -1,986 +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/security/privateca/v1/resources.proto - -package com.google.cloud.security.privateca.v1; - -public final class PrivateCaResourcesProto { - private PrivateCaResourcesProto() {} - - 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_security_privateca_v1_CertificateAuthority_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Subject_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/security/privateca/v1/res" - + "ources.proto\022\"google.cloud.security.priv" - + "ateca.v1\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032\036google/pro" - + "tobuf/duration.proto\032\037google/protobuf/ti" - + "mestamp.proto\032\026google/type/expr.proto\"\365\017" - + "\n\024CertificateAuthority\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022S\n\004type\030\002 \001(\0162=.google.cloud.security." - + "privateca.v1.CertificateAuthority.TypeB\006" - + "\340A\002\340A\005\022M\n\006config\030\003 \001(\01325.google.cloud.se" - + "curity.privateca.v1.CertificateConfigB\006\340" - + "A\002\340A\005\0223\n\010lifetime\030\004 \001(\0132\031.google.protobu" - + "f.DurationB\006\340A\002\340A\005\022a\n\010key_spec\030\005 \001(\0132G.g" - + "oogle.cloud.security.privateca.v1.Certif" - + "icateAuthority.KeyVersionSpecB\006\340A\002\340A\005\022V\n" - + "\022subordinate_config\030\006 \001(\01325.google.cloud" - + ".security.privateca.v1.SubordinateConfig" - + "B\003\340A\001\022B\n\004tier\030\007 \001(\0162/.google.cloud.secur" - + "ity.privateca.v1.CaPool.TierB\003\340A\003\022R\n\005sta" - + "te\030\010 \001(\0162>.google.cloud.security.private" - + "ca.v1.CertificateAuthority.StateB\003\340A\003\022 \n" - + "\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022d\n\033ca_ce" - + "rtificate_descriptions\030\n \003(\0132:.google.cl" - + "oud.security.privateca.v1.CertificateDes" - + "criptionB\003\340A\003\022\027\n\ngcs_bucket\030\013 \001(\tB\003\340A\005\022]" - + "\n\013access_urls\030\014 \001(\0132C.google.cloud.secur" - + "ity.privateca.v1.CertificateAuthority.Ac" - + "cessUrlsB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013delete_time\030\017 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0224\n\013expire_time\030\020 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022Y\n\006labels\030" - + "\021 \003(\0132D.google.cloud.security.privateca." - + "v1.CertificateAuthority.LabelsEntryB\003\340A\001" - + "\032H\n\nAccessUrls\022!\n\031ca_certificate_access_" - + "url\030\001 \001(\t\022\027\n\017crl_access_urls\030\002 \003(\t\032\240\001\n\016K" - + "eyVersionSpec\022\037\n\025cloud_kms_key_version\030\001" - + " \001(\tH\000\022_\n\talgorithm\030\002 \001(\0162J.google.cloud" - + ".security.privateca.v1.CertificateAuthor" - + "ity.SignHashAlgorithmH\000B\014\n\nKeyVersion\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017\n\013SE" - + "LF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"p\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DIS" - + "ABLED\020\002\022\n\n\006STAGED\020\003\022\034\n\030AWAITING_USER_ACT" - + "IVATION\020\004\022\013\n\007DELETED\020\005\"\374\001\n\021SignHashAlgor" - + "ithm\022#\n\037SIGN_HASH_ALGORITHM_UNSPECIFIED\020" - + "\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022\027\n\023RSA_PSS_30" - + "72_SHA256\020\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\031\n\025" - + "RSA_PKCS1_2048_SHA256\020\006\022\031\n\025RSA_PKCS1_307" - + "2_SHA256\020\007\022\031\n\025RSA_PKCS1_4096_SHA256\020\010\022\022\n" - + "\016EC_P256_SHA256\020\004\022\022\n\016EC_P384_SHA384\020\005:\235\001" - + "\352A\231\001\n-privateca.googleapis.com/Certifica" - + "teAuthority\022hprojects/{project}/location" - + "s/{location}/caPools/{ca_pool}/certifica" - + "teAuthorities/{certificate_authority}\"\360\016" - + "\n\006CaPool\022\021\n\004name\030\001 \001(\tB\003\340A\003\022E\n\004tier\030\002 \001(" - + "\0162/.google.cloud.security.privateca.v1.C" - + "aPool.TierB\006\340A\002\340A\005\022W\n\017issuance_policy\030\003 " - + "\001(\01329.google.cloud.security.privateca.v1" - + ".CaPool.IssuancePolicyB\003\340A\001\022]\n\022publishin" - + "g_options\030\004 \001(\0132<.google.cloud.security." - + "privateca.v1.CaPool.PublishingOptionsB\003\340" - + "A\001\022K\n\006labels\030\005 \003(\01326.google.cloud.securi" - + "ty.privateca.v1.CaPool.LabelsEntryB\003\340A\001\032" - + "K\n\021PublishingOptions\022\034\n\017publish_ca_cert\030" - + "\001 \001(\010B\003\340A\001\022\030\n\013publish_crl\030\002 \001(\010B\003\340A\001\032\357\t\n" - + "\016IssuancePolicy\022h\n\021allowed_key_types\030\001 \003" - + "(\0132H.google.cloud.security.privateca.v1." - + "CaPool.IssuancePolicy.AllowedKeyTypeB\003\340A" - + "\001\0228\n\020maximum_lifetime\030\002 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\022l\n\026allowed_issuance_" - + "modes\030\003 \001(\0132G.google.cloud.security.priv" - + "ateca.v1.CaPool.IssuancePolicy.IssuanceM" - + "odesB\003\340A\001\022P\n\017baseline_values\030\004 \001(\01322.goo" - + "gle.cloud.security.privateca.v1.X509Para" - + "metersB\003\340A\001\022e\n\024identity_constraints\030\005 \001(" - + "\0132B.google.cloud.security.privateca.v1.C" - + "ertificateIdentityConstraintsB\003\340A\001\022h\n\026pa" - + "ssthrough_extensions\030\006 \001(\0132C.google.clou" - + "d.security.privateca.v1.CertificateExten" - + "sionConstraintsB\003\340A\001\032\305\004\n\016AllowedKeyType\022" - + "b\n\003rsa\030\001 \001(\0132S.google.cloud.security.pri" - + "vateca.v1.CaPool.IssuancePolicy.AllowedK" - + "eyType.RsaKeyTypeH\000\022l\n\016elliptic_curve\030\002 " - + "\001(\0132R.google.cloud.security.privateca.v1" - + ".CaPool.IssuancePolicy.AllowedKeyType.Ec" - + "KeyTypeH\000\032J\n\nRsaKeyType\022\035\n\020min_modulus_s" - + "ize\030\001 \001(\003B\003\340A\001\022\035\n\020max_modulus_size\030\002 \001(\003" - + "B\003\340A\001\032\210\002\n\tEcKeyType\022\211\001\n\023signature_algori" - + "thm\030\001 \001(\0162g.google.cloud.security.privat" - + "eca.v1.CaPool.IssuancePolicy.AllowedKeyT" - + "ype.EcKeyType.EcSignatureAlgorithmB\003\340A\001\"" - + "o\n\024EcSignatureAlgorithm\022&\n\"EC_SIGNATURE_" - + "ALGORITHM_UNSPECIFIED\020\000\022\016\n\nECDSA_P256\020\001\022" - + "\016\n\nECDSA_P384\020\002\022\017\n\013EDDSA_25519\020\003B\n\n\010key_" - + "type\032`\n\rIssuanceModes\022%\n\030allow_csr_based" - + "_issuance\030\001 \001(\010B\003\340A\001\022(\n\033allow_config_bas" - + "ed_issuance\030\002 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\004Tier\022\024\n" - + "\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n\n\006D" - + "EVOPS\020\002:_\352A\\\n\037privateca.googleapis.com/C" - + "aPool\0229projects/{project}/locations/{loc" - + "ation}/caPools/{ca_pool}\"\274\010\n\031Certificate" - + "RevocationList\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017seq" - + "uence_number\030\002 \001(\003B\003\340A\003\022s\n\024revoked_certi" - + "ficates\030\003 \003(\0132P.google.cloud.security.pr" - + "ivateca.v1.CertificateRevocationList.Rev" - + "okedCertificateB\003\340A\003\022\024\n\007pem_crl\030\004 \001(\tB\003\340" - + "A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003\022W\n\005state\030\006 \001" - + "(\0162C.google.cloud.security.privateca.v1." - + "CertificateRevocationList.StateB\003\340A\003\0224\n\013" - + "create_time\030\007 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022\030\n\013revision_id\030" - + "\t \001(\tB\003\340A\003\022^\n\006labels\030\n \003(\0132I.google.clou" - + "d.security.privateca.v1.CertificateRevoc" - + "ationList.LabelsEntryB\003\340A\001\032\300\001\n\022RevokedCe" - + "rtificate\022>\n\013certificate\030\001 \001(\tB)\372A&\n$pri" - + "vateca.googleapis.com/Certificate\022\031\n\021hex" - + "_serial_number\030\002 \001(\t\022O\n\021revocation_reaso" - + "n\030\003 \001(\01624.google.cloud.security.privatec" - + "a.v1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPE" - + "RSEDED\020\002:\334\001\352A\330\001\n2privateca.googleapis.co" - + "m/CertificateRevocationList\022\241\001projects/{" - + "project}/locations/{location}/caPools/{c" - + "a_pool}/certificateAuthorities/{certific" - + "ate_authority}/certificateRevocationList" - + "s/{certificate_revocation_list}\"\217\n\n\013Cert" - + "ificate\022:\n\004name\030\001 \001(\tB,\340A\003\372A&\n$privateca" - + ".googleapis.com/Certificate\022\026\n\007pem_csr\030\002" - + " \001(\tB\003\340A\005H\000\022L\n\006config\030\003 \001(\01325.google.clo" - + "ud.security.privateca.v1.CertificateConf" - + "igB\003\340A\005H\000\022[\n\034issuer_certificate_authorit" - + "y\030\004 \001(\tB5\340A\003\372A/\n-privateca.googleapis.co" - + "m/CertificateAuthority\0223\n\010lifetime\030\005 \001(\013" - + "2\031.google.protobuf.DurationB\006\340A\002\340A\005\022R\n\024c" - + "ertificate_template\030\006 \001(\tB4\340A\005\372A.\n,priva" - + "teca.googleapis.com/CertificateTemplate\022" - + "Q\n\014subject_mode\030\007 \001(\01626.google.cloud.sec" - + "urity.privateca.v1.SubjectRequestModeB\003\340" - + "A\005\022b\n\022revocation_details\030\010 \001(\0132A.google." - + "cloud.security.privateca.v1.Certificate." - + "RevocationDetailsB\003\340A\003\022\034\n\017pem_certificat" - + "e\030\t \001(\tB\003\340A\003\022`\n\027certificate_description\030" - + "\n \001(\0132:.google.cloud.security.privateca." - + "v1.CertificateDescriptionB\003\340A\003\022\"\n\025pem_ce" - + "rtificate_chain\030\013 \003(\tB\003\340A\003\0224\n\013create_tim" - + "e\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\r \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022P\n\006labels\030\016 \003(\0132;.google." - + "cloud.security.privateca.v1.Certificate." - + "LabelsEntryB\003\340A\001\032\230\001\n\021RevocationDetails\022N" - + "\n\020revocation_state\030\001 \001(\01624.google.cloud." - + "security.privateca.v1.RevocationReason\0223" - + "\n\017revocation_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001:\177\352A|\n$privateca.googl" - + "eapis.com/Certificate\022Tprojects/{project" - + "}/locations/{location}/caPools/{ca_pool}" - + "/certificates/{certificate}B\024\n\022certifica" - + "te_config\"\227\006\n\023CertificateTemplate\022B\n\004nam" - + "e\030\001 \001(\tB4\340A\003\372A.\n,privateca.googleapis.co" - + "m/CertificateTemplate\022R\n\021predefined_valu" - + "es\030\002 \001(\01322.google.cloud.security.private" - + "ca.v1.X509ParametersB\003\340A\001\022e\n\024identity_co" - + "nstraints\030\003 \001(\0132B.google.cloud.security." - + "privateca.v1.CertificateIdentityConstrai" - + "ntsB\003\340A\001\022h\n\026passthrough_extensions\030\004 \001(\013" - + "2C.google.cloud.security.privateca.v1.Ce" - + "rtificateExtensionConstraintsB\003\340A\001\022\030\n\013de" - + "scription\030\005 \001(\tB\003\340A\001\0224\n\013create_time\030\006 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022X\n\006labels\030\010 \003(\0132C.google.cloud." - + "security.privateca.v1.CertificateTemplat" - + "e.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n,privat" - + "eca.googleapis.com/CertificateTemplate\022S" - + "projects/{project}/locations/{location}/" - + "certificateTemplates/{certificate_templa" - + "te}\"\337\003\n\016X509Parameters\022D\n\tkey_usage\030\001 \001(" - + "\0132,.google.cloud.security.privateca.v1.K" - + "eyUsageB\003\340A\001\022U\n\nca_options\030\002 \001(\0132<.googl" - + "e.cloud.security.privateca.v1.X509Parame" - + "ters.CaOptionsB\003\340A\001\022E\n\npolicy_ids\030\003 \003(\0132" - + ",.google.cloud.security.privateca.v1.Obj" - + "ectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB\003\340A" - + "\001\022U\n\025additional_extensions\030\005 \003(\01321.googl" - + "e.cloud.security.privateca.v1.X509Extens" - + "ionB\003\340A\001\032s\n\tCaOptions\022\027\n\005is_ca\030\001 \001(\010B\003\340A" - + "\001H\000\210\001\001\022(\n\026max_issuer_path_length\030\002 \001(\005B\003" - + "\340A\001H\001\210\001\001B\010\n\006_is_caB\031\n\027_max_issuer_path_l" - + "ength\"\251\002\n\021SubordinateConfig\022V\n\025certifica" - + "te_authority\030\001 \001(\tB5\340A\002\372A/\n-privateca.go" - + "ogleapis.com/CertificateAuthorityH\000\022m\n\020p" - + "em_issuer_chain\030\002 \001(\0132L.google.cloud.sec" - + "urity.privateca.v1.SubordinateConfig.Sub" - + "ordinateConfigChainB\003\340A\002H\000\0327\n\026Subordinat" - + "eConfigChain\022\035\n\020pem_certificates\030\001 \003(\tB\003" - + "\340A\002B\024\n\022subordinate_config\"\235\001\n\tPublicKey\022" - + "\020\n\003key\030\001 \001(\014B\003\340A\002\022L\n\006format\030\002 \001(\01627.goog" - + "le.cloud.security.privateca.v1.PublicKey" - + ".KeyFormatB\003\340A\002\"0\n\tKeyFormat\022\032\n\026KEY_FORM" - + "AT_UNSPECIFIED\020\000\022\007\n\003PEM\020\001\"\264\003\n\021Certificat" - + "eConfig\022`\n\016subject_config\030\001 \001(\0132C.google" - + ".cloud.security.privateca.v1.Certificate" - + "Config.SubjectConfigB\003\340A\002\022L\n\013x509_config" - + "\030\002 \001(\01322.google.cloud.security.privateca" - + ".v1.X509ParametersB\003\340A\002\022F\n\npublic_key\030\003 " - + "\001(\0132-.google.cloud.security.privateca.v1" - + ".PublicKeyB\003\340A\001\032\246\001\n\rSubjectConfig\022A\n\007sub" - + "ject\030\001 \001(\0132+.google.cloud.security.priva" - + "teca.v1.SubjectB\003\340A\002\022R\n\020subject_alt_name" - + "\030\002 \001(\01323.google.cloud.security.privateca" - + ".v1.SubjectAltNamesB\003\340A\001\"\241\010\n\026Certificate" - + "Description\022j\n\023subject_description\030\001 \001(\013" - + "2M.google.cloud.security.privateca.v1.Ce" - + "rtificateDescription.SubjectDescription\022" - + "L\n\020x509_description\030\002 \001(\01322.google.cloud" - + ".security.privateca.v1.X509Parameters\022A\n" - + "\npublic_key\030\003 \001(\0132-.google.cloud.securit" - + "y.privateca.v1.PublicKey\022X\n\016subject_key_" - + "id\030\004 \001(\0132@.google.cloud.security.private" - + "ca.v1.CertificateDescription.KeyId\022Z\n\020au" - + "thority_key_id\030\005 \001(\0132@.google.cloud.secu" - + "rity.privateca.v1.CertificateDescription" - + ".KeyId\022\037\n\027crl_distribution_points\030\006 \003(\t\022" - + "$\n\034aia_issuing_certificate_urls\030\007 \003(\t\022k\n" - + "\020cert_fingerprint\030\010 \001(\0132Q.google.cloud.s" - + "ecurity.privateca.v1.CertificateDescript" - + "ion.CertificateFingerprint\032\322\002\n\022SubjectDe" - + "scription\022<\n\007subject\030\001 \001(\0132+.google.clou" - + "d.security.privateca.v1.Subject\022M\n\020subje" - + "ct_alt_name\030\002 \001(\01323.google.cloud.securit" - + "y.privateca.v1.SubjectAltNames\022\031\n\021hex_se" - + "rial_number\030\003 \001(\t\022+\n\010lifetime\030\004 \001(\0132\031.go" - + "ogle.protobuf.Duration\0223\n\017not_before_tim" - + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\0222\n\016n" - + "ot_after_time\030\006 \001(\0132\032.google.protobuf.Ti" - + "mestamp\032\034\n\005KeyId\022\023\n\006key_id\030\001 \001(\tB\003\340A\001\032-\n" - + "\026CertificateFingerprint\022\023\n\013sha256_hash\030\001" - + " \001(\t\"\'\n\010ObjectId\022\033\n\016object_id_path\030\001 \003(\005" - + "B\003\340A\002\"\200\001\n\rX509Extension\022D\n\tobject_id\030\001 \001" - + "(\0132,.google.cloud.security.privateca.v1." - + "ObjectIdB\003\340A\002\022\025\n\010critical\030\002 \001(\010B\003\340A\001\022\022\n\005" - + "value\030\003 \001(\014B\003\340A\002\"\242\005\n\010KeyUsage\022T\n\016base_ke" - + "y_usage\030\001 \001(\0132<.google.cloud.security.pr" - + "ivateca.v1.KeyUsage.KeyUsageOptions\022`\n\022e" - + "xtended_key_usage\030\002 \001(\0132D.google.cloud.s" - + "ecurity.privateca.v1.KeyUsage.ExtendedKe" - + "yUsageOptions\022Q\n\033unknown_extended_key_us" - + "ages\030\003 \003(\0132,.google.cloud.security.priva" - + "teca.v1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021" - + "digital_signature\030\001 \001(\010\022\032\n\022content_commi" - + "tment\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n" - + "\021data_encipherment\030\004 \001(\010\022\025\n\rkey_agreemen" - + "t\030\005 \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007" - + " \001(\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_" - + "only\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023" - + "\n\013server_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010" - + "\022\024\n\014code_signing\030\003 \001(\010\022\030\n\020email_protecti" - + "on\030\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_" - + "signing\030\006 \001(\010\"\270\001\n\007Subject\022\023\n\013common_name" - + "\030\001 \001(\t\022\024\n\014country_code\030\002 \001(\t\022\024\n\014organiza" - + "tion\030\003 \001(\t\022\033\n\023organizational_unit\030\004 \001(\t\022" - + "\020\n\010locality\030\005 \001(\t\022\020\n\010province\030\006 \001(\t\022\026\n\016s" - + "treet_address\030\007 \001(\t\022\023\n\013postal_code\030\010 \001(\t" - + "\"\251\001\n\017SubjectAltNames\022\021\n\tdns_names\030\001 \003(\t\022" - + "\014\n\004uris\030\002 \003(\t\022\027\n\017email_addresses\030\003 \003(\t\022\024" - + "\n\014ip_addresses\030\004 \003(\t\022F\n\013custom_sans\030\005 \003(" - + "\01321.google.cloud.security.privateca.v1.X" - + "509Extension\"\372\001\n\036CertificateIdentityCons" - + "traints\022.\n\016cel_expression\030\001 \001(\0132\021.google" - + ".type.ExprB\003\340A\001\022+\n\031allow_subject_passthr" - + "ough\030\002 \001(\010B\003\340A\002H\000\210\001\001\0225\n#allow_subject_al" - + "t_names_passthrough\030\003 \001(\010B\003\340A\002H\001\210\001\001B\034\n\032_" - + "allow_subject_passthroughB&\n$_allow_subj" - + "ect_alt_names_passthrough\"\236\003\n\037Certificat" - + "eExtensionConstraints\022|\n\020known_extension" - + "s\030\001 \003(\0162].google.cloud.security.privatec" - + "a.v1.CertificateExtensionConstraints.Kno" - + "wnCertificateExtensionB\003\340A\001\022P\n\025additiona" - + "l_extensions\030\002 \003(\0132,.google.cloud.securi" - + "ty.privateca.v1.ObjectIdB\003\340A\001\"\252\001\n\031KnownC" - + "ertificateExtension\022+\n\'KNOWN_CERTIFICATE" - + "_EXTENSION_UNSPECIFIED\020\000\022\022\n\016BASE_KEY_USA" - + "GE\020\001\022\026\n\022EXTENDED_KEY_USAGE\020\002\022\016\n\nCA_OPTIO" - + "NS\020\003\022\016\n\nPOLICY_IDS\020\004\022\024\n\020AIA_OCSP_SERVERS" - + "\020\005*\207\002\n\020RevocationReason\022!\n\035REVOCATION_RE" - + "ASON_UNSPECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$" - + "\n CERTIFICATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023" - + "AFFILIATION_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n" - + "\026CESSATION_OF_OPERATION\020\005\022\024\n\020CERTIFICATE" - + "_HOLD\020\006\022\027\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTR" - + "IBUTE_AUTHORITY_COMPROMISE\020\010*]\n\022SubjectR" - + "equestMode\022$\n SUBJECT_REQUEST_MODE_UNSPE" - + "CIFIED\020\000\022\013\n\007DEFAULT\020\001\022\024\n\020REFLECTED_SPIFF" - + "E\020\002B\206\002\n&com.google.cloud.security.privat" - + "eca.v1B\027PrivateCaResourcesProtoP\001ZKgoogl" - + "e.golang.org/genproto/googleapis/cloud/s" - + "ecurity/privateca/v1;privateca\370\001\001\252\002\"Goog" - + "le.Cloud.Security.PrivateCA.V1\312\002\"Google\\" - + "Cloud\\Security\\PrivateCA\\V1\352\002&Google::Cl" - + "oud::Security::PrivateCA::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.type.ExprProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor, - new java.lang.String[] { - "Name", - "Type", - "Config", - "Lifetime", - "KeySpec", - "SubordinateConfig", - "Tier", - "State", - "PemCaCertificates", - "CaCertificateDescriptions", - "GcsBucket", - "AccessUrls", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExpireTime", - "Labels", - }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor, - new java.lang.String[] { - "CaCertificateAccessUrl", "CrlAccessUrls", - }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor, - new java.lang.String[] { - "CloudKmsKeyVersion", "Algorithm", "KeyVersion", - }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor, - new java.lang.String[] { - "Name", "Tier", "IssuancePolicy", "PublishingOptions", "Labels", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor, - new java.lang.String[] { - "PublishCaCert", "PublishCrl", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor, - new java.lang.String[] { - "AllowedKeyTypes", - "MaximumLifetime", - "AllowedIssuanceModes", - "BaselineValues", - "IdentityConstraints", - "PassthroughExtensions", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor, - new java.lang.String[] { - "Rsa", "EllipticCurve", "KeyType", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor, - new java.lang.String[] { - "MinModulusSize", "MaxModulusSize", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor, - new java.lang.String[] { - "SignatureAlgorithm", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor, - new java.lang.String[] { - "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", - }); - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor, - new java.lang.String[] { - "Name", - "SequenceNumber", - "RevokedCertificates", - "PemCrl", - "AccessUrl", - "State", - "CreateTime", - "UpdateTime", - "RevisionId", - "Labels", - }); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor, - new java.lang.String[] { - "Certificate", "HexSerialNumber", "RevocationReason", - }); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor, - new java.lang.String[] { - "Name", - "PemCsr", - "Config", - "IssuerCertificateAuthority", - "Lifetime", - "CertificateTemplate", - "SubjectMode", - "RevocationDetails", - "PemCertificate", - "CertificateDescription", - "PemCertificateChain", - "CreateTime", - "UpdateTime", - "Labels", - "CertificateConfig", - }); - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor = - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor, - new java.lang.String[] { - "RevocationState", "RevocationTime", - }); - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor, - new java.lang.String[] { - "Name", - "PredefinedValues", - "IdentityConstraints", - "PassthroughExtensions", - "Description", - "CreateTime", - "UpdateTime", - "Labels", - }); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor, - new java.lang.String[] { - "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", - }); - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor, - new java.lang.String[] { - "IsCa", "MaxIssuerPathLength", "IsCa", "MaxIssuerPathLength", - }); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor, - new java.lang.String[] { - "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", - }); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor = - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor, - new java.lang.String[] { - "PemCertificates", - }); - internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor, - new java.lang.String[] { - "Key", "Format", - }); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor, - new java.lang.String[] { - "SubjectConfig", "X509Config", "PublicKey", - }); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor, - new java.lang.String[] { - "Subject", "SubjectAltName", - }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor, - new java.lang.String[] { - "SubjectDescription", - "X509Description", - "PublicKey", - "SubjectKeyId", - "AuthorityKeyId", - "CrlDistributionPoints", - "AiaIssuingCertificateUrls", - "CertFingerprint", - }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor, - new java.lang.String[] { - "Subject", - "SubjectAltName", - "HexSerialNumber", - "Lifetime", - "NotBeforeTime", - "NotAfterTime", - }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor, - new java.lang.String[] { - "KeyId", - }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor, - new java.lang.String[] { - "Sha256Hash", - }); - internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor, - new java.lang.String[] { - "ObjectIdPath", - }); - internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor, - new java.lang.String[] { - "ObjectId", "Critical", "Value", - }); - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor, - new java.lang.String[] { - "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", - }); - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor, - new java.lang.String[] { - "DigitalSignature", - "ContentCommitment", - "KeyEncipherment", - "DataEncipherment", - "KeyAgreement", - "CertSign", - "CrlSign", - "EncipherOnly", - "DecipherOnly", - }); - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor, - new java.lang.String[] { - "ServerAuth", - "ClientAuth", - "CodeSigning", - "EmailProtection", - "TimeStamping", - "OcspSigning", - }); - internal_static_google_cloud_security_privateca_v1_Subject_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Subject_descriptor, - new java.lang.String[] { - "CommonName", - "CountryCode", - "Organization", - "OrganizationalUnit", - "Locality", - "Province", - "StreetAddress", - "PostalCode", - }); - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor, - new java.lang.String[] { - "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", - }); - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor, - new java.lang.String[] { - "CelExpression", - "AllowSubjectPassthrough", - "AllowSubjectAltNamesPassthrough", - "AllowSubjectPassthrough", - "AllowSubjectAltNamesPassthrough", - }); - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor, - new java.lang.String[] { - "KnownExtensions", "AdditionalExtensions", - }); - 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.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java deleted file mode 100644 index a8535755..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface FetchCertificateAuthorityCsrRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
-   * format `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
-   * format `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java deleted file mode 100644 index 86a93a86..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetCertificateAuthorityRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java deleted file mode 100644 index 7e15d1a7..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetCertificateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java deleted file mode 100644 index 590a7ef4..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetCertificateRevocationListRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java deleted file mode 100644 index 7ead8052..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetReusableConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java deleted file mode 100644 index 7d331138..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java +++ /dev/null @@ -1,666 +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/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public final class PrivateCaProto { - private PrivateCaProto() {} - - 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_security_privateca_v1beta1_CreateCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/security/privateca/v1beta" - + "1/service.proto\022\'google.cloud.security.p" - + "rivateca.v1beta1\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\0327google/cloud/security/priva" - + "teca/v1beta1/resources.proto\032#google/lon" - + "grunning/operations.proto\032\036google/protob" - + "uf/duration.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\347\001\n\030CreateCertificateRequest\022E\n\006par" - + "ent\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis." - + "com/CertificateAuthority\022\033\n\016certificate_" - + "id\030\002 \001(\tB\003\340A\001\022N\n\013certificate\030\003 \001(\01324.goo" - + "gle.cloud.security.privateca.v1beta1.Cer" - + "tificateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"S" - + "\n\025GetCertificateRequest\022:\n\004name\030\001 \001(\tB,\340" - + "A\002\372A&\n$privateca.googleapis.com/Certific" - + "ate\"\275\001\n\027ListCertificatesRequest\022E\n\006paren" - + "t\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.co" - + "m/CertificateAuthority\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\006filte" - + "r\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\224\001\n\030" - + "ListCertificatesResponse\022J\n\014certificates" - + "\030\001 \003(\01324.google.cloud.security.privateca" - + ".v1beta1.Certificate\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\277\001\n\030RevokeCer" - + "tificateRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$p" - + "rivateca.googleapis.com/Certificate\022N\n\006r" - + "eason\030\002 \001(\01629.google.cloud.security.priv" - + "ateca.v1beta1.RevocationReasonB\003\340A\002\022\027\n\nr" - + "equest_id\030\003 \001(\tB\003\340A\001\"\271\001\n\030UpdateCertifica" - + "teRequest\022N\n\013certificate\030\001 \001(\01324.google." - + "cloud.security.privateca.v1beta1.Certifi" - + "cateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 " - + "\001(\tB\003\340A\001\"\201\002\n#ActivateCertificateAuthorit" - + "yRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privatec" - + "a.googleapis.com/CertificateAuthority\022\037\n" - + "\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022[\n\022subord" - + "inate_config\030\003 \001(\0132:.google.cloud.securi" - + "ty.privateca.v1beta1.SubordinateConfigB\003" - + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\201\002\n!CreateC" - + "ertificateAuthorityRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022%\n\030certificate_authority_id\030\002 \001(\tB" - + "\003\340A\002\022a\n\025certificate_authority\030\003 \001(\0132=.go" - + "ogle.cloud.security.privateca.v1beta1.Ce" - + "rtificateAuthorityB\003\340A\002\022\027\n\nrequest_id\030\004 " - + "\001(\tB\003\340A\001\"\202\001\n\"DisableCertificateAuthority" - + "Request\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca" - + ".googleapis.com/CertificateAuthority\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"\201\001\n!EnableCertific" - + "ateAuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A" - + "/\n-privateca.googleapis.com/CertificateA" - + "uthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"j\n#Fet" - + "chCertificateAuthorityCsrRequest\022C\n\004name" - + "\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.com" - + "/CertificateAuthority\"<\n$FetchCertificat" - + "eAuthorityCsrResponse\022\024\n\007pem_csr\030\001 \001(\tB\003" - + "\340A\003\"e\n\036GetCertificateAuthorityRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapi" - + "s.com/CertificateAuthority\"\273\001\n!ListCerti" - + "ficateAuthoritiesRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" - + "er_by\030\005 \001(\tB\003\340A\001\"\262\001\n\"ListCertificateAuth" - + "oritiesResponse\022^\n\027certificate_authoriti" - + "es\030\001 \003(\0132=.google.cloud.security.private" - + "ca.v1beta1.CertificateAuthority\022\027\n\017next_" - + "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\001" - + "\n\"RestoreCertificateAuthorityRequest\022C\n\004" - + "name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis" - + ".com/CertificateAuthority\022\027\n\nrequest_id\030" - + "\002 \001(\tB\003\340A\001\"\211\001\n)ScheduleDeleteCertificate" - + "AuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" - + "privateca.googleapis.com/CertificateAuth" - + "ority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\325\001\n!Updat" - + "eCertificateAuthorityRequest\022a\n\025certific" - + "ate_authority\030\001 \001(\0132=.google.cloud.secur" - + "ity.privateca.v1beta1.CertificateAuthori" - + "tyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(" - + "\tB\003\340A\001\"o\n#GetCertificateRevocationListRe" - + "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2privateca.g" - + "oogleapis.com/CertificateRevocationList\"" - + "\313\001\n%ListCertificateRevocationListsReques" - + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.goo" - + "gleapis.com/CertificateAuthority\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(\t" - + "B\003\340A\001\"\300\001\n&ListCertificateRevocationLists" - + "Response\022h\n\034certificate_revocation_lists" - + "\030\001 \003(\0132B.google.cloud.security.privateca" - + ".v1beta1.CertificateRevocationList\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" - + "\"\345\001\n&UpdateCertificateRevocationListRequ" - + "est\022l\n\033certificate_revocation_list\030\001 \001(\013" - + "2B.google.cloud.security.privateca.v1bet" - + "a1.CertificateRevocationListB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"Y\n\030GetR" - + "eusableConfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372" - + "A)\n\'privateca.googleapis.com/ReusableCon" - + "fig\"\264\001\n\032ListReusableConfigsRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\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\"\236\001\n\033ListReusa" - + "bleConfigsResponse\022Q\n\020reusable_configs\030\001" - + " \003(\01327.google.cloud.security.privateca.v" - + "1beta1.ReusableConfig\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\200\002\n\021Operatio" - + "nMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006ta" - + "rget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016st" - + "atus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_can" - + "cellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(" - + "\tB\003\340A\0032\321,\n\033CertificateAuthorityService\022\226" - + "\002\n\021CreateCertificate\022A.google.cloud.secu" - + "rity.privateca.v1beta1.CreateCertificate" - + "Request\0324.google.cloud.security.privatec" - + "a.v1beta1.Certificate\"\207\001\202\323\344\223\002]\"N/v1beta1" - + "/{parent=projects/*/locations/*/certific" - + "ateAuthorities/*}/certificates:\013certific" - + "ate\332A!parent,certificate,certificate_id\022" - + "\345\001\n\016GetCertificate\022>.google.cloud.securi" - + "ty.privateca.v1beta1.GetCertificateReque" - + "st\0324.google.cloud.security.privateca.v1b" - + "eta1.Certificate\"]\202\323\344\223\002P\022N/v1beta1/{name" - + "=projects/*/locations/*/certificateAutho" - + "rities/*/certificates/*}\332A\004name\022\370\001\n\020List" - + "Certificates\022@.google.cloud.security.pri" - + "vateca.v1beta1.ListCertificatesRequest\032A" - + ".google.cloud.security.privateca.v1beta1" - + ".ListCertificatesResponse\"_\202\323\344\223\002P\022N/v1be" - + "ta1/{parent=projects/*/locations/*/certi" - + "ficateAuthorities/*}/certificates\332A\006pare" - + "nt\022\365\001\n\021RevokeCertificate\022A.google.cloud." - + "security.privateca.v1beta1.RevokeCertifi" - + "cateRequest\0324.google.cloud.security.priv" - + "ateca.v1beta1.Certificate\"g\202\323\344\223\002Z\"U/v1be" - + "ta1/{name=projects/*/locations/*/certifi" - + "cateAuthorities/*/certificates/*}:revoke" - + ":\001*\332A\004name\022\230\002\n\021UpdateCertificate\022A.googl" - + "e.cloud.security.privateca.v1beta1.Updat" - + "eCertificateRequest\0324.google.cloud.secur" - + "ity.privateca.v1beta1.Certificate\"\211\001\202\323\344\223" - + "\002i2Z/v1beta1/{certificate.name=projects/" - + "*/locations/*/certificateAuthorities/*/c" - + "ertificates/*}:\013certificate\332A\027certificat" - + "e,update_mask\022\224\002\n\034ActivateCertificateAut" - + "hority\022L.google.cloud.security.privateca" - + ".v1beta1.ActivateCertificateAuthorityReq" - + "uest\032\035.google.longrunning.Operation\"\206\001\202\323" - + "\344\223\002M\"H/v1beta1/{name=projects/*/location" - + "s/*/certificateAuthorities/*}:activate:\001" - + "*\332A\004name\312A)\n\024CertificateAuthority\022\021Opera" - + "tionMetadata\022\314\002\n\032CreateCertificateAuthor" - + "ity\022J.google.cloud.security.privateca.v1" - + "beta1.CreateCertificateAuthorityRequest\032" - + "\035.google.longrunning.Operation\"\302\001\202\323\344\223\002X\"" - + "?/v1beta1/{parent=projects/*/locations/*" - + "}/certificateAuthorities:\025certificate_au" - + "thority\332A5parent,certificate_authority,c" - + "ertificate_authority_id\312A)\n\024CertificateA" - + "uthority\022\021OperationMetadata\022\221\002\n\033DisableC" - + "ertificateAuthority\022K.google.cloud.secur" - + "ity.privateca.v1beta1.DisableCertificate" - + "AuthorityRequest\032\035.google.longrunning.Op" - + "eration\"\205\001\202\323\344\223\002L\"G/v1beta1/{name=project" - + "s/*/locations/*/certificateAuthorities/*" - + "}:disable:\001*\332A\004name\312A)\n\024CertificateAutho" - + "rity\022\021OperationMetadata\022\216\002\n\032EnableCertif" - + "icateAuthority\022J.google.cloud.security.p" - + "rivateca.v1beta1.EnableCertificateAuthor" - + "ityRequest\032\035.google.longrunning.Operatio" - + "n\"\204\001\202\323\344\223\002K\"F/v1beta1/{name=projects/*/lo" - + "cations/*/certificateAuthorities/*}:enab" - + "le:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021O" - + "perationMetadata\022\221\002\n\034FetchCertificateAut" - + "horityCsr\022L.google.cloud.security.privat" - + "eca.v1beta1.FetchCertificateAuthorityCsr" - + "Request\032M.google.cloud.security.privatec" - + "a.v1beta1.FetchCertificateAuthorityCsrRe" - + "sponse\"T\202\323\344\223\002G\022E/v1beta1/{name=projects/" - + "*/locations/*/certificateAuthorities/*}:" - + "fetch\332A\004name\022\361\001\n\027GetCertificateAuthority" - + "\022G.google.cloud.security.privateca.v1bet" - + "a1.GetCertificateAuthorityRequest\032=.goog" - + "le.cloud.security.privateca.v1beta1.Cert" - + "ificateAuthority\"N\202\323\344\223\002A\022?/v1beta1/{name" - + "=projects/*/locations/*/certificateAutho" - + "rities/*}\332A\004name\022\207\002\n\032ListCertificateAuth" - + "orities\022J.google.cloud.security.privatec" - + "a.v1beta1.ListCertificateAuthoritiesRequ" - + "est\032K.google.cloud.security.privateca.v1" - + "beta1.ListCertificateAuthoritiesResponse" - + "\"P\202\323\344\223\002A\022?/v1beta1/{parent=projects/*/lo" - + "cations/*}/certificateAuthorities\332A\006pare" - + "nt\022\221\002\n\033RestoreCertificateAuthority\022K.goo" - + "gle.cloud.security.privateca.v1beta1.Res" - + "toreCertificateAuthorityRequest\032\035.google" - + ".longrunning.Operation\"\205\001\202\323\344\223\002L\"G/v1beta" - + "1/{name=projects/*/locations/*/certifica" - + "teAuthorities/*}:restore:\001*\332A\004name\312A)\n\024C" - + "ertificateAuthority\022\021OperationMetadata\022\246" - + "\002\n\"ScheduleDeleteCertificateAuthority\022R." - + "google.cloud.security.privateca.v1beta1." - + "ScheduleDeleteCertificateAuthorityReques" - + "t\032\035.google.longrunning.Operation\"\214\001\202\323\344\223\002" - + "S\"N/v1beta1/{name=projects/*/locations/*" - + "/certificateAuthorities/*}:scheduleDelet" - + "e:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021Op" - + "erationMetadata\022\316\002\n\032UpdateCertificateAut" - + "hority\022J.google.cloud.security.privateca" - + ".v1beta1.UpdateCertificateAuthorityReque" - + "st\032\035.google.longrunning.Operation\"\304\001\202\323\344\223" - + "\002n2U/v1beta1/{certificate_authority.name" - + "=projects/*/locations/*/certificateAutho" - + "rities/*}:\025certificate_authority\332A!certi" - + "ficate_authority,update_mask\312A)\n\024Certifi" - + "cateAuthority\022\021OperationMetadata\022\235\002\n\034Get" - + "CertificateRevocationList\022L.google.cloud" - + ".security.privateca.v1beta1.GetCertifica" - + "teRevocationListRequest\032B.google.cloud.s" - + "ecurity.privateca.v1beta1.CertificateRev" - + "ocationList\"k\202\323\344\223\002^\022\\/v1beta1/{name=proj" - + "ects/*/locations/*/certificateAuthoritie" - + "s/*/certificateRevocationLists/*}\332A\004name" - + "\022\260\002\n\036ListCertificateRevocationLists\022N.go" - + "ogle.cloud.security.privateca.v1beta1.Li" - + "stCertificateRevocationListsRequest\032O.go" - + "ogle.cloud.security.privateca.v1beta1.Li" - + "stCertificateRevocationListsResponse\"m\202\323" - + "\344\223\002^\022\\/v1beta1/{parent=projects/*/locati" - + "ons/*/certificateAuthorities/*}/certific" - + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" - + "rtificateRevocationList\022O.google.cloud.s" - + "ecurity.privateca.v1beta1.UpdateCertific" - + "ateRevocationListRequest\032\035.google.longru" - + "nning.Operation\"\371\001\202\323\344\223\002\227\0012x/v1beta1/{cer" - + "tificate_revocation_list.name=projects/*" - + "/locations/*/certificateAuthorities/*/ce" - + "rtificateRevocationLists/*}:\033certificate" - + "_revocation_list\332A\'certificate_revocatio" - + "n_list,update_mask\312A.\n\031CertificateRevoca" - + "tionList\022\021OperationMetadata\022\330\001\n\021GetReusa" - + "bleConfig\022A.google.cloud.security.privat" - + "eca.v1beta1.GetReusableConfigRequest\0327.g" - + "oogle.cloud.security.privateca.v1beta1.R" - + "eusableConfig\"G\202\323\344\223\002:\0228/v1beta1/{name=pr" - + "ojects/*/locations/*/reusableConfigs/*}\332" - + "A\004name\022\353\001\n\023ListReusableConfigs\022C.google." - + "cloud.security.privateca.v1beta1.ListReu" - + "sableConfigsRequest\032D.google.cloud.secur" - + "ity.privateca.v1beta1.ListReusableConfig" - + "sResponse\"I\202\323\344\223\002:\0228/v1beta1/{parent=proj" - + "ects/*/locations/*}/reusableConfigs\332A\006pa" - + "rent\032L\312A\030privateca.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\226\002\n+com.google.cloud.security.private" - + "ca.v1beta1B\016PrivateCaProtoP\001ZPgoogle.gol" - + "ang.org/genproto/googleapis/cloud/securi" - + "ty/privateca/v1beta1;privateca\370\001\001\252\002\'Goog" - + "le.Cloud.Security.PrivateCA.V1Beta1\312\002\'Go" - + "ogle\\Cloud\\Security\\PrivateCA\\V1beta1\352\002+" - + "Google::Cloud::Security::PrivateCA::V1be" - + "ta1b\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.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateId", "Certificate", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor, - new java.lang.String[] { - "Certificates", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor, - new java.lang.String[] { - "Name", "Reason", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor, - new java.lang.String[] { - "Certificate", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor, - new java.lang.String[] { - "PemCsr", - }); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor, - new java.lang.String[] { - "CertificateAuthorities", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { - "CertificateAuthority", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor, - new java.lang.String[] { - "CertificateRevocationLists", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor, - new java.lang.String[] { - "CertificateRevocationList", "UpdateMask", "RequestId", - }); - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor, - new java.lang.String[] { - "ReusableConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java deleted file mode 100644 index b1e67871..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java +++ /dev/null @@ -1,896 +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/security/privateca/v1beta1/resources.proto - -package com.google.cloud.security.privateca.v1beta1; - -public final class PrivateCaResourcesProto { - private PrivateCaResourcesProto() {} - - 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_security_privateca_v1beta1_CertificateAuthority_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/security/privateca/v1beta" - + "1/resources.proto\022\'google.cloud.security" - + ".privateca.v1beta1\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\032\034google/api/annotations." - + "proto\"\250\034\n\024CertificateAuthority\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022X\n\004type\030\002 \001(\0162B.google.cloud.s" - + "ecurity.privateca.v1beta1.CertificateAut" - + "hority.TypeB\006\340A\002\340A\005\022X\n\004tier\030\003 \001(\0162B.goog" - + "le.cloud.security.privateca.v1beta1.Cert" - + "ificateAuthority.TierB\006\340A\002\340A\005\022R\n\006config\030" - + "\004 \001(\0132:.google.cloud.security.privateca." - + "v1beta1.CertificateConfigB\006\340A\002\340A\005\0220\n\010lif" - + "etime\030\005 \001(\0132\031.google.protobuf.DurationB\003" - + "\340A\002\022f\n\010key_spec\030\006 \001(\0132L.google.cloud.sec" - + "urity.privateca.v1beta1.CertificateAutho" - + "rity.KeyVersionSpecB\006\340A\002\340A\005\022y\n\022certifica" - + "te_policy\030\007 \001(\0132X.google.cloud.security." - + "privateca.v1beta1.CertificateAuthority.C" - + "ertificateAuthorityPolicyB\003\340A\001\022j\n\017issuin" - + "g_options\030\010 \001(\0132L.google.cloud.security." - + "privateca.v1beta1.CertificateAuthority.I" - + "ssuingOptionsB\003\340A\001\022[\n\022subordinate_config" - + "\030\023 \001(\0132:.google.cloud.security.privateca" - + ".v1beta1.SubordinateConfigB\003\340A\001\022W\n\005state" - + "\030\n \001(\0162C.google.cloud.security.privateca" - + ".v1beta1.CertificateAuthority.StateB\003\340A\003" - + "\022 \n\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022i\n\033ca" - + "_certificate_descriptions\030\014 \003(\0132?.google" - + ".cloud.security.privateca.v1beta1.Certif" - + "icateDescriptionB\003\340A\003\022\027\n\ngcs_bucket\030\r \001(" - + "\tB\003\340A\005\022b\n\013access_urls\030\016 \001(\0132H.google.clo" - + "ud.security.privateca.v1beta1.Certificat" - + "eAuthority.AccessUrlsB\003\340A\003\0224\n\013create_tim" - + "e\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\020 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013delete_time\030\021 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022^\n\006labels\030\022" - + " \003(\0132I.google.cloud.security.privateca.v" - + "1beta1.CertificateAuthority.LabelsEntryB" - + "\003\340A\001\032W\n\016IssuingOptions\022 \n\023include_ca_cer" - + "t_url\030\001 \001(\010B\003\340A\002\022#\n\026include_crl_access_u" - + "rl\030\002 \001(\010B\003\340A\002\032\276\t\n\032CertificateAuthorityPo" - + "licy\022\216\001\n\023allowed_config_list\030\001 \001(\0132j.goo" - + "gle.cloud.security.privateca.v1beta1.Cer" - + "tificateAuthority.CertificateAuthorityPo" - + "licy.AllowedConfigListB\003\340A\001H\000\022f\n\027overwri" - + "te_config_values\030\002 \001(\0132>.google.cloud.se" - + "curity.privateca.v1beta1.ReusableConfigW" - + "rapperB\003\340A\001H\000\022b\n#allowed_locations_and_o" - + "rganizations\030\003 \003(\01320.google.cloud.securi" - + "ty.privateca.v1beta1.SubjectB\003\340A\001\022!\n\024all" - + "owed_common_names\030\004 \003(\tB\003\340A\001\022\212\001\n\014allowed" - + "_sans\030\005 \001(\0132o.google.cloud.security.priv" - + "ateca.v1beta1.CertificateAuthority.Certi" - + "ficateAuthorityPolicy.AllowedSubjectAltN" - + "amesB\003\340A\001\0228\n\020maximum_lifetime\030\006 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\001\022\213\001\n\026allowed_" - + "issuance_modes\030\010 \001(\0132f.google.cloud.secu" - + "rity.privateca.v1beta1.CertificateAuthor" - + "ity.CertificateAuthorityPolicy.IssuanceM" - + "odesB\003\340A\001\032w\n\021AllowedConfigList\022b\n\025allowe" - + "d_config_values\030\001 \003(\0132>.google.cloud.sec" - + "urity.privateca.v1beta1.ReusableConfigWr" - + "apperB\003\340A\002\032\336\001\n\026AllowedSubjectAltNames\022\036\n" - + "\021allowed_dns_names\030\001 \003(\tB\003\340A\001\022\031\n\014allowed" - + "_uris\030\002 \003(\tB\003\340A\001\022$\n\027allowed_email_addres" - + "ses\030\003 \003(\tB\003\340A\001\022\030\n\013allowed_ips\030\004 \003(\tB\003\340A\001" - + "\022)\n\034allow_globbing_dns_wildcards\030\005 \001(\010B\003" - + "\340A\001\022\036\n\021allow_custom_sans\030\006 \001(\010B\003\340A\001\032`\n\rI" - + "ssuanceModes\022%\n\030allow_csr_based_issuance" - + "\030\001 \001(\010B\003\340A\002\022(\n\033allow_config_based_issuan" - + "ce\030\002 \001(\010B\003\340A\002B\017\n\rconfig_policy\032G\n\nAccess" - + "Urls\022!\n\031ca_certificate_access_url\030\001 \001(\t\022" - + "\026\n\016crl_access_url\030\002 \001(\t\032\257\001\n\016KeyVersionSp" - + "ec\022$\n\025cloud_kms_key_version\030\001 \001(\tB\003\340A\002H\000" - + "\022i\n\talgorithm\030\002 \001(\0162O.google.cloud.secur" - + "ity.privateca.v1beta1.CertificateAuthori" - + "ty.SignHashAlgorithmB\003\340A\002H\000B\014\n\nKeyVersio" - + "n\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017" - + "\n\013SELF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"8\n\004Tier" - + "\022\024\n\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n" - + "\n\006DEVOPS\020\002\"g\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\026\n\022PENDING" - + "_ACTIVATION\020\003\022\024\n\020PENDING_DELETION\020\004\"\374\001\n\021" - + "SignHashAlgorithm\022#\n\037SIGN_HASH_ALGORITHM" - + "_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022" - + "\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS_4096" - + "_SHA256\020\003\022\031\n\025RSA_PKCS1_2048_SHA256\020\006\022\031\n\025" - + "RSA_PKCS1_3072_SHA256\020\007\022\031\n\025RSA_PKCS1_409" - + "6_SHA256\020\010\022\022\n\016EC_P256_SHA256\020\004\022\022\n\016EC_P38" - + "4_SHA384\020\005:\213\001\352A\207\001\n-privateca.googleapis." - + "com/CertificateAuthority\022Vprojects/{proj" - + "ect}/locations/{location}/certificateAut" - + "horities/{certificate_authority}\"\371\007\n\031Cer" - + "tificateRevocationList\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022\034\n\017sequence_number\030\002 \001(\003B\003\340A\003\022x\n\024revok" - + "ed_certificates\030\003 \003(\0132U.google.cloud.sec" - + "urity.privateca.v1beta1.CertificateRevoc" - + "ationList.RevokedCertificateB\003\340A\003\022\024\n\007pem" - + "_crl\030\004 \001(\tB\003\340A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003" - + "\022\\\n\005state\030\006 \001(\0162H.google.cloud.security." - + "privateca.v1beta1.CertificateRevocationL" - + "ist.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022c\n\006labels\030\t \003(\0132N.google.cloud.securi" - + "ty.privateca.v1beta1.CertificateRevocati" - + "onList.LabelsEntryB\003\340A\001\032\232\001\n\022RevokedCerti" - + "ficate\022\023\n\013certificate\030\001 \001(\t\022\031\n\021hex_seria" - + "l_number\030\002 \001(\t\022T\n\021revocation_reason\030\003 \001(" - + "\01629.google.cloud.security.privateca.v1be" - + "ta1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPER" - + "SEDED\020\002:\312\001\352A\306\001\n2privateca.googleapis.com" - + "/CertificateRevocationList\022\217\001projects/{p" - + "roject}/locations/{location}/certificate" - + "Authorities/{certificate_authority}/cert" - + "ificateRevocationLists/{certificate_revo" - + "cation_list}\"\232\010\n\013Certificate\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\026\n\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022Q\n\006confi" - + "g\030\003 \001(\0132:.google.cloud.security.privatec" - + "a.v1beta1.CertificateConfigB\003\340A\005H\000\0223\n\010li" - + "fetime\030\004 \001(\0132\031.google.protobuf.DurationB" - + "\006\340A\002\340A\005\022g\n\022revocation_details\030\005 \001(\0132F.go" - + "ogle.cloud.security.privateca.v1beta1.Ce" - + "rtificate.RevocationDetailsB\003\340A\003\022\034\n\017pem_" - + "certificate\030\006 \001(\tB\003\340A\003\022e\n\027certificate_de" - + "scription\030\007 \001(\0132?.google.cloud.security." - + "privateca.v1beta1.CertificateDescription" - + "B\003\340A\003\022\"\n\025pem_certificate_chain\030\010 \003(\tB\003\340A" - + "\003\0224\n\013create_time\030\t \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022U\n\006labels\030" - + "\013 \003(\0132@.google.cloud.security.privateca." - + "v1beta1.Certificate.LabelsEntryB\003\340A\001\032\235\001\n" - + "\021RevocationDetails\022S\n\020revocation_state\030\001" - + " \001(\01629.google.cloud.security.privateca.v" - + "1beta1.RevocationReason\0223\n\017revocation_ti" - + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001:\235\001\352A\231\001\n$privateca.googleapis.com/Cer" - + "tificate\022qprojects/{project}/locations/{" - + "location}/certificateAuthorities/{certif" - + "icate_authority}/certificates/{certifica" - + "te}B\024\n\022certificate_config\"\377\003\n\016ReusableCo" - + "nfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022R\n\006values\030\002 \001(\0132" - + "=.google.cloud.security.privateca.v1beta" - + "1.ReusableConfigValuesB\003\340A\002\022\030\n\013descripti" - + "on\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022X\n\006labels\030\006 \003(\0132C.google.cloud.securit" - + "y.privateca.v1beta1.ReusableConfig.Label" - + "sEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001:w\352At\n\'privateca.googl" - + "eapis.com/ReusableConfig\022Iprojects/{proj" - + "ect}/locations/{location}/reusableConfig" - + "s/{reusable_config}\"\211\004\n\024ReusableConfigVa" - + "lues\022I\n\tkey_usage\030\001 \001(\01321.google.cloud.s" - + "ecurity.privateca.v1beta1.KeyUsageB\003\340A\001\022" - + "`\n\nca_options\030\002 \001(\0132G.google.cloud.secur" - + "ity.privateca.v1beta1.ReusableConfigValu" - + "es.CaOptionsB\003\340A\001\022J\n\npolicy_ids\030\003 \003(\01321." - + "google.cloud.security.privateca.v1beta1." - + "ObjectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB" - + "\003\340A\001\022Z\n\025additional_extensions\030\005 \003(\01326.go" - + "ogle.cloud.security.privateca.v1beta1.X5" - + "09ExtensionB\003\340A\001\032}\n\tCaOptions\022.\n\005is_ca\030\001" - + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022@\n" - + "\026max_issuer_path_length\030\002 \001(\0132\033.google.p" - + "rotobuf.Int32ValueB\003\340A\001\"\256\001\n\025ReusableConf" - + "igWrapper\022\036\n\017reusable_config\030\001 \001(\tB\003\340A\002H" - + "\000\022d\n\026reusable_config_values\030\002 \001(\0132=.goog" - + "le.cloud.security.privateca.v1beta1.Reus" - + "ableConfigValuesB\003\340A\002H\000B\017\n\rconfig_values" - + "\"\374\001\n\021SubordinateConfig\022$\n\025certificate_au" - + "thority\030\001 \001(\tB\003\340A\002H\000\022r\n\020pem_issuer_chain" - + "\030\002 \001(\0132Q.google.cloud.security.privateca" - + ".v1beta1.SubordinateConfig.SubordinateCo" - + "nfigChainB\003\340A\002H\000\0327\n\026SubordinateConfigCha" - + "in\022\035\n\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022sub" - + "ordinate_config\"\262\001\n\tPublicKey\022M\n\004type\030\001 " - + "\001(\0162:.google.cloud.security.privateca.v1" - + "beta1.PublicKey.KeyTypeB\003\340A\002\022\020\n\003key\030\002 \001(" - + "\014B\003\340A\002\"D\n\007KeyType\022\030\n\024KEY_TYPE_UNSPECIFIE" - + "D\020\000\022\017\n\013PEM_RSA_KEY\020\001\022\016\n\nPEM_EC_KEY\020\002\"\362\003\n" - + "\021CertificateConfig\022e\n\016subject_config\030\001 \001" - + "(\0132H.google.cloud.security.privateca.v1b" - + "eta1.CertificateConfig.SubjectConfigB\003\340A" - + "\002\022\\\n\017reusable_config\030\002 \001(\0132>.google.clou" - + "d.security.privateca.v1beta1.ReusableCon" - + "figWrapperB\003\340A\002\022K\n\npublic_key\030\003 \001(\01322.go" - + "ogle.cloud.security.privateca.v1beta1.Pu" - + "blicKeyB\003\340A\001\032\312\001\n\rSubjectConfig\022F\n\007subjec" - + "t\030\001 \001(\01320.google.cloud.security.privatec" - + "a.v1beta1.SubjectB\003\340A\002\022\030\n\013common_name\030\002 " - + "\001(\tB\003\340A\001\022W\n\020subject_alt_name\030\003 \001(\01328.goo" - + "gle.cloud.security.privateca.v1beta1.Sub" - + "jectAltNamesB\003\340A\001\"\341\010\n\026CertificateDescrip" - + "tion\022o\n\023subject_description\030\001 \001(\0132R.goog" - + "le.cloud.security.privateca.v1beta1.Cert" - + "ificateDescription.SubjectDescription\022T\n" - + "\rconfig_values\030\002 \001(\0132=.google.cloud.secu" - + "rity.privateca.v1beta1.ReusableConfigVal" - + "ues\022F\n\npublic_key\030\003 \001(\01322.google.cloud.s" - + "ecurity.privateca.v1beta1.PublicKey\022]\n\016s" - + "ubject_key_id\030\004 \001(\0132E.google.cloud.secur" - + "ity.privateca.v1beta1.CertificateDescrip" - + "tion.KeyId\022_\n\020authority_key_id\030\005 \001(\0132E.g" - + "oogle.cloud.security.privateca.v1beta1.C" - + "ertificateDescription.KeyId\022\037\n\027crl_distr" - + "ibution_points\030\006 \003(\t\022$\n\034aia_issuing_cert" - + "ificate_urls\030\007 \003(\t\022p\n\020cert_fingerprint\030\010" - + " \001(\0132V.google.cloud.security.privateca.v" - + "1beta1.CertificateDescription.Certificat" - + "eFingerprint\032\361\002\n\022SubjectDescription\022A\n\007s" - + "ubject\030\001 \001(\01320.google.cloud.security.pri" - + "vateca.v1beta1.Subject\022\023\n\013common_name\030\002 " - + "\001(\t\022R\n\020subject_alt_name\030\003 \001(\01328.google.c" - + "loud.security.privateca.v1beta1.SubjectA" - + "ltNames\022\031\n\021hex_serial_number\030\004 \001(\t\022+\n\010li" - + "fetime\030\005 \001(\0132\031.google.protobuf.Duration\022" - + "3\n\017not_before_time\030\006 \001(\0132\032.google.protob" - + "uf.Timestamp\0222\n\016not_after_time\030\007 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\032\034\n\005KeyId\022\023\n\006key" - + "_id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFingerprint" - + "\022\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016obj" - + "ect_id_path\030\001 \003(\005B\003\340A\002\"\205\001\n\rX509Extension" - + "\022I\n\tobject_id\030\001 \001(\01321.google.cloud.secur" - + "ity.privateca.v1beta1.ObjectIdB\003\340A\002\022\025\n\010c" - + "ritical\030\002 \001(\010B\003\340A\002\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\261" - + "\005\n\010KeyUsage\022Y\n\016base_key_usage\030\001 \001(\0132A.go" - + "ogle.cloud.security.privateca.v1beta1.Ke" - + "yUsage.KeyUsageOptions\022e\n\022extended_key_u" - + "sage\030\002 \001(\0132I.google.cloud.security.priva" - + "teca.v1beta1.KeyUsage.ExtendedKeyUsageOp" - + "tions\022V\n\033unknown_extended_key_usages\030\003 \003" - + "(\01321.google.cloud.security.privateca.v1b" - + "eta1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021dig" - + "ital_signature\030\001 \001(\010\022\032\n\022content_commitme" - + "nt\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n\021da" - + "ta_encipherment\030\004 \001(\010\022\025\n\rkey_agreement\030\005" - + " \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(" - + "\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_onl" - + "y\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023\n\013s" - + "erver_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n" - + "\014code_signing\030\003 \001(\010\022\030\n\020email_protection\030" - + "\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_sig" - + "ning\030\006 \001(\010\"\243\001\n\007Subject\022\024\n\014country_code\030\001" - + " \001(\t\022\024\n\014organization\030\002 \001(\t\022\033\n\023organizati" - + "onal_unit\030\003 \001(\t\022\020\n\010locality\030\004 \001(\t\022\020\n\010pro" - + "vince\030\005 \001(\t\022\026\n\016street_address\030\006 \001(\t\022\023\n\013p" - + "ostal_code\030\007 \001(\t\"\256\001\n\017SubjectAltNames\022\021\n\t" - + "dns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_a" - + "ddresses\030\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022K\n\013" - + "custom_sans\030\005 \003(\01326.google.cloud.securit" - + "y.privateca.v1beta1.X509Extension*\207\002\n\020Re" - + "vocationReason\022!\n\035REVOCATION_REASON_UNSP" - + "ECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFI" - + "CATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATI" - + "ON_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATIO" - + "N_OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027" - + "\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUT" - + "HORITY_COMPROMISE\020\010B\237\002\n+com.google.cloud" - + ".security.privateca.v1beta1B\027PrivateCaRe" - + "sourcesProtoP\001ZPgoogle.golang.org/genpro" - + "to/googleapis/cloud/security/privateca/v" - + "1beta1;privateca\370\001\001\252\002\'Google.Cloud.Secur" - + "ity.PrivateCA.V1Beta1\312\002\'Google\\Cloud\\Sec" - + "urity\\PrivateCA\\V1beta1\352\002+Google::Cloud:" - + ":Security::PrivateCA::V1beta1b\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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor, - new java.lang.String[] { - "Name", - "Type", - "Tier", - "Config", - "Lifetime", - "KeySpec", - "CertificatePolicy", - "IssuingOptions", - "SubordinateConfig", - "State", - "PemCaCertificates", - "CaCertificateDescriptions", - "GcsBucket", - "AccessUrls", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Labels", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor, - new java.lang.String[] { - "IncludeCaCertUrl", "IncludeCrlAccessUrl", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor, - new java.lang.String[] { - "AllowedConfigList", - "OverwriteConfigValues", - "AllowedLocationsAndOrganizations", - "AllowedCommonNames", - "AllowedSans", - "MaximumLifetime", - "AllowedIssuanceModes", - "ConfigPolicy", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor, - new java.lang.String[] { - "AllowedConfigValues", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor, - new java.lang.String[] { - "AllowedDnsNames", - "AllowedUris", - "AllowedEmailAddresses", - "AllowedIps", - "AllowGlobbingDnsWildcards", - "AllowCustomSans", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor, - new java.lang.String[] { - "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor, - new java.lang.String[] { - "CaCertificateAccessUrl", "CrlAccessUrl", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor, - new java.lang.String[] { - "CloudKmsKeyVersion", "Algorithm", "KeyVersion", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor, - new java.lang.String[] { - "Name", - "SequenceNumber", - "RevokedCertificates", - "PemCrl", - "AccessUrl", - "State", - "CreateTime", - "UpdateTime", - "Labels", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor, - new java.lang.String[] { - "Certificate", "HexSerialNumber", "RevocationReason", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor, - new java.lang.String[] { - "Name", - "PemCsr", - "Config", - "Lifetime", - "RevocationDetails", - "PemCertificate", - "CertificateDescription", - "PemCertificateChain", - "CreateTime", - "UpdateTime", - "Labels", - "CertificateConfig", - }); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor, - new java.lang.String[] { - "RevocationState", "RevocationTime", - }); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor, - new java.lang.String[] { - "Name", "Values", "Description", "CreateTime", "UpdateTime", "Labels", - }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor, - new java.lang.String[] { - "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", - }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor, - new java.lang.String[] { - "IsCa", "MaxIssuerPathLength", - }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor, - new java.lang.String[] { - "ReusableConfig", "ReusableConfigValues", "ConfigValues", - }); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor, - new java.lang.String[] { - "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", - }); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor, - new java.lang.String[] { - "PemCertificates", - }); - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor, - new java.lang.String[] { - "Type", "Key", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor, - new java.lang.String[] { - "SubjectConfig", "ReusableConfig", "PublicKey", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor, - new java.lang.String[] { - "Subject", "CommonName", "SubjectAltName", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor, - new java.lang.String[] { - "SubjectDescription", - "ConfigValues", - "PublicKey", - "SubjectKeyId", - "AuthorityKeyId", - "CrlDistributionPoints", - "AiaIssuingCertificateUrls", - "CertFingerprint", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor, - new java.lang.String[] { - "Subject", - "CommonName", - "SubjectAltName", - "HexSerialNumber", - "Lifetime", - "NotBeforeTime", - "NotAfterTime", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor, - new java.lang.String[] { - "KeyId", - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor, - new java.lang.String[] { - "Sha256Hash", - }); - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor, - new java.lang.String[] { - "ObjectIdPath", - }); - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor, - new java.lang.String[] { - "ObjectId", "Critical", "Value", - }); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor, - new java.lang.String[] { - "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", - }); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor, - new java.lang.String[] { - "DigitalSignature", - "ContentCommitment", - "KeyEncipherment", - "DataEncipherment", - "KeyAgreement", - "CertSign", - "CrlSign", - "EncipherOnly", - "DecipherOnly", - }); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor, - new java.lang.String[] { - "ServerAuth", - "ClientAuth", - "CodeSigning", - "EmailProtection", - "TimeStamping", - "OcspSigning", - }); - internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor, - new java.lang.String[] { - "CountryCode", - "Organization", - "OrganizationalUnit", - "Locality", - "Province", - "StreetAddress", - "PostalCode", - }); - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor, - new java.lang.String[] { - "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java deleted file mode 100644 index 613e66ba..00000000 --- a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/resources.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface PublicKeyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.PublicKey) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The type of public key.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Required. The type of public key.
-   * 
- * - * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType(); - - /** - * - * - *
-   * Required. A public key. Padding and encoding varies by 'KeyType' and is described
-   * along with the KeyType values.
-   * 
- * - * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The key. - */ - com.google.protobuf.ByteString getKey(); -} From 220c8bacf2af75bc2350edfb52e9ea20cf22a06f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:07:25 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1/CertificateAuthorityServiceClient.java | 126 +- .../CertificateAuthorityServiceSettings.java | 25 +- .../security/privateca/v1/gapic_metadata.json | 0 .../security/privateca/v1/package-info.java | 0 .../stub/CertificateAuthorityServiceStub.java | 0 ...rtificateAuthorityServiceStubSettings.java | 84 +- ...ficateAuthorityServiceCallableFactory.java | 0 .../GrpcCertificateAuthorityServiceStub.java | 1 - ...ficateAuthorityServiceCallableFactory.java | 0 ...tpJsonCertificateAuthorityServiceStub.java | 1 - .../CertificateAuthorityServiceClient.java | 94 +- .../CertificateAuthorityServiceSettings.java | 22 +- .../privateca/v1beta1/gapic_metadata.json | 0 .../privateca/v1beta1/package-info.java | 0 .../stub/CertificateAuthorityServiceStub.java | 0 ...rtificateAuthorityServiceStubSettings.java | 69 +- ...ficateAuthorityServiceCallableFactory.java | 0 .../GrpcCertificateAuthorityServiceStub.java | 1 - ...ficateAuthorityServiceCallableFactory.java | 0 ...tpJsonCertificateAuthorityServiceStub.java | 1 - .../google/cloud/location/MockLocations.java | 0 .../cloud/location/MockLocationsImpl.java | 0 ...ateAuthorityServiceClientHttpJsonTest.java | 0 ...CertificateAuthorityServiceClientTest.java | 0 .../v1/MockCertificateAuthorityService.java | 0 .../MockCertificateAuthorityServiceImpl.java | 0 ...ateAuthorityServiceClientHttpJsonTest.java | 0 ...CertificateAuthorityServiceClientTest.java | 0 .../MockCertificateAuthorityService.java | 0 .../MockCertificateAuthorityServiceImpl.java | 0 .../java/com/google/iam/v1/MockIAMPolicy.java | 0 .../com/google/iam/v1/MockIAMPolicyImpl.java | 0 .../v1/CertificateAuthorityServiceGrpc.java | 3935 +++++++ .../CertificateAuthorityServiceGrpc.java | 2914 ++++++ .../v1/CertificateAuthorityServiceGrpc.java | 2776 ----- ...rtificateAuthorityCsrRequestOrBuilder.java | 31 - .../v1/GetCaPoolRequestOrBuilder.java | 29 - ...tCertificateAuthorityRequestOrBuilder.java | 31 - .../v1/GetCertificateRequestOrBuilder.java | 29 - ...ificateRevocationListRequestOrBuilder.java | 31 - ...etCertificateTemplateRequestOrBuilder.java | 31 - .../security/privateca/v1/PrivateCaProto.java | 841 -- .../privateca/v1/PrivateCaResourcesProto.java | 799 -- .../CertificateAuthorityServiceGrpc.java | 1994 ---- ...rtificateAuthorityCsrRequestOrBuilder.java | 31 - ...tCertificateAuthorityRequestOrBuilder.java | 31 - .../GetCertificateRequestOrBuilder.java | 29 - ...ificateRevocationListRequestOrBuilder.java | 31 - .../GetReusableConfigRequestOrBuilder.java | 29 - .../privateca/v1beta1/PrivateCaProto.java | 620 -- .../v1beta1/PrivateCaResourcesProto.java | 724 -- .../privateca/v1beta1/PublicKeyOrBuilder.java | 39 - .../ActivateCertificateAuthorityRequest.java | 763 +- ...eCertificateAuthorityRequestOrBuilder.java | 73 +- .../cloud/security/privateca/v1/CaPool.java | 5320 ++++++---- .../security/privateca/v1/CaPoolName.java | 0 .../privateca/v1/CaPoolOrBuilder.java | 118 +- .../security/privateca/v1/Certificate.java | 2660 +++-- .../privateca/v1/CertificateAuthority.java | 4089 +++++--- .../v1/CertificateAuthorityName.java | 0 .../v1/CertificateAuthorityOrBuilder.java | 354 +- .../privateca/v1/CertificateConfig.java | 1325 ++- .../v1/CertificateConfigOrBuilder.java | 81 +- .../privateca/v1/CertificateDescription.java | 3130 ++++-- .../v1/CertificateDescriptionOrBuilder.java | 162 +- .../v1/CertificateExtensionConstraints.java | 848 +- ...tificateExtensionConstraintsOrBuilder.java | 99 +- .../v1/CertificateIdentityConstraints.java | 486 +- ...rtificateIdentityConstraintsOrBuilder.java | 52 +- .../privateca/v1/CertificateName.java | 0 .../privateca/v1/CertificateOrBuilder.java | 288 +- .../v1/CertificateRevocationList.java | 2243 ++-- .../v1/CertificateRevocationListName.java | 0 .../CertificateRevocationListOrBuilder.java | 181 +- .../privateca/v1/CertificateTemplate.java | 1497 ++- .../privateca/v1/CertificateTemplateName.java | 0 .../v1/CertificateTemplateOrBuilder.java | 175 +- .../privateca/v1/CreateCaPoolRequest.java | 646 +- .../v1/CreateCaPoolRequestOrBuilder.java | 73 +- .../v1/CreateCertificateAuthorityRequest.java | 713 +- ...eCertificateAuthorityRequestOrBuilder.java | 76 +- .../v1/CreateCertificateRequest.java | 812 +- .../v1/CreateCertificateRequestOrBuilder.java | 91 +- .../v1/CreateCertificateTemplateRequest.java | 709 +- ...teCertificateTemplateRequestOrBuilder.java | 76 +- .../privateca/v1/DeleteCaPoolRequest.java | 421 +- .../v1/DeleteCaPoolRequestOrBuilder.java | 44 +- .../v1/DeleteCertificateAuthorityRequest.java | 544 +- ...eCertificateAuthorityRequestOrBuilder.java | 50 +- .../v1/DeleteCertificateTemplateRequest.java | 467 +- ...teCertificateTemplateRequestOrBuilder.java | 44 +- .../DisableCertificateAuthorityRequest.java | 477 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../v1/EnableCertificateAuthorityRequest.java | 470 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../privateca/v1/FetchCaCertsRequest.java | 421 +- .../v1/FetchCaCertsRequestOrBuilder.java | 44 +- .../privateca/v1/FetchCaCertsResponse.java | 914 +- .../v1/FetchCaCertsResponseOrBuilder.java | 52 +- .../FetchCertificateAuthorityCsrRequest.java | 442 +- ...rtificateAuthorityCsrRequestOrBuilder.java | 56 + .../FetchCertificateAuthorityCsrResponse.java | 414 +- ...tificateAuthorityCsrResponseOrBuilder.java | 27 +- .../privateca/v1/GetCaPoolRequest.java | 342 +- .../v1/GetCaPoolRequestOrBuilder.java | 54 + .../v1/GetCertificateAuthorityRequest.java | 378 +- ...tCertificateAuthorityRequestOrBuilder.java | 56 + .../privateca/v1/GetCertificateRequest.java | 349 +- .../v1/GetCertificateRequestOrBuilder.java | 54 + .../GetCertificateRevocationListRequest.java | 442 +- ...ificateRevocationListRequestOrBuilder.java | 56 + .../v1/GetCertificateTemplateRequest.java | 375 +- ...etCertificateTemplateRequestOrBuilder.java | 56 + .../cloud/security/privateca/v1/KeyUsage.java | 1885 ++-- .../privateca/v1/KeyUsageOrBuilder.java | 82 +- .../privateca/v1/ListCaPoolsRequest.java | 615 +- .../v1/ListCaPoolsRequestOrBuilder.java | 65 +- .../privateca/v1/ListCaPoolsResponse.java | 570 +- .../v1/ListCaPoolsResponseOrBuilder.java | 63 +- .../v1/ListCertificateAuthoritiesRequest.java | 664 +- ...ertificateAuthoritiesRequestOrBuilder.java | 65 +- .../ListCertificateAuthoritiesResponse.java | 758 +- ...rtificateAuthoritiesResponseOrBuilder.java | 83 +- ...ListCertificateRevocationListsRequest.java | 715 +- ...ficateRevocationListsRequestOrBuilder.java | 65 +- ...istCertificateRevocationListsResponse.java | 813 +- ...icateRevocationListsResponseOrBuilder.java | 87 +- .../v1/ListCertificateTemplatesRequest.java | 654 +- ...tCertificateTemplatesRequestOrBuilder.java | 65 +- .../v1/ListCertificateTemplatesResponse.java | 746 +- ...CertificateTemplatesResponseOrBuilder.java | 83 +- .../privateca/v1/ListCertificatesRequest.java | 633 +- .../v1/ListCertificatesRequestOrBuilder.java | 65 +- .../v1/ListCertificatesResponse.java | 583 +- .../v1/ListCertificatesResponseOrBuilder.java | 63 +- .../security/privateca/v1/LocationName.java | 0 .../cloud/security/privateca/v1/ObjectId.java | 330 +- .../privateca/v1/ObjectIdOrBuilder.java | 27 +- .../privateca/v1/OperationMetadata.java | 855 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../security/privateca/v1/PrivateCaProto.java | 906 ++ .../privateca/v1/PrivateCaResourcesProto.java | 986 ++ .../security/privateca/v1/PublicKey.java | 422 +- .../privateca/v1/PublicKeyOrBuilder.java | 35 +- .../privateca/v1/RevocationReason.java | 126 +- .../v1/RevokeCertificateRequest.java | 542 +- .../v1/RevokeCertificateRequestOrBuilder.java | 58 +- .../cloud/security/privateca/v1/Subject.java | 856 +- .../privateca/v1/SubjectAltNames.java | 815 +- .../v1/SubjectAltNamesOrBuilder.java | 108 +- .../privateca/v1/SubjectOrBuilder.java | 90 +- .../privateca/v1/SubjectRequestMode.java | 84 +- .../privateca/v1/SubordinateConfig.java | 1128 +- .../v1/SubordinateConfigOrBuilder.java | 71 +- .../UndeleteCertificateAuthorityRequest.java | 521 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../privateca/v1/UpdateCaPoolRequest.java | 592 +- .../v1/UpdateCaPoolRequestOrBuilder.java | 64 +- .../v1/UpdateCertificateAuthorityRequest.java | 659 +- ...eCertificateAuthorityRequestOrBuilder.java | 67 +- .../v1/UpdateCertificateRequest.java | 614 +- .../v1/UpdateCertificateRequestOrBuilder.java | 64 +- ...pdateCertificateRevocationListRequest.java | 726 +- ...ificateRevocationListRequestOrBuilder.java | 67 +- .../v1/UpdateCertificateTemplateRequest.java | 655 +- ...teCertificateTemplateRequestOrBuilder.java | 67 +- .../security/privateca/v1/X509Extension.java | 451 +- .../privateca/v1/X509ExtensionOrBuilder.java | 44 +- .../security/privateca/v1/X509Parameters.java | 1516 ++- .../privateca/v1/X509ParametersOrBuilder.java | 148 +- .../security/privateca/v1/resources.proto | 0 .../cloud/security/privateca/v1/service.proto | 0 .../ActivateCertificateAuthorityRequest.java | 771 +- ...eCertificateAuthorityRequestOrBuilder.java | 76 +- .../privateca/v1beta1/Certificate.java | 2422 +++-- .../v1beta1/CertificateAuthority.java | 9240 +++++++++++------ .../v1beta1/CertificateAuthorityName.java | 0 .../CertificateAuthorityOrBuilder.java | 382 +- .../privateca/v1beta1/CertificateConfig.java | 1500 ++- .../v1beta1/CertificateConfigOrBuilder.java | 84 +- .../v1beta1/CertificateDescription.java | 3398 ++++-- .../CertificateDescriptionOrBuilder.java | 168 +- .../privateca/v1beta1/CertificateName.java | 0 .../v1beta1/CertificateOrBuilder.java | 232 +- .../v1beta1/CertificateRevocationList.java | 2225 ++-- .../CertificateRevocationListName.java | 0 .../CertificateRevocationListOrBuilder.java | 172 +- .../CreateCertificateAuthorityRequest.java | 771 +- ...eCertificateAuthorityRequestOrBuilder.java | 76 +- .../v1beta1/CreateCertificateRequest.java | 686 +- .../CreateCertificateRequestOrBuilder.java | 73 +- .../DisableCertificateAuthorityRequest.java | 526 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../EnableCertificateAuthorityRequest.java | 521 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../FetchCertificateAuthorityCsrRequest.java | 449 +- ...rtificateAuthorityCsrRequestOrBuilder.java | 56 + .../FetchCertificateAuthorityCsrResponse.java | 429 +- ...tificateAuthorityCsrResponseOrBuilder.java | 27 +- .../GetCertificateAuthorityRequest.java | 441 +- ...tCertificateAuthorityRequestOrBuilder.java | 56 + .../v1beta1/GetCertificateRequest.java | 371 +- .../GetCertificateRequestOrBuilder.java | 54 + .../GetCertificateRevocationListRequest.java | 449 +- ...ificateRevocationListRequestOrBuilder.java | 56 + .../v1beta1/GetReusableConfigRequest.java | 375 +- .../GetReusableConfigRequestOrBuilder.java | 54 + .../security/privateca/v1beta1/KeyUsage.java | 2028 ++-- .../privateca/v1beta1/KeyUsageOrBuilder.java | 102 +- .../ListCertificateAuthoritiesRequest.java | 715 +- ...ertificateAuthoritiesRequestOrBuilder.java | 65 +- .../ListCertificateAuthoritiesResponse.java | 811 +- ...rtificateAuthoritiesResponseOrBuilder.java | 87 +- ...ListCertificateRevocationListsRequest.java | 730 +- ...ficateRevocationListsRequestOrBuilder.java | 65 +- ...istCertificateRevocationListsResponse.java | 837 +- ...icateRevocationListsResponseOrBuilder.java | 87 +- .../v1beta1/ListCertificatesRequest.java | 648 +- .../ListCertificatesRequestOrBuilder.java | 65 +- .../v1beta1/ListCertificatesResponse.java | 616 +- .../ListCertificatesResponseOrBuilder.java | 60 +- .../v1beta1/ListReusableConfigsRequest.java | 651 +- .../ListReusableConfigsRequestOrBuilder.java | 65 +- .../v1beta1/ListReusableConfigsResponse.java | 716 +- .../ListReusableConfigsResponseOrBuilder.java | 74 +- .../privateca/v1beta1/LocationName.java | 0 .../security/privateca/v1beta1/ObjectId.java | 337 +- .../privateca/v1beta1/ObjectIdOrBuilder.java | 27 +- .../privateca/v1beta1/OperationMetadata.java | 863 +- .../v1beta1/OperationMetadataOrBuilder.java | 91 +- .../privateca/v1beta1/PrivateCaProto.java | 666 ++ .../v1beta1/PrivateCaResourcesProto.java | 896 ++ .../security/privateca/v1beta1/PublicKey.java | 439 +- .../privateca/v1beta1/PublicKeyOrBuilder.java | 68 + .../RestoreCertificateAuthorityRequest.java | 526 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../privateca/v1beta1/ReusableConfig.java | 1100 +- .../privateca/v1beta1/ReusableConfigName.java | 0 .../v1beta1/ReusableConfigOrBuilder.java | 121 +- .../v1beta1/ReusableConfigValues.java | 1804 ++-- .../ReusableConfigValuesOrBuilder.java | 155 +- .../v1beta1/ReusableConfigWrapper.java | 602 +- .../ReusableConfigWrapperOrBuilder.java | 56 +- .../privateca/v1beta1/RevocationReason.java | 126 +- .../v1beta1/RevokeCertificateRequest.java | 556 +- .../RevokeCertificateRequestOrBuilder.java | 58 +- ...duleDeleteCertificateAuthorityRequest.java | 554 +- ...eCertificateAuthorityRequestOrBuilder.java | 44 +- .../security/privateca/v1beta1/Subject.java | 787 +- .../privateca/v1beta1/SubjectAltNames.java | 839 +- .../v1beta1/SubjectAltNamesOrBuilder.java | 105 +- .../privateca/v1beta1/SubjectOrBuilder.java | 81 +- .../privateca/v1beta1/SubordinateConfig.java | 1133 +- .../v1beta1/SubordinateConfigOrBuilder.java | 59 +- .../UpdateCertificateAuthorityRequest.java | 717 +- ...eCertificateAuthorityRequestOrBuilder.java | 67 +- .../v1beta1/UpdateCertificateRequest.java | 632 +- .../UpdateCertificateRequestOrBuilder.java | 64 +- ...pdateCertificateRevocationListRequest.java | 748 +- ...ificateRevocationListRequestOrBuilder.java | 70 +- .../privateca/v1beta1/X509Extension.java | 455 +- .../v1beta1/X509ExtensionOrBuilder.java | 44 +- .../privateca/v1beta1/resources.proto | 0 .../security/privateca/v1beta1/service.proto | 0 .../AsyncActivateCertificateAuthority.java | 3 +- .../AsyncActivateCertificateAuthorityLRO.java | 6 +- .../SyncActivateCertificateAuthority.java | 3 +- ...cateAuthorityCertificateauthorityname.java | 6 +- ...yncActivateCertificateAuthorityString.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 3 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../createcapool/AsyncCreateCaPool.java | 0 .../createcapool/AsyncCreateCaPoolLRO.java | 0 .../createcapool/SyncCreateCaPool.java | 0 ...cCreateCaPoolLocationnameCapoolString.java | 6 +- .../SyncCreateCaPoolStringCapoolString.java | 6 +- .../AsyncCreateCertificate.java | 0 .../SyncCreateCertificate.java | 0 ...ertificateCapoolnameCertificateString.java | 6 +- ...ateCertificateStringCertificateString.java | 6 +- .../AsyncCreateCertificateAuthority.java | 0 .../AsyncCreateCertificateAuthorityLRO.java | 6 +- .../SyncCreateCertificateAuthority.java | 0 ...yCapoolnameCertificateauthorityString.java | 6 +- ...orityStringCertificateauthorityString.java | 6 +- .../AsyncCreateCertificateTemplate.java | 0 .../AsyncCreateCertificateTemplateLRO.java | 6 +- .../SyncCreateCertificateTemplate.java | 0 ...LocationnameCertificatetemplateString.java | 6 +- ...mplateStringCertificatetemplateString.java | 6 +- .../deletecapool/AsyncDeleteCaPool.java | 0 .../deletecapool/AsyncDeleteCaPoolLRO.java | 0 .../deletecapool/SyncDeleteCaPool.java | 1 - .../SyncDeleteCaPoolCapoolname.java | 1 - .../deletecapool/SyncDeleteCaPoolString.java | 1 - .../AsyncDeleteCertificateAuthority.java | 0 .../AsyncDeleteCertificateAuthorityLRO.java | 6 +- .../SyncDeleteCertificateAuthority.java | 0 ...cateAuthorityCertificateauthorityname.java | 6 +- .../SyncDeleteCertificateAuthorityString.java | 6 +- .../AsyncDeleteCertificateTemplate.java | 0 .../AsyncDeleteCertificateTemplateLRO.java | 6 +- .../SyncDeleteCertificateTemplate.java | 1 - ...ficateTemplateCertificatetemplatename.java | 7 +- .../SyncDeleteCertificateTemplateString.java | 7 +- .../AsyncDisableCertificateAuthority.java | 3 +- .../AsyncDisableCertificateAuthorityLRO.java | 6 +- .../SyncDisableCertificateAuthority.java | 0 ...cateAuthorityCertificateauthorityname.java | 6 +- ...SyncDisableCertificateAuthorityString.java | 6 +- .../AsyncEnableCertificateAuthority.java | 0 .../AsyncEnableCertificateAuthorityLRO.java | 6 +- .../SyncEnableCertificateAuthority.java | 0 ...cateAuthorityCertificateauthorityname.java | 6 +- .../SyncEnableCertificateAuthorityString.java | 6 +- .../fetchcacerts/AsyncFetchCaCerts.java | 0 .../fetchcacerts/SyncFetchCaCerts.java | 0 .../SyncFetchCaCertsCapoolname.java | 0 .../fetchcacerts/SyncFetchCaCertsString.java | 0 .../AsyncFetchCertificateAuthorityCsr.java | 3 +- .../SyncFetchCertificateAuthorityCsr.java | 3 +- ...eAuthorityCsrCertificateauthorityname.java | 6 +- ...yncFetchCertificateAuthorityCsrString.java | 6 +- .../getcapool/AsyncGetCaPool.java | 0 .../getcapool/SyncGetCaPool.java | 0 .../getcapool/SyncGetCaPoolCapoolname.java | 0 .../getcapool/SyncGetCaPoolString.java | 0 .../getcertificate/AsyncGetCertificate.java | 0 .../getcertificate/SyncGetCertificate.java | 0 .../SyncGetCertificateCertificatename.java | 6 +- .../SyncGetCertificateString.java | 0 .../AsyncGetCertificateAuthority.java | 0 .../SyncGetCertificateAuthority.java | 0 ...cateAuthorityCertificateauthorityname.java | 6 +- .../SyncGetCertificateAuthorityString.java | 6 +- .../AsyncGetCertificateRevocationList.java | 3 +- .../SyncGetCertificateRevocationList.java | 3 +- ...tionListCertificaterevocationlistname.java | 6 +- ...yncGetCertificateRevocationListString.java | 6 +- .../AsyncGetCertificateTemplate.java | 0 .../SyncGetCertificateTemplate.java | 0 ...ficateTemplateCertificatetemplatename.java | 6 +- .../SyncGetCertificateTemplateString.java | 3 +- .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../listcapools/AsyncListCaPools.java | 0 .../listcapools/AsyncListCaPoolsPaged.java | 0 .../listcapools/SyncListCaPools.java | 0 .../SyncListCaPoolsLocationname.java | 0 .../listcapools/SyncListCaPoolsString.java | 0 .../AsyncListCertificateAuthorities.java | 0 .../AsyncListCertificateAuthoritiesPaged.java | 6 +- .../SyncListCertificateAuthorities.java | 0 ...cListCertificateAuthoritiesCapoolname.java | 6 +- .../SyncListCertificateAuthoritiesString.java | 6 +- .../AsyncListCertificateRevocationLists.java | 6 +- ...ncListCertificateRevocationListsPaged.java | 6 +- .../SyncListCertificateRevocationLists.java | 6 +- ...vocationListsCertificateauthorityname.java | 6 +- ...cListCertificateRevocationListsString.java | 6 +- .../AsyncListCertificates.java | 0 .../AsyncListCertificatesPaged.java | 0 .../SyncListCertificates.java | 0 .../SyncListCertificatesCapoolname.java | 0 .../SyncListCertificatesString.java | 0 .../AsyncListCertificateTemplates.java | 0 .../AsyncListCertificateTemplatesPaged.java | 6 +- .../SyncListCertificateTemplates.java | 0 ...cListCertificateTemplatesLocationname.java | 6 +- .../SyncListCertificateTemplatesString.java | 6 +- .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncRevokeCertificate.java | 0 .../SyncRevokeCertificate.java | 0 .../SyncRevokeCertificateCertificatename.java | 6 +- .../SyncRevokeCertificateString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUndeleteCertificateAuthority.java | 3 +- .../AsyncUndeleteCertificateAuthorityLRO.java | 6 +- .../SyncUndeleteCertificateAuthority.java | 3 +- ...cateAuthorityCertificateauthorityname.java | 6 +- ...yncUndeleteCertificateAuthorityString.java | 6 +- .../updatecapool/AsyncUpdateCaPool.java | 0 .../updatecapool/AsyncUpdateCaPoolLRO.java | 0 .../updatecapool/SyncUpdateCaPool.java | 0 .../SyncUpdateCaPoolCapoolFieldmask.java | 3 +- .../AsyncUpdateCertificate.java | 0 .../SyncUpdateCertificate.java | 0 ...UpdateCertificateCertificateFieldmask.java | 6 +- .../AsyncUpdateCertificateAuthority.java | 0 .../AsyncUpdateCertificateAuthorityLRO.java | 6 +- .../SyncUpdateCertificateAuthority.java | 0 ...uthorityCertificateauthorityFieldmask.java | 6 +- .../AsyncUpdateCertificateRevocationList.java | 6 +- ...yncUpdateCertificateRevocationListLRO.java | 6 +- .../SyncUpdateCertificateRevocationList.java | 6 +- ...istCertificaterevocationlistFieldmask.java | 6 +- .../AsyncUpdateCertificateTemplate.java | 0 .../AsyncUpdateCertificateTemplateLRO.java | 6 +- .../SyncUpdateCertificateTemplate.java | 0 ...eTemplateCertificatetemplateFieldmask.java | 6 +- .../SyncCreateCertificate.java | 0 .../SyncCreateCertificate.java | 0 .../AsyncActivateCertificateAuthority.java | 6 +- .../AsyncActivateCertificateAuthorityLRO.java | 6 +- .../SyncActivateCertificateAuthority.java | 6 +- ...cateAuthorityCertificateauthorityname.java | 6 +- ...yncActivateCertificateAuthorityString.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCertificate.java | 0 .../SyncCreateCertificate.java | 0 ...ificateauthoritynameCertificateString.java | 6 +- ...ateCertificateStringCertificateString.java | 6 +- .../AsyncCreateCertificateAuthority.java | 6 +- .../AsyncCreateCertificateAuthorityLRO.java | 6 +- .../SyncCreateCertificateAuthority.java | 6 +- ...ocationnameCertificateauthorityString.java | 6 +- ...orityStringCertificateauthorityString.java | 6 +- .../AsyncDisableCertificateAuthority.java | 6 +- .../AsyncDisableCertificateAuthorityLRO.java | 6 +- .../SyncDisableCertificateAuthority.java | 6 +- ...cateAuthorityCertificateauthorityname.java | 6 +- ...SyncDisableCertificateAuthorityString.java | 6 +- .../AsyncEnableCertificateAuthority.java | 6 +- .../AsyncEnableCertificateAuthorityLRO.java | 6 +- .../SyncEnableCertificateAuthority.java | 6 +- ...cateAuthorityCertificateauthorityname.java | 6 +- .../SyncEnableCertificateAuthorityString.java | 6 +- .../AsyncFetchCertificateAuthorityCsr.java | 6 +- .../SyncFetchCertificateAuthorityCsr.java | 6 +- ...eAuthorityCsrCertificateauthorityname.java | 6 +- ...yncFetchCertificateAuthorityCsrString.java | 6 +- .../getcertificate/AsyncGetCertificate.java | 0 .../getcertificate/SyncGetCertificate.java | 0 .../SyncGetCertificateCertificatename.java | 6 +- .../SyncGetCertificateString.java | 0 .../AsyncGetCertificateAuthority.java | 3 +- .../SyncGetCertificateAuthority.java | 3 +- ...cateAuthorityCertificateauthorityname.java | 6 +- .../SyncGetCertificateAuthorityString.java | 6 +- .../AsyncGetCertificateRevocationList.java | 6 +- .../SyncGetCertificateRevocationList.java | 6 +- ...tionListCertificaterevocationlistname.java | 6 +- ...yncGetCertificateRevocationListString.java | 6 +- .../AsyncGetReusableConfig.java | 0 .../SyncGetReusableConfig.java | 0 ...ncGetReusableConfigReusableconfigname.java | 6 +- .../SyncGetReusableConfigString.java | 3 +- .../AsyncListCertificateAuthorities.java | 6 +- .../AsyncListCertificateAuthoritiesPaged.java | 6 +- .../SyncListCertificateAuthorities.java | 6 +- ...istCertificateAuthoritiesLocationname.java | 6 +- .../SyncListCertificateAuthoritiesString.java | 6 +- .../AsyncListCertificateRevocationLists.java | 6 +- ...ncListCertificateRevocationListsPaged.java | 6 +- .../SyncListCertificateRevocationLists.java | 6 +- ...vocationListsCertificateauthorityname.java | 6 +- ...cListCertificateRevocationListsString.java | 6 +- .../AsyncListCertificates.java | 0 .../AsyncListCertificatesPaged.java | 3 +- .../SyncListCertificates.java | 0 ...tCertificatesCertificateauthorityname.java | 6 +- .../SyncListCertificatesString.java | 3 +- .../AsyncListReusableConfigs.java | 0 .../AsyncListReusableConfigsPaged.java | 6 +- .../SyncListReusableConfigs.java | 0 .../SyncListReusableConfigsLocationname.java | 6 +- .../SyncListReusableConfigsString.java | 6 +- .../AsyncRestoreCertificateAuthority.java | 6 +- .../AsyncRestoreCertificateAuthorityLRO.java | 6 +- .../SyncRestoreCertificateAuthority.java | 6 +- ...cateAuthorityCertificateauthorityname.java | 6 +- ...SyncRestoreCertificateAuthorityString.java | 6 +- .../AsyncRevokeCertificate.java | 0 .../SyncRevokeCertificate.java | 0 .../SyncRevokeCertificateCertificatename.java | 6 +- .../SyncRevokeCertificateString.java | 3 +- ...yncScheduleDeleteCertificateAuthority.java | 6 +- ...ScheduleDeleteCertificateAuthorityLRO.java | 6 +- ...yncScheduleDeleteCertificateAuthority.java | 6 +- ...cateAuthorityCertificateauthorityname.java | 6 +- ...eduleDeleteCertificateAuthorityString.java | 6 +- .../AsyncUpdateCertificate.java | 0 .../SyncUpdateCertificate.java | 0 ...UpdateCertificateCertificateFieldmask.java | 6 +- .../AsyncUpdateCertificateAuthority.java | 6 +- .../AsyncUpdateCertificateAuthorityLRO.java | 6 +- .../SyncUpdateCertificateAuthority.java | 6 +- ...uthorityCertificateauthorityFieldmask.java | 6 +- .../AsyncUpdateCertificateRevocationList.java | 6 +- ...yncUpdateCertificateRevocationListLRO.java | 6 +- .../SyncUpdateCertificateRevocationList.java | 6 +- ...istCertificaterevocationlistFieldmask.java | 6 +- .../SyncCreateCertificate.java | 0 .../SyncCreateCertificate.java | 3 +- 504 files changed, 78552 insertions(+), 44790 deletions(-) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java (98%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java (97%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/package-info.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java (97%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java (99%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java (99%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java (98%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java (97%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java (97%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java (99%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java (99%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/location/MockLocations.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/location/MockLocationsImpl.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/iam/v1/MockIAMPolicy.java (100%) rename {owl-bot-staging/$1/google-cloud-security-private-ca => google-cloud-security-private-ca}/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java (100%) create mode 100644 grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java create mode 100644 grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java (57%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java (66%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java (63%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java (66%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java (57%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java (64%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java (75%) create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java create mode 100644 proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/Subject.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/proto/google/cloud/security/privateca/v1/resources.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1 => proto-google-cloud-security-private-ca-v1}/src/main/proto/google/cloud/security/privateca/v1/service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java (56%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java (57%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java (64%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java (56%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java (62%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java (75%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java (68%) create mode 100644 proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1 => proto-google-cloud-security-private-ca-v1beta1}/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java (85%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java (89%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java (92%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java (92%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java (92%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java (95%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java (90%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java (90%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java (90%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java (91%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java (89%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java (95%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java (92%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java (96%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java (92%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java (89%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java (89%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java (89%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java (94%) diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java similarity index 98% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java index 8671e8c9..c03eba1f 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java @@ -77,13 +77,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -4920,7 +4920,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListCertificatesPagedResponse extends AbstractPagedListResponse< - ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, + ListCertificatesRequest, + ListCertificatesResponse, + Certificate, + ListCertificatesPage, ListCertificatesFixedSizeCollection> { public static ApiFuture createAsync( @@ -4970,7 +4973,10 @@ public ApiFuture createPageAsync( public static class ListCertificatesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, + ListCertificatesRequest, + ListCertificatesResponse, + Certificate, + ListCertificatesPage, ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( @@ -4991,13 +4997,16 @@ protected ListCertificatesFixedSizeCollection createCollection( public static class ListCertificateAuthoritiesPagedResponse extends AbstractPagedListResponse< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, - CertificateAuthority, ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, + CertificateAuthority, + ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -5016,12 +5025,15 @@ private ListCertificateAuthoritiesPagedResponse(ListCertificateAuthoritiesPage p public static class ListCertificateAuthoritiesPage extends AbstractPage< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, - CertificateAuthority, ListCertificateAuthoritiesPage> { + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, + CertificateAuthority, + ListCertificateAuthoritiesPage> { private ListCertificateAuthoritiesPage( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -5035,7 +5047,8 @@ private static ListCertificateAuthoritiesPage createEmptyPage() { @Override protected ListCertificateAuthoritiesPage createPage( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -5045,7 +5058,8 @@ protected ListCertificateAuthoritiesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -5055,8 +5069,10 @@ public ApiFuture createPageAsync( public static class ListCertificateAuthoritiesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, - CertificateAuthority, ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, + CertificateAuthority, + ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { private ListCertificateAuthoritiesFixedSizeCollection( @@ -5077,7 +5093,10 @@ protected ListCertificateAuthoritiesFixedSizeCollection createCollection( public static class ListCaPoolsPagedResponse extends AbstractPagedListResponse< - ListCaPoolsRequest, ListCaPoolsResponse, CaPool, ListCaPoolsPage, + ListCaPoolsRequest, + ListCaPoolsResponse, + CaPool, + ListCaPoolsPage, ListCaPoolsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5124,7 +5143,10 @@ public ApiFuture createPageAsync( public static class ListCaPoolsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCaPoolsRequest, ListCaPoolsResponse, CaPool, ListCaPoolsPage, + ListCaPoolsRequest, + ListCaPoolsResponse, + CaPool, + ListCaPoolsPage, ListCaPoolsFixedSizeCollection> { private ListCaPoolsFixedSizeCollection(List pages, int collectionSize) { @@ -5144,13 +5166,16 @@ protected ListCaPoolsFixedSizeCollection createCollection( public static class ListCertificateRevocationListsPagedResponse extends AbstractPagedListResponse< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, - CertificateRevocationList, ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, + CertificateRevocationList, + ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -5170,12 +5195,15 @@ private ListCertificateRevocationListsPagedResponse(ListCertificateRevocationLis public static class ListCertificateRevocationListsPage extends AbstractPage< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, - CertificateRevocationList, ListCertificateRevocationListsPage> { + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, + CertificateRevocationList, + ListCertificateRevocationListsPage> { private ListCertificateRevocationListsPage( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -5189,7 +5217,8 @@ private static ListCertificateRevocationListsPage createEmptyPage() { @Override protected ListCertificateRevocationListsPage createPage( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -5199,7 +5228,8 @@ protected ListCertificateRevocationListsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -5209,8 +5239,10 @@ public ApiFuture createPageAsync( public static class ListCertificateRevocationListsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, - CertificateRevocationList, ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, + CertificateRevocationList, + ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { private ListCertificateRevocationListsFixedSizeCollection( @@ -5231,12 +5263,16 @@ protected ListCertificateRevocationListsFixedSizeCollection createCollection( public static class ListCertificateTemplatesPagedResponse extends AbstractPagedListResponse< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate, - ListCertificateTemplatesPage, ListCertificateTemplatesFixedSizeCollection> { + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, + CertificateTemplate, + ListCertificateTemplatesPage, + ListCertificateTemplatesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, CertificateTemplate> context, ApiFuture futureResponse) { @@ -5255,12 +5291,15 @@ private ListCertificateTemplatesPagedResponse(ListCertificateTemplatesPage page) public static class ListCertificateTemplatesPage extends AbstractPage< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, + CertificateTemplate, ListCertificateTemplatesPage> { private ListCertificateTemplatesPage( PageContext< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, CertificateTemplate> context, ListCertificateTemplatesResponse response) { @@ -5274,7 +5313,8 @@ private static ListCertificateTemplatesPage createEmptyPage() { @Override protected ListCertificateTemplatesPage createPage( PageContext< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, CertificateTemplate> context, ListCertificateTemplatesResponse response) { @@ -5284,7 +5324,8 @@ protected ListCertificateTemplatesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, CertificateTemplate> context, ApiFuture futureResponse) { @@ -5294,8 +5335,11 @@ public ApiFuture createPageAsync( public static class ListCertificateTemplatesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate, - ListCertificateTemplatesPage, ListCertificateTemplatesFixedSizeCollection> { + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, + CertificateTemplate, + ListCertificateTemplatesPage, + ListCertificateTemplatesFixedSizeCollection> { private ListCertificateTemplatesFixedSizeCollection( List pages, int collectionSize) { @@ -5315,7 +5359,10 @@ protected ListCertificateTemplatesFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5365,7 +5412,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java similarity index 97% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java index 1a9f0d48..4ba52422 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java @@ -34,7 +34,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.location.GetLocationRequest; @@ -60,9 +59,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -199,7 +198,8 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -312,7 +312,8 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -372,7 +373,8 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateTemplates. */ public PagedCallSettings< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -635,7 +637,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return getStubSettingsBuilder().listCertificateAuthoritiesSettings(); @@ -739,7 +742,8 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return getStubSettingsBuilder().listCertificateRevocationListsSettings(); @@ -791,7 +795,8 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateTemplates. */ public PagedCallSettings.Builder< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return getStubSettingsBuilder().listCertificateTemplatesSettings(); diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/gapic_metadata.json diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/package-info.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java similarity index 97% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java index a9058c91..0d7df8d0 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java @@ -121,9 +121,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -189,7 +189,8 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateAuthoritySettings; private final PagedCallSettings< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings @@ -223,7 +224,8 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateRevocationListSettings; private final PagedCallSettings< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings @@ -243,7 +245,8 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateTemplateSettings; private final PagedCallSettings< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings; private final UnaryCallSettings @@ -301,11 +304,13 @@ public Iterable extractResources(ListCertificatesResponse payload) }; private static final PagedListDescriptor< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority>() { @Override public String emptyToken() { @@ -384,11 +389,13 @@ public Iterable extractResources(ListCaPoolsResponse payload) { }; private static final PagedListDescriptor< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList>() { @Override public String emptyToken() { @@ -434,7 +441,8 @@ public Iterable extractResources( ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> LIST_CERTIFICATE_TEMPLATES_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, CertificateTemplate>() { @Override public String emptyToken() { @@ -532,11 +540,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -546,7 +556,8 @@ public ApiFuture getFuturePagedResponse ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> pageContext = PageContext.create( @@ -574,11 +585,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -590,7 +603,8 @@ public ApiFuture getFuturePagedResp ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> pageContext = PageContext.create( @@ -604,11 +618,13 @@ public ApiFuture getFuturePagedResp }; private static final PagedListResponseFactory< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> LIST_CERTIFICATE_TEMPLATES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -618,7 +634,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, CertificateTemplate> pageContext = PageContext.create( @@ -738,7 +755,8 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -840,7 +858,8 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -892,7 +911,8 @@ public UnaryCallSettings fetchCaCerts /** Returns the object with the settings used for calls to listCertificateTemplates. */ public PagedCallSettings< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return listCertificateTemplatesSettings; @@ -1158,7 +1178,8 @@ public static class Builder private final UnaryCallSettings.Builder getCertificateAuthoritySettings; private final PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings.Builder @@ -1195,7 +1216,8 @@ public static class Builder GetCertificateRevocationListRequest, CertificateRevocationList> getCertificateRevocationListSettings; private final PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings.Builder @@ -1216,7 +1238,8 @@ public static class Builder private final UnaryCallSettings.Builder getCertificateTemplateSettings; private final PagedCallSettings.Builder< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings; private final UnaryCallSettings.Builder @@ -2141,7 +2164,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -2257,7 +2281,8 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -2315,7 +2340,8 @@ public UnaryCallSettings.Builder deleteCaPoolSet /** Returns the builder for the settings used for calls to listCertificateTemplates. */ public PagedCallSettings.Builder< - ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, + ListCertificateTemplatesRequest, + ListCertificateTemplatesResponse, ListCertificateTemplatesPagedResponse> listCertificateTemplatesSettings() { return listCertificateTemplatesSettings; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceCallableFactory.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java similarity index 99% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java index 764b09fc..9a9b10db 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/GrpcCertificateAuthorityServiceStub.java @@ -88,7 +88,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java similarity index 99% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java index 3c2d54de..dacf5821 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/HttpJsonCertificateAuthorityServiceStub.java @@ -35,7 +35,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java similarity index 98% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java index 8b1c1334..59c72359 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java @@ -69,13 +69,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -3278,7 +3278,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListCertificatesPagedResponse extends AbstractPagedListResponse< - ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, + ListCertificatesRequest, + ListCertificatesResponse, + Certificate, + ListCertificatesPage, ListCertificatesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3328,7 +3331,10 @@ public ApiFuture createPageAsync( public static class ListCertificatesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage, + ListCertificatesRequest, + ListCertificatesResponse, + Certificate, + ListCertificatesPage, ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( @@ -3349,13 +3355,16 @@ protected ListCertificatesFixedSizeCollection createCollection( public static class ListCertificateAuthoritiesPagedResponse extends AbstractPagedListResponse< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, - CertificateAuthority, ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, + CertificateAuthority, + ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -3374,12 +3383,15 @@ private ListCertificateAuthoritiesPagedResponse(ListCertificateAuthoritiesPage p public static class ListCertificateAuthoritiesPage extends AbstractPage< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, - CertificateAuthority, ListCertificateAuthoritiesPage> { + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, + CertificateAuthority, + ListCertificateAuthoritiesPage> { private ListCertificateAuthoritiesPage( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -3393,7 +3405,8 @@ private static ListCertificateAuthoritiesPage createEmptyPage() { @Override protected ListCertificateAuthoritiesPage createPage( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ListCertificateAuthoritiesResponse response) { @@ -3403,7 +3416,8 @@ protected ListCertificateAuthoritiesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> context, ApiFuture futureResponse) { @@ -3413,8 +3427,10 @@ public ApiFuture createPageAsync( public static class ListCertificateAuthoritiesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, - CertificateAuthority, ListCertificateAuthoritiesPage, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, + CertificateAuthority, + ListCertificateAuthoritiesPage, ListCertificateAuthoritiesFixedSizeCollection> { private ListCertificateAuthoritiesFixedSizeCollection( @@ -3435,13 +3451,16 @@ protected ListCertificateAuthoritiesFixedSizeCollection createCollection( public static class ListCertificateRevocationListsPagedResponse extends AbstractPagedListResponse< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, - CertificateRevocationList, ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, + CertificateRevocationList, + ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -3461,12 +3480,15 @@ private ListCertificateRevocationListsPagedResponse(ListCertificateRevocationLis public static class ListCertificateRevocationListsPage extends AbstractPage< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, - CertificateRevocationList, ListCertificateRevocationListsPage> { + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, + CertificateRevocationList, + ListCertificateRevocationListsPage> { private ListCertificateRevocationListsPage( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -3480,7 +3502,8 @@ private static ListCertificateRevocationListsPage createEmptyPage() { @Override protected ListCertificateRevocationListsPage createPage( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ListCertificateRevocationListsResponse response) { @@ -3490,7 +3513,8 @@ protected ListCertificateRevocationListsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> context, ApiFuture futureResponse) { @@ -3500,8 +3524,10 @@ public ApiFuture createPageAsync( public static class ListCertificateRevocationListsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, - CertificateRevocationList, ListCertificateRevocationListsPage, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, + CertificateRevocationList, + ListCertificateRevocationListsPage, ListCertificateRevocationListsFixedSizeCollection> { private ListCertificateRevocationListsFixedSizeCollection( @@ -3522,8 +3548,11 @@ protected ListCertificateRevocationListsFixedSizeCollection createCollection( public static class ListReusableConfigsPagedResponse extends AbstractPagedListResponse< - ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig, - ListReusableConfigsPage, ListReusableConfigsFixedSizeCollection> { + ListReusableConfigsRequest, + ListReusableConfigsResponse, + ReusableConfig, + ListReusableConfigsPage, + ListReusableConfigsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3544,7 +3573,9 @@ private ListReusableConfigsPagedResponse(ListReusableConfigsPage page) { public static class ListReusableConfigsPage extends AbstractPage< - ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig, + ListReusableConfigsRequest, + ListReusableConfigsResponse, + ReusableConfig, ListReusableConfigsPage> { private ListReusableConfigsPage( @@ -3577,8 +3608,11 @@ public ApiFuture createPageAsync( public static class ListReusableConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListReusableConfigsRequest, ListReusableConfigsResponse, ReusableConfig, - ListReusableConfigsPage, ListReusableConfigsFixedSizeCollection> { + ListReusableConfigsRequest, + ListReusableConfigsResponse, + ReusableConfig, + ListReusableConfigsPage, + ListReusableConfigsFixedSizeCollection> { private ListReusableConfigsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java similarity index 97% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java index fb6988f5..ca948f34 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; @@ -48,9 +47,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -188,7 +187,8 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -249,7 +249,8 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return ((CertificateAuthorityServiceStubSettings) getStubSettings()) @@ -498,7 +499,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return getStubSettingsBuilder().listCertificateAuthoritiesSettings(); @@ -555,7 +557,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return getStubSettingsBuilder().listCertificateRevocationListsSettings(); @@ -582,7 +585,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listReusableConfigs. */ public PagedCallSettings.Builder< - ListReusableConfigsRequest, ListReusableConfigsResponse, + ListReusableConfigsRequest, + ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings() { return getStubSettingsBuilder().listReusableConfigsSettings(); diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/package-info.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java similarity index 97% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java index d7287291..8531f27a 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java @@ -97,9 +97,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -166,7 +166,8 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateAuthoritySettings; private final PagedCallSettings< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings @@ -187,7 +188,8 @@ public class CertificateAuthorityServiceStubSettings private final UnaryCallSettings getCertificateRevocationListSettings; private final PagedCallSettings< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings @@ -242,11 +244,13 @@ public Iterable extractResources(ListCertificatesResponse payload) }; private static final PagedListDescriptor< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority>() { @Override public String emptyToken() { @@ -289,11 +293,13 @@ public Iterable extractResources( }; private static final PagedListDescriptor< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_DESC = new PagedListDescriptor< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList>() { @Override public String emptyToken() { @@ -395,11 +401,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> LIST_CERTIFICATE_AUTHORITIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -409,7 +417,8 @@ public ApiFuture getFuturePagedResponse ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, CertificateAuthority> pageContext = PageContext.create( @@ -420,11 +429,13 @@ public ApiFuture getFuturePagedResponse }; private static final PagedListResponseFactory< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> LIST_CERTIFICATE_REVOCATION_LISTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -436,7 +447,8 @@ public ApiFuture getFuturePagedResp ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, CertificateRevocationList> pageContext = PageContext.create( @@ -453,7 +465,8 @@ public ApiFuture getFuturePagedResp ListReusableConfigsRequest, ListReusableConfigsResponse, ListReusableConfigsPagedResponse> LIST_REUSABLE_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< - ListReusableConfigsRequest, ListReusableConfigsResponse, + ListReusableConfigsRequest, + ListReusableConfigsResponse, ListReusableConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -563,7 +576,8 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -616,7 +630,8 @@ public UnaryCallSettings updateCertificat /** Returns the object with the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -844,7 +859,8 @@ public static class Builder private final UnaryCallSettings.Builder getCertificateAuthoritySettings; private final PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings; private final UnaryCallSettings.Builder @@ -866,7 +882,8 @@ public static class Builder GetCertificateRevocationListRequest, CertificateRevocationList> getCertificateRevocationListSettings; private final PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings; private final UnaryCallSettings.Builder @@ -877,7 +894,8 @@ public static class Builder private final UnaryCallSettings.Builder getReusableConfigSettings; private final PagedCallSettings.Builder< - ListReusableConfigsRequest, ListReusableConfigsResponse, + ListReusableConfigsRequest, + ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings; private static final ImmutableMap> @@ -1502,7 +1520,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateAuthorities. */ public PagedCallSettings.Builder< - ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, + ListCertificateAuthoritiesRequest, + ListCertificateAuthoritiesResponse, ListCertificateAuthoritiesPagedResponse> listCertificateAuthoritiesSettings() { return listCertificateAuthoritiesSettings; @@ -1565,7 +1584,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listCertificateRevocationLists. */ public PagedCallSettings.Builder< - ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, + ListCertificateRevocationListsRequest, + ListCertificateRevocationListsResponse, ListCertificateRevocationListsPagedResponse> listCertificateRevocationListsSettings() { return listCertificateRevocationListsSettings; @@ -1594,7 +1614,8 @@ public UnaryCallSettings.Builder getCertific /** Returns the builder for the settings used for calls to listReusableConfigs. */ public PagedCallSettings.Builder< - ListReusableConfigsRequest, ListReusableConfigsResponse, + ListReusableConfigsRequest, + ListReusableConfigsResponse, ListReusableConfigsPagedResponse> listReusableConfigsSettings() { return listReusableConfigsSettings; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceCallableFactory.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java similarity index 99% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java index b3b7e8af..4ac5bb5b 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/GrpcCertificateAuthorityServiceStub.java @@ -65,7 +65,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceCallableFactory.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java similarity index 99% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java rename to google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java index 8125890d..ccd015e3 100644 --- a/owl-bot-staging/$1/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java +++ b/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/HttpJsonCertificateAuthorityServiceStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocations.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/location/MockLocationsImpl.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityService.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/MockCertificateAuthorityServiceImpl.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClientTest.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityService.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java b/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java rename to google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1beta1/MockCertificateAuthorityServiceImpl.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java b/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java rename to google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java b/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/$1/google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java rename to google-cloud-security-private-ca/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java diff --git a/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java b/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java new file mode 100644 index 00000000..e8918310 --- /dev/null +++ b/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java @@ -0,0 +1,3935 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+ * certificate authorities and issued certificates.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/security/privateca/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CertificateAuthorityServiceGrpc { + + private CertificateAuthorityServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.security.privateca.v1.CertificateAuthorityService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getCreateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", + requestType = com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getCreateCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getCreateCertificateMethod; + if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateMethod = + getCreateCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CreateCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "CreateCertificate")) + .build(); + } + } + } + return getCreateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getGetCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificate", + requestType = com.google.cloud.security.privateca.v1.GetCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getGetCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getGetCertificateMethod; + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateMethod = + getGetCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) + .build(); + } + } + } + return getGetCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1.ListCertificatesResponse> + getListCertificatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificates", + requestType = com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1.ListCertificatesResponse> + getListCertificatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1.ListCertificatesResponse> + getListCertificatesMethod; + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificatesMethod = + getListCertificatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificates")) + .build(); + } + } + } + return getListCertificatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getRevokeCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", + requestType = com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getRevokeCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getRevokeCertificateMethod; + if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getRevokeCertificateMethod = + CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = + getRevokeCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "RevokeCertificate")) + .build(); + } + } + } + return getRevokeCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getUpdateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getUpdateCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate> + getUpdateCertificateMethod; + if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = + getUpdateCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificate")) + .build(); + } + } + } + return getUpdateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getActivateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getActivateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getActivateCertificateAuthorityMethod; + if ((getActivateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getActivateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = + getActivateCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .ActivateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ActivateCertificateAuthority")) + .build(); + } + } + } + return getActivateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getCreateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getCreateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getCreateCertificateAuthorityMethod; + if ((getCreateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = + getCreateCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .CreateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "CreateCertificateAuthority")) + .build(); + } + } + } + return getCreateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDisableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDisableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDisableCertificateAuthorityMethod; + if ((getDisableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDisableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = + getDisableCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .DisableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "DisableCertificateAuthority")) + .build(); + } + } + } + return getDisableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getEnableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getEnableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getEnableCertificateAuthorityMethod; + if ((getEnableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getEnableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = + getEnableCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .EnableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "EnableCertificateAuthority")) + .build(); + } + } + } + return getEnableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> + getFetchCertificateAuthorityCsrMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", + requestType = + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, + responseType = + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> + getFetchCertificateAuthorityCsrMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> + getFetchCertificateAuthorityCsrMethod; + if ((getFetchCertificateAuthorityCsrMethod = + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getFetchCertificateAuthorityCsrMethod = + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) + == null) { + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = + getFetchCertificateAuthorityCsrMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .FetchCertificateAuthorityCsrRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .FetchCertificateAuthorityCsrResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "FetchCertificateAuthorityCsr")) + .build(); + } + } + } + return getFetchCertificateAuthorityCsrMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1.CertificateAuthority> + getGetCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, + responseType = com.google.cloud.security.privateca.v1.CertificateAuthority.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1.CertificateAuthority> + getGetCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1.CertificateAuthority> + getGetCertificateAuthorityMethod; + if ((getGetCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = + getGetCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CertificateAuthority + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "GetCertificateAuthority")) + .build(); + } + } + } + return getGetCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> + getListCertificateAuthoritiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", + requestType = com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, + responseType = + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> + getListCertificateAuthoritiesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> + getListCertificateAuthoritiesMethod; + if ((getListCertificateAuthoritiesMethod = + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateAuthoritiesMethod = + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = + getListCertificateAuthoritiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .ListCertificateAuthoritiesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .ListCertificateAuthoritiesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificateAuthorities")) + .build(); + } + } + } + return getListCertificateAuthoritiesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUndeleteCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUndeleteCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUndeleteCertificateAuthorityMethod; + if ((getUndeleteCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUndeleteCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod = + getUndeleteCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UndeleteCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .UndeleteCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UndeleteCertificateAuthority")) + .build(); + } + } + } + return getUndeleteCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDeleteCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDeleteCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDeleteCertificateAuthorityMethod; + if ((getDeleteCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDeleteCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod = + getDeleteCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .DeleteCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "DeleteCertificateAuthority")) + .build(); + } + } + } + return getDeleteCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUpdateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUpdateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUpdateCertificateAuthorityMethod; + if ((getUpdateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = + getUpdateCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .UpdateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificateAuthority")) + .build(); + } + } + } + return getUpdateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCaPoolRequest, + com.google.longrunning.Operation> + getCreateCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCaPool", + requestType = com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCaPoolRequest, + com.google.longrunning.Operation> + getCreateCaPoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCaPoolRequest, + com.google.longrunning.Operation> + getCreateCaPoolMethod; + if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) + == null) { + CertificateAuthorityServiceGrpc.getCreateCaPoolMethod = + getCreateCaPoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCaPool")) + .build(); + } + } + } + return getCreateCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, + com.google.longrunning.Operation> + getUpdateCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCaPool", + requestType = com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, + com.google.longrunning.Operation> + getUpdateCaPoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, + com.google.longrunning.Operation> + getUpdateCaPoolMethod; + if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod = + getUpdateCaPoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCaPool")) + .build(); + } + } + } + return getUpdateCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCaPoolRequest, + com.google.cloud.security.privateca.v1.CaPool> + getGetCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCaPool", + requestType = com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, + responseType = com.google.cloud.security.privateca.v1.CaPool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCaPoolRequest, + com.google.cloud.security.privateca.v1.CaPool> + getGetCaPoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCaPoolRequest, + com.google.cloud.security.privateca.v1.CaPool> + getGetCaPoolMethod; + if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { + CertificateAuthorityServiceGrpc.getGetCaPoolMethod = + getGetCaPoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCaPoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("GetCaPool")) + .build(); + } + } + } + return getGetCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCaPoolsRequest, + com.google.cloud.security.privateca.v1.ListCaPoolsResponse> + getListCaPoolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCaPools", + requestType = com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCaPoolsRequest, + com.google.cloud.security.privateca.v1.ListCaPoolsResponse> + getListCaPoolsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCaPoolsRequest, + com.google.cloud.security.privateca.v1.ListCaPoolsResponse> + getListCaPoolsMethod; + if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { + CertificateAuthorityServiceGrpc.getListCaPoolsMethod = + getListCaPoolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCaPools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCaPoolsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("ListCaPools")) + .build(); + } + } + } + return getListCaPoolsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, + com.google.longrunning.Operation> + getDeleteCaPoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCaPool", + requestType = com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, + com.google.longrunning.Operation> + getDeleteCaPoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, + com.google.longrunning.Operation> + getDeleteCaPoolMethod; + if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) + == null) { + CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod = + getDeleteCaPoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCaPool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCaPool")) + .build(); + } + } + } + return getDeleteCaPoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.FetchCaCertsRequest, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse> + getFetchCaCertsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchCaCerts", + requestType = com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, + responseType = com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.FetchCaCertsRequest, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse> + getFetchCaCertsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.FetchCaCertsRequest, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse> + getFetchCaCertsMethod; + if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) + == null) { + CertificateAuthorityServiceGrpc.getFetchCaCertsMethod = + getFetchCaCertsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCaCerts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCaCerts")) + .build(); + } + } + } + return getFetchCaCertsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1.CertificateRevocationList> + getGetCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", + requestType = + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, + responseType = com.google.cloud.security.privateca.v1.CertificateRevocationList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1.CertificateRevocationList> + getGetCertificateRevocationListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1.CertificateRevocationList> + getGetCertificateRevocationListMethod; + if ((getGetCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = + getGetCertificateRevocationListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .GetCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CertificateRevocationList + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "GetCertificateRevocationList")) + .build(); + } + } + } + return getGetCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> + getListCertificateRevocationListsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", + requestType = + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, + responseType = + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> + getListCertificateRevocationListsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> + getListCertificateRevocationListsMethod; + if ((getListCertificateRevocationListsMethod = + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateRevocationListsMethod = + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = + getListCertificateRevocationListsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .ListCertificateRevocationListsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .ListCertificateRevocationListsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificateRevocationLists")) + .build(); + } + } + } + return getListCertificateRevocationListsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation> + getUpdateCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", + requestType = + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation> + getUpdateCertificateRevocationListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation> + getUpdateCertificateRevocationListMethod; + if ((getUpdateCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = + getUpdateCertificateRevocationListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .UpdateCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificateRevocationList")) + .build(); + } + } + } + return getUpdateCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, + com.google.longrunning.Operation> + getCreateCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, + com.google.longrunning.Operation> + getCreateCertificateTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, + com.google.longrunning.Operation> + getCreateCertificateTemplateMethod; + if ((getCreateCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) + == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod = + getCreateCertificateTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .CreateCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "CreateCertificateTemplate")) + .build(); + } + } + } + return getCreateCertificateTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, + com.google.longrunning.Operation> + getDeleteCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, + com.google.longrunning.Operation> + getDeleteCertificateTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, + com.google.longrunning.Operation> + getDeleteCertificateTemplateMethod; + if ((getDeleteCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDeleteCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) + == null) { + CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod = + getDeleteCertificateTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .DeleteCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "DeleteCertificateTemplate")) + .build(); + } + } + } + return getDeleteCertificateTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, + com.google.cloud.security.privateca.v1.CertificateTemplate> + getGetCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, + responseType = com.google.cloud.security.privateca.v1.CertificateTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, + com.google.cloud.security.privateca.v1.CertificateTemplate> + getGetCertificateTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, + com.google.cloud.security.privateca.v1.CertificateTemplate> + getGetCertificateTemplateMethod; + if ((getGetCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod = + getGetCertificateTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.CertificateTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "GetCertificateTemplate")) + .build(); + } + } + } + return getGetCertificateTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> + getListCertificateTemplatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateTemplates", + requestType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, + responseType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> + getListCertificateTemplatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> + getListCertificateTemplatesMethod; + if ((getListCertificateTemplatesMethod = + CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateTemplatesMethod = + CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod = + getListCertificateTemplatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCertificateTemplates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .ListCertificateTemplatesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificateTemplates")) + .build(); + } + } + } + return getListCertificateTemplatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, + com.google.longrunning.Operation> + getUpdateCertificateTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateTemplate", + requestType = com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, + com.google.longrunning.Operation> + getUpdateCertificateTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, + com.google.longrunning.Operation> + getUpdateCertificateTemplateMethod; + if ((getUpdateCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateTemplateMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod = + getUpdateCertificateTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCertificateTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1 + .UpdateCertificateTemplateRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificateTemplate")) + .build(); + } + } + } + return getUpdateCertificateTemplateMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CertificateAuthorityServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CertificateAuthorityServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public abstract static class CertificateAuthorityServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCertificate( + com.google.cloud.security.privateca.v1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void getCertificate( + com.google.cloud.security.privateca.v1.GetCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void listCertificates( + com.google.cloud.security.privateca.v1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void revokeCertificate( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevokeCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getActivateCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDisableCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnableCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchCertificateAuthorityCsrMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificateAuthoritiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public void undeleteCertificateAuthority( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void deleteCertificateAuthority( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCaPool( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCaPoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void updateCaPool( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCaPoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void getCaPool( + com.google.cloud.security.privateca.v1.GetCaPoolRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCaPoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void listCaPools( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCaPoolsMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void deleteCaPool( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCaPoolMethod(), responseObserver); + } + + /** + * + * + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void fetchCaCerts( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchCaCertsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.CertificateRevocationList> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateRevocationListMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificateRevocationListsMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateRevocationListMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public void createCertificateTemplate( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCertificateTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void deleteCertificateTemplate( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCertificateTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void getCertificateTemplate( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void listCertificateTemplates( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificateTemplatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void updateCertificateTemplate( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateTemplateMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_CREATE_CERTIFICATE))) + .addMethod( + getGetCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_GET_CERTIFICATE))) + .addMethod( + getListCertificatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1.ListCertificatesResponse>( + this, METHODID_LIST_CERTIFICATES))) + .addMethod( + getRevokeCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_REVOKE_CERTIFICATE))) + .addMethod( + getUpdateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1.Certificate>( + this, METHODID_UPDATE_CERTIFICATE))) + .addMethod( + getActivateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getCreateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getDisableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getEnableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getFetchCertificateAuthorityCsrMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse>( + this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) + .addMethod( + getGetCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1.CertificateAuthority>( + this, METHODID_GET_CERTIFICATE_AUTHORITY))) + .addMethod( + getListCertificateAuthoritiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse>( + this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) + .addMethod( + getUndeleteCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_CERTIFICATE_AUTHORITY))) + .addMethod( + getDeleteCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_AUTHORITY))) + .addMethod( + getUpdateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getCreateCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCaPoolRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CA_POOL))) + .addMethod( + getUpdateCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CA_POOL))) + .addMethod( + getGetCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCaPoolRequest, + com.google.cloud.security.privateca.v1.CaPool>(this, METHODID_GET_CA_POOL))) + .addMethod( + getListCaPoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCaPoolsRequest, + com.google.cloud.security.privateca.v1.ListCaPoolsResponse>( + this, METHODID_LIST_CA_POOLS))) + .addMethod( + getDeleteCaPoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CA_POOL))) + .addMethod( + getFetchCaCertsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.FetchCaCertsRequest, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse>( + this, METHODID_FETCH_CA_CERTS))) + .addMethod( + getGetCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1.CertificateRevocationList>( + this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getListCertificateRevocationListsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1 + .ListCertificateRevocationListsResponse>( + this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) + .addMethod( + getUpdateCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getCreateCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_TEMPLATE))) + .addMethod( + getDeleteCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_TEMPLATE))) + .addMethod( + getGetCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, + com.google.cloud.security.privateca.v1.CertificateTemplate>( + this, METHODID_GET_CERTIFICATE_TEMPLATE))) + .addMethod( + getListCertificateTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse>( + this, METHODID_LIST_CERTIFICATE_TEMPLATES))) + .addMethod( + getUpdateCertificateTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_TEMPLATE))) + .build(); + } + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CertificateAuthorityServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCertificate( + com.google.cloud.security.privateca.v1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void getCertificate( + com.google.cloud.security.privateca.v1.GetCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void listCertificates( + com.google.cloud.security.privateca.v1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public void revokeCertificate( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public void undeleteCertificateAuthority( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void deleteCertificateAuthority( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void createCaPool( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void updateCaPool( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void getCaPool( + com.google.cloud.security.privateca.v1.GetCaPoolRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void listCaPools( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void deleteCaPool( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public void fetchCaCerts( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.CertificateRevocationList> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public void createCertificateTemplate( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void deleteCertificateTemplate( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void getCertificateTemplate( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void listCertificateTemplates( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public void updateCertificateTemplate( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CertificateAuthorityServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate createCertificate( + com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate getCertificate( + com.google.cloud.security.privateca.v1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificatesResponse listCertificates( + com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate revokeCertificate( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public com.google.cloud.security.privateca.v1.Certificate updateCertificate( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.longrunning.Operation activateCertificateAuthority( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateAuthority( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation disableCertificateAuthority( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation enableCertificateAuthority( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse + listCertificateAuthorities( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public com.google.longrunning.Operation undeleteCertificateAuthority( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateAuthority( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateAuthority( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.longrunning.Operation createCaPool( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCaPoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.longrunning.Operation updateCaPool( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCaPoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CaPool getCaPool( + com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCaPoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCaPoolsResponse listCaPools( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCaPoolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.longrunning.Operation deleteCaPool( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCaPoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchCaCertsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CertificateRevocationList + getCertificateRevocationList( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + listCertificateRevocationLists( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateRevocationList( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateTemplate( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateTemplate( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse + listCertificateTemplates( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateTemplate( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateTemplateMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CertificateAuthorityServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
+     * [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.Certificate> + createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.Certificate> + getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.ListCertificatesResponse> + listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.Certificate> + revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.Certificate> + updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
+     * the parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + activateCertificateAuthority( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCertificateAuthority( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + disableCertificateAuthority( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + enableCertificateAuthority( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * that is in state
+     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
+     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
+     * CSR must then be signed by the desired parent Certificate Authority, which
+     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse> + fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.CertificateAuthority> + getCertificateAuthority( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse> + listCertificateAuthorities( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeleteCertificateAuthority( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCertificateAuthority( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCertificateAuthority( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.CaPool> + getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.ListCaPoolsResponse> + listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
+     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
+     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.FetchCaCertsResponse> + fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.CertificateRevocationList> + getCertificateRevocationList( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse> + listCertificateRevocationLists( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCertificateRevocationList( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCertificateTemplate( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCertificateTemplate( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.CertificateTemplate> + getCertificateTemplate( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse> + listCertificateTemplates( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCertificateTemplate( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CERTIFICATE = 0; + private static final int METHODID_GET_CERTIFICATE = 1; + private static final int METHODID_LIST_CERTIFICATES = 2; + private static final int METHODID_REVOKE_CERTIFICATE = 3; + private static final int METHODID_UPDATE_CERTIFICATE = 4; + private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; + private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; + private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; + private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; + private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; + private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; + private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; + private static final int METHODID_UNDELETE_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_DELETE_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; + private static final int METHODID_CREATE_CA_POOL = 15; + private static final int METHODID_UPDATE_CA_POOL = 16; + private static final int METHODID_GET_CA_POOL = 17; + private static final int METHODID_LIST_CA_POOLS = 18; + private static final int METHODID_DELETE_CA_POOL = 19; + private static final int METHODID_FETCH_CA_CERTS = 20; + private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 21; + private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 22; + private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 23; + private static final int METHODID_CREATE_CERTIFICATE_TEMPLATE = 24; + private static final int METHODID_DELETE_CERTIFICATE_TEMPLATE = 25; + private static final int METHODID_GET_CERTIFICATE_TEMPLATE = 26; + private static final int METHODID_LIST_CERTIFICATE_TEMPLATES = 27; + private static final int METHODID_UPDATE_CERTIFICATE_TEMPLATE = 28; + + 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 CertificateAuthorityServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CERTIFICATE: + serviceImpl.createCertificate( + (com.google.cloud.security.privateca.v1.CreateCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CERTIFICATE: + serviceImpl.getCertificate( + (com.google.cloud.security.privateca.v1.GetCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CERTIFICATES: + serviceImpl.listCertificates( + (com.google.cloud.security.privateca.v1.ListCertificatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificatesResponse>) + responseObserver); + break; + case METHODID_REVOKE_CERTIFICATE: + serviceImpl.revokeCertificate( + (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE: + serviceImpl.updateCertificate( + (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: + serviceImpl.activateCertificateAuthority( + (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_AUTHORITY: + serviceImpl.createCertificateAuthority( + (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISABLE_CERTIFICATE_AUTHORITY: + serviceImpl.disableCertificateAuthority( + (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENABLE_CERTIFICATE_AUTHORITY: + serviceImpl.enableCertificateAuthority( + (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: + serviceImpl.fetchCertificateAuthorityCsr( + (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse>) + responseObserver); + break; + case METHODID_GET_CERTIFICATE_AUTHORITY: + serviceImpl.getCertificateAuthority( + (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.CertificateAuthority>) + responseObserver); + break; + case METHODID_LIST_CERTIFICATE_AUTHORITIES: + serviceImpl.listCertificateAuthorities( + (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse>) + responseObserver); + break; + case METHODID_UNDELETE_CERTIFICATE_AUTHORITY: + serviceImpl.undeleteCertificateAuthority( + (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_AUTHORITY: + serviceImpl.deleteCertificateAuthority( + (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_AUTHORITY: + serviceImpl.updateCertificateAuthority( + (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CA_POOL: + serviceImpl.createCaPool( + (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CA_POOL: + serviceImpl.updateCaPool( + (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CA_POOL: + serviceImpl.getCaPool( + (com.google.cloud.security.privateca.v1.GetCaPoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CA_POOLS: + serviceImpl.listCaPools( + (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCaPoolsResponse>) + responseObserver); + break; + case METHODID_DELETE_CA_POOL: + serviceImpl.deleteCaPool( + (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_CA_CERTS: + serviceImpl.fetchCaCerts( + (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.FetchCaCertsResponse>) + responseObserver); + break; + case METHODID_GET_CERTIFICATE_REVOCATION_LIST: + serviceImpl.getCertificateRevocationList( + (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.CertificateRevocationList>) + responseObserver); + break; + case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: + serviceImpl.listCertificateRevocationLists( + (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1 + .ListCertificateRevocationListsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: + serviceImpl.updateCertificateRevocationList( + (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_TEMPLATE: + serviceImpl.createCertificateTemplate( + (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_TEMPLATE: + serviceImpl.deleteCertificateTemplate( + (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_TEMPLATE: + serviceImpl.getCertificateTemplate( + (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.CertificateTemplate>) + responseObserver); + break; + case METHODID_LIST_CERTIFICATE_TEMPLATES: + serviceImpl.listCertificateTemplates( + (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse>) + responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_TEMPLATE: + serviceImpl.updateCertificateTemplate( + (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) 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 CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CertificateAuthorityServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CertificateAuthorityService"); + } + } + + private static final class CertificateAuthorityServiceFileDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier { + CertificateAuthorityServiceFileDescriptorSupplier() {} + } + + private static final class CertificateAuthorityServiceMethodDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) + .addMethod(getCreateCertificateMethod()) + .addMethod(getGetCertificateMethod()) + .addMethod(getListCertificatesMethod()) + .addMethod(getRevokeCertificateMethod()) + .addMethod(getUpdateCertificateMethod()) + .addMethod(getActivateCertificateAuthorityMethod()) + .addMethod(getCreateCertificateAuthorityMethod()) + .addMethod(getDisableCertificateAuthorityMethod()) + .addMethod(getEnableCertificateAuthorityMethod()) + .addMethod(getFetchCertificateAuthorityCsrMethod()) + .addMethod(getGetCertificateAuthorityMethod()) + .addMethod(getListCertificateAuthoritiesMethod()) + .addMethod(getUndeleteCertificateAuthorityMethod()) + .addMethod(getDeleteCertificateAuthorityMethod()) + .addMethod(getUpdateCertificateAuthorityMethod()) + .addMethod(getCreateCaPoolMethod()) + .addMethod(getUpdateCaPoolMethod()) + .addMethod(getGetCaPoolMethod()) + .addMethod(getListCaPoolsMethod()) + .addMethod(getDeleteCaPoolMethod()) + .addMethod(getFetchCaCertsMethod()) + .addMethod(getGetCertificateRevocationListMethod()) + .addMethod(getListCertificateRevocationListsMethod()) + .addMethod(getUpdateCertificateRevocationListMethod()) + .addMethod(getCreateCertificateTemplateMethod()) + .addMethod(getDeleteCertificateTemplateMethod()) + .addMethod(getGetCertificateTemplateMethod()) + .addMethod(getListCertificateTemplatesMethod()) + .addMethod(getUpdateCertificateTemplateMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java b/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java new file mode 100644 index 00000000..111cc56c --- /dev/null +++ b/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java @@ -0,0 +1,2914 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.security.privateca.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+ * certificate authorities and issued certificates.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/security/privateca/v1beta1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CertificateAuthorityServiceGrpc { + + private CertificateAuthorityServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.security.privateca.v1beta1.CertificateAuthorityService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getCreateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getCreateCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getCreateCertificateMethod; + if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateMethod = + getCreateCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "CreateCertificate")) + .build(); + } + } + } + return getCreateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getGetCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getGetCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getGetCertificateMethod; + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateMethod = + getGetCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) + .build(); + } + } + } + return getGetCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> + getListCertificatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificates", + requestType = com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> + getListCertificatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> + getListCertificatesMethod; + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificatesMethod = + getListCertificatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificates")) + .build(); + } + } + } + return getListCertificatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getRevokeCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getRevokeCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getRevokeCertificateMethod; + if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getRevokeCertificateMethod = + CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = + getRevokeCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "RevokeCertificate")) + .build(); + } + } + } + return getRevokeCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getUpdateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", + requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getUpdateCertificateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate> + getUpdateCertificateMethod; + if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = + getUpdateCertificateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.Certificate + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificate")) + .build(); + } + } + } + return getUpdateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getActivateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getActivateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getActivateCertificateAuthorityMethod; + if ((getActivateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getActivateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = + getActivateCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ActivateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ActivateCertificateAuthority")) + .build(); + } + } + } + return getActivateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getCreateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getCreateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getCreateCertificateAuthorityMethod; + if ((getCreateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getCreateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = + getCreateCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .CreateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "CreateCertificateAuthority")) + .build(); + } + } + } + return getCreateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDisableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDisableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getDisableCertificateAuthorityMethod; + if ((getDisableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getDisableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = + getDisableCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .DisableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "DisableCertificateAuthority")) + .build(); + } + } + } + return getDisableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getEnableCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getEnableCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation> + getEnableCertificateAuthorityMethod; + if ((getEnableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getEnableCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = + getEnableCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .EnableCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "EnableCertificateAuthority")) + .build(); + } + } + } + return getEnableCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> + getFetchCertificateAuthorityCsrMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", + requestType = + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, + responseType = + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> + getFetchCertificateAuthorityCsrMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> + getFetchCertificateAuthorityCsrMethod; + if ((getFetchCertificateAuthorityCsrMethod = + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getFetchCertificateAuthorityCsrMethod = + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) + == null) { + CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = + getFetchCertificateAuthorityCsrMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "FetchCertificateAuthorityCsr")) + .build(); + } + } + } + return getFetchCertificateAuthorityCsrMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + getGetCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + getGetCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + getGetCertificateAuthorityMethod; + if ((getGetCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = + getGetCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .GetCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "GetCertificateAuthority")) + .build(); + } + } + } + return getGetCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> + getListCertificateAuthoritiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", + requestType = + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, + responseType = + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> + getListCertificateAuthoritiesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> + getListCertificateAuthoritiesMethod; + if ((getListCertificateAuthoritiesMethod = + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateAuthoritiesMethod = + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = + getListCertificateAuthoritiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ListCertificateAuthoritiesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ListCertificateAuthoritiesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificateAuthorities")) + .build(); + } + } + } + return getListCertificateAuthoritiesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, + com.google.longrunning.Operation> + getRestoreCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, + com.google.longrunning.Operation> + getRestoreCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, + com.google.longrunning.Operation> + getRestoreCertificateAuthorityMethod; + if ((getRestoreCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getRestoreCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod = + getRestoreCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestoreCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .RestoreCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "RestoreCertificateAuthority")) + .build(); + } + } + } + return getRestoreCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getScheduleDeleteCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ScheduleDeleteCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getScheduleDeleteCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, + com.google.longrunning.Operation> + getScheduleDeleteCertificateAuthorityMethod; + if ((getScheduleDeleteCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getScheduleDeleteCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod = + getScheduleDeleteCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ScheduleDeleteCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ScheduleDeleteCertificateAuthority")) + .build(); + } + } + } + return getScheduleDeleteCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUpdateCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", + requestType = + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUpdateCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation> + getUpdateCertificateAuthorityMethod; + if ((getUpdateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateAuthorityMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = + getUpdateCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .UpdateCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificateAuthority")) + .build(); + } + } + } + return getUpdateCertificateAuthorityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + getGetCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", + requestType = + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + getGetCertificateRevocationListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + getGetCertificateRevocationListMethod; + if ((getGetCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = + getGetCertificateRevocationListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .GetCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "GetCertificateRevocationList")) + .build(); + } + } + } + return getGetCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> + getListCertificateRevocationListsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", + requestType = + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, + responseType = + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> + getListCertificateRevocationListsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> + getListCertificateRevocationListsMethod; + if ((getListCertificateRevocationListsMethod = + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListCertificateRevocationListsMethod = + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) + == null) { + CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = + getListCertificateRevocationListsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListCertificateRevocationLists")) + .build(); + } + } + } + return getListCertificateRevocationListsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation> + getUpdateCertificateRevocationListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", + requestType = + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation> + getUpdateCertificateRevocationListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation> + getUpdateCertificateRevocationListMethod; + if ((getUpdateCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getUpdateCertificateRevocationListMethod = + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) + == null) { + CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = + getUpdateCertificateRevocationListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .UpdateCertificateRevocationListRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "UpdateCertificateRevocationList")) + .build(); + } + } + } + return getUpdateCertificateRevocationListMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, + com.google.cloud.security.privateca.v1beta1.ReusableConfig> + getGetReusableConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetReusableConfig", + requestType = com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, + com.google.cloud.security.privateca.v1beta1.ReusableConfig> + getGetReusableConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, + com.google.cloud.security.privateca.v1beta1.ReusableConfig> + getGetReusableConfigMethod; + if ((getGetReusableConfigMethod = CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getGetReusableConfigMethod = + CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) + == null) { + CertificateAuthorityServiceGrpc.getGetReusableConfigMethod = + getGetReusableConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReusableConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ReusableConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "GetReusableConfig")) + .build(); + } + } + } + return getGetReusableConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> + getListReusableConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReusableConfigs", + requestType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, + responseType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> + getListReusableConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> + getListReusableConfigsMethod; + if ((getListReusableConfigsMethod = + CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) + == null) { + synchronized (CertificateAuthorityServiceGrpc.class) { + if ((getListReusableConfigsMethod = + CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) + == null) { + CertificateAuthorityServiceGrpc.getListReusableConfigsMethod = + getListReusableConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListReusableConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.security.privateca.v1beta1 + .ListReusableConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CertificateAuthorityServiceMethodDescriptorSupplier( + "ListReusableConfigs")) + .build(); + } + } + } + return getListReusableConfigsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CertificateAuthorityServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CertificateAuthorityServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateAuthorityServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + }; + return CertificateAuthorityServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public abstract static class CertificateAuthorityServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void createCertificate( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void getCertificate( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void listCertificates( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void revokeCertificate( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevokeCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateMethod(), responseObserver); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getActivateCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDisableCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnableCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchCertificateAuthorityCsrMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificateAuthoritiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public void restoreCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public void scheduleDeleteCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getScheduleDeleteCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateAuthorityMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCertificateRevocationListMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCertificateRevocationListsMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCertificateRevocationListMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void getReusableConfig( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReusableConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void listReusableConfigs( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReusableConfigsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_CREATE_CERTIFICATE))) + .addMethod( + getGetCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_GET_CERTIFICATE))) + .addMethod( + getListCertificatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse>( + this, METHODID_LIST_CERTIFICATES))) + .addMethod( + getRevokeCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_REVOKE_CERTIFICATE))) + .addMethod( + getUpdateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, + com.google.cloud.security.privateca.v1beta1.Certificate>( + this, METHODID_UPDATE_CERTIFICATE))) + .addMethod( + getActivateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .ActivateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getCreateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getDisableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .DisableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getEnableCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) + .addMethod( + getFetchCertificateAuthorityCsrMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrRequest, + com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrResponse>( + this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) + .addMethod( + getGetCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority>( + this, METHODID_GET_CERTIFICATE_AUTHORITY))) + .addMethod( + getListCertificateAuthoritiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, + com.google.cloud.security.privateca.v1beta1 + .ListCertificateAuthoritiesResponse>( + this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) + .addMethod( + getRestoreCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .RestoreCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_CERTIFICATE_AUTHORITY))) + .addMethod( + getScheduleDeleteCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY))) + .addMethod( + getUpdateCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) + .addMethod( + getGetCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .GetCertificateRevocationListRequest, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>( + this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getListCertificateRevocationListsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsRequest, + com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsResponse>( + this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) + .addMethod( + getUpdateCertificateRevocationListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1 + .UpdateCertificateRevocationListRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) + .addMethod( + getGetReusableConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, + com.google.cloud.security.privateca.v1beta1.ReusableConfig>( + this, METHODID_GET_REUSABLE_CONFIG))) + .addMethod( + getListReusableConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>( + this, METHODID_LIST_REUSABLE_CONFIGS))) + .build(); + } + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CertificateAuthorityServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void createCertificate( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void getCertificate( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void listCertificates( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public void revokeCertificate( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public void updateCertificate( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public void activateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public void createCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void disableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void enableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public void fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void getCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void listCertificateAuthorities( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public void restoreCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public void scheduleDeleteCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public void updateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void getCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void listCertificateRevocationLists( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public void updateCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void getReusableConfig( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public void listReusableConfigs( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CertificateAuthorityServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate createCertificate( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse listCertificates( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.longrunning.Operation activateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation disableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation enableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + listCertificateAuthorities( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public com.google.longrunning.Operation restoreCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public com.google.longrunning.Operation scheduleDeleteCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getScheduleDeleteCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + listCertificateRevocationLists( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReusableConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse + listReusableConfigs( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReusableConfigsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
+   * certificate authorities and issued certificates.
+   * 
+ */ + public static final class CertificateAuthorityServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CertificateAuthorityServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateAuthorityServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateAuthorityServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
+     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.Certificate> + createCertificate( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.Certificate> + getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse> + listCertificates( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.Certificate> + revokeCertificate( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
+     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.Certificate> + updateCertificate( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
+     * parent Certificate Authority signs a certificate signing request from
+     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
+     * process.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + activateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + disableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + enableCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
+     * that is in state
+     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
+     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
+     * then be signed by the desired parent Certificate Authority, which could be
+     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
+     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse> + fetchCertificateAuthorityCsr( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + getCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse> + listCertificateAuthorities( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + scheduleDeleteCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + getCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse> + listCertificateRevocationLists( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.ReusableConfig> + getReusableConfig( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse> + listReusableConfigs( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CERTIFICATE = 0; + private static final int METHODID_GET_CERTIFICATE = 1; + private static final int METHODID_LIST_CERTIFICATES = 2; + private static final int METHODID_REVOKE_CERTIFICATE = 3; + private static final int METHODID_UPDATE_CERTIFICATE = 4; + private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; + private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; + private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; + private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; + private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; + private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; + private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; + private static final int METHODID_RESTORE_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; + private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 15; + private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 16; + private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 17; + private static final int METHODID_GET_REUSABLE_CONFIG = 18; + private static final int METHODID_LIST_REUSABLE_CONFIGS = 19; + + 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 CertificateAuthorityServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CERTIFICATE: + serviceImpl.createCertificate( + (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CERTIFICATE: + serviceImpl.getCertificate( + (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CERTIFICATES: + serviceImpl.listCertificates( + (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse>) + responseObserver); + break; + case METHODID_REVOKE_CERTIFICATE: + serviceImpl.revokeCertificate( + (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE: + serviceImpl.updateCertificate( + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: + serviceImpl.activateCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_AUTHORITY: + serviceImpl.createCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISABLE_CERTIFICATE_AUTHORITY: + serviceImpl.disableCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENABLE_CERTIFICATE_AUTHORITY: + serviceImpl.enableCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: + serviceImpl.fetchCertificateAuthorityCsr( + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrResponse>) + responseObserver); + break; + case METHODID_GET_CERTIFICATE_AUTHORITY: + serviceImpl.getCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority>) + responseObserver); + break; + case METHODID_LIST_CERTIFICATE_AUTHORITIES: + serviceImpl.listCertificateAuthorities( + (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1 + .ListCertificateAuthoritiesResponse>) + responseObserver); + break; + case METHODID_RESTORE_CERTIFICATE_AUTHORITY: + serviceImpl.restoreCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY: + serviceImpl.scheduleDeleteCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_AUTHORITY: + serviceImpl.updateCertificateAuthority( + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_REVOCATION_LIST: + serviceImpl.getCertificateRevocationList( + (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>) + responseObserver); + break; + case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: + serviceImpl.listCertificateRevocationLists( + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: + serviceImpl.updateCertificateRevocationList( + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_REUSABLE_CONFIG: + serviceImpl.getReusableConfig( + (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ReusableConfig>) + responseObserver); + break; + case METHODID_LIST_REUSABLE_CONFIGS: + serviceImpl.listReusableConfigs( + (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>) + 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 CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CertificateAuthorityServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CertificateAuthorityService"); + } + } + + private static final class CertificateAuthorityServiceFileDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier { + CertificateAuthorityServiceFileDescriptorSupplier() {} + } + + private static final class CertificateAuthorityServiceMethodDescriptorSupplier + extends CertificateAuthorityServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) + .addMethod(getCreateCertificateMethod()) + .addMethod(getGetCertificateMethod()) + .addMethod(getListCertificatesMethod()) + .addMethod(getRevokeCertificateMethod()) + .addMethod(getUpdateCertificateMethod()) + .addMethod(getActivateCertificateAuthorityMethod()) + .addMethod(getCreateCertificateAuthorityMethod()) + .addMethod(getDisableCertificateAuthorityMethod()) + .addMethod(getEnableCertificateAuthorityMethod()) + .addMethod(getFetchCertificateAuthorityCsrMethod()) + .addMethod(getGetCertificateAuthorityMethod()) + .addMethod(getListCertificateAuthoritiesMethod()) + .addMethod(getRestoreCertificateAuthorityMethod()) + .addMethod(getScheduleDeleteCertificateAuthorityMethod()) + .addMethod(getUpdateCertificateAuthorityMethod()) + .addMethod(getGetCertificateRevocationListMethod()) + .addMethod(getListCertificateRevocationListsMethod()) + .addMethod(getUpdateCertificateRevocationListMethod()) + .addMethod(getGetReusableConfigMethod()) + .addMethod(getListReusableConfigsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java deleted file mode 100644 index 8cf07201..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java +++ /dev/null @@ -1,2776 +0,0 @@ -package com.google.cloud.security.privateca.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
- * certificate authorities and issued certificates.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/privateca/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CertificateAuthorityServiceGrpc { - - private CertificateAuthorityServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.security.privateca.v1.CertificateAuthorityService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", - requestType = com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCertificateMethod() { - io.grpc.MethodDescriptor getCreateCertificateMethod; - if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateMethod = getCreateCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificate")) - .build(); - } - } - } - return getCreateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificate", - requestType = com.google.cloud.security.privateca.v1.GetCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateMethod() { - io.grpc.MethodDescriptor getGetCertificateMethod; - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateMethod = getGetCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) - .build(); - } - } - } - return getGetCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificates", - requestType = com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificatesMethod() { - io.grpc.MethodDescriptor getListCertificatesMethod; - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificatesMethod = getListCertificatesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificates")) - .build(); - } - } - } - return getListCertificatesMethod; - } - - private static volatile io.grpc.MethodDescriptor getRevokeCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", - requestType = com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRevokeCertificateMethod() { - io.grpc.MethodDescriptor getRevokeCertificateMethod; - if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = getRevokeCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("RevokeCertificate")) - .build(); - } - } - } - return getRevokeCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateMethod() { - io.grpc.MethodDescriptor getUpdateCertificateMethod; - if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = getUpdateCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificate")) - .build(); - } - } - } - return getUpdateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; - if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = getActivateCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ActivateCertificateAuthority")) - .build(); - } - } - } - return getActivateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; - if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = getCreateCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificateAuthority")) - .build(); - } - } - } - return getCreateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; - if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = getDisableCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DisableCertificateAuthority")) - .build(); - } - } - } - return getDisableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; - if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = getEnableCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("EnableCertificateAuthority")) - .build(); - } - } - } - return getEnableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", - requestType = com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, - responseType = com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod() { - io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; - if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = getFetchCertificateAuthorityCsrMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCertificateAuthorityCsr")) - .build(); - } - } - } - return getFetchCertificateAuthorityCsrMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, - responseType = com.google.cloud.security.privateca.v1.CertificateAuthority.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; - if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = getGetCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateAuthority")) - .build(); - } - } - } - return getGetCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", - requestType = com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod() { - io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; - if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = getListCertificateAuthoritiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateAuthorities")) - .build(); - } - } - } - return getListCertificateAuthoritiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getUndeleteCertificateAuthorityMethod; - if ((getUndeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUndeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getUndeleteCertificateAuthorityMethod = getUndeleteCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UndeleteCertificateAuthority")) - .build(); - } - } - } - return getUndeleteCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getDeleteCertificateAuthorityMethod; - if ((getDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getDeleteCertificateAuthorityMethod = getDeleteCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCertificateAuthority")) - .build(); - } - } - } - return getDeleteCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; - if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = getUpdateCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateAuthority")) - .build(); - } - } - } - return getUpdateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCaPool", - requestType = com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCaPoolMethod() { - io.grpc.MethodDescriptor getCreateCaPoolMethod; - if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCaPoolMethod = CertificateAuthorityServiceGrpc.getCreateCaPoolMethod) == null) { - CertificateAuthorityServiceGrpc.getCreateCaPoolMethod = getCreateCaPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCaPool")) - .build(); - } - } - } - return getCreateCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCaPool", - requestType = com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCaPoolMethod() { - io.grpc.MethodDescriptor getUpdateCaPoolMethod; - if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCaPoolMethod = CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCaPoolMethod = getUpdateCaPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCaPool")) - .build(); - } - } - } - return getUpdateCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCaPool", - requestType = com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, - responseType = com.google.cloud.security.privateca.v1.CaPool.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCaPoolMethod() { - io.grpc.MethodDescriptor getGetCaPoolMethod; - if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCaPoolMethod = CertificateAuthorityServiceGrpc.getGetCaPoolMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCaPoolMethod = getGetCaPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCaPoolRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCaPool")) - .build(); - } - } - } - return getGetCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCaPoolsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCaPools", - requestType = com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCaPoolsMethod() { - io.grpc.MethodDescriptor getListCaPoolsMethod; - if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCaPoolsMethod = CertificateAuthorityServiceGrpc.getListCaPoolsMethod) == null) { - CertificateAuthorityServiceGrpc.getListCaPoolsMethod = getListCaPoolsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCaPools")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCaPoolsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCaPools")) - .build(); - } - } - } - return getListCaPoolsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCaPoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCaPool", - requestType = com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCaPoolMethod() { - io.grpc.MethodDescriptor getDeleteCaPoolMethod; - if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteCaPoolMethod = CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod) == null) { - CertificateAuthorityServiceGrpc.getDeleteCaPoolMethod = getDeleteCaPoolMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCaPool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCaPool")) - .build(); - } - } - } - return getDeleteCaPoolMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchCaCertsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchCaCerts", - requestType = com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, - responseType = com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchCaCertsMethod() { - io.grpc.MethodDescriptor getFetchCaCertsMethod; - if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getFetchCaCertsMethod = CertificateAuthorityServiceGrpc.getFetchCaCertsMethod) == null) { - CertificateAuthorityServiceGrpc.getFetchCaCertsMethod = getFetchCaCertsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCaCerts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCaCerts")) - .build(); - } - } - } - return getFetchCaCertsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", - requestType = com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, - responseType = com.google.cloud.security.privateca.v1.CertificateRevocationList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateRevocationListMethod() { - io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; - if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = getGetCertificateRevocationListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateRevocationList")) - .build(); - } - } - } - return getGetCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", - requestType = com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificateRevocationListsMethod() { - io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; - if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = getListCertificateRevocationListsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateRevocationLists")) - .build(); - } - } - } - return getListCertificateRevocationListsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod() { - io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; - if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = getUpdateCertificateRevocationListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateRevocationList")) - .build(); - } - } - } - return getUpdateCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCertificateTemplateMethod() { - io.grpc.MethodDescriptor getCreateCertificateTemplateMethod; - if ((getCreateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod) == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateTemplateMethod = getCreateCertificateTemplateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificateTemplate")) - .build(); - } - } - } - return getCreateCertificateTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCertificateTemplateMethod() { - io.grpc.MethodDescriptor getDeleteCertificateTemplateMethod; - if ((getDeleteCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDeleteCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod) == null) { - CertificateAuthorityServiceGrpc.getDeleteCertificateTemplateMethod = getDeleteCertificateTemplateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DeleteCertificateTemplate")) - .build(); - } - } - } - return getDeleteCertificateTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, - responseType = com.google.cloud.security.privateca.v1.CertificateTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateTemplateMethod() { - io.grpc.MethodDescriptor getGetCertificateTemplateMethod; - if ((getGetCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateTemplateMethod = getGetCertificateTemplateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateTemplate")) - .build(); - } - } - } - return getGetCertificateTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificateTemplatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateTemplates", - requestType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, - responseType = com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificateTemplatesMethod() { - io.grpc.MethodDescriptor getListCertificateTemplatesMethod; - if ((getListCertificateTemplatesMethod = CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateTemplatesMethod = CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificateTemplatesMethod = getListCertificateTemplatesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateTemplates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateTemplates")) - .build(); - } - } - } - return getListCertificateTemplatesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateTemplate", - requestType = com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateTemplateMethod() { - io.grpc.MethodDescriptor getUpdateCertificateTemplateMethod; - if ((getUpdateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateTemplateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateTemplateMethod = getUpdateCertificateTemplateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateTemplate")) - .build(); - } - } - } - return getUpdateCertificateTemplateMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CertificateAuthorityServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CertificateAuthorityServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static abstract class CertificateAuthorityServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMethod(), responseObserver); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMethod(), responseObserver); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificatesMethod(), responseObserver); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeCertificateMethod(), responseObserver); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMethod(), responseObserver); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchCertificateAuthorityCsrMethod(), responseObserver); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateAuthoritiesMethod(), responseObserver); - } - - /** - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public void undeleteCertificateAuthority(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void deleteCertificateAuthority(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCaPoolMethod(), responseObserver); - } - - /** - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCaPoolMethod(), responseObserver); - } - - /** - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCaPoolMethod(), responseObserver); - } - - /** - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCaPoolsMethod(), responseObserver); - } - - /** - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCaPoolMethod(), responseObserver); - } - - /** - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchCaCertsMethod(), responseObserver); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateRevocationListMethod(), responseObserver); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateRevocationListsMethod(), responseObserver); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateRevocationListMethod(), responseObserver); - } - - /** - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public void createCertificateTemplate(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateTemplateMethod(), responseObserver); - } - - /** - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void deleteCertificateTemplate(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateTemplateMethod(), responseObserver); - } - - /** - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void getCertificateTemplate(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateTemplateMethod(), responseObserver); - } - - /** - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void listCertificateTemplates(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateTemplatesMethod(), responseObserver); - } - - /** - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void updateCertificateTemplate(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateTemplateMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_CREATE_CERTIFICATE))) - .addMethod( - getGetCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_GET_CERTIFICATE))) - .addMethod( - getListCertificatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1.ListCertificatesResponse>( - this, METHODID_LIST_CERTIFICATES))) - .addMethod( - getRevokeCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_REVOKE_CERTIFICATE))) - .addMethod( - getUpdateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1.Certificate>( - this, METHODID_UPDATE_CERTIFICATE))) - .addMethod( - getActivateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getDisableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getEnableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getFetchCertificateAuthorityCsrMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse>( - this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) - .addMethod( - getGetCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1.CertificateAuthority>( - this, METHODID_GET_CERTIFICATE_AUTHORITY))) - .addMethod( - getListCertificateAuthoritiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse>( - this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) - .addMethod( - getUndeleteCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_CERTIFICATE_AUTHORITY))) - .addMethod( - getDeleteCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CERTIFICATE_AUTHORITY))) - .addMethod( - getUpdateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCaPoolRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CA_POOL))) - .addMethod( - getUpdateCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CA_POOL))) - .addMethod( - getGetCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCaPoolRequest, - com.google.cloud.security.privateca.v1.CaPool>( - this, METHODID_GET_CA_POOL))) - .addMethod( - getListCaPoolsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCaPoolsRequest, - com.google.cloud.security.privateca.v1.ListCaPoolsResponse>( - this, METHODID_LIST_CA_POOLS))) - .addMethod( - getDeleteCaPoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CA_POOL))) - .addMethod( - getFetchCaCertsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.FetchCaCertsRequest, - com.google.cloud.security.privateca.v1.FetchCaCertsResponse>( - this, METHODID_FETCH_CA_CERTS))) - .addMethod( - getGetCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1.CertificateRevocationList>( - this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getListCertificateRevocationListsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse>( - this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) - .addMethod( - getUpdateCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getCreateCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_TEMPLATE))) - .addMethod( - getDeleteCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CERTIFICATE_TEMPLATE))) - .addMethod( - getGetCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest, - com.google.cloud.security.privateca.v1.CertificateTemplate>( - this, METHODID_GET_CERTIFICATE_TEMPLATE))) - .addMethod( - getListCertificateTemplatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest, - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse>( - this, METHODID_LIST_CERTIFICATE_TEMPLATES))) - .addMethod( - getUpdateCertificateTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_TEMPLATE))) - .build(); - } - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CertificateAuthorityServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public void revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public void undeleteCertificateAuthority(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void deleteCertificateAuthority(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public void fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public void createCertificateTemplate(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void deleteCertificateTemplate(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void getCertificateTemplate(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void listCertificateTemplates(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public void updateCertificateTemplate(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CertificateAuthorityServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate createCertificate(com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate getCertificate(com.google.cloud.security.privateca.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificatesResponse listCertificates(com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificatesMethod(), getCallOptions(), request); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate revokeCertificate(com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public com.google.cloud.security.privateca.v1.Certificate updateCertificate(com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.longrunning.Operation activateCertificateAuthority(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateAuthority(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation disableCertificateAuthority(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation enableCertificateAuthority(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse listCertificateAuthorities(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public com.google.longrunning.Operation undeleteCertificateAuthority(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation deleteCertificateAuthority(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateAuthority(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.longrunning.Operation createCaPool(com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCaPoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.longrunning.Operation updateCaPool(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCaPoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CaPool getCaPool(com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCaPoolMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCaPoolsResponse listCaPools(com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCaPoolsMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.longrunning.Operation deleteCaPool(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCaPoolMethod(), getCallOptions(), request); - } - - /** - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchCaCertsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse listCertificateRevocationLists(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateRevocationList(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateTemplate(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateTemplateMethod(), getCallOptions(), request); - } - - /** - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.longrunning.Operation deleteCertificateTemplate(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateTemplateMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateTemplateMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse listCertificateTemplates(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateTemplatesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateTemplate(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateTemplateMethod(), getCallOptions(), request); - } - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private CertificateAuthorityServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular
-     * [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCertificate( - com.google.cloud.security.privateca.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificate( - com.google.cloud.security.privateca.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificates( - com.google.cloud.security.privateca.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture revokeCertificate( - com.google.cloud.security.privateca.v1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificate( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After
-     * the parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture activateCertificateAuthority( - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCertificateAuthority( - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture disableCertificateAuthority( - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture enableCertificateAuthority( - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * that is in state
-     * [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
-     * and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The
-     * CSR must then be signed by the desired parent Certificate Authority, which
-     * could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificateAuthority( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificateAuthorities( - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeleteCertificateAuthority( - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCertificateAuthority( - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificateAuthority( - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCaPool( - com.google.cloud.security.privateca.v1.CreateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCaPoolMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCaPool( - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCaPoolMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCaPool( - com.google.cloud.security.privateca.v1.GetCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCaPoolMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCaPools( - com.google.cloud.security.privateca.v1.ListCaPoolsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCaPoolsMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCaPool( - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCaPoolMethod(), getCallOptions()), request); - } - - /** - *
-     * FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will
-     * include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
-     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchCaCertsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificateRevocationList( - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificateRevocationLists( - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificateRevocationList( - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCertificateTemplate( - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateTemplateMethod(), getCallOptions()), request); - } - - /** - *
-     * DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCertificateTemplate( - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateTemplateMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificateTemplate( - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateTemplateMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificateTemplates( - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateTemplatesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificateTemplate( - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateTemplateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CERTIFICATE = 0; - private static final int METHODID_GET_CERTIFICATE = 1; - private static final int METHODID_LIST_CERTIFICATES = 2; - private static final int METHODID_REVOKE_CERTIFICATE = 3; - private static final int METHODID_UPDATE_CERTIFICATE = 4; - private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; - private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; - private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; - private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; - private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; - private static final int METHODID_UNDELETE_CERTIFICATE_AUTHORITY = 12; - private static final int METHODID_DELETE_CERTIFICATE_AUTHORITY = 13; - private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; - private static final int METHODID_CREATE_CA_POOL = 15; - private static final int METHODID_UPDATE_CA_POOL = 16; - private static final int METHODID_GET_CA_POOL = 17; - private static final int METHODID_LIST_CA_POOLS = 18; - private static final int METHODID_DELETE_CA_POOL = 19; - private static final int METHODID_FETCH_CA_CERTS = 20; - private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 21; - private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 22; - private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 23; - private static final int METHODID_CREATE_CERTIFICATE_TEMPLATE = 24; - private static final int METHODID_DELETE_CERTIFICATE_TEMPLATE = 25; - private static final int METHODID_GET_CERTIFICATE_TEMPLATE = 26; - private static final int METHODID_LIST_CERTIFICATE_TEMPLATES = 27; - private static final int METHODID_UPDATE_CERTIFICATE_TEMPLATE = 28; - - 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 CertificateAuthorityServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CERTIFICATE: - serviceImpl.createCertificate((com.google.cloud.security.privateca.v1.CreateCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE: - serviceImpl.getCertificate((com.google.cloud.security.privateca.v1.GetCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATES: - serviceImpl.listCertificates((com.google.cloud.security.privateca.v1.ListCertificatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REVOKE_CERTIFICATE: - serviceImpl.revokeCertificate((com.google.cloud.security.privateca.v1.RevokeCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE: - serviceImpl.updateCertificate((com.google.cloud.security.privateca.v1.UpdateCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: - serviceImpl.activateCertificateAuthority((com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_AUTHORITY: - serviceImpl.createCertificateAuthority((com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_CERTIFICATE_AUTHORITY: - serviceImpl.disableCertificateAuthority((com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_CERTIFICATE_AUTHORITY: - serviceImpl.enableCertificateAuthority((com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: - serviceImpl.fetchCertificateAuthorityCsr((com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_AUTHORITY: - serviceImpl.getCertificateAuthority((com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_AUTHORITIES: - serviceImpl.listCertificateAuthorities((com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_CERTIFICATE_AUTHORITY: - serviceImpl.undeleteCertificateAuthority((com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE_AUTHORITY: - serviceImpl.deleteCertificateAuthority((com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_AUTHORITY: - serviceImpl.updateCertificateAuthority((com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CA_POOL: - serviceImpl.createCaPool((com.google.cloud.security.privateca.v1.CreateCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CA_POOL: - serviceImpl.updateCaPool((com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CA_POOL: - serviceImpl.getCaPool((com.google.cloud.security.privateca.v1.GetCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CA_POOLS: - serviceImpl.listCaPools((com.google.cloud.security.privateca.v1.ListCaPoolsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CA_POOL: - serviceImpl.deleteCaPool((com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CA_CERTS: - serviceImpl.fetchCaCerts((com.google.cloud.security.privateca.v1.FetchCaCertsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_REVOCATION_LIST: - serviceImpl.getCertificateRevocationList((com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: - serviceImpl.listCertificateRevocationLists((com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: - serviceImpl.updateCertificateRevocationList((com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_TEMPLATE: - serviceImpl.createCertificateTemplate((com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE_TEMPLATE: - serviceImpl.deleteCertificateTemplate((com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_TEMPLATE: - serviceImpl.getCertificateTemplate((com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_TEMPLATES: - serviceImpl.listCertificateTemplates((com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_TEMPLATE: - serviceImpl.updateCertificateTemplate((com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) 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 CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CertificateAuthorityServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CertificateAuthorityService"); - } - } - - private static final class CertificateAuthorityServiceFileDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier { - CertificateAuthorityServiceFileDescriptorSupplier() {} - } - - private static final class CertificateAuthorityServiceMethodDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) - .addMethod(getCreateCertificateMethod()) - .addMethod(getGetCertificateMethod()) - .addMethod(getListCertificatesMethod()) - .addMethod(getRevokeCertificateMethod()) - .addMethod(getUpdateCertificateMethod()) - .addMethod(getActivateCertificateAuthorityMethod()) - .addMethod(getCreateCertificateAuthorityMethod()) - .addMethod(getDisableCertificateAuthorityMethod()) - .addMethod(getEnableCertificateAuthorityMethod()) - .addMethod(getFetchCertificateAuthorityCsrMethod()) - .addMethod(getGetCertificateAuthorityMethod()) - .addMethod(getListCertificateAuthoritiesMethod()) - .addMethod(getUndeleteCertificateAuthorityMethod()) - .addMethod(getDeleteCertificateAuthorityMethod()) - .addMethod(getUpdateCertificateAuthorityMethod()) - .addMethod(getCreateCaPoolMethod()) - .addMethod(getUpdateCaPoolMethod()) - .addMethod(getGetCaPoolMethod()) - .addMethod(getListCaPoolsMethod()) - .addMethod(getDeleteCaPoolMethod()) - .addMethod(getFetchCaCertsMethod()) - .addMethod(getGetCertificateRevocationListMethod()) - .addMethod(getListCertificateRevocationListsMethod()) - .addMethod(getUpdateCertificateRevocationListMethod()) - .addMethod(getCreateCertificateTemplateMethod()) - .addMethod(getDeleteCertificateTemplateMethod()) - .addMethod(getGetCertificateTemplateMethod()) - .addMethod(getListCertificateTemplatesMethod()) - .addMethod(getUpdateCertificateTemplateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java deleted file mode 100644 index 9c7f4d56..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface FetchCertificateAuthorityCsrRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
-   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
-   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java deleted file mode 100644 index 62d767c7..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCaPoolRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCaPoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java deleted file mode 100644 index e3e41304..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateAuthorityRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java deleted file mode 100644 index 2a36fe9f..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java deleted file mode 100644 index e5d579ec..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateRevocationListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java deleted file mode 100644 index e2fad44d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public interface GetCertificateTemplateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java deleted file mode 100644 index a44741d8..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java +++ /dev/null @@ -1,841 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/service.proto - -package com.google.cloud.security.privateca.v1; - -public final class PrivateCaProto { - private PrivateCaProto() {} - 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_security_privateca_v1_CreateCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/security/privateca/v1/ser" + - "vice.proto\022\"google.cloud.security.privat" + - "eca.v1\032\034google/api/annotations.proto\032\027go" + - "ogle/api/client.proto\032\037google/api/field_" + - "behavior.proto\032\031google/api/resource.prot" + - "o\0322google/cloud/security/privateca/v1/re" + - "sources.proto\032#google/longrunning/operat" + - "ions.proto\032 google/protobuf/field_mask.p" + - "roto\032\037google/protobuf/timestamp.proto\"\237\002" + - "\n\030CreateCertificateRequest\0227\n\006parent\030\001 \001" + - "(\tB\'\340A\002\372A!\n\037privateca.googleapis.com/CaP" + - "ool\022\033\n\016certificate_id\030\002 \001(\tB\003\340A\001\022I\n\013cert" + - "ificate\030\003 \001(\0132/.google.cloud.security.pr" + - "ivateca.v1.CertificateB\003\340A\002\022\027\n\nrequest_i" + - "d\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001" + - "\022-\n issuing_certificate_authority_id\030\006 \001" + - "(\tB\003\340A\001\"S\n\025GetCertificateRequest\022:\n\004name" + - "\030\001 \001(\tB,\340A\002\372A&\n$privateca.googleapis.com" + - "/Certificate\"\257\001\n\027ListCertificatesRequest" + - "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goog" + - "leapis.com/CaPool\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\"\217\001\n\030ListC" + - "ertificatesResponse\022E\n\014certificates\030\001 \003(" + - "\0132/.google.cloud.security.privateca.v1.C" + - "ertificate\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + - "nreachable\030\003 \003(\t\"\272\001\n\030RevokeCertificateRe" + - "quest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$privateca.g" + - "oogleapis.com/Certificate\022I\n\006reason\030\002 \001(" + - "\01624.google.cloud.security.privateca.v1.R" + - "evocationReasonB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" + - "B\003\340A\001\"\264\001\n\030UpdateCertificateRequest\022I\n\013ce" + - "rtificate\030\001 \001(\0132/.google.cloud.security." + - "privateca.v1.CertificateB\003\340A\002\0224\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + - "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\374\001\n#Activat" + - "eCertificateAuthorityRequest\022C\n\004name\030\001 \001" + - "(\tB5\340A\002\372A/\n-privateca.googleapis.com/Cer" + - "tificateAuthority\022\037\n\022pem_ca_certificate\030" + - "\002 \001(\tB\003\340A\002\022V\n\022subordinate_config\030\003 \001(\01325" + - ".google.cloud.security.privateca.v1.Subo" + - "rdinateConfigB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + - "\340A\001\"\372\001\n!CreateCertificateAuthorityReques" + - "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goo" + - "gleapis.com/CaPool\022%\n\030certificate_author" + - "ity_id\030\002 \001(\tB\003\340A\002\022\\\n\025certificate_authori" + - "ty\030\003 \001(\01328.google.cloud.security.private" + - "ca.v1.CertificateAuthorityB\003\340A\002\022\027\n\nreque" + - "st_id\030\004 \001(\tB\003\340A\001\"\202\001\n\"DisableCertificateA" + - "uthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-p" + - "rivateca.googleapis.com/CertificateAutho" + - "rity\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\201\001\n!Enable" + - "CertificateAuthorityRequest\022C\n\004name\030\001 \001(" + - "\tB5\340A\002\372A/\n-privateca.googleapis.com/Cert" + - "ificateAuthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + - "\001\"j\n#FetchCertificateAuthorityCsrRequest" + - "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.google" + - "apis.com/CertificateAuthority\"<\n$FetchCe" + - "rtificateAuthorityCsrResponse\022\024\n\007pem_csr" + - "\030\001 \001(\tB\003\340A\003\"e\n\036GetCertificateAuthorityRe" + - "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.g" + - "oogleapis.com/CertificateAuthority\"\271\001\n!L" + - "istCertificateAuthoritiesRequest\0227\n\006pare" + - "nt\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.googleapis.c" + - "om/CaPool\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + - "e_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\"\255\001\n\"ListCertifica" + - "teAuthoritiesResponse\022Y\n\027certificate_aut" + - "horities\030\001 \003(\01328.google.cloud.security.p" + - "rivateca.v1.CertificateAuthority\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\203" + - "\001\n#UndeleteCertificateAuthorityRequest\022C" + - "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleap" + - "is.com/CertificateAuthority\022\027\n\nrequest_i" + - "d\030\002 \001(\tB\003\340A\001\"\312\001\n!DeleteCertificateAuthor" + - "ityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privat" + - "eca.googleapis.com/CertificateAuthority\022" + - "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\'\n\032ignore_activ" + - "e_certificates\030\004 \001(\010B\003\340A\001\022\036\n\021skip_grace_" + - "period\030\005 \001(\010B\003\340A\001\"\320\001\n!UpdateCertificateA" + - "uthorityRequest\022\\\n\025certificate_authority" + - "\030\001 \001(\01328.google.cloud.security.privateca" + - ".v1.CertificateAuthorityB\003\340A\002\0224\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + - "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\304\001\n\023CreateC" + - "aPoolRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" + - "cations.googleapis.com/Location\022\027\n\nca_po" + - "ol_id\030\002 \001(\tB\003\340A\002\022@\n\007ca_pool\030\003 \001(\0132*.goog" + - "le.cloud.security.privateca.v1.CaPoolB\003\340" + - "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\246\001\n\023UpdateCa" + - "PoolRequest\022@\n\007ca_pool\030\001 \001(\0132*.google.cl" + - "oud.security.privateca.v1.CaPoolB\003\340A\002\0224\n" + - "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + - "ldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"e\n\023" + - "DeleteCaPoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" + - "!\n\037privateca.googleapis.com/CaPool\022\027\n\nre" + - "quest_id\030\002 \001(\tB\003\340A\001\"h\n\023FetchCaCertsReque" + - "st\0228\n\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.g" + - "oogleapis.com/CaPool\022\027\n\nrequest_id\030\002 \001(\t" + - "B\003\340A\001\"\217\001\n\024FetchCaCertsResponse\022T\n\010ca_cer" + - "ts\030\001 \003(\0132B.google.cloud.security.private" + - "ca.v1.FetchCaCertsResponse.CertChain\032!\n\t" + - "CertChain\022\024\n\014certificates\030\001 \003(\t\"I\n\020GetCa" + - "PoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037priva" + - "teca.googleapis.com/CaPool\"\254\001\n\022ListCaPoo" + - "lsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + - "ions.googleapis.com/Location\022\026\n\tpage_siz" + - "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + - "\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A" + - "\001\"\201\001\n\023ListCaPoolsResponse\022<\n\010ca_pools\030\001 " + - "\003(\0132*.google.cloud.security.privateca.v1" + - ".CaPool\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + - "achable\030\003 \003(\t\"o\n#GetCertificateRevocatio" + - "nListRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2priv" + - "ateca.googleapis.com/CertificateRevocati" + - "onList\"\313\001\n%ListCertificateRevocationList" + - "sRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privat" + - "eca.googleapis.com/CertificateAuthority\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_b" + - "y\030\005 \001(\tB\003\340A\001\"\273\001\n&ListCertificateRevocati" + - "onListsResponse\022c\n\034certificate_revocatio" + - "n_lists\030\001 \003(\0132=.google.cloud.security.pr" + - "ivateca.v1.CertificateRevocationList\022\027\n\017" + - "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + - "(\t\"\340\001\n&UpdateCertificateRevocationListRe" + - "quest\022g\n\033certificate_revocation_list\030\001 \001" + - "(\0132=.google.cloud.security.privateca.v1." + - "CertificateRevocationListB\003\340A\002\0224\n\013update" + - "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\370\001\n Create" + - "CertificateTemplateRequest\0229\n\006parent\030\001 \001" + - "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + - "ation\022$\n\027certificate_template_id\030\002 \001(\tB\003" + - "\340A\002\022Z\n\024certificate_template\030\003 \001(\01327.goog" + - "le.cloud.security.privateca.v1.Certifica" + - "teTemplateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + - "\"\177\n DeleteCertificateTemplateRequest\022B\n\004" + - "name\030\001 \001(\tB4\340A\002\372A.\n,privateca.googleapis" + - ".com/CertificateTemplate\022\027\n\nrequest_id\030\002" + - " \001(\tB\003\340A\001\"c\n\035GetCertificateTemplateReque" + - "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,privateca.goog" + - "leapis.com/CertificateTemplate\"\271\001\n\037ListC" + - "ertificateTemplatesRequest\0229\n\006parent\030\001 \001" + - "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + - "ation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + - "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" + - "rder_by\030\005 \001(\tB\003\340A\001\"\250\001\n ListCertificateTe" + - "mplatesResponse\022V\n\025certificate_templates" + - "\030\001 \003(\01327.google.cloud.security.privateca" + - ".v1.CertificateTemplate\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\315\001\n Update" + - "CertificateTemplateRequest\022Z\n\024certificat" + - "e_template\030\001 \001(\01327.google.cloud.security" + - ".privateca.v1.CertificateTemplateB\003\340A\002\0224" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\200\002" + - "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + - "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + - "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + - "rsion\030\007 \001(\tB\003\340A\0032\372;\n\033CertificateAuthorit" + - "yService\022\367\001\n\021CreateCertificate\022<.google." + - "cloud.security.privateca.v1.CreateCertif" + - "icateRequest\032/.google.cloud.security.pri" + - "vateca.v1.Certificate\"s\202\323\344\223\002I\":/v1/{pare" + - "nt=projects/*/locations/*/caPools/*}/cer" + - "tificates:\013certificate\332A!parent,certific" + - "ate,certificate_id\022\307\001\n\016GetCertificate\0229." + - "google.cloud.security.privateca.v1.GetCe" + - "rtificateRequest\032/.google.cloud.security" + - ".privateca.v1.Certificate\"I\202\323\344\223\002<\022:/v1/{" + - "name=projects/*/locations/*/caPools/*/ce" + - "rtificates/*}\332A\004name\022\332\001\n\020ListCertificate" + - "s\022;.google.cloud.security.privateca.v1.L" + - "istCertificatesRequest\032<.google.cloud.se" + - "curity.privateca.v1.ListCertificatesResp" + - "onse\"K\202\323\344\223\002<\022:/v1/{parent=projects/*/loc" + - "ations/*/caPools/*}/certificates\332A\006paren" + - "t\022\327\001\n\021RevokeCertificate\022<.google.cloud.s" + - "ecurity.privateca.v1.RevokeCertificateRe" + - "quest\032/.google.cloud.security.privateca." + - "v1.Certificate\"S\202\323\344\223\002F\"A/v1/{name=projec" + - "ts/*/locations/*/caPools/*/certificates/" + - "*}:revoke:\001*\332A\004name\022\371\001\n\021UpdateCertificat" + - "e\022<.google.cloud.security.privateca.v1.U" + - "pdateCertificateRequest\032/.google.cloud.s" + - "ecurity.privateca.v1.Certificate\"u\202\323\344\223\002U" + - "2F/v1/{certificate.name=projects/*/locat" + - "ions/*/caPools/*/certificates/*}:\013certif" + - "icate\332A\027certificate,update_mask\022\224\002\n\034Acti" + - "vateCertificateAuthority\022G.google.cloud." + - "security.privateca.v1.ActivateCertificat" + - "eAuthorityRequest\032\035.google.longrunning.O" + - "peration\"\213\001\202\323\344\223\002R\"M/v1/{name=projects/*/" + - "locations/*/caPools/*/certificateAuthori" + - "ties/*}:activate:\001*\332A\004name\312A)\n\024Certifica" + - "teAuthority\022\021OperationMetadata\022\314\002\n\032Creat" + - "eCertificateAuthority\022E.google.cloud.sec" + - "urity.privateca.v1.CreateCertificateAuth" + - "orityRequest\032\035.google.longrunning.Operat" + - "ion\"\307\001\202\323\344\223\002]\"D/v1/{parent=projects/*/loc" + - "ations/*/caPools/*}/certificateAuthoriti" + - "es:\025certificate_authority\332A5parent,certi" + - "ficate_authority,certificate_authority_i" + - "d\312A)\n\024CertificateAuthority\022\021OperationMet" + - "adata\022\221\002\n\033DisableCertificateAuthority\022F." + - "google.cloud.security.privateca.v1.Disab" + - "leCertificateAuthorityRequest\032\035.google.l" + - "ongrunning.Operation\"\212\001\202\323\344\223\002Q\"L/v1/{name" + - "=projects/*/locations/*/caPools/*/certif" + - "icateAuthorities/*}:disable:\001*\332A\004name\312A)" + - "\n\024CertificateAuthority\022\021OperationMetadat" + - "a\022\216\002\n\032EnableCertificateAuthority\022E.googl" + - "e.cloud.security.privateca.v1.EnableCert" + - "ificateAuthorityRequest\032\035.google.longrun" + - "ning.Operation\"\211\001\202\323\344\223\002P\"K/v1/{name=proje" + - "cts/*/locations/*/caPools/*/certificateA" + - "uthorities/*}:enable:\001*\332A\004name\312A)\n\024Certi" + - "ficateAuthority\022\021OperationMetadata\022\214\002\n\034F" + - "etchCertificateAuthorityCsr\022G.google.clo" + - "ud.security.privateca.v1.FetchCertificat" + - "eAuthorityCsrRequest\032H.google.cloud.secu" + - "rity.privateca.v1.FetchCertificateAuthor" + - "ityCsrResponse\"Y\202\323\344\223\002L\022J/v1/{name=projec" + - "ts/*/locations/*/caPools/*/certificateAu" + - "thorities/*}:fetch\332A\004name\022\354\001\n\027GetCertifi" + - "cateAuthority\022B.google.cloud.security.pr" + - "ivateca.v1.GetCertificateAuthorityReques" + - "t\0328.google.cloud.security.privateca.v1.C" + - "ertificateAuthority\"S\202\323\344\223\002F\022D/v1/{name=p" + - "rojects/*/locations/*/caPools/*/certific" + - "ateAuthorities/*}\332A\004name\022\202\002\n\032ListCertifi" + - "cateAuthorities\022E.google.cloud.security." + - "privateca.v1.ListCertificateAuthoritiesR" + - "equest\032F.google.cloud.security.privateca" + - ".v1.ListCertificateAuthoritiesResponse\"U" + - "\202\323\344\223\002F\022D/v1/{parent=projects/*/locations" + - "/*/caPools/*}/certificateAuthorities\332A\006p" + - "arent\022\224\002\n\034UndeleteCertificateAuthority\022G" + - ".google.cloud.security.privateca.v1.Unde" + - "leteCertificateAuthorityRequest\032\035.google" + - ".longrunning.Operation\"\213\001\202\323\344\223\002R\"M/v1/{na" + - "me=projects/*/locations/*/caPools/*/cert" + - "ificateAuthorities/*}:undelete:\001*\332A\004name" + - "\312A)\n\024CertificateAuthority\022\021OperationMeta" + - "data\022\203\002\n\032DeleteCertificateAuthority\022E.go" + - "ogle.cloud.security.privateca.v1.DeleteC" + - "ertificateAuthorityRequest\032\035.google.long" + - "running.Operation\"\177\202\323\344\223\002F*D/v1/{name=pro" + - "jects/*/locations/*/caPools/*/certificat" + - "eAuthorities/*}\332A\004name\312A)\n\024CertificateAu" + - "thority\022\021OperationMetadata\022\316\002\n\032UpdateCer" + - "tificateAuthority\022E.google.cloud.securit" + - "y.privateca.v1.UpdateCertificateAuthorit" + - "yRequest\032\035.google.longrunning.Operation\"" + - "\311\001\202\323\344\223\002s2Z/v1/{certificate_authority.nam" + - "e=projects/*/locations/*/caPools/*/certi" + - "ficateAuthorities/*}:\025certificate_author" + - "ity\332A!certificate_authority,update_mask\312" + - "A)\n\024CertificateAuthority\022\021OperationMetad" + - "ata\022\336\001\n\014CreateCaPool\0227.google.cloud.secu" + - "rity.privateca.v1.CreateCaPoolRequest\032\035." + - "google.longrunning.Operation\"v\202\323\344\223\0026\"+/v" + - "1/{parent=projects/*/locations/*}/caPool" + - "s:\007ca_pool\332A\031parent,ca_pool,ca_pool_id\312A" + - "\033\n\006CaPool\022\021OperationMetadata\022\340\001\n\014UpdateC" + - "aPool\0227.google.cloud.security.privateca." + - "v1.UpdateCaPoolRequest\032\035.google.longrunn" + - "ing.Operation\"x\202\323\344\223\002>23/v1/{ca_pool.name" + - "=projects/*/locations/*/caPools/*}:\007ca_p" + - "ool\332A\023ca_pool,update_mask\312A\033\n\006CaPool\022\021Op" + - "erationMetadata\022\251\001\n\tGetCaPool\0224.google.c" + - "loud.security.privateca.v1.GetCaPoolRequ" + - "est\032*.google.cloud.security.privateca.v1" + - ".CaPool\":\202\323\344\223\002-\022+/v1/{name=projects/*/lo" + - "cations/*/caPools/*}\332A\004name\022\274\001\n\013ListCaPo" + - "ols\0226.google.cloud.security.privateca.v1" + - ".ListCaPoolsRequest\0327.google.cloud.secur" + - "ity.privateca.v1.ListCaPoolsResponse\"<\202\323" + - "\344\223\002-\022+/v1/{parent=projects/*/locations/*" + - "}/caPools\332A\006parent\022\317\001\n\014DeleteCaPool\0227.go" + - "ogle.cloud.security.privateca.v1.DeleteC" + - "aPoolRequest\032\035.google.longrunning.Operat" + - "ion\"g\202\323\344\223\002-*+/v1/{name=projects/*/locati" + - "ons/*/caPools/*}\332A\004name\312A*\n\025google.proto" + - "buf.Empty\022\021OperationMetadata\022\323\001\n\014FetchCa" + - "Certs\0227.google.cloud.security.privateca." + - "v1.FetchCaCertsRequest\0328.google.cloud.se" + - "curity.privateca.v1.FetchCaCertsResponse" + - "\"P\202\323\344\223\002@\";/v1/{ca_pool=projects/*/locati" + - "ons/*/caPools/*}:fetchCaCerts:\001*\332A\007ca_po" + - "ol\022\230\002\n\034GetCertificateRevocationList\022G.go" + - "ogle.cloud.security.privateca.v1.GetCert" + - "ificateRevocationListRequest\032=.google.cl" + - "oud.security.privateca.v1.CertificateRev" + - "ocationList\"p\202\323\344\223\002c\022a/v1/{name=projects/" + - "*/locations/*/caPools/*/certificateAutho" + - "rities/*/certificateRevocationLists/*}\332A" + - "\004name\022\253\002\n\036ListCertificateRevocationLists" + - "\022I.google.cloud.security.privateca.v1.Li" + - "stCertificateRevocationListsRequest\032J.go" + - "ogle.cloud.security.privateca.v1.ListCer" + - "tificateRevocationListsResponse\"r\202\323\344\223\002c\022" + - "a/v1/{parent=projects/*/locations/*/caPo" + - "ols/*/certificateAuthorities/*}/certific" + - "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + - "rtificateRevocationList\022J.google.cloud.s" + - "ecurity.privateca.v1.UpdateCertificateRe" + - "vocationListRequest\032\035.google.longrunning" + - ".Operation\"\376\001\202\323\344\223\002\234\0012}/v1/{certificate_r" + - "evocation_list.name=projects/*/locations" + - "/*/caPools/*/certificateAuthorities/*/ce" + - "rtificateRevocationLists/*}:\033certificate" + - "_revocation_list\332A\'certificate_revocatio" + - "n_list,update_mask\312A.\n\031CertificateRevoca" + - "tionList\022\021OperationMetadata\022\272\002\n\031CreateCe" + - "rtificateTemplate\022D.google.cloud.securit" + - "y.privateca.v1.CreateCertificateTemplate" + - "Request\032\035.google.longrunning.Operation\"\267" + - "\001\202\323\344\223\002P\"8/v1/{parent=projects/*/location" + - "s/*}/certificateTemplates:\024certificate_t" + - "emplate\332A3parent,certificate_template,ce" + - "rtificate_template_id\312A(\n\023CertificateTem" + - "plate\022\021OperationMetadata\022\232\002\n\031DeleteCerti" + - "ficateTemplate\022D.google.cloud.security.p" + - "rivateca.v1.DeleteCertificateTemplateReq" + - "uest\032\035.google.longrunning.Operation\"\227\001\202\323" + - "\344\223\002:*8/v1/{name=projects/*/locations/*/c" + - "ertificateTemplates/*}\332A\004name\312AM\n\025google" + - ".protobuf.Empty\0224google.cloud.security.p" + - "rivateca.v1.OperationMetadata\022\335\001\n\026GetCer" + - "tificateTemplate\022A.google.cloud.security" + - ".privateca.v1.GetCertificateTemplateRequ" + - "est\0327.google.cloud.security.privateca.v1" + - ".CertificateTemplate\"G\202\323\344\223\002:\0228/v1/{name=" + - "projects/*/locations/*/certificateTempla" + - "tes/*}\332A\004name\022\360\001\n\030ListCertificateTemplat" + - "es\022C.google.cloud.security.privateca.v1." + - "ListCertificateTemplatesRequest\032D.google" + - ".cloud.security.privateca.v1.ListCertifi" + - "cateTemplatesResponse\"I\202\323\344\223\002:\0228/v1/{pare" + - "nt=projects/*/locations/*}/certificateTe" + - "mplates\332A\006parent\022\274\002\n\031UpdateCertificateTe" + - "mplate\022D.google.cloud.security.privateca" + - ".v1.UpdateCertificateTemplateRequest\032\035.g" + - "oogle.longrunning.Operation\"\271\001\202\323\344\223\002e2M/v" + - "1/{certificate_template.name=projects/*/" + - "locations/*/certificateTemplates/*}:\024cer" + - "tificate_template\332A certificate_template" + - ",update_mask\312A(\n\023CertificateTemplate\022\021Op" + - "erationMetadata\032L\312A\030privateca.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platformB\375\001\n&com.google.cloud.secur" + - "ity.privateca.v1B\016PrivateCaProtoP\001ZKgoog" + - "le.golang.org/genproto/googleapis/cloud/" + - "security/privateca/v1;privateca\370\001\001\252\002\"Goo" + - "gle.Cloud.Security.PrivateCA.V1\312\002\"Google" + - "\\Cloud\\Security\\PrivateCA\\V1\352\002&Google::C" + - "loud::Security::PrivateCA::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.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor, - new java.lang.String[] { "Parent", "CertificateId", "Certificate", "RequestId", "ValidateOnly", "IssuingCertificateAuthorityId", }); - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor, - new java.lang.String[] { "Certificates", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor, - new java.lang.String[] { "Name", "Reason", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor, - new java.lang.String[] { "Certificate", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor, - new java.lang.String[] { "PemCsr", }); - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor, - new java.lang.String[] { "CertificateAuthorities", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", "IgnoreActiveCertificates", "SkipGracePeriod", }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "CertificateAuthority", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor, - new java.lang.String[] { "Parent", "CaPoolId", "CaPool", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor, - new java.lang.String[] { "CaPool", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor, - new java.lang.String[] { "CaPool", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor, - new java.lang.String[] { "CaCerts", }); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor = - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor, - new java.lang.String[] { "Certificates", }); - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor, - new java.lang.String[] { "CaPools", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor, - new java.lang.String[] { "CertificateRevocationLists", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor, - new java.lang.String[] { "CertificateRevocationList", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor, - new java.lang.String[] { "Parent", "CertificateTemplateId", "CertificateTemplate", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor, - new java.lang.String[] { "CertificateTemplates", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor, - new java.lang.String[] { "CertificateTemplate", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java deleted file mode 100644 index 419106dd..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java +++ /dev/null @@ -1,799 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1/resources.proto - -package com.google.cloud.security.privateca.v1; - -public final class PrivateCaResourcesProto { - private PrivateCaResourcesProto() {} - 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_security_privateca_v1_CertificateAuthority_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_Subject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/security/privateca/v1/res" + - "ources.proto\022\"google.cloud.security.priv" + - "ateca.v1\032\037google/api/field_behavior.prot" + - "o\032\031google/api/resource.proto\032\036google/pro" + - "tobuf/duration.proto\032\037google/protobuf/ti" + - "mestamp.proto\032\026google/type/expr.proto\"\365\017" + - "\n\024CertificateAuthority\022\021\n\004name\030\001 \001(\tB\003\340A" + - "\003\022S\n\004type\030\002 \001(\0162=.google.cloud.security." + - "privateca.v1.CertificateAuthority.TypeB\006" + - "\340A\002\340A\005\022M\n\006config\030\003 \001(\01325.google.cloud.se" + - "curity.privateca.v1.CertificateConfigB\006\340" + - "A\002\340A\005\0223\n\010lifetime\030\004 \001(\0132\031.google.protobu" + - "f.DurationB\006\340A\002\340A\005\022a\n\010key_spec\030\005 \001(\0132G.g" + - "oogle.cloud.security.privateca.v1.Certif" + - "icateAuthority.KeyVersionSpecB\006\340A\002\340A\005\022V\n" + - "\022subordinate_config\030\006 \001(\01325.google.cloud" + - ".security.privateca.v1.SubordinateConfig" + - "B\003\340A\001\022B\n\004tier\030\007 \001(\0162/.google.cloud.secur" + - "ity.privateca.v1.CaPool.TierB\003\340A\003\022R\n\005sta" + - "te\030\010 \001(\0162>.google.cloud.security.private" + - "ca.v1.CertificateAuthority.StateB\003\340A\003\022 \n" + - "\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022d\n\033ca_ce" + - "rtificate_descriptions\030\n \003(\0132:.google.cl" + - "oud.security.privateca.v1.CertificateDes" + - "criptionB\003\340A\003\022\027\n\ngcs_bucket\030\013 \001(\tB\003\340A\005\022]" + - "\n\013access_urls\030\014 \001(\0132C.google.cloud.secur" + - "ity.privateca.v1.CertificateAuthority.Ac" + - "cessUrlsB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + - "me\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\0224\n\013delete_time\030\017 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\0224\n\013expire_time\030\020 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022Y\n\006labels\030" + - "\021 \003(\0132D.google.cloud.security.privateca." + - "v1.CertificateAuthority.LabelsEntryB\003\340A\001" + - "\032H\n\nAccessUrls\022!\n\031ca_certificate_access_" + - "url\030\001 \001(\t\022\027\n\017crl_access_urls\030\002 \003(\t\032\240\001\n\016K" + - "eyVersionSpec\022\037\n\025cloud_kms_key_version\030\001" + - " \001(\tH\000\022_\n\talgorithm\030\002 \001(\0162J.google.cloud" + - ".security.privateca.v1.CertificateAuthor" + - "ity.SignHashAlgorithmH\000B\014\n\nKeyVersion\032-\n" + - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017\n\013SE" + - "LF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"p\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DIS" + - "ABLED\020\002\022\n\n\006STAGED\020\003\022\034\n\030AWAITING_USER_ACT" + - "IVATION\020\004\022\013\n\007DELETED\020\005\"\374\001\n\021SignHashAlgor" + - "ithm\022#\n\037SIGN_HASH_ALGORITHM_UNSPECIFIED\020" + - "\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022\027\n\023RSA_PSS_30" + - "72_SHA256\020\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\031\n\025" + - "RSA_PKCS1_2048_SHA256\020\006\022\031\n\025RSA_PKCS1_307" + - "2_SHA256\020\007\022\031\n\025RSA_PKCS1_4096_SHA256\020\010\022\022\n" + - "\016EC_P256_SHA256\020\004\022\022\n\016EC_P384_SHA384\020\005:\235\001" + - "\352A\231\001\n-privateca.googleapis.com/Certifica" + - "teAuthority\022hprojects/{project}/location" + - "s/{location}/caPools/{ca_pool}/certifica" + - "teAuthorities/{certificate_authority}\"\360\016" + - "\n\006CaPool\022\021\n\004name\030\001 \001(\tB\003\340A\003\022E\n\004tier\030\002 \001(" + - "\0162/.google.cloud.security.privateca.v1.C" + - "aPool.TierB\006\340A\002\340A\005\022W\n\017issuance_policy\030\003 " + - "\001(\01329.google.cloud.security.privateca.v1" + - ".CaPool.IssuancePolicyB\003\340A\001\022]\n\022publishin" + - "g_options\030\004 \001(\0132<.google.cloud.security." + - "privateca.v1.CaPool.PublishingOptionsB\003\340" + - "A\001\022K\n\006labels\030\005 \003(\01326.google.cloud.securi" + - "ty.privateca.v1.CaPool.LabelsEntryB\003\340A\001\032" + - "K\n\021PublishingOptions\022\034\n\017publish_ca_cert\030" + - "\001 \001(\010B\003\340A\001\022\030\n\013publish_crl\030\002 \001(\010B\003\340A\001\032\357\t\n" + - "\016IssuancePolicy\022h\n\021allowed_key_types\030\001 \003" + - "(\0132H.google.cloud.security.privateca.v1." + - "CaPool.IssuancePolicy.AllowedKeyTypeB\003\340A" + - "\001\0228\n\020maximum_lifetime\030\002 \001(\0132\031.google.pro" + - "tobuf.DurationB\003\340A\001\022l\n\026allowed_issuance_" + - "modes\030\003 \001(\0132G.google.cloud.security.priv" + - "ateca.v1.CaPool.IssuancePolicy.IssuanceM" + - "odesB\003\340A\001\022P\n\017baseline_values\030\004 \001(\01322.goo" + - "gle.cloud.security.privateca.v1.X509Para" + - "metersB\003\340A\001\022e\n\024identity_constraints\030\005 \001(" + - "\0132B.google.cloud.security.privateca.v1.C" + - "ertificateIdentityConstraintsB\003\340A\001\022h\n\026pa" + - "ssthrough_extensions\030\006 \001(\0132C.google.clou" + - "d.security.privateca.v1.CertificateExten" + - "sionConstraintsB\003\340A\001\032\305\004\n\016AllowedKeyType\022" + - "b\n\003rsa\030\001 \001(\0132S.google.cloud.security.pri" + - "vateca.v1.CaPool.IssuancePolicy.AllowedK" + - "eyType.RsaKeyTypeH\000\022l\n\016elliptic_curve\030\002 " + - "\001(\0132R.google.cloud.security.privateca.v1" + - ".CaPool.IssuancePolicy.AllowedKeyType.Ec" + - "KeyTypeH\000\032J\n\nRsaKeyType\022\035\n\020min_modulus_s" + - "ize\030\001 \001(\003B\003\340A\001\022\035\n\020max_modulus_size\030\002 \001(\003" + - "B\003\340A\001\032\210\002\n\tEcKeyType\022\211\001\n\023signature_algori" + - "thm\030\001 \001(\0162g.google.cloud.security.privat" + - "eca.v1.CaPool.IssuancePolicy.AllowedKeyT" + - "ype.EcKeyType.EcSignatureAlgorithmB\003\340A\001\"" + - "o\n\024EcSignatureAlgorithm\022&\n\"EC_SIGNATURE_" + - "ALGORITHM_UNSPECIFIED\020\000\022\016\n\nECDSA_P256\020\001\022" + - "\016\n\nECDSA_P384\020\002\022\017\n\013EDDSA_25519\020\003B\n\n\010key_" + - "type\032`\n\rIssuanceModes\022%\n\030allow_csr_based" + - "_issuance\030\001 \001(\010B\003\340A\001\022(\n\033allow_config_bas" + - "ed_issuance\030\002 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\004Tier\022\024\n" + - "\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n\n\006D" + - "EVOPS\020\002:_\352A\\\n\037privateca.googleapis.com/C" + - "aPool\0229projects/{project}/locations/{loc" + - "ation}/caPools/{ca_pool}\"\274\010\n\031Certificate" + - "RevocationList\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017seq" + - "uence_number\030\002 \001(\003B\003\340A\003\022s\n\024revoked_certi" + - "ficates\030\003 \003(\0132P.google.cloud.security.pr" + - "ivateca.v1.CertificateRevocationList.Rev" + - "okedCertificateB\003\340A\003\022\024\n\007pem_crl\030\004 \001(\tB\003\340" + - "A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003\022W\n\005state\030\006 \001" + - "(\0162C.google.cloud.security.privateca.v1." + - "CertificateRevocationList.StateB\003\340A\003\0224\n\013" + - "create_time\030\007 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\022\030\n\013revision_id\030" + - "\t \001(\tB\003\340A\003\022^\n\006labels\030\n \003(\0132I.google.clou" + - "d.security.privateca.v1.CertificateRevoc" + - "ationList.LabelsEntryB\003\340A\001\032\300\001\n\022RevokedCe" + - "rtificate\022>\n\013certificate\030\001 \001(\tB)\372A&\n$pri" + - "vateca.googleapis.com/Certificate\022\031\n\021hex" + - "_serial_number\030\002 \001(\t\022O\n\021revocation_reaso" + - "n\030\003 \001(\01624.google.cloud.security.privatec" + - "a.v1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPE" + - "RSEDED\020\002:\334\001\352A\330\001\n2privateca.googleapis.co" + - "m/CertificateRevocationList\022\241\001projects/{" + - "project}/locations/{location}/caPools/{c" + - "a_pool}/certificateAuthorities/{certific" + - "ate_authority}/certificateRevocationList" + - "s/{certificate_revocation_list}\"\217\n\n\013Cert" + - "ificate\022:\n\004name\030\001 \001(\tB,\340A\003\372A&\n$privateca" + - ".googleapis.com/Certificate\022\026\n\007pem_csr\030\002" + - " \001(\tB\003\340A\005H\000\022L\n\006config\030\003 \001(\01325.google.clo" + - "ud.security.privateca.v1.CertificateConf" + - "igB\003\340A\005H\000\022[\n\034issuer_certificate_authorit" + - "y\030\004 \001(\tB5\340A\003\372A/\n-privateca.googleapis.co" + - "m/CertificateAuthority\0223\n\010lifetime\030\005 \001(\013" + - "2\031.google.protobuf.DurationB\006\340A\002\340A\005\022R\n\024c" + - "ertificate_template\030\006 \001(\tB4\340A\005\372A.\n,priva" + - "teca.googleapis.com/CertificateTemplate\022" + - "Q\n\014subject_mode\030\007 \001(\01626.google.cloud.sec" + - "urity.privateca.v1.SubjectRequestModeB\003\340" + - "A\005\022b\n\022revocation_details\030\010 \001(\0132A.google." + - "cloud.security.privateca.v1.Certificate." + - "RevocationDetailsB\003\340A\003\022\034\n\017pem_certificat" + - "e\030\t \001(\tB\003\340A\003\022`\n\027certificate_description\030" + - "\n \001(\0132:.google.cloud.security.privateca." + - "v1.CertificateDescriptionB\003\340A\003\022\"\n\025pem_ce" + - "rtificate_chain\030\013 \003(\tB\003\340A\003\0224\n\013create_tim" + - "e\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\r \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022P\n\006labels\030\016 \003(\0132;.google." + - "cloud.security.privateca.v1.Certificate." + - "LabelsEntryB\003\340A\001\032\230\001\n\021RevocationDetails\022N" + - "\n\020revocation_state\030\001 \001(\01624.google.cloud." + - "security.privateca.v1.RevocationReason\0223" + - "\n\017revocation_time\030\002 \001(\0132\032.google.protobu" + - "f.Timestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001:\177\352A|\n$privateca.googl" + - "eapis.com/Certificate\022Tprojects/{project" + - "}/locations/{location}/caPools/{ca_pool}" + - "/certificates/{certificate}B\024\n\022certifica" + - "te_config\"\227\006\n\023CertificateTemplate\022B\n\004nam" + - "e\030\001 \001(\tB4\340A\003\372A.\n,privateca.googleapis.co" + - "m/CertificateTemplate\022R\n\021predefined_valu" + - "es\030\002 \001(\01322.google.cloud.security.private" + - "ca.v1.X509ParametersB\003\340A\001\022e\n\024identity_co" + - "nstraints\030\003 \001(\0132B.google.cloud.security." + - "privateca.v1.CertificateIdentityConstrai" + - "ntsB\003\340A\001\022h\n\026passthrough_extensions\030\004 \001(\013" + - "2C.google.cloud.security.privateca.v1.Ce" + - "rtificateExtensionConstraintsB\003\340A\001\022\030\n\013de" + - "scription\030\005 \001(\tB\003\340A\001\0224\n\013create_time\030\006 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + - "date_time\030\007 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\022X\n\006labels\030\010 \003(\0132C.google.cloud." + - "security.privateca.v1.CertificateTemplat" + - "e.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n,privat" + - "eca.googleapis.com/CertificateTemplate\022S" + - "projects/{project}/locations/{location}/" + - "certificateTemplates/{certificate_templa" + - "te}\"\337\003\n\016X509Parameters\022D\n\tkey_usage\030\001 \001(" + - "\0132,.google.cloud.security.privateca.v1.K" + - "eyUsageB\003\340A\001\022U\n\nca_options\030\002 \001(\0132<.googl" + - "e.cloud.security.privateca.v1.X509Parame" + - "ters.CaOptionsB\003\340A\001\022E\n\npolicy_ids\030\003 \003(\0132" + - ",.google.cloud.security.privateca.v1.Obj" + - "ectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB\003\340A" + - "\001\022U\n\025additional_extensions\030\005 \003(\01321.googl" + - "e.cloud.security.privateca.v1.X509Extens" + - "ionB\003\340A\001\032s\n\tCaOptions\022\027\n\005is_ca\030\001 \001(\010B\003\340A" + - "\001H\000\210\001\001\022(\n\026max_issuer_path_length\030\002 \001(\005B\003" + - "\340A\001H\001\210\001\001B\010\n\006_is_caB\031\n\027_max_issuer_path_l" + - "ength\"\251\002\n\021SubordinateConfig\022V\n\025certifica" + - "te_authority\030\001 \001(\tB5\340A\002\372A/\n-privateca.go" + - "ogleapis.com/CertificateAuthorityH\000\022m\n\020p" + - "em_issuer_chain\030\002 \001(\0132L.google.cloud.sec" + - "urity.privateca.v1.SubordinateConfig.Sub" + - "ordinateConfigChainB\003\340A\002H\000\0327\n\026Subordinat" + - "eConfigChain\022\035\n\020pem_certificates\030\001 \003(\tB\003" + - "\340A\002B\024\n\022subordinate_config\"\235\001\n\tPublicKey\022" + - "\020\n\003key\030\001 \001(\014B\003\340A\002\022L\n\006format\030\002 \001(\01627.goog" + - "le.cloud.security.privateca.v1.PublicKey" + - ".KeyFormatB\003\340A\002\"0\n\tKeyFormat\022\032\n\026KEY_FORM" + - "AT_UNSPECIFIED\020\000\022\007\n\003PEM\020\001\"\264\003\n\021Certificat" + - "eConfig\022`\n\016subject_config\030\001 \001(\0132C.google" + - ".cloud.security.privateca.v1.Certificate" + - "Config.SubjectConfigB\003\340A\002\022L\n\013x509_config" + - "\030\002 \001(\01322.google.cloud.security.privateca" + - ".v1.X509ParametersB\003\340A\002\022F\n\npublic_key\030\003 " + - "\001(\0132-.google.cloud.security.privateca.v1" + - ".PublicKeyB\003\340A\001\032\246\001\n\rSubjectConfig\022A\n\007sub" + - "ject\030\001 \001(\0132+.google.cloud.security.priva" + - "teca.v1.SubjectB\003\340A\002\022R\n\020subject_alt_name" + - "\030\002 \001(\01323.google.cloud.security.privateca" + - ".v1.SubjectAltNamesB\003\340A\001\"\241\010\n\026Certificate" + - "Description\022j\n\023subject_description\030\001 \001(\013" + - "2M.google.cloud.security.privateca.v1.Ce" + - "rtificateDescription.SubjectDescription\022" + - "L\n\020x509_description\030\002 \001(\01322.google.cloud" + - ".security.privateca.v1.X509Parameters\022A\n" + - "\npublic_key\030\003 \001(\0132-.google.cloud.securit" + - "y.privateca.v1.PublicKey\022X\n\016subject_key_" + - "id\030\004 \001(\0132@.google.cloud.security.private" + - "ca.v1.CertificateDescription.KeyId\022Z\n\020au" + - "thority_key_id\030\005 \001(\0132@.google.cloud.secu" + - "rity.privateca.v1.CertificateDescription" + - ".KeyId\022\037\n\027crl_distribution_points\030\006 \003(\t\022" + - "$\n\034aia_issuing_certificate_urls\030\007 \003(\t\022k\n" + - "\020cert_fingerprint\030\010 \001(\0132Q.google.cloud.s" + - "ecurity.privateca.v1.CertificateDescript" + - "ion.CertificateFingerprint\032\322\002\n\022SubjectDe" + - "scription\022<\n\007subject\030\001 \001(\0132+.google.clou" + - "d.security.privateca.v1.Subject\022M\n\020subje" + - "ct_alt_name\030\002 \001(\01323.google.cloud.securit" + - "y.privateca.v1.SubjectAltNames\022\031\n\021hex_se" + - "rial_number\030\003 \001(\t\022+\n\010lifetime\030\004 \001(\0132\031.go" + - "ogle.protobuf.Duration\0223\n\017not_before_tim" + - "e\030\005 \001(\0132\032.google.protobuf.Timestamp\0222\n\016n" + - "ot_after_time\030\006 \001(\0132\032.google.protobuf.Ti" + - "mestamp\032\034\n\005KeyId\022\023\n\006key_id\030\001 \001(\tB\003\340A\001\032-\n" + - "\026CertificateFingerprint\022\023\n\013sha256_hash\030\001" + - " \001(\t\"\'\n\010ObjectId\022\033\n\016object_id_path\030\001 \003(\005" + - "B\003\340A\002\"\200\001\n\rX509Extension\022D\n\tobject_id\030\001 \001" + - "(\0132,.google.cloud.security.privateca.v1." + - "ObjectIdB\003\340A\002\022\025\n\010critical\030\002 \001(\010B\003\340A\001\022\022\n\005" + - "value\030\003 \001(\014B\003\340A\002\"\242\005\n\010KeyUsage\022T\n\016base_ke" + - "y_usage\030\001 \001(\0132<.google.cloud.security.pr" + - "ivateca.v1.KeyUsage.KeyUsageOptions\022`\n\022e" + - "xtended_key_usage\030\002 \001(\0132D.google.cloud.s" + - "ecurity.privateca.v1.KeyUsage.ExtendedKe" + - "yUsageOptions\022Q\n\033unknown_extended_key_us" + - "ages\030\003 \003(\0132,.google.cloud.security.priva" + - "teca.v1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021" + - "digital_signature\030\001 \001(\010\022\032\n\022content_commi" + - "tment\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n" + - "\021data_encipherment\030\004 \001(\010\022\025\n\rkey_agreemen" + - "t\030\005 \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007" + - " \001(\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_" + - "only\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023" + - "\n\013server_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010" + - "\022\024\n\014code_signing\030\003 \001(\010\022\030\n\020email_protecti" + - "on\030\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_" + - "signing\030\006 \001(\010\"\270\001\n\007Subject\022\023\n\013common_name" + - "\030\001 \001(\t\022\024\n\014country_code\030\002 \001(\t\022\024\n\014organiza" + - "tion\030\003 \001(\t\022\033\n\023organizational_unit\030\004 \001(\t\022" + - "\020\n\010locality\030\005 \001(\t\022\020\n\010province\030\006 \001(\t\022\026\n\016s" + - "treet_address\030\007 \001(\t\022\023\n\013postal_code\030\010 \001(\t" + - "\"\251\001\n\017SubjectAltNames\022\021\n\tdns_names\030\001 \003(\t\022" + - "\014\n\004uris\030\002 \003(\t\022\027\n\017email_addresses\030\003 \003(\t\022\024" + - "\n\014ip_addresses\030\004 \003(\t\022F\n\013custom_sans\030\005 \003(" + - "\01321.google.cloud.security.privateca.v1.X" + - "509Extension\"\372\001\n\036CertificateIdentityCons" + - "traints\022.\n\016cel_expression\030\001 \001(\0132\021.google" + - ".type.ExprB\003\340A\001\022+\n\031allow_subject_passthr" + - "ough\030\002 \001(\010B\003\340A\002H\000\210\001\001\0225\n#allow_subject_al" + - "t_names_passthrough\030\003 \001(\010B\003\340A\002H\001\210\001\001B\034\n\032_" + - "allow_subject_passthroughB&\n$_allow_subj" + - "ect_alt_names_passthrough\"\236\003\n\037Certificat" + - "eExtensionConstraints\022|\n\020known_extension" + - "s\030\001 \003(\0162].google.cloud.security.privatec" + - "a.v1.CertificateExtensionConstraints.Kno" + - "wnCertificateExtensionB\003\340A\001\022P\n\025additiona" + - "l_extensions\030\002 \003(\0132,.google.cloud.securi" + - "ty.privateca.v1.ObjectIdB\003\340A\001\"\252\001\n\031KnownC" + - "ertificateExtension\022+\n\'KNOWN_CERTIFICATE" + - "_EXTENSION_UNSPECIFIED\020\000\022\022\n\016BASE_KEY_USA" + - "GE\020\001\022\026\n\022EXTENDED_KEY_USAGE\020\002\022\016\n\nCA_OPTIO" + - "NS\020\003\022\016\n\nPOLICY_IDS\020\004\022\024\n\020AIA_OCSP_SERVERS" + - "\020\005*\207\002\n\020RevocationReason\022!\n\035REVOCATION_RE" + - "ASON_UNSPECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$" + - "\n CERTIFICATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023" + - "AFFILIATION_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n" + - "\026CESSATION_OF_OPERATION\020\005\022\024\n\020CERTIFICATE" + - "_HOLD\020\006\022\027\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTR" + - "IBUTE_AUTHORITY_COMPROMISE\020\010*]\n\022SubjectR" + - "equestMode\022$\n SUBJECT_REQUEST_MODE_UNSPE" + - "CIFIED\020\000\022\013\n\007DEFAULT\020\001\022\024\n\020REFLECTED_SPIFF" + - "E\020\002B\206\002\n&com.google.cloud.security.privat" + - "eca.v1B\027PrivateCaResourcesProtoP\001ZKgoogl" + - "e.golang.org/genproto/googleapis/cloud/s" + - "ecurity/privateca/v1;privateca\370\001\001\252\002\"Goog" + - "le.Cloud.Security.PrivateCA.V1\312\002\"Google\\" + - "Cloud\\Security\\PrivateCA\\V1\352\002&Google::Cl" + - "oud::Security::PrivateCA::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.type.ExprProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor, - new java.lang.String[] { "Name", "Type", "Config", "Lifetime", "KeySpec", "SubordinateConfig", "Tier", "State", "PemCaCertificates", "CaCertificateDescriptions", "GcsBucket", "AccessUrls", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Labels", }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor, - new java.lang.String[] { "CaCertificateAccessUrl", "CrlAccessUrls", }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor, - new java.lang.String[] { "CloudKmsKeyVersion", "Algorithm", "KeyVersion", }); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor, - new java.lang.String[] { "Name", "Tier", "IssuancePolicy", "PublishingOptions", "Labels", }); - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor, - new java.lang.String[] { "PublishCaCert", "PublishCrl", }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor, - new java.lang.String[] { "AllowedKeyTypes", "MaximumLifetime", "AllowedIssuanceModes", "BaselineValues", "IdentityConstraints", "PassthroughExtensions", }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor, - new java.lang.String[] { "Rsa", "EllipticCurve", "KeyType", }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor, - new java.lang.String[] { "MinModulusSize", "MaxModulusSize", }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor, - new java.lang.String[] { "SignatureAlgorithm", }); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor, - new java.lang.String[] { "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", }); - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CaPool_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor, - new java.lang.String[] { "Name", "SequenceNumber", "RevokedCertificates", "PemCrl", "AccessUrl", "State", "CreateTime", "UpdateTime", "RevisionId", "Labels", }); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor, - new java.lang.String[] { "Certificate", "HexSerialNumber", "RevocationReason", }); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor, - new java.lang.String[] { "Name", "PemCsr", "Config", "IssuerCertificateAuthority", "Lifetime", "CertificateTemplate", "SubjectMode", "RevocationDetails", "PemCertificate", "CertificateDescription", "PemCertificateChain", "CreateTime", "UpdateTime", "Labels", "CertificateConfig", }); - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor = - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor, - new java.lang.String[] { "RevocationState", "RevocationTime", }); - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_Certificate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor, - new java.lang.String[] { "Name", "PredefinedValues", "IdentityConstraints", "PassthroughExtensions", "Description", "CreateTime", "UpdateTime", "Labels", }); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor, - new java.lang.String[] { "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", }); - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor, - new java.lang.String[] { "IsCa", "MaxIssuerPathLength", "IsCa", "MaxIssuerPathLength", }); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor, - new java.lang.String[] { "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", }); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor = - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor, - new java.lang.String[] { "PemCertificates", }); - internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor, - new java.lang.String[] { "Key", "Format", }); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor, - new java.lang.String[] { "SubjectConfig", "X509Config", "PublicKey", }); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor, - new java.lang.String[] { "Subject", "SubjectAltName", }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor, - new java.lang.String[] { "SubjectDescription", "X509Description", "PublicKey", "SubjectKeyId", "AuthorityKeyId", "CrlDistributionPoints", "AiaIssuingCertificateUrls", "CertFingerprint", }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor, - new java.lang.String[] { "Subject", "SubjectAltName", "HexSerialNumber", "Lifetime", "NotBeforeTime", "NotAfterTime", }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor, - new java.lang.String[] { "KeyId", }); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor = - internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor, - new java.lang.String[] { "Sha256Hash", }); - internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor, - new java.lang.String[] { "ObjectIdPath", }); - internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor, - new java.lang.String[] { "ObjectId", "Critical", "Value", }); - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor, - new java.lang.String[] { "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", }); - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor, - new java.lang.String[] { "DigitalSignature", "ContentCommitment", "KeyEncipherment", "DataEncipherment", "KeyAgreement", "CertSign", "CrlSign", "EncipherOnly", "DecipherOnly", }); - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor, - new java.lang.String[] { "ServerAuth", "ClientAuth", "CodeSigning", "EmailProtection", "TimeStamping", "OcspSigning", }); - internal_static_google_cloud_security_privateca_v1_Subject_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_Subject_descriptor, - new java.lang.String[] { "CommonName", "CountryCode", "Organization", "OrganizationalUnit", "Locality", "Province", "StreetAddress", "PostalCode", }); - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor, - new java.lang.String[] { "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", }); - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor, - new java.lang.String[] { "CelExpression", "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough", "AllowSubjectPassthrough", "AllowSubjectAltNamesPassthrough", }); - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor, - new java.lang.String[] { "KnownExtensions", "AdditionalExtensions", }); - 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.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java deleted file mode 100644 index cddf0b51..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceGrpc.java +++ /dev/null @@ -1,1994 +0,0 @@ -package com.google.cloud.security.privateca.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
- * certificate authorities and issued certificates.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/security/privateca/v1beta1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CertificateAuthorityServiceGrpc { - - private CertificateAuthorityServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.security.privateca.v1beta1.CertificateAuthorityService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCertificateMethod() { - io.grpc.MethodDescriptor getCreateCertificateMethod; - if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateMethod = CertificateAuthorityServiceGrpc.getCreateCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateMethod = getCreateCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificate")) - .build(); - } - } - } - return getCreateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateMethod() { - io.grpc.MethodDescriptor getGetCertificateMethod; - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateMethod = CertificateAuthorityServiceGrpc.getGetCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateMethod = getGetCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificate")) - .build(); - } - } - } - return getGetCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificates", - requestType = com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificatesMethod() { - io.grpc.MethodDescriptor getListCertificatesMethod; - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificatesMethod = CertificateAuthorityServiceGrpc.getListCertificatesMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificatesMethod = getListCertificatesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificates")) - .build(); - } - } - } - return getListCertificatesMethod; - } - - private static volatile io.grpc.MethodDescriptor getRevokeCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RevokeCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRevokeCertificateMethod() { - io.grpc.MethodDescriptor getRevokeCertificateMethod; - if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getRevokeCertificateMethod = CertificateAuthorityServiceGrpc.getRevokeCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getRevokeCertificateMethod = getRevokeCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("RevokeCertificate")) - .build(); - } - } - } - return getRevokeCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", - requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateMethod() { - io.grpc.MethodDescriptor getUpdateCertificateMethod; - if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateMethod = getUpdateCertificateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificate")) - .build(); - } - } - } - return getUpdateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ActivateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getActivateCertificateAuthorityMethod; - if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getActivateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getActivateCertificateAuthorityMethod = getActivateCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ActivateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ActivateCertificateAuthority")) - .build(); - } - } - } - return getActivateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getCreateCertificateAuthorityMethod; - if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getCreateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getCreateCertificateAuthorityMethod = getCreateCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("CreateCertificateAuthority")) - .build(); - } - } - } - return getCreateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getDisableCertificateAuthorityMethod; - if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getDisableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getDisableCertificateAuthorityMethod = getDisableCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("DisableCertificateAuthority")) - .build(); - } - } - } - return getDisableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getEnableCertificateAuthorityMethod; - if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getEnableCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getEnableCertificateAuthorityMethod = getEnableCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("EnableCertificateAuthority")) - .build(); - } - } - } - return getEnableCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchCertificateAuthorityCsr", - requestType = com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod() { - io.grpc.MethodDescriptor getFetchCertificateAuthorityCsrMethod; - if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getFetchCertificateAuthorityCsrMethod = CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod) == null) { - CertificateAuthorityServiceGrpc.getFetchCertificateAuthorityCsrMethod = getFetchCertificateAuthorityCsrMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchCertificateAuthorityCsr")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("FetchCertificateAuthorityCsr")) - .build(); - } - } - } - return getFetchCertificateAuthorityCsrMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getGetCertificateAuthorityMethod; - if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateAuthorityMethod = getGetCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateAuthority")) - .build(); - } - } - } - return getGetCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateAuthorities", - requestType = com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod() { - io.grpc.MethodDescriptor getListCertificateAuthoritiesMethod; - if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateAuthoritiesMethod = CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificateAuthoritiesMethod = getListCertificateAuthoritiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateAuthorities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateAuthorities")) - .build(); - } - } - } - return getListCertificateAuthoritiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getRestoreCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestoreCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRestoreCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getRestoreCertificateAuthorityMethod; - if ((getRestoreCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getRestoreCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getRestoreCertificateAuthorityMethod = getRestoreCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("RestoreCertificateAuthority")) - .build(); - } - } - } - return getRestoreCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getScheduleDeleteCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ScheduleDeleteCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getScheduleDeleteCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getScheduleDeleteCertificateAuthorityMethod; - if ((getScheduleDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getScheduleDeleteCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getScheduleDeleteCertificateAuthorityMethod = getScheduleDeleteCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScheduleDeleteCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ScheduleDeleteCertificateAuthority")) - .build(); - } - } - } - return getScheduleDeleteCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateAuthority", - requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod() { - io.grpc.MethodDescriptor getUpdateCertificateAuthorityMethod; - if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateAuthorityMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateAuthorityMethod = getUpdateCertificateAuthorityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateAuthority")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateAuthority")) - .build(); - } - } - } - return getUpdateCertificateAuthorityMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateRevocationList", - requestType = com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCertificateRevocationListMethod() { - io.grpc.MethodDescriptor getGetCertificateRevocationListMethod; - if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod) == null) { - CertificateAuthorityServiceGrpc.getGetCertificateRevocationListMethod = getGetCertificateRevocationListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetCertificateRevocationList")) - .build(); - } - } - } - return getGetCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateRevocationLists", - requestType = com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCertificateRevocationListsMethod() { - io.grpc.MethodDescriptor getListCertificateRevocationListsMethod; - if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListCertificateRevocationListsMethod = CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod) == null) { - CertificateAuthorityServiceGrpc.getListCertificateRevocationListsMethod = getListCertificateRevocationListsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateRevocationLists")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListCertificateRevocationLists")) - .build(); - } - } - } - return getListCertificateRevocationListsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateRevocationList", - requestType = com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod() { - io.grpc.MethodDescriptor getUpdateCertificateRevocationListMethod; - if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getUpdateCertificateRevocationListMethod = CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod) == null) { - CertificateAuthorityServiceGrpc.getUpdateCertificateRevocationListMethod = getUpdateCertificateRevocationListMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateRevocationList")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("UpdateCertificateRevocationList")) - .build(); - } - } - } - return getUpdateCertificateRevocationListMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetReusableConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetReusableConfig", - requestType = com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetReusableConfigMethod() { - io.grpc.MethodDescriptor getGetReusableConfigMethod; - if ((getGetReusableConfigMethod = CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getGetReusableConfigMethod = CertificateAuthorityServiceGrpc.getGetReusableConfigMethod) == null) { - CertificateAuthorityServiceGrpc.getGetReusableConfigMethod = getGetReusableConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReusableConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("GetReusableConfig")) - .build(); - } - } - } - return getGetReusableConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListReusableConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReusableConfigs", - requestType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, - responseType = com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListReusableConfigsMethod() { - io.grpc.MethodDescriptor getListReusableConfigsMethod; - if ((getListReusableConfigsMethod = CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) == null) { - synchronized (CertificateAuthorityServiceGrpc.class) { - if ((getListReusableConfigsMethod = CertificateAuthorityServiceGrpc.getListReusableConfigsMethod) == null) { - CertificateAuthorityServiceGrpc.getListReusableConfigsMethod = getListReusableConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReusableConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CertificateAuthorityServiceMethodDescriptorSupplier("ListReusableConfigs")) - .build(); - } - } - } - return getListReusableConfigsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CertificateAuthorityServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CertificateAuthorityServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CertificateAuthorityServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateAuthorityServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - }; - return CertificateAuthorityServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static abstract class CertificateAuthorityServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void createCertificate(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMethod(), responseObserver); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMethod(), responseObserver); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void listCertificates(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificatesMethod(), responseObserver); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void revokeCertificate(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeCertificateMethod(), responseObserver); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMethod(), responseObserver); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getActivateCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchCertificateAuthorityCsrMethod(), responseObserver); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateAuthoritiesMethod(), responseObserver); - } - - /** - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public void restoreCertificateAuthority(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public void scheduleDeleteCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getScheduleDeleteCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateAuthorityMethod(), responseObserver); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateRevocationListMethod(), responseObserver); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateRevocationListsMethod(), responseObserver); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateRevocationListMethod(), responseObserver); - } - - /** - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void getReusableConfig(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReusableConfigMethod(), responseObserver); - } - - /** - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void listReusableConfigs(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReusableConfigsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_CREATE_CERTIFICATE))) - .addMethod( - getGetCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_GET_CERTIFICATE))) - .addMethod( - getListCertificatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse>( - this, METHODID_LIST_CERTIFICATES))) - .addMethod( - getRevokeCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_REVOKE_CERTIFICATE))) - .addMethod( - getUpdateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest, - com.google.cloud.security.privateca.v1beta1.Certificate>( - this, METHODID_UPDATE_CERTIFICATE))) - .addMethod( - getActivateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ACTIVATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getCreateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getDisableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_DISABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getEnableCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_ENABLE_CERTIFICATE_AUTHORITY))) - .addMethod( - getFetchCertificateAuthorityCsrMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest, - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse>( - this, METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR))) - .addMethod( - getGetCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest, - com.google.cloud.security.privateca.v1beta1.CertificateAuthority>( - this, METHODID_GET_CERTIFICATE_AUTHORITY))) - .addMethod( - getListCertificateAuthoritiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse>( - this, METHODID_LIST_CERTIFICATE_AUTHORITIES))) - .addMethod( - getRestoreCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_RESTORE_CERTIFICATE_AUTHORITY))) - .addMethod( - getScheduleDeleteCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY))) - .addMethod( - getUpdateCertificateAuthorityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_AUTHORITY))) - .addMethod( - getGetCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest, - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>( - this, METHODID_GET_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getListCertificateRevocationListsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest, - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse>( - this, METHODID_LIST_CERTIFICATE_REVOCATION_LISTS))) - .addMethod( - getUpdateCertificateRevocationListMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST))) - .addMethod( - getGetReusableConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest, - com.google.cloud.security.privateca.v1beta1.ReusableConfig>( - this, METHODID_GET_REUSABLE_CONFIG))) - .addMethod( - getListReusableConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest, - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse>( - this, METHODID_LIST_REUSABLE_CONFIGS))) - .build(); - } - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CertificateAuthorityServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceStub(channel, callOptions); - } - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void createCertificate(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void listCertificates(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public void revokeCertificate(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public void updateCertificate(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public void activateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public void createCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void disableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void enableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public void fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void getCertificateAuthority(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void listCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public void restoreCertificateAuthority(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public void scheduleDeleteCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public void updateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void getCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void listCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public void updateCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void getReusableConfig(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public void listReusableConfigs(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CertificateAuthorityServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate createCertificate(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse listCertificates(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificatesMethod(), getCallOptions(), request); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate revokeCertificate(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRevokeCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.Certificate updateCertificate(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.longrunning.Operation activateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getActivateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation disableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation enableCertificateAuthority(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchCertificateAuthorityCsrMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse listCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateAuthoritiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public com.google.longrunning.Operation restoreCertificateAuthority(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestoreCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public com.google.longrunning.Operation scheduleDeleteCertificateAuthority(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getScheduleDeleteCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateAuthority(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateAuthorityMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse listCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateRevocationListsMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.longrunning.Operation updateCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateRevocationListMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfig(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReusableConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse listReusableConfigs(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReusableConfigsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * [Certificate Authority Service][google.cloud.security.privateca.v1beta1.CertificateAuthorityService] manages private
-   * certificate authorities and issued certificates.
-   * 
- */ - public static final class CertificateAuthorityServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private CertificateAuthorityServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateAuthorityServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateAuthorityServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular
-     * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCertificate( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificate( - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificates( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); - } - - /** - *
-     * Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture revokeCertificate( - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRevokeCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the
-     * [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificate( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); - } - - /** - *
-     * Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the
-     * parent Certificate Authority signs a certificate signing request from
-     * [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation
-     * process.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture activateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getActivateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture disableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture enableCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
-     * that is in state
-     * [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is
-     * of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must
-     * then be signed by the desired parent Certificate Authority, which could be
-     * another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem
-     * certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchCertificateAuthorityCsr( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchCertificateAuthorityCsrMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificateAuthorities( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateAuthoritiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture restoreCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestoreCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture scheduleDeleteCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getScheduleDeleteCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificateAuthority( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateAuthorityMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateRevocationListMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateRevocationListsMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateRevocationListMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getReusableConfig( - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetReusableConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listReusableConfigs( - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReusableConfigsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CERTIFICATE = 0; - private static final int METHODID_GET_CERTIFICATE = 1; - private static final int METHODID_LIST_CERTIFICATES = 2; - private static final int METHODID_REVOKE_CERTIFICATE = 3; - private static final int METHODID_UPDATE_CERTIFICATE = 4; - private static final int METHODID_ACTIVATE_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_CREATE_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_DISABLE_CERTIFICATE_AUTHORITY = 7; - private static final int METHODID_ENABLE_CERTIFICATE_AUTHORITY = 8; - private static final int METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR = 9; - private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 10; - private static final int METHODID_LIST_CERTIFICATE_AUTHORITIES = 11; - private static final int METHODID_RESTORE_CERTIFICATE_AUTHORITY = 12; - private static final int METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY = 13; - private static final int METHODID_UPDATE_CERTIFICATE_AUTHORITY = 14; - private static final int METHODID_GET_CERTIFICATE_REVOCATION_LIST = 15; - private static final int METHODID_LIST_CERTIFICATE_REVOCATION_LISTS = 16; - private static final int METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST = 17; - private static final int METHODID_GET_REUSABLE_CONFIG = 18; - private static final int METHODID_LIST_REUSABLE_CONFIGS = 19; - - 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 CertificateAuthorityServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CertificateAuthorityServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CERTIFICATE: - serviceImpl.createCertificate((com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE: - serviceImpl.getCertificate((com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATES: - serviceImpl.listCertificates((com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REVOKE_CERTIFICATE: - serviceImpl.revokeCertificate((com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE: - serviceImpl.updateCertificate((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACTIVATE_CERTIFICATE_AUTHORITY: - serviceImpl.activateCertificateAuthority((com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_AUTHORITY: - serviceImpl.createCertificateAuthority((com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_CERTIFICATE_AUTHORITY: - serviceImpl.disableCertificateAuthority((com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_CERTIFICATE_AUTHORITY: - serviceImpl.enableCertificateAuthority((com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CERTIFICATE_AUTHORITY_CSR: - serviceImpl.fetchCertificateAuthorityCsr((com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_AUTHORITY: - serviceImpl.getCertificateAuthority((com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_AUTHORITIES: - serviceImpl.listCertificateAuthorities((com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESTORE_CERTIFICATE_AUTHORITY: - serviceImpl.restoreCertificateAuthority((com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SCHEDULE_DELETE_CERTIFICATE_AUTHORITY: - serviceImpl.scheduleDeleteCertificateAuthority((com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_AUTHORITY: - serviceImpl.updateCertificateAuthority((com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CERTIFICATE_REVOCATION_LIST: - serviceImpl.getCertificateRevocationList((com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_REVOCATION_LISTS: - serviceImpl.listCertificateRevocationLists((com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_REVOCATION_LIST: - serviceImpl.updateCertificateRevocationList((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_REUSABLE_CONFIG: - serviceImpl.getReusableConfig((com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_REUSABLE_CONFIGS: - serviceImpl.listReusableConfigs((com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) 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 CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CertificateAuthorityServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CertificateAuthorityService"); - } - } - - private static final class CertificateAuthorityServiceFileDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier { - CertificateAuthorityServiceFileDescriptorSupplier() {} - } - - private static final class CertificateAuthorityServiceMethodDescriptorSupplier - extends CertificateAuthorityServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CertificateAuthorityServiceMethodDescriptorSupplier(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 (CertificateAuthorityServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CertificateAuthorityServiceFileDescriptorSupplier()) - .addMethod(getCreateCertificateMethod()) - .addMethod(getGetCertificateMethod()) - .addMethod(getListCertificatesMethod()) - .addMethod(getRevokeCertificateMethod()) - .addMethod(getUpdateCertificateMethod()) - .addMethod(getActivateCertificateAuthorityMethod()) - .addMethod(getCreateCertificateAuthorityMethod()) - .addMethod(getDisableCertificateAuthorityMethod()) - .addMethod(getEnableCertificateAuthorityMethod()) - .addMethod(getFetchCertificateAuthorityCsrMethod()) - .addMethod(getGetCertificateAuthorityMethod()) - .addMethod(getListCertificateAuthoritiesMethod()) - .addMethod(getRestoreCertificateAuthorityMethod()) - .addMethod(getScheduleDeleteCertificateAuthorityMethod()) - .addMethod(getUpdateCertificateAuthorityMethod()) - .addMethod(getGetCertificateRevocationListMethod()) - .addMethod(getListCertificateRevocationListsMethod()) - .addMethod(getUpdateCertificateRevocationListMethod()) - .addMethod(getGetReusableConfigMethod()) - .addMethod(getListReusableConfigsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java deleted file mode 100644 index fa142344..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface FetchCertificateAuthorityCsrRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
-   * format `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
-   * format `projects/*/locations/*/certificateAuthorities/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java deleted file mode 100644 index 810c0641..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetCertificateAuthorityRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java deleted file mode 100644 index c8f61e46..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetCertificateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java deleted file mode 100644 index 32369e72..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetCertificateRevocationListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
-   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java deleted file mode 100644 index e2769e39..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface GetReusableConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java deleted file mode 100644 index 84405c39..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java +++ /dev/null @@ -1,620 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/service.proto - -package com.google.cloud.security.privateca.v1beta1; - -public final class PrivateCaProto { - private PrivateCaProto() {} - 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_security_privateca_v1beta1_CreateCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/security/privateca/v1beta" + - "1/service.proto\022\'google.cloud.security.p" + - "rivateca.v1beta1\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\031google/api/res" + - "ource.proto\0327google/cloud/security/priva" + - "teca/v1beta1/resources.proto\032#google/lon" + - "grunning/operations.proto\032\036google/protob" + - "uf/duration.proto\032 google/protobuf/field" + - "_mask.proto\032\037google/protobuf/timestamp.p" + - "roto\"\347\001\n\030CreateCertificateRequest\022E\n\006par" + - "ent\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis." + - "com/CertificateAuthority\022\033\n\016certificate_" + - "id\030\002 \001(\tB\003\340A\001\022N\n\013certificate\030\003 \001(\01324.goo" + - "gle.cloud.security.privateca.v1beta1.Cer" + - "tificateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"S" + - "\n\025GetCertificateRequest\022:\n\004name\030\001 \001(\tB,\340" + - "A\002\372A&\n$privateca.googleapis.com/Certific" + - "ate\"\275\001\n\027ListCertificatesRequest\022E\n\006paren" + - "t\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.co" + - "m/CertificateAuthority\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\006filte" + - "r\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\224\001\n\030" + - "ListCertificatesResponse\022J\n\014certificates" + - "\030\001 \003(\01324.google.cloud.security.privateca" + - ".v1beta1.Certificate\022\027\n\017next_page_token\030" + - "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\277\001\n\030RevokeCer" + - "tificateRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$p" + - "rivateca.googleapis.com/Certificate\022N\n\006r" + - "eason\030\002 \001(\01629.google.cloud.security.priv" + - "ateca.v1beta1.RevocationReasonB\003\340A\002\022\027\n\nr" + - "equest_id\030\003 \001(\tB\003\340A\001\"\271\001\n\030UpdateCertifica" + - "teRequest\022N\n\013certificate\030\001 \001(\01324.google." + - "cloud.security.privateca.v1beta1.Certifi" + - "cateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 " + - "\001(\tB\003\340A\001\"\201\002\n#ActivateCertificateAuthorit" + - "yRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privatec" + - "a.googleapis.com/CertificateAuthority\022\037\n" + - "\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022[\n\022subord" + - "inate_config\030\003 \001(\0132:.google.cloud.securi" + - "ty.privateca.v1beta1.SubordinateConfigB\003" + - "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\201\002\n!CreateC" + - "ertificateAuthorityRequest\0229\n\006parent\030\001 \001" + - "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + - "ation\022%\n\030certificate_authority_id\030\002 \001(\tB" + - "\003\340A\002\022a\n\025certificate_authority\030\003 \001(\0132=.go" + - "ogle.cloud.security.privateca.v1beta1.Ce" + - "rtificateAuthorityB\003\340A\002\022\027\n\nrequest_id\030\004 " + - "\001(\tB\003\340A\001\"\202\001\n\"DisableCertificateAuthority" + - "Request\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca" + - ".googleapis.com/CertificateAuthority\022\027\n\n" + - "request_id\030\002 \001(\tB\003\340A\001\"\201\001\n!EnableCertific" + - "ateAuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A" + - "/\n-privateca.googleapis.com/CertificateA" + - "uthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"j\n#Fet" + - "chCertificateAuthorityCsrRequest\022C\n\004name" + - "\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.com" + - "/CertificateAuthority\"<\n$FetchCertificat" + - "eAuthorityCsrResponse\022\024\n\007pem_csr\030\001 \001(\tB\003" + - "\340A\003\"e\n\036GetCertificateAuthorityRequest\022C\n" + - "\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapi" + - "s.com/CertificateAuthority\"\273\001\n!ListCerti" + - "ficateAuthoritiesRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + - "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + - "er_by\030\005 \001(\tB\003\340A\001\"\262\001\n\"ListCertificateAuth" + - "oritiesResponse\022^\n\027certificate_authoriti" + - "es\030\001 \003(\0132=.google.cloud.security.private" + - "ca.v1beta1.CertificateAuthority\022\027\n\017next_" + - "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\001" + - "\n\"RestoreCertificateAuthorityRequest\022C\n\004" + - "name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis" + - ".com/CertificateAuthority\022\027\n\nrequest_id\030" + - "\002 \001(\tB\003\340A\001\"\211\001\n)ScheduleDeleteCertificate" + - "AuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + - "privateca.googleapis.com/CertificateAuth" + - "ority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\325\001\n!Updat" + - "eCertificateAuthorityRequest\022a\n\025certific" + - "ate_authority\030\001 \001(\0132=.google.cloud.secur" + - "ity.privateca.v1beta1.CertificateAuthori" + - "tyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + - "otobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(" + - "\tB\003\340A\001\"o\n#GetCertificateRevocationListRe" + - "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2privateca.g" + - "oogleapis.com/CertificateRevocationList\"" + - "\313\001\n%ListCertificateRevocationListsReques" + - "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.goo" + - "gleapis.com/CertificateAuthority\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(\t" + - "B\003\340A\001\"\300\001\n&ListCertificateRevocationLists" + - "Response\022h\n\034certificate_revocation_lists" + - "\030\001 \003(\0132B.google.cloud.security.privateca" + - ".v1beta1.CertificateRevocationList\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + - "\"\345\001\n&UpdateCertificateRevocationListRequ" + - "est\022l\n\033certificate_revocation_list\030\001 \001(\013" + - "2B.google.cloud.security.privateca.v1bet" + - "a1.CertificateRevocationListB\003\340A\002\0224\n\013upd" + - "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + - "skB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"Y\n\030GetR" + - "eusableConfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372" + - "A)\n\'privateca.googleapis.com/ReusableCon" + - "fig\"\264\001\n\032ListReusableConfigsRequest\0229\n\006pa" + - "rent\030\001 \001(\tB)\340A\002\372A#\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\"\236\001\n\033ListReusa" + - "bleConfigsResponse\022Q\n\020reusable_configs\030\001" + - " \003(\01327.google.cloud.security.privateca.v" + - "1beta1.ReusableConfig\022\027\n\017next_page_token" + - "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\200\002\n\021Operatio" + - "nMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006ta" + - "rget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016st" + - "atus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_can" + - "cellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(" + - "\tB\003\340A\0032\321,\n\033CertificateAuthorityService\022\226" + - "\002\n\021CreateCertificate\022A.google.cloud.secu" + - "rity.privateca.v1beta1.CreateCertificate" + - "Request\0324.google.cloud.security.privatec" + - "a.v1beta1.Certificate\"\207\001\202\323\344\223\002]\"N/v1beta1" + - "/{parent=projects/*/locations/*/certific" + - "ateAuthorities/*}/certificates:\013certific" + - "ate\332A!parent,certificate,certificate_id\022" + - "\345\001\n\016GetCertificate\022>.google.cloud.securi" + - "ty.privateca.v1beta1.GetCertificateReque" + - "st\0324.google.cloud.security.privateca.v1b" + - "eta1.Certificate\"]\202\323\344\223\002P\022N/v1beta1/{name" + - "=projects/*/locations/*/certificateAutho" + - "rities/*/certificates/*}\332A\004name\022\370\001\n\020List" + - "Certificates\022@.google.cloud.security.pri" + - "vateca.v1beta1.ListCertificatesRequest\032A" + - ".google.cloud.security.privateca.v1beta1" + - ".ListCertificatesResponse\"_\202\323\344\223\002P\022N/v1be" + - "ta1/{parent=projects/*/locations/*/certi" + - "ficateAuthorities/*}/certificates\332A\006pare" + - "nt\022\365\001\n\021RevokeCertificate\022A.google.cloud." + - "security.privateca.v1beta1.RevokeCertifi" + - "cateRequest\0324.google.cloud.security.priv" + - "ateca.v1beta1.Certificate\"g\202\323\344\223\002Z\"U/v1be" + - "ta1/{name=projects/*/locations/*/certifi" + - "cateAuthorities/*/certificates/*}:revoke" + - ":\001*\332A\004name\022\230\002\n\021UpdateCertificate\022A.googl" + - "e.cloud.security.privateca.v1beta1.Updat" + - "eCertificateRequest\0324.google.cloud.secur" + - "ity.privateca.v1beta1.Certificate\"\211\001\202\323\344\223" + - "\002i2Z/v1beta1/{certificate.name=projects/" + - "*/locations/*/certificateAuthorities/*/c" + - "ertificates/*}:\013certificate\332A\027certificat" + - "e,update_mask\022\224\002\n\034ActivateCertificateAut" + - "hority\022L.google.cloud.security.privateca" + - ".v1beta1.ActivateCertificateAuthorityReq" + - "uest\032\035.google.longrunning.Operation\"\206\001\202\323" + - "\344\223\002M\"H/v1beta1/{name=projects/*/location" + - "s/*/certificateAuthorities/*}:activate:\001" + - "*\332A\004name\312A)\n\024CertificateAuthority\022\021Opera" + - "tionMetadata\022\314\002\n\032CreateCertificateAuthor" + - "ity\022J.google.cloud.security.privateca.v1" + - "beta1.CreateCertificateAuthorityRequest\032" + - "\035.google.longrunning.Operation\"\302\001\202\323\344\223\002X\"" + - "?/v1beta1/{parent=projects/*/locations/*" + - "}/certificateAuthorities:\025certificate_au" + - "thority\332A5parent,certificate_authority,c" + - "ertificate_authority_id\312A)\n\024CertificateA" + - "uthority\022\021OperationMetadata\022\221\002\n\033DisableC" + - "ertificateAuthority\022K.google.cloud.secur" + - "ity.privateca.v1beta1.DisableCertificate" + - "AuthorityRequest\032\035.google.longrunning.Op" + - "eration\"\205\001\202\323\344\223\002L\"G/v1beta1/{name=project" + - "s/*/locations/*/certificateAuthorities/*" + - "}:disable:\001*\332A\004name\312A)\n\024CertificateAutho" + - "rity\022\021OperationMetadata\022\216\002\n\032EnableCertif" + - "icateAuthority\022J.google.cloud.security.p" + - "rivateca.v1beta1.EnableCertificateAuthor" + - "ityRequest\032\035.google.longrunning.Operatio" + - "n\"\204\001\202\323\344\223\002K\"F/v1beta1/{name=projects/*/lo" + - "cations/*/certificateAuthorities/*}:enab" + - "le:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021O" + - "perationMetadata\022\221\002\n\034FetchCertificateAut" + - "horityCsr\022L.google.cloud.security.privat" + - "eca.v1beta1.FetchCertificateAuthorityCsr" + - "Request\032M.google.cloud.security.privatec" + - "a.v1beta1.FetchCertificateAuthorityCsrRe" + - "sponse\"T\202\323\344\223\002G\022E/v1beta1/{name=projects/" + - "*/locations/*/certificateAuthorities/*}:" + - "fetch\332A\004name\022\361\001\n\027GetCertificateAuthority" + - "\022G.google.cloud.security.privateca.v1bet" + - "a1.GetCertificateAuthorityRequest\032=.goog" + - "le.cloud.security.privateca.v1beta1.Cert" + - "ificateAuthority\"N\202\323\344\223\002A\022?/v1beta1/{name" + - "=projects/*/locations/*/certificateAutho" + - "rities/*}\332A\004name\022\207\002\n\032ListCertificateAuth" + - "orities\022J.google.cloud.security.privatec" + - "a.v1beta1.ListCertificateAuthoritiesRequ" + - "est\032K.google.cloud.security.privateca.v1" + - "beta1.ListCertificateAuthoritiesResponse" + - "\"P\202\323\344\223\002A\022?/v1beta1/{parent=projects/*/lo" + - "cations/*}/certificateAuthorities\332A\006pare" + - "nt\022\221\002\n\033RestoreCertificateAuthority\022K.goo" + - "gle.cloud.security.privateca.v1beta1.Res" + - "toreCertificateAuthorityRequest\032\035.google" + - ".longrunning.Operation\"\205\001\202\323\344\223\002L\"G/v1beta" + - "1/{name=projects/*/locations/*/certifica" + - "teAuthorities/*}:restore:\001*\332A\004name\312A)\n\024C" + - "ertificateAuthority\022\021OperationMetadata\022\246" + - "\002\n\"ScheduleDeleteCertificateAuthority\022R." + - "google.cloud.security.privateca.v1beta1." + - "ScheduleDeleteCertificateAuthorityReques" + - "t\032\035.google.longrunning.Operation\"\214\001\202\323\344\223\002" + - "S\"N/v1beta1/{name=projects/*/locations/*" + - "/certificateAuthorities/*}:scheduleDelet" + - "e:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021Op" + - "erationMetadata\022\316\002\n\032UpdateCertificateAut" + - "hority\022J.google.cloud.security.privateca" + - ".v1beta1.UpdateCertificateAuthorityReque" + - "st\032\035.google.longrunning.Operation\"\304\001\202\323\344\223" + - "\002n2U/v1beta1/{certificate_authority.name" + - "=projects/*/locations/*/certificateAutho" + - "rities/*}:\025certificate_authority\332A!certi" + - "ficate_authority,update_mask\312A)\n\024Certifi" + - "cateAuthority\022\021OperationMetadata\022\235\002\n\034Get" + - "CertificateRevocationList\022L.google.cloud" + - ".security.privateca.v1beta1.GetCertifica" + - "teRevocationListRequest\032B.google.cloud.s" + - "ecurity.privateca.v1beta1.CertificateRev" + - "ocationList\"k\202\323\344\223\002^\022\\/v1beta1/{name=proj" + - "ects/*/locations/*/certificateAuthoritie" + - "s/*/certificateRevocationLists/*}\332A\004name" + - "\022\260\002\n\036ListCertificateRevocationLists\022N.go" + - "ogle.cloud.security.privateca.v1beta1.Li" + - "stCertificateRevocationListsRequest\032O.go" + - "ogle.cloud.security.privateca.v1beta1.Li" + - "stCertificateRevocationListsResponse\"m\202\323" + - "\344\223\002^\022\\/v1beta1/{parent=projects/*/locati" + - "ons/*/certificateAuthorities/*}/certific" + - "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + - "rtificateRevocationList\022O.google.cloud.s" + - "ecurity.privateca.v1beta1.UpdateCertific" + - "ateRevocationListRequest\032\035.google.longru" + - "nning.Operation\"\371\001\202\323\344\223\002\227\0012x/v1beta1/{cer" + - "tificate_revocation_list.name=projects/*" + - "/locations/*/certificateAuthorities/*/ce" + - "rtificateRevocationLists/*}:\033certificate" + - "_revocation_list\332A\'certificate_revocatio" + - "n_list,update_mask\312A.\n\031CertificateRevoca" + - "tionList\022\021OperationMetadata\022\330\001\n\021GetReusa" + - "bleConfig\022A.google.cloud.security.privat" + - "eca.v1beta1.GetReusableConfigRequest\0327.g" + - "oogle.cloud.security.privateca.v1beta1.R" + - "eusableConfig\"G\202\323\344\223\002:\0228/v1beta1/{name=pr" + - "ojects/*/locations/*/reusableConfigs/*}\332" + - "A\004name\022\353\001\n\023ListReusableConfigs\022C.google." + - "cloud.security.privateca.v1beta1.ListReu" + - "sableConfigsRequest\032D.google.cloud.secur" + - "ity.privateca.v1beta1.ListReusableConfig" + - "sResponse\"I\202\323\344\223\002:\0228/v1beta1/{parent=proj" + - "ects/*/locations/*}/reusableConfigs\332A\006pa" + - "rent\032L\312A\030privateca.googleapis.com\322A.http" + - "s://www.googleapis.com/auth/cloud-platfo" + - "rmB\226\002\n+com.google.cloud.security.private" + - "ca.v1beta1B\016PrivateCaProtoP\001ZPgoogle.gol" + - "ang.org/genproto/googleapis/cloud/securi" + - "ty/privateca/v1beta1;privateca\370\001\001\252\002\'Goog" + - "le.Cloud.Security.PrivateCA.V1Beta1\312\002\'Go" + - "ogle\\Cloud\\Security\\PrivateCA\\V1beta1\352\002+" + - "Google::Cloud::Security::PrivateCA::V1be" + - "ta1b\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.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor, - new java.lang.String[] { "Parent", "CertificateId", "Certificate", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor, - new java.lang.String[] { "Certificates", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor, - new java.lang.String[] { "Name", "Reason", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor, - new java.lang.String[] { "Certificate", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor, - new java.lang.String[] { "PemCsr", }); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor, - new java.lang.String[] { "CertificateAuthorities", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor, - new java.lang.String[] { "CertificateAuthority", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor, - new java.lang.String[] { "CertificateRevocationLists", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor, - new java.lang.String[] { "CertificateRevocationList", "UpdateMask", "RequestId", }); - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor, - new java.lang.String[] { "ReusableConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java deleted file mode 100644 index fb4bb2a0..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java +++ /dev/null @@ -1,724 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/resources.proto - -package com.google.cloud.security.privateca.v1beta1; - -public final class PrivateCaResourcesProto { - private PrivateCaResourcesProto() {} - 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_security_privateca_v1beta1_CertificateAuthority_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/security/privateca/v1beta" + - "1/resources.proto\022\'google.cloud.security" + - ".privateca.v1beta1\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\032\034google/api/annotations." + - "proto\"\250\034\n\024CertificateAuthority\022\021\n\004name\030\001" + - " \001(\tB\003\340A\003\022X\n\004type\030\002 \001(\0162B.google.cloud.s" + - "ecurity.privateca.v1beta1.CertificateAut" + - "hority.TypeB\006\340A\002\340A\005\022X\n\004tier\030\003 \001(\0162B.goog" + - "le.cloud.security.privateca.v1beta1.Cert" + - "ificateAuthority.TierB\006\340A\002\340A\005\022R\n\006config\030" + - "\004 \001(\0132:.google.cloud.security.privateca." + - "v1beta1.CertificateConfigB\006\340A\002\340A\005\0220\n\010lif" + - "etime\030\005 \001(\0132\031.google.protobuf.DurationB\003" + - "\340A\002\022f\n\010key_spec\030\006 \001(\0132L.google.cloud.sec" + - "urity.privateca.v1beta1.CertificateAutho" + - "rity.KeyVersionSpecB\006\340A\002\340A\005\022y\n\022certifica" + - "te_policy\030\007 \001(\0132X.google.cloud.security." + - "privateca.v1beta1.CertificateAuthority.C" + - "ertificateAuthorityPolicyB\003\340A\001\022j\n\017issuin" + - "g_options\030\010 \001(\0132L.google.cloud.security." + - "privateca.v1beta1.CertificateAuthority.I" + - "ssuingOptionsB\003\340A\001\022[\n\022subordinate_config" + - "\030\023 \001(\0132:.google.cloud.security.privateca" + - ".v1beta1.SubordinateConfigB\003\340A\001\022W\n\005state" + - "\030\n \001(\0162C.google.cloud.security.privateca" + - ".v1beta1.CertificateAuthority.StateB\003\340A\003" + - "\022 \n\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022i\n\033ca" + - "_certificate_descriptions\030\014 \003(\0132?.google" + - ".cloud.security.privateca.v1beta1.Certif" + - "icateDescriptionB\003\340A\003\022\027\n\ngcs_bucket\030\r \001(" + - "\tB\003\340A\005\022b\n\013access_urls\030\016 \001(\0132H.google.clo" + - "ud.security.privateca.v1beta1.Certificat" + - "eAuthority.AccessUrlsB\003\340A\003\0224\n\013create_tim" + - "e\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\020 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0224\n\013delete_time\030\021 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\022^\n\006labels\030\022" + - " \003(\0132I.google.cloud.security.privateca.v" + - "1beta1.CertificateAuthority.LabelsEntryB" + - "\003\340A\001\032W\n\016IssuingOptions\022 \n\023include_ca_cer" + - "t_url\030\001 \001(\010B\003\340A\002\022#\n\026include_crl_access_u" + - "rl\030\002 \001(\010B\003\340A\002\032\276\t\n\032CertificateAuthorityPo" + - "licy\022\216\001\n\023allowed_config_list\030\001 \001(\0132j.goo" + - "gle.cloud.security.privateca.v1beta1.Cer" + - "tificateAuthority.CertificateAuthorityPo" + - "licy.AllowedConfigListB\003\340A\001H\000\022f\n\027overwri" + - "te_config_values\030\002 \001(\0132>.google.cloud.se" + - "curity.privateca.v1beta1.ReusableConfigW" + - "rapperB\003\340A\001H\000\022b\n#allowed_locations_and_o" + - "rganizations\030\003 \003(\01320.google.cloud.securi" + - "ty.privateca.v1beta1.SubjectB\003\340A\001\022!\n\024all" + - "owed_common_names\030\004 \003(\tB\003\340A\001\022\212\001\n\014allowed" + - "_sans\030\005 \001(\0132o.google.cloud.security.priv" + - "ateca.v1beta1.CertificateAuthority.Certi" + - "ficateAuthorityPolicy.AllowedSubjectAltN" + - "amesB\003\340A\001\0228\n\020maximum_lifetime\030\006 \001(\0132\031.go" + - "ogle.protobuf.DurationB\003\340A\001\022\213\001\n\026allowed_" + - "issuance_modes\030\010 \001(\0132f.google.cloud.secu" + - "rity.privateca.v1beta1.CertificateAuthor" + - "ity.CertificateAuthorityPolicy.IssuanceM" + - "odesB\003\340A\001\032w\n\021AllowedConfigList\022b\n\025allowe" + - "d_config_values\030\001 \003(\0132>.google.cloud.sec" + - "urity.privateca.v1beta1.ReusableConfigWr" + - "apperB\003\340A\002\032\336\001\n\026AllowedSubjectAltNames\022\036\n" + - "\021allowed_dns_names\030\001 \003(\tB\003\340A\001\022\031\n\014allowed" + - "_uris\030\002 \003(\tB\003\340A\001\022$\n\027allowed_email_addres" + - "ses\030\003 \003(\tB\003\340A\001\022\030\n\013allowed_ips\030\004 \003(\tB\003\340A\001" + - "\022)\n\034allow_globbing_dns_wildcards\030\005 \001(\010B\003" + - "\340A\001\022\036\n\021allow_custom_sans\030\006 \001(\010B\003\340A\001\032`\n\rI" + - "ssuanceModes\022%\n\030allow_csr_based_issuance" + - "\030\001 \001(\010B\003\340A\002\022(\n\033allow_config_based_issuan" + - "ce\030\002 \001(\010B\003\340A\002B\017\n\rconfig_policy\032G\n\nAccess" + - "Urls\022!\n\031ca_certificate_access_url\030\001 \001(\t\022" + - "\026\n\016crl_access_url\030\002 \001(\t\032\257\001\n\016KeyVersionSp" + - "ec\022$\n\025cloud_kms_key_version\030\001 \001(\tB\003\340A\002H\000" + - "\022i\n\talgorithm\030\002 \001(\0162O.google.cloud.secur" + - "ity.privateca.v1beta1.CertificateAuthori" + - "ty.SignHashAlgorithmB\003\340A\002H\000B\014\n\nKeyVersio" + - "n\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017" + - "\n\013SELF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"8\n\004Tier" + - "\022\024\n\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n" + - "\n\006DEVOPS\020\002\"g\n\005State\022\025\n\021STATE_UNSPECIFIED" + - "\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\026\n\022PENDING" + - "_ACTIVATION\020\003\022\024\n\020PENDING_DELETION\020\004\"\374\001\n\021" + - "SignHashAlgorithm\022#\n\037SIGN_HASH_ALGORITHM" + - "_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022" + - "\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS_4096" + - "_SHA256\020\003\022\031\n\025RSA_PKCS1_2048_SHA256\020\006\022\031\n\025" + - "RSA_PKCS1_3072_SHA256\020\007\022\031\n\025RSA_PKCS1_409" + - "6_SHA256\020\010\022\022\n\016EC_P256_SHA256\020\004\022\022\n\016EC_P38" + - "4_SHA384\020\005:\213\001\352A\207\001\n-privateca.googleapis." + - "com/CertificateAuthority\022Vprojects/{proj" + - "ect}/locations/{location}/certificateAut" + - "horities/{certificate_authority}\"\371\007\n\031Cer" + - "tificateRevocationList\022\021\n\004name\030\001 \001(\tB\003\340A" + - "\003\022\034\n\017sequence_number\030\002 \001(\003B\003\340A\003\022x\n\024revok" + - "ed_certificates\030\003 \003(\0132U.google.cloud.sec" + - "urity.privateca.v1beta1.CertificateRevoc" + - "ationList.RevokedCertificateB\003\340A\003\022\024\n\007pem" + - "_crl\030\004 \001(\tB\003\340A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003" + - "\022\\\n\005state\030\006 \001(\0162H.google.cloud.security." + - "privateca.v1beta1.CertificateRevocationL" + - "ist.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + - "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\022c\n\006labels\030\t \003(\0132N.google.cloud.securi" + - "ty.privateca.v1beta1.CertificateRevocati" + - "onList.LabelsEntryB\003\340A\001\032\232\001\n\022RevokedCerti" + - "ficate\022\023\n\013certificate\030\001 \001(\t\022\031\n\021hex_seria" + - "l_number\030\002 \001(\t\022T\n\021revocation_reason\030\003 \001(" + - "\01629.google.cloud.security.privateca.v1be" + - "ta1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n\021" + - "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPER" + - "SEDED\020\002:\312\001\352A\306\001\n2privateca.googleapis.com" + - "/CertificateRevocationList\022\217\001projects/{p" + - "roject}/locations/{location}/certificate" + - "Authorities/{certificate_authority}/cert" + - "ificateRevocationLists/{certificate_revo" + - "cation_list}\"\232\010\n\013Certificate\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022\026\n\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022Q\n\006confi" + - "g\030\003 \001(\0132:.google.cloud.security.privatec" + - "a.v1beta1.CertificateConfigB\003\340A\005H\000\0223\n\010li" + - "fetime\030\004 \001(\0132\031.google.protobuf.DurationB" + - "\006\340A\002\340A\005\022g\n\022revocation_details\030\005 \001(\0132F.go" + - "ogle.cloud.security.privateca.v1beta1.Ce" + - "rtificate.RevocationDetailsB\003\340A\003\022\034\n\017pem_" + - "certificate\030\006 \001(\tB\003\340A\003\022e\n\027certificate_de" + - "scription\030\007 \001(\0132?.google.cloud.security." + - "privateca.v1beta1.CertificateDescription" + - "B\003\340A\003\022\"\n\025pem_certificate_chain\030\010 \003(\tB\003\340A" + - "\003\0224\n\013create_time\030\t \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022U\n\006labels\030" + - "\013 \003(\0132@.google.cloud.security.privateca." + - "v1beta1.Certificate.LabelsEntryB\003\340A\001\032\235\001\n" + - "\021RevocationDetails\022S\n\020revocation_state\030\001" + - " \001(\01629.google.cloud.security.privateca.v" + - "1beta1.RevocationReason\0223\n\017revocation_ti" + - "me\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n\013" + - "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001:\235\001\352A\231\001\n$privateca.googleapis.com/Cer" + - "tificate\022qprojects/{project}/locations/{" + - "location}/certificateAuthorities/{certif" + - "icate_authority}/certificates/{certifica" + - "te}B\024\n\022certificate_config\"\377\003\n\016ReusableCo" + - "nfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022R\n\006values\030\002 \001(\0132" + - "=.google.cloud.security.privateca.v1beta" + - "1.ReusableConfigValuesB\003\340A\002\022\030\n\013descripti" + - "on\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + - "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\022X\n\006labels\030\006 \003(\0132C.google.cloud.securit" + - "y.privateca.v1beta1.ReusableConfig.Label" + - "sEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001:w\352At\n\'privateca.googl" + - "eapis.com/ReusableConfig\022Iprojects/{proj" + - "ect}/locations/{location}/reusableConfig" + - "s/{reusable_config}\"\211\004\n\024ReusableConfigVa" + - "lues\022I\n\tkey_usage\030\001 \001(\01321.google.cloud.s" + - "ecurity.privateca.v1beta1.KeyUsageB\003\340A\001\022" + - "`\n\nca_options\030\002 \001(\0132G.google.cloud.secur" + - "ity.privateca.v1beta1.ReusableConfigValu" + - "es.CaOptionsB\003\340A\001\022J\n\npolicy_ids\030\003 \003(\01321." + - "google.cloud.security.privateca.v1beta1." + - "ObjectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB" + - "\003\340A\001\022Z\n\025additional_extensions\030\005 \003(\01326.go" + - "ogle.cloud.security.privateca.v1beta1.X5" + - "09ExtensionB\003\340A\001\032}\n\tCaOptions\022.\n\005is_ca\030\001" + - " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022@\n" + - "\026max_issuer_path_length\030\002 \001(\0132\033.google.p" + - "rotobuf.Int32ValueB\003\340A\001\"\256\001\n\025ReusableConf" + - "igWrapper\022\036\n\017reusable_config\030\001 \001(\tB\003\340A\002H" + - "\000\022d\n\026reusable_config_values\030\002 \001(\0132=.goog" + - "le.cloud.security.privateca.v1beta1.Reus" + - "ableConfigValuesB\003\340A\002H\000B\017\n\rconfig_values" + - "\"\374\001\n\021SubordinateConfig\022$\n\025certificate_au" + - "thority\030\001 \001(\tB\003\340A\002H\000\022r\n\020pem_issuer_chain" + - "\030\002 \001(\0132Q.google.cloud.security.privateca" + - ".v1beta1.SubordinateConfig.SubordinateCo" + - "nfigChainB\003\340A\002H\000\0327\n\026SubordinateConfigCha" + - "in\022\035\n\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022sub" + - "ordinate_config\"\262\001\n\tPublicKey\022M\n\004type\030\001 " + - "\001(\0162:.google.cloud.security.privateca.v1" + - "beta1.PublicKey.KeyTypeB\003\340A\002\022\020\n\003key\030\002 \001(" + - "\014B\003\340A\002\"D\n\007KeyType\022\030\n\024KEY_TYPE_UNSPECIFIE" + - "D\020\000\022\017\n\013PEM_RSA_KEY\020\001\022\016\n\nPEM_EC_KEY\020\002\"\362\003\n" + - "\021CertificateConfig\022e\n\016subject_config\030\001 \001" + - "(\0132H.google.cloud.security.privateca.v1b" + - "eta1.CertificateConfig.SubjectConfigB\003\340A" + - "\002\022\\\n\017reusable_config\030\002 \001(\0132>.google.clou" + - "d.security.privateca.v1beta1.ReusableCon" + - "figWrapperB\003\340A\002\022K\n\npublic_key\030\003 \001(\01322.go" + - "ogle.cloud.security.privateca.v1beta1.Pu" + - "blicKeyB\003\340A\001\032\312\001\n\rSubjectConfig\022F\n\007subjec" + - "t\030\001 \001(\01320.google.cloud.security.privatec" + - "a.v1beta1.SubjectB\003\340A\002\022\030\n\013common_name\030\002 " + - "\001(\tB\003\340A\001\022W\n\020subject_alt_name\030\003 \001(\01328.goo" + - "gle.cloud.security.privateca.v1beta1.Sub" + - "jectAltNamesB\003\340A\001\"\341\010\n\026CertificateDescrip" + - "tion\022o\n\023subject_description\030\001 \001(\0132R.goog" + - "le.cloud.security.privateca.v1beta1.Cert" + - "ificateDescription.SubjectDescription\022T\n" + - "\rconfig_values\030\002 \001(\0132=.google.cloud.secu" + - "rity.privateca.v1beta1.ReusableConfigVal" + - "ues\022F\n\npublic_key\030\003 \001(\01322.google.cloud.s" + - "ecurity.privateca.v1beta1.PublicKey\022]\n\016s" + - "ubject_key_id\030\004 \001(\0132E.google.cloud.secur" + - "ity.privateca.v1beta1.CertificateDescrip" + - "tion.KeyId\022_\n\020authority_key_id\030\005 \001(\0132E.g" + - "oogle.cloud.security.privateca.v1beta1.C" + - "ertificateDescription.KeyId\022\037\n\027crl_distr" + - "ibution_points\030\006 \003(\t\022$\n\034aia_issuing_cert" + - "ificate_urls\030\007 \003(\t\022p\n\020cert_fingerprint\030\010" + - " \001(\0132V.google.cloud.security.privateca.v" + - "1beta1.CertificateDescription.Certificat" + - "eFingerprint\032\361\002\n\022SubjectDescription\022A\n\007s" + - "ubject\030\001 \001(\01320.google.cloud.security.pri" + - "vateca.v1beta1.Subject\022\023\n\013common_name\030\002 " + - "\001(\t\022R\n\020subject_alt_name\030\003 \001(\01328.google.c" + - "loud.security.privateca.v1beta1.SubjectA" + - "ltNames\022\031\n\021hex_serial_number\030\004 \001(\t\022+\n\010li" + - "fetime\030\005 \001(\0132\031.google.protobuf.Duration\022" + - "3\n\017not_before_time\030\006 \001(\0132\032.google.protob" + - "uf.Timestamp\0222\n\016not_after_time\030\007 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\032\034\n\005KeyId\022\023\n\006key" + - "_id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFingerprint" + - "\022\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016obj" + - "ect_id_path\030\001 \003(\005B\003\340A\002\"\205\001\n\rX509Extension" + - "\022I\n\tobject_id\030\001 \001(\01321.google.cloud.secur" + - "ity.privateca.v1beta1.ObjectIdB\003\340A\002\022\025\n\010c" + - "ritical\030\002 \001(\010B\003\340A\002\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\261" + - "\005\n\010KeyUsage\022Y\n\016base_key_usage\030\001 \001(\0132A.go" + - "ogle.cloud.security.privateca.v1beta1.Ke" + - "yUsage.KeyUsageOptions\022e\n\022extended_key_u" + - "sage\030\002 \001(\0132I.google.cloud.security.priva" + - "teca.v1beta1.KeyUsage.ExtendedKeyUsageOp" + - "tions\022V\n\033unknown_extended_key_usages\030\003 \003" + - "(\01321.google.cloud.security.privateca.v1b" + - "eta1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021dig" + - "ital_signature\030\001 \001(\010\022\032\n\022content_commitme" + - "nt\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n\021da" + - "ta_encipherment\030\004 \001(\010\022\025\n\rkey_agreement\030\005" + - " \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(" + - "\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_onl" + - "y\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023\n\013s" + - "erver_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n" + - "\014code_signing\030\003 \001(\010\022\030\n\020email_protection\030" + - "\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_sig" + - "ning\030\006 \001(\010\"\243\001\n\007Subject\022\024\n\014country_code\030\001" + - " \001(\t\022\024\n\014organization\030\002 \001(\t\022\033\n\023organizati" + - "onal_unit\030\003 \001(\t\022\020\n\010locality\030\004 \001(\t\022\020\n\010pro" + - "vince\030\005 \001(\t\022\026\n\016street_address\030\006 \001(\t\022\023\n\013p" + - "ostal_code\030\007 \001(\t\"\256\001\n\017SubjectAltNames\022\021\n\t" + - "dns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_a" + - "ddresses\030\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022K\n\013" + - "custom_sans\030\005 \003(\01326.google.cloud.securit" + - "y.privateca.v1beta1.X509Extension*\207\002\n\020Re" + - "vocationReason\022!\n\035REVOCATION_REASON_UNSP" + - "ECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFI" + - "CATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATI" + - "ON_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATIO" + - "N_OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027" + - "\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUT" + - "HORITY_COMPROMISE\020\010B\237\002\n+com.google.cloud" + - ".security.privateca.v1beta1B\027PrivateCaRe" + - "sourcesProtoP\001ZPgoogle.golang.org/genpro" + - "to/googleapis/cloud/security/privateca/v" + - "1beta1;privateca\370\001\001\252\002\'Google.Cloud.Secur" + - "ity.PrivateCA.V1Beta1\312\002\'Google\\Cloud\\Sec" + - "urity\\PrivateCA\\V1beta1\352\002+Google::Cloud:" + - ":Security::PrivateCA::V1beta1b\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(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor, - new java.lang.String[] { "Name", "Type", "Tier", "Config", "Lifetime", "KeySpec", "CertificatePolicy", "IssuingOptions", "SubordinateConfig", "State", "PemCaCertificates", "CaCertificateDescriptions", "GcsBucket", "AccessUrls", "CreateTime", "UpdateTime", "DeleteTime", "Labels", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor, - new java.lang.String[] { "IncludeCaCertUrl", "IncludeCrlAccessUrl", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor, - new java.lang.String[] { "AllowedConfigList", "OverwriteConfigValues", "AllowedLocationsAndOrganizations", "AllowedCommonNames", "AllowedSans", "MaximumLifetime", "AllowedIssuanceModes", "ConfigPolicy", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor, - new java.lang.String[] { "AllowedConfigValues", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor, - new java.lang.String[] { "AllowedDnsNames", "AllowedUris", "AllowedEmailAddresses", "AllowedIps", "AllowGlobbingDnsWildcards", "AllowCustomSans", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor, - new java.lang.String[] { "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor, - new java.lang.String[] { "CaCertificateAccessUrl", "CrlAccessUrl", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor, - new java.lang.String[] { "CloudKmsKeyVersion", "Algorithm", "KeyVersion", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor, - new java.lang.String[] { "Name", "SequenceNumber", "RevokedCertificates", "PemCrl", "AccessUrl", "State", "CreateTime", "UpdateTime", "Labels", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor, - new java.lang.String[] { "Certificate", "HexSerialNumber", "RevocationReason", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor, - new java.lang.String[] { "Name", "PemCsr", "Config", "Lifetime", "RevocationDetails", "PemCertificate", "CertificateDescription", "PemCertificateChain", "CreateTime", "UpdateTime", "Labels", "CertificateConfig", }); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor, - new java.lang.String[] { "RevocationState", "RevocationTime", }); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor, - new java.lang.String[] { "Name", "Values", "Description", "CreateTime", "UpdateTime", "Labels", }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor, - new java.lang.String[] { "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor, - new java.lang.String[] { "IsCa", "MaxIssuerPathLength", }); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor, - new java.lang.String[] { "ReusableConfig", "ReusableConfigValues", "ConfigValues", }); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor, - new java.lang.String[] { "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", }); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor, - new java.lang.String[] { "PemCertificates", }); - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor, - new java.lang.String[] { "Type", "Key", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor, - new java.lang.String[] { "SubjectConfig", "ReusableConfig", "PublicKey", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor, - new java.lang.String[] { "Subject", "CommonName", "SubjectAltName", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor, - new java.lang.String[] { "SubjectDescription", "ConfigValues", "PublicKey", "SubjectKeyId", "AuthorityKeyId", "CrlDistributionPoints", "AiaIssuingCertificateUrls", "CertFingerprint", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor, - new java.lang.String[] { "Subject", "CommonName", "SubjectAltName", "HexSerialNumber", "Lifetime", "NotBeforeTime", "NotAfterTime", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor, - new java.lang.String[] { "KeyId", }); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor, - new java.lang.String[] { "Sha256Hash", }); - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor, - new java.lang.String[] { "ObjectIdPath", }); - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor, - new java.lang.String[] { "ObjectId", "Critical", "Value", }); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor, - new java.lang.String[] { "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", }); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor, - new java.lang.String[] { "DigitalSignature", "ContentCommitment", "KeyEncipherment", "DataEncipherment", "KeyAgreement", "CertSign", "CrlSign", "EncipherOnly", "DecipherOnly", }); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor = - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor, - new java.lang.String[] { "ServerAuth", "ClientAuth", "CodeSigning", "EmailProtection", "TimeStamping", "OcspSigning", }); - internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor, - new java.lang.String[] { "CountryCode", "Organization", "OrganizationalUnit", "Locality", "Province", "StreetAddress", "PostalCode", }); - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor, - new java.lang.String[] { "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java deleted file mode 100644 index 0a1274d7..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/security/privateca/v1beta1/resources.proto - -package com.google.cloud.security.privateca.v1beta1; - -public interface PublicKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.PublicKey) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The type of public key.
-   * 
- * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Required. The type of public key.
-   * 
- * - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType(); - - /** - *
-   * Required. A public key. Padding and encoding varies by 'KeyType' and is described
-   * along with the KeyType values.
-   * 
- * - * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The key. - */ - com.google.protobuf.ByteString getKey(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java index 6d3ab2f5..eb43a357 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
@@ -11,15 +28,18 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest}
  */
-public final class ActivateCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ActivateCertificateAuthorityRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)
     ActivateCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ActivateCertificateAuthorityRequest.newBuilder() to construct.
-  private ActivateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ActivateCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ActivateCertificateAuthorityRequest() {
     name_ = "";
     pemCaCertificate_ = "";
@@ -28,16 +48,15 @@ private ActivateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ActivateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ActivateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,44 +75,51 @@ private ActivateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pemCaCertificate_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
-            if (subordinateConfig_ != null) {
-              subBuilder = subordinateConfig_.toBuilder();
+              name_ = s;
+              break;
             }
-            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1.SubordinateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subordinateConfig_);
-              subordinateConfig_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              pemCaCertificate_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
+              if (subordinateConfig_ != null) {
+                subBuilder = subordinateConfig_.toBuilder();
+              }
+              subordinateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.SubordinateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subordinateConfig_);
+                subordinateConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,35 +127,43 @@ private ActivateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -138,30 +172,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -172,12 +208,15 @@ public java.lang.String getName() { public static final int PEM_CA_CERTIFICATE_FIELD_NUMBER = 2; private volatile java.lang.Object pemCaCertificate_; /** + * + * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pemCaCertificate. */ @java.lang.Override @@ -186,30 +225,30 @@ public java.lang.String getPemCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; } } /** + * + * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for pemCaCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCaCertificateBytes() { + public com.google.protobuf.ByteString getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -220,12 +259,17 @@ public java.lang.String getPemCaCertificate() { public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -233,34 +277,48 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -276,6 +334,7 @@ public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubo
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -284,14 +343,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -307,16 +367,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -325,6 +384,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -366,8 +425,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pemCaCertificate_); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubordinateConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -380,24 +438,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.security.privateca.v1.ActivateCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPemCaCertificate() - .equals(other.getPemCaCertificate())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPemCaCertificate().equals(other.getPemCaCertificate())) return false; if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig() - .equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,97 +480,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest 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.security.privateca.v1.ActivateCertificateAuthorityRequest + 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.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
@@ -522,38 +592,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -573,19 +646,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -593,8 +669,10 @@ public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.pemCaCertificate_ = pemCaCertificate_;
       if (subordinateConfigBuilder_ == null) {
@@ -611,46 +689,52 @@ public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityReques
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -681,11 +765,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -697,19 +784,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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; @@ -718,21 +809,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -740,57 +834,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -798,19 +905,21 @@ public Builder setNameBytes( private java.lang.Object pemCaCertificate_ = ""; /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pemCaCertificate. */ public java.lang.String getPemCaCertificate() { java.lang.Object ref = pemCaCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; @@ -819,21 +928,22 @@ public java.lang.String getPemCaCertificate() { } } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for pemCaCertificate. */ - public com.google.protobuf.ByteString - getPemCaCertificateBytes() { + public com.google.protobuf.ByteString getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -841,57 +951,64 @@ public java.lang.String getPemCaCertificate() { } } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificate( - java.lang.String value) { + public Builder setPemCaCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCaCertificate_ = value; onChanged(); return this; } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPemCaCertificate() { - + pemCaCertificate_ = getDefaultInstance().getPemCaCertificate(); onChanged(); return this; } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCaCertificate_ = value; onChanged(); return this; @@ -899,44 +1016,64 @@ public Builder setPemCaCertificateBytes( private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1.SubordinateConfig, + com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> + subordinateConfigBuilder_; /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder setSubordinateConfig( + com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -950,12 +1087,16 @@ public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1.Subor return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1.SubordinateConfig.Builder builderForValue) { @@ -969,18 +1110,26 @@ public Builder setSubordinateConfig( return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder mergeSubordinateConfig( + com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder( + subordinateConfig_) + .mergeFrom(value) + .buildPartial(); } else { subordinateConfig_ = value; } @@ -992,12 +1141,16 @@ public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1.Sub return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -1011,51 +1164,69 @@ public Builder clearSubordinateConfig() { return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder + getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null ? - com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1.SubordinateConfig, + com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), - getParentForChildren(), - isClean()); + subordinateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubordinateConfig, + com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), getParentForChildren(), isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -1063,6 +1234,8 @@ public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubo private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1078,13 +1251,13 @@ public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubo
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1093,6 +1266,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1108,15 +1283,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1124,6 +1298,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1139,20 +1315,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1168,15 +1346,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1192,23 +1373,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1218,30 +1399,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActivateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActivateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,9 +1437,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java index de8cc8da..afa75fdf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ActivateCertificateAuthorityRequestOrBuilder.java @@ -1,87 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ActivateCertificateAuthorityRequestOrBuilder extends +public interface ActivateCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pemCaCertificate. */ java.lang.String getPemCaCertificate(); /** + * + * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for pemCaCertificate. */ - com.google.protobuf.ByteString - getPemCaCertificateBytes(); + com.google.protobuf.ByteString getPemCaCertificateBytes(); /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig(); /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -97,10 +143,13 @@ public interface ActivateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -116,8 +165,8 @@ public interface ActivateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java index 2c73be69..38ccd33a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of
  * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] that form a trust anchor. A
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CaPool}
  */
-public final class CaPool extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CaPool extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool)
     CaPoolOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CaPool.newBuilder() to construct.
   private CaPool(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CaPool() {
     name_ = "";
     tier_ = 0;
@@ -30,16 +48,15 @@ private CaPool() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CaPool();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CaPool(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,64 +76,76 @@ private CaPool(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            tier_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder subBuilder = null;
-            if (issuancePolicy_ != null) {
-              subBuilder = issuancePolicy_.toBuilder();
-            }
-            issuancePolicy_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(issuancePolicy_);
-              issuancePolicy_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder subBuilder = null;
-            if (publishingOptions_ != null) {
-              subBuilder = publishingOptions_.toBuilder();
+              tier_ = rawValue;
+              break;
             }
-            publishingOptions_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publishingOptions_);
-              publishingOptions_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder subBuilder =
+                  null;
+              if (issuancePolicy_ != null) {
+                subBuilder = issuancePolicy_.toBuilder();
+              }
+              issuancePolicy_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(issuancePolicy_);
+                issuancePolicy_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder subBuilder =
+                  null;
+              if (publishingOptions_ != null) {
+                subBuilder = publishingOptions_.toBuilder();
+              }
+              publishingOptions_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publishingOptions_);
+                publishingOptions_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -124,39 +153,42 @@ private CaPool(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CaPool.class, com.google.cloud.security.privateca.v1.CaPool.Builder.class);
+            com.google.cloud.security.privateca.v1.CaPool.class,
+            com.google.cloud.security.privateca.v1.CaPool.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The tier of a [CaPool][google.cloud.security.privateca.v1.CaPool], indicating its supported functionality and/or
    * billing SKU.
@@ -164,9 +196,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1.CaPool.Tier}
    */
-  public enum Tier
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -175,6 +208,8 @@ public enum Tier */ TIER_UNSPECIFIED(0), /** + * + * *
      * Enterprise tier.
      * 
@@ -183,6 +218,8 @@ public enum Tier */ ENTERPRISE(1), /** + * + * *
      * DevOps tier.
      * 
@@ -194,6 +231,8 @@ public enum Tier ; /** + * + * *
      * Not specified.
      * 
@@ -202,6 +241,8 @@ public enum Tier */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Enterprise tier.
      * 
@@ -210,6 +251,8 @@ public enum Tier */ public static final int ENTERPRISE_VALUE = 1; /** + * + * *
      * DevOps tier.
      * 
@@ -218,7 +261,6 @@ public enum Tier */ public static final int DEVOPS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -243,49 +285,49 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: return TIER_UNSPECIFIED; - case 1: return ENTERPRISE; - case 2: return DEVOPS; - default: return null; + case 0: + return TIER_UNSPECIFIED; + case 1: + return ENTERPRISE; + case 2: + return DEVOPS; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.security.privateca.v1.CaPool.getDescriptor().getEnumTypes().get(0); } private static final Tier[] VALUES = values(); - public static Tier valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -302,11 +344,14 @@ private Tier(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.CaPool.Tier) } - public interface PublishingOptionsOrBuilder extends + public interface PublishingOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.PublishingOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
      * includes its URL in the "Authority Information Access" X.509 extension
@@ -316,11 +361,14 @@ public interface PublishingOptionsOrBuilder extends
      * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The publishCaCert. */ boolean getPublishCaCert(); /** + * + * *
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
      * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -332,11 +380,14 @@ public interface PublishingOptionsOrBuilder extends
      * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The publishCrl. */ boolean getPublishCrl(); } /** + * + * *
    * Options relating to the publication of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA
    * certificate and CRLs and their inclusion as extensions in issued
@@ -346,30 +397,29 @@ public interface PublishingOptionsOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.PublishingOptions}
    */
-  public static final class PublishingOptions extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PublishingOptions extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.PublishingOptions)
       PublishingOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PublishingOptions.newBuilder() to construct.
     private PublishingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private PublishingOptions() {
-    }
+
+    private PublishingOptions() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PublishingOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private PublishingOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -388,23 +438,23 @@ private PublishingOptions(
             case 0:
               done = true;
               break;
-            case 8: {
-
-              publishCaCert_ = input.readBool();
-              break;
-            }
-            case 16: {
-
-              publishCrl_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 8:
+              {
+                publishCaCert_ = input.readBool();
+                break;
+              }
+            case 16:
+              {
+                publishCrl_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -412,29 +462,33 @@ private PublishingOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
+              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class,
+              com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
     }
 
     public static final int PUBLISH_CA_CERT_FIELD_NUMBER = 1;
     private boolean publishCaCert_;
     /**
+     *
+     *
      * 
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
      * includes its URL in the "Authority Information Access" X.509 extension
@@ -444,6 +498,7 @@ private PublishingOptions(
      * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The publishCaCert. */ @java.lang.Override @@ -454,6 +509,8 @@ public boolean getPublishCaCert() { public static final int PUBLISH_CRL_FIELD_NUMBER = 2; private boolean publishCrl_; /** + * + * *
      * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
      * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -465,6 +522,7 @@ public boolean getPublishCaCert() {
      * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The publishCrl. */ @java.lang.Override @@ -473,6 +531,7 @@ public boolean getPublishCrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -484,8 +543,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (publishCaCert_ != false) { output.writeBool(1, publishCaCert_); } @@ -502,12 +560,10 @@ public int getSerializedSize() { size = 0; if (publishCaCert_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, publishCaCert_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, publishCaCert_); } if (publishCrl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, publishCrl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, publishCrl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -517,17 +573,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.PublishingOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other = (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) obj; + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other = + (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) obj; - if (getPublishCaCert() - != other.getPublishCaCert()) return false; - if (getPublishCrl() - != other.getPublishCrl()) return false; + if (getPublishCaCert() != other.getPublishCaCert()) return false; + if (getPublishCrl() != other.getPublishCrl()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -540,98 +595,104 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PUBLISH_CA_CERT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPublishCaCert()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPublishCaCert()); hash = (37 * hash) + PUBLISH_CRL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPublishCrl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPublishCrl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions 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.security.privateca.v1.CaPool.PublishingOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions 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.security.privateca.v1.CaPool.PublishingOptions + 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.security.privateca.v1.CaPool.PublishingOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -641,6 +702,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options relating to the publication of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA
      * certificate and CRLs and their inclusion as extensions in issued
@@ -650,38 +713,41 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.PublishingOptions}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.PublishingOptions)
         com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
+                com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.class,
+                com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder.class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -693,13 +759,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getDefaultInstanceForType() {
+      public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions
+          getDefaultInstanceForType() {
         return com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance();
       }
 
@@ -714,7 +781,8 @@ public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions build() {
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions buildPartial() {
-        com.google.cloud.security.privateca.v1.CaPool.PublishingOptions result = new com.google.cloud.security.privateca.v1.CaPool.PublishingOptions(this);
+        com.google.cloud.security.privateca.v1.CaPool.PublishingOptions result =
+            new com.google.cloud.security.privateca.v1.CaPool.PublishingOptions(this);
         result.publishCaCert_ = publishCaCert_;
         result.publishCrl_ = publishCrl_;
         onBuilt();
@@ -725,46 +793,52 @@ public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions buildPart
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.PublishingOptions) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.PublishingOptions)other);
+          return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other) {
-        if (other == com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1.CaPool.PublishingOptions other) {
+        if (other
+            == com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance())
+          return this;
         if (other.getPublishCaCert() != false) {
           setPublishCaCert(other.getPublishCaCert());
         }
@@ -790,7 +864,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1.CaPool.PublishingOptions)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -800,8 +876,10 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean publishCaCert_ ;
+      private boolean publishCaCert_;
       /**
+       *
+       *
        * 
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
        * includes its URL in the "Authority Information Access" X.509 extension
@@ -811,6 +889,7 @@ public Builder mergeFrom(
        * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The publishCaCert. */ @java.lang.Override @@ -818,6 +897,8 @@ public boolean getPublishCaCert() { return publishCaCert_; } /** + * + * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
        * includes its URL in the "Authority Information Access" X.509 extension
@@ -827,16 +908,19 @@ public boolean getPublishCaCert() {
        * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The publishCaCert to set. * @return This builder for chaining. */ public Builder setPublishCaCert(boolean value) { - + publishCaCert_ = value; onChanged(); return this; } /** + * + * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and
        * includes its URL in the "Authority Information Access" X.509 extension
@@ -846,17 +930,20 @@ public Builder setPublishCaCert(boolean value) {
        * 
* * bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPublishCaCert() { - + publishCaCert_ = false; onChanged(); return this; } - private boolean publishCrl_ ; + private boolean publishCrl_; /** + * + * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
        * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -868,6 +955,7 @@ public Builder clearPublishCaCert() {
        * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The publishCrl. */ @java.lang.Override @@ -875,6 +963,8 @@ public boolean getPublishCrl() { return publishCrl_; } /** + * + * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
        * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -886,16 +976,19 @@ public boolean getPublishCrl() {
        * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The publishCrl to set. * @return This builder for chaining. */ public Builder setPublishCrl(boolean value) { - + publishCrl_ = value; onChanged(); return this; } /** + * + * *
        * Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its
        * URL in the "CRL Distribution Points" X.509 extension in all issued
@@ -907,14 +1000,16 @@ public Builder setPublishCrl(boolean value) {
        * 
* * bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPublishCrl() { - + publishCrl_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -927,30 +1022,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.PublishingOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.PublishingOptions) - private static final com.google.cloud.security.privateca.v1.CaPool.PublishingOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CaPool.PublishingOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.PublishingOptions(); } - public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.PublishingOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishingOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishingOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,71 +1059,98 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IssuancePolicyOrBuilder extends + public interface IssuancePolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAllowedKeyTypesList(); /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes( + int index); /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAllowedKeyTypesCount(); /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyTypeOrBuilder> getAllowedKeyTypesOrBuilderList(); /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder + getAllowedKeyTypesOrBuilder(int index); /** + * + * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -1034,11 +1158,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * be explicitly truncated to match it.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumLifetime field is set. */ boolean hasMaximumLifetime(); /** + * + * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -1046,11 +1175,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * be explicitly truncated to match it.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumLifetime. */ com.google.protobuf.Duration getMaximumLifetime(); /** + * + * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -1058,41 +1192,61 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * be explicitly truncated to match it.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder(); /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedIssuanceModes field is set. */ boolean hasAllowedIssuanceModes(); /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedIssuanceModes. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + getAllowedIssuanceModes(); /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder + getAllowedIssuanceModesOrBuilder(); /** + * + * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -1103,11 +1257,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the baselineValues field is set. */ boolean hasBaselineValues(); /** + * + * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -1118,11 +1277,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The baselineValues. */ com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues(); /** + * + * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -1133,11 +1297,15 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselineValuesOrBuilder(); /** + * + * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1145,11 +1313,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConstraints field is set. */ boolean hasIdentityConstraints(); /** + * + * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1157,11 +1330,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConstraints. */ com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints(); /** + * + * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1169,11 +1347,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder + getIdentityConstraintsOrBuilder(); /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -1187,11 +1370,16 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the passthroughExtensions field is set. */ boolean hasPassthroughExtensions(); /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -1205,11 +1393,17 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The passthroughExtensions. */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getPassthroughExtensions(); /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -1223,42 +1417,47 @@ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBui
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder + getPassthroughExtensionsOrBuilder(); } /** + * + * *
    * Defines controls over all certificate issuance within a [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy} */ - public static final class IssuancePolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IssuancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) IssuancePolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IssuancePolicy.newBuilder() to construct. private IssuancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IssuancePolicy() { allowedKeyTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IssuancePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IssuancePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1278,87 +1477,118 @@ private IssuancePolicy( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedKeyTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowedKeyTypes_.add( - input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maximumLifetime_ != null) { - subBuilder = maximumLifetime_.toBuilder(); - } - maximumLifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maximumLifetime_); - maximumLifetime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedKeyTypes_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyType>(); + mutable_bitField0_ |= 0x00000001; + } + allowedKeyTypes_.add( + input.readMessage( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maximumLifetime_ != null) { + subBuilder = maximumLifetime_.toBuilder(); + } + maximumLifetime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maximumLifetime_); + maximumLifetime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder subBuilder = null; - if (allowedIssuanceModes_ != null) { - subBuilder = allowedIssuanceModes_.toBuilder(); - } - allowedIssuanceModes_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedIssuanceModes_); - allowedIssuanceModes_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder + subBuilder = null; + if (allowedIssuanceModes_ != null) { + subBuilder = allowedIssuanceModes_.toBuilder(); + } + allowedIssuanceModes_ = + input.readMessage( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowedIssuanceModes_); + allowedIssuanceModes_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null; - if (baselineValues_ != null) { - subBuilder = baselineValues_.toBuilder(); - } - baselineValues_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(baselineValues_); - baselineValues_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null; + if (baselineValues_ != null) { + subBuilder = baselineValues_.toBuilder(); + } + baselineValues_ = + input.readMessage( + com.google.cloud.security.privateca.v1.X509Parameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(baselineValues_); + baselineValues_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder subBuilder = null; - if (identityConstraints_ != null) { - subBuilder = identityConstraints_.toBuilder(); - } - identityConstraints_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(identityConstraints_); - identityConstraints_ = subBuilder.buildPartial(); + break; } + case 42: + { + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder + subBuilder = null; + if (identityConstraints_ != null) { + subBuilder = identityConstraints_.toBuilder(); + } + identityConstraints_ = + input.readMessage( + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identityConstraints_); + identityConstraints_ = subBuilder.buildPartial(); + } - break; - } - case 50: { - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder subBuilder = null; - if (passthroughExtensions_ != null) { - subBuilder = passthroughExtensions_.toBuilder(); - } - passthroughExtensions_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(passthroughExtensions_); - passthroughExtensions_ = subBuilder.buildPartial(); + break; } + case 50: + { + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder + subBuilder = null; + if (passthroughExtensions_ != null) { + subBuilder = passthroughExtensions_.toBuilder(); + } + passthroughExtensions_ = + input.readMessage( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(passthroughExtensions_); + passthroughExtensions_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1366,8 +1596,7 @@ private IssuancePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedKeyTypes_ = java.util.Collections.unmodifiableList(allowedKeyTypes_); @@ -1376,80 +1605,120 @@ private IssuancePolicy( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); } - public interface AllowedKeyTypeOrBuilder extends + public interface AllowedKeyTypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Represents an allowed RSA key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * * @return Whether the rsa field is set. */ boolean hasRsa(); /** + * + * *
        * Represents an allowed RSA key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * * @return The rsa. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getRsa(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + getRsa(); /** + * + * *
        * Represents an allowed RSA key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder getRsaOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder + getRsaOrBuilder(); /** + * + * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * * @return Whether the ellipticCurve field is set. */ boolean hasEllipticCurve(); /** + * + * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * * @return The ellipticCurve. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getEllipticCurve(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + getEllipticCurve(); /** + * + * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder getEllipticCurveOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder + getEllipticCurveOrBuilder(); - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.KeyTypeCase getKeyTypeCase(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.KeyTypeCase + getKeyTypeCase(); } /** + * + * *
      * Describes a "type" of key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued
      * from a [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -1460,30 +1729,29 @@ public interface AllowedKeyTypeOrBuilder extends
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType}
      */
-    public static final class AllowedKeyType extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class AllowedKeyType extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)
         AllowedKeyTypeOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use AllowedKeyType.newBuilder() to construct.
       private AllowedKeyType(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private AllowedKeyType() {
-      }
+
+      private AllowedKeyType() {}
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new AllowedKeyType();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
+
       private AllowedKeyType(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1502,41 +1770,67 @@ private AllowedKeyType(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder subBuilder = null;
-                if (keyTypeCase_ == 1) {
-                  subBuilder = ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_).toBuilder();
-                }
-                keyType_ =
-                    input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_);
-                  keyType_ = subBuilder.buildPartial();
-                }
-                keyTypeCase_ = 1;
-                break;
-              }
-              case 18: {
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder subBuilder = null;
-                if (keyTypeCase_ == 2) {
-                  subBuilder = ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_).toBuilder();
+              case 10:
+                {
+                  com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
+                          .RsaKeyType.Builder
+                      subBuilder = null;
+                  if (keyTypeCase_ == 1) {
+                    subBuilder =
+                        ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
+                                    .AllowedKeyType.RsaKeyType)
+                                keyType_)
+                            .toBuilder();
+                  }
+                  keyType_ =
+                      input.readMessage(
+                          com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
+                              .AllowedKeyType.RsaKeyType.parser(),
+                          extensionRegistry);
+                  if (subBuilder != null) {
+                    subBuilder.mergeFrom(
+                        (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
+                                .RsaKeyType)
+                            keyType_);
+                    keyType_ = subBuilder.buildPartial();
+                  }
+                  keyTypeCase_ = 1;
+                  break;
                 }
-                keyType_ =
-                    input.readMessage(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_);
-                  keyType_ = subBuilder.buildPartial();
+              case 18:
+                {
+                  com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
+                          .EcKeyType.Builder
+                      subBuilder = null;
+                  if (keyTypeCase_ == 2) {
+                    subBuilder =
+                        ((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
+                                    .AllowedKeyType.EcKeyType)
+                                keyType_)
+                            .toBuilder();
+                  }
+                  keyType_ =
+                      input.readMessage(
+                          com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy
+                              .AllowedKeyType.EcKeyType.parser(),
+                          extensionRegistry);
+                  if (subBuilder != null) {
+                    subBuilder.mergeFrom(
+                        (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
+                                .EcKeyType)
+                            keyType_);
+                    keyType_ = subBuilder.buildPartial();
+                  }
+                  keyTypeCase_ = 2;
+                  break;
                 }
-                keyTypeCase_ = 2;
-                break;
-              }
-              default: {
-                if (!parseUnknownField(
-                    input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
+              default:
+                {
+                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                    done = true;
+                  }
+                  break;
                 }
-                break;
-              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1544,31 +1838,38 @@ private AllowedKeyType(
         } catch (com.google.protobuf.UninitializedMessageException e) {
           throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(
-              e).setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor;
+
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder.class);
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class,
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder
+                    .class);
       }
 
-      public interface RsaKeyTypeOrBuilder extends
+      public interface RsaKeyTypeOrBuilder
+          extends
           // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType)
           com.google.protobuf.MessageOrBuilder {
 
         /**
+         *
+         *
          * 
          * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service-level min RSA modulus size
@@ -1576,11 +1877,14 @@ public interface RsaKeyTypeOrBuilder extends
          * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minModulusSize. */ long getMinModulusSize(); /** + * + * *
          * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service will not enforce an explicit
@@ -1588,42 +1892,45 @@ public interface RsaKeyTypeOrBuilder extends
          * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxModulusSize. */ long getMaxModulusSize(); } /** + * + * *
        * Describes an RSA key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued from
        * a [CaPool][google.cloud.security.privateca.v1.CaPool].
        * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} */ - public static final class RsaKeyType extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RsaKeyType extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) RsaKeyTypeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RsaKeyType.newBuilder() to construct. private RsaKeyType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RsaKeyType() { - } + + private RsaKeyType() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RsaKeyType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RsaKeyType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1642,23 +1949,23 @@ private RsaKeyType( case 0: done = true; break; - case 8: { - - minModulusSize_ = input.readInt64(); - break; - } - case 16: { - - maxModulusSize_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + minModulusSize_ = input.readInt64(); + break; + } + case 16: + { + maxModulusSize_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1666,29 +1973,36 @@ private RsaKeyType( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.Builder.class); } public static final int MIN_MODULUS_SIZE_FIELD_NUMBER = 1; private long minModulusSize_; /** + * + * *
          * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service-level min RSA modulus size
@@ -1696,6 +2010,7 @@ private RsaKeyType(
          * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minModulusSize. */ @java.lang.Override @@ -1706,6 +2021,8 @@ public long getMinModulusSize() { public static final int MAX_MODULUS_SIZE_FIELD_NUMBER = 2; private long maxModulusSize_; /** + * + * *
          * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
          * not set, or if set to zero, the service will not enforce an explicit
@@ -1713,6 +2030,7 @@ public long getMinModulusSize() {
          * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxModulusSize. */ @java.lang.Override @@ -1721,6 +2039,7 @@ public long getMaxModulusSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1733,7 +2052,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (minModulusSize_ != 0L) { output.writeInt64(1, minModulusSize_); } @@ -1750,12 +2069,10 @@ public int getSerializedSize() { size = 0; if (minModulusSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, minModulusSize_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, minModulusSize_); } if (maxModulusSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxModulusSize_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxModulusSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1765,17 +2082,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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + other = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + obj; - if (getMinModulusSize() - != other.getMinModulusSize()) return false; - if (getMaxModulusSize() - != other.getMaxModulusSize()) return false; + if (getMinModulusSize() != other.getMinModulusSize()) return false; + if (getMaxModulusSize() != other.getMaxModulusSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1788,98 +2110,126 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_MODULUS_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinModulusSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinModulusSize()); hash = (37 * hash) + MAX_MODULUS_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxModulusSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxModulusSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1889,45 +2239,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Describes an RSA key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued from
          * a [CaPool][google.cloud.security.privateca.v1.CaPool].
          * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1939,19 +2298,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType result = buildPartial(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + build() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1959,8 +2324,13 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + result = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType(this); result.minModulusSize_ = minModulusSize_; result.maxModulusSize_ = maxModulusSize_; onBuilt(); @@ -1971,46 +2341,59 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) { - return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType other) { - if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + other) { + if (other + == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance()) return this; if (other.getMinModulusSize() != 0L) { setMinModulusSize(other.getMinModulusSize()); } @@ -2032,11 +2415,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2046,8 +2433,10 @@ public Builder mergeFrom( return this; } - private long minModulusSize_ ; + private long minModulusSize_; /** + * + * *
            * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service-level min RSA modulus size
@@ -2055,6 +2444,7 @@ public Builder mergeFrom(
            * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The minModulusSize. */ @java.lang.Override @@ -2062,6 +2452,8 @@ public long getMinModulusSize() { return minModulusSize_; } /** + * + * *
            * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service-level min RSA modulus size
@@ -2069,16 +2461,19 @@ public long getMinModulusSize() {
            * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The minModulusSize to set. * @return This builder for chaining. */ public Builder setMinModulusSize(long value) { - + minModulusSize_ = value; onChanged(); return this; } /** + * + * *
            * Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service-level min RSA modulus size
@@ -2086,17 +2481,20 @@ public Builder setMinModulusSize(long value) {
            * 
* * int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMinModulusSize() { - + minModulusSize_ = 0L; onChanged(); return this; } - private long maxModulusSize_ ; + private long maxModulusSize_; /** + * + * *
            * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service will not enforce an explicit
@@ -2104,6 +2502,7 @@ public Builder clearMinModulusSize() {
            * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxModulusSize. */ @java.lang.Override @@ -2111,6 +2510,8 @@ public long getMaxModulusSize() { return maxModulusSize_; } /** + * + * *
            * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service will not enforce an explicit
@@ -2118,16 +2519,19 @@ public long getMaxModulusSize() {
            * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxModulusSize to set. * @return This builder for chaining. */ public Builder setMaxModulusSize(long value) { - + maxModulusSize_ = value; onChanged(); return this; } /** + * + * *
            * Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
            * not set, or if set to zero, the service will not enforce an explicit
@@ -2135,14 +2539,16 @@ public Builder setMaxModulusSize(long value) {
            * 
* * int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxModulusSize() { - + maxModulusSize_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2155,30 +2561,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyType.RsaKeyType + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RsaKeyType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RsaKeyType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RsaKeyType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RsaKeyType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2190,70 +2602,87 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface EcKeyTypeOrBuilder extends + public interface EcKeyTypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ int getSignatureAlgorithmValue(); /** + * + * *
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The signatureAlgorithm. */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm getSignatureAlgorithm(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .EcSignatureAlgorithm + getSignatureAlgorithm(); } /** + * + * *
        * Describes an Elliptic Curve key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate]
        * issued from a [CaPool][google.cloud.security.privateca.v1.CaPool].
        * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} */ - public static final class EcKeyType extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class EcKeyType extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) EcKeyTypeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EcKeyType.newBuilder() to construct. private EcKeyType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EcKeyType() { signatureAlgorithm_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EcKeyType(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EcKeyType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2272,19 +2701,20 @@ private EcKeyType( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - signatureAlgorithm_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + signatureAlgorithm_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2292,37 +2722,46 @@ private EcKeyType( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.Builder.class); } /** + * + * *
          * Describes an elliptic curve-based signature algorithm that may be
          * used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued from a [CaPool][google.cloud.security.privateca.v1.CaPool].
          * 
* - * Protobuf enum {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm} + * Protobuf enum {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm} */ - public enum EcSignatureAlgorithm - implements com.google.protobuf.ProtocolMessageEnum { + public enum EcSignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
            * Not specified. Signifies that any signature algorithm may be used.
            * 
@@ -2331,6 +2770,8 @@ public enum EcSignatureAlgorithm */ EC_SIGNATURE_ALGORITHM_UNSPECIFIED(0), /** + * + * *
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-256 curve.
@@ -2340,6 +2781,8 @@ public enum EcSignatureAlgorithm
            */
           ECDSA_P256(1),
           /**
+           *
+           *
            * 
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-384 curve.
@@ -2349,6 +2792,8 @@ public enum EcSignatureAlgorithm
            */
           ECDSA_P384(2),
           /**
+           *
+           *
            * 
            * Refers to the Edwards-curve Digital Signature Algorithm over curve
            * 25519, as described in RFC 8410.
@@ -2361,6 +2806,8 @@ public enum EcSignatureAlgorithm
           ;
 
           /**
+           *
+           *
            * 
            * Not specified. Signifies that any signature algorithm may be used.
            * 
@@ -2369,6 +2816,8 @@ public enum EcSignatureAlgorithm */ public static final int EC_SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-256 curve.
@@ -2378,6 +2827,8 @@ public enum EcSignatureAlgorithm
            */
           public static final int ECDSA_P256_VALUE = 1;
           /**
+           *
+           *
            * 
            * Refers to the Elliptic Curve Digital Signature Algorithm over the
            * NIST P-384 curve.
@@ -2387,6 +2838,8 @@ public enum EcSignatureAlgorithm
            */
           public static final int ECDSA_P384_VALUE = 2;
           /**
+           *
+           *
            * 
            * Refers to the Edwards-curve Digital Signature Algorithm over curve
            * 25519, as described in RFC 8410.
@@ -2396,7 +2849,6 @@ public enum EcSignatureAlgorithm
            */
           public static final int EDDSA_25519_VALUE = 3;
 
-
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
@@ -2421,11 +2873,16 @@ public static EcSignatureAlgorithm valueOf(int value) {
            */
           public static EcSignatureAlgorithm forNumber(int value) {
             switch (value) {
-              case 0: return EC_SIGNATURE_ALGORITHM_UNSPECIFIED;
-              case 1: return ECDSA_P256;
-              case 2: return ECDSA_P384;
-              case 3: return EDDSA_25519;
-              default: return null;
+              case 0:
+                return EC_SIGNATURE_ALGORITHM_UNSPECIFIED;
+              case 1:
+                return ECDSA_P256;
+              case 2:
+                return ECDSA_P384;
+              case 3:
+                return EDDSA_25519;
+              default:
+                return null;
             }
           }
 
@@ -2433,29 +2890,32 @@ public static EcSignatureAlgorithm forNumber(int value) {
               internalGetValueMap() {
             return internalValueMap;
           }
-          private static final com.google.protobuf.Internal.EnumLiteMap<
-              EcSignatureAlgorithm> internalValueMap =
-                new com.google.protobuf.Internal.EnumLiteMap() {
-                  public EcSignatureAlgorithm findValueByNumber(int number) {
-                    return EcSignatureAlgorithm.forNumber(number);
-                  }
-                };
 
-          public final com.google.protobuf.Descriptors.EnumValueDescriptor
-              getValueDescriptor() {
+          private static final com.google.protobuf.Internal.EnumLiteMap
+              internalValueMap =
+                  new com.google.protobuf.Internal.EnumLiteMap() {
+                    public EcSignatureAlgorithm findValueByNumber(int number) {
+                      return EcSignatureAlgorithm.forNumber(number);
+                    }
+                  };
+
+          public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalStateException(
                   "Can't get the descriptor of an unrecognized enum value.");
             }
             return getDescriptor().getValues().get(ordinal());
           }
-          public final com.google.protobuf.Descriptors.EnumDescriptor
-              getDescriptorForType() {
+
+          public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
             return getDescriptor();
           }
-          public static final com.google.protobuf.Descriptors.EnumDescriptor
-              getDescriptor() {
-            return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDescriptor().getEnumTypes().get(0);
+
+          public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+            return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType
+                .EcKeyType.getDescriptor()
+                .getEnumTypes()
+                .get(0);
           }
 
           private static final EcSignatureAlgorithm[] VALUES = values();
@@ -2464,7 +2924,7 @@ public static EcSignatureAlgorithm valueOf(
               com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
             if (desc.getType() != getDescriptor()) {
               throw new java.lang.IllegalArgumentException(
-                "EnumValueDescriptor is not for this type.");
+                  "EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
@@ -2484,33 +2944,55 @@ private EcSignatureAlgorithm(int value) {
         public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 1;
         private int signatureAlgorithm_;
         /**
+         *
+         *
          * 
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override public int getSignatureAlgorithmValue() { + @java.lang.Override + public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** + * + * *
          * Optional. A signature algorithm that must be used. If this is omitted, any
          * EC-based signature algorithm will be allowed.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The signatureAlgorithm. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm getSignatureAlgorithm() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .EcSignatureAlgorithm + getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm result = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .EcSignatureAlgorithm + result = + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2523,8 +3005,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (signatureAlgorithm_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { + throws java.io.IOException { + if (signatureAlgorithm_ + != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED + .getNumber()) { output.writeEnum(1, signatureAlgorithm_); } unknownFields.writeTo(output); @@ -2536,9 +3021,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (signatureAlgorithm_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, signatureAlgorithm_); + if (signatureAlgorithm_ + != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm.EC_SIGNATURE_ALGORITHM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, signatureAlgorithm_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2548,12 +3035,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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + other = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + obj; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -2574,88 +3068,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2665,45 +3189,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Describes an Elliptic Curve key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate]
          * issued from a [CaPool][google.cloud.security.privateca.v1.CaPool].
          * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2713,19 +3246,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType result = buildPartial(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + build() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2733,8 +3272,13 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + result = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType(this); result.signatureAlgorithm_ = signatureAlgorithm_; onBuilt(); return result; @@ -2744,46 +3288,59 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) { - return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType other) { - if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + other) { + if (other + == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance()) return this; if (other.signatureAlgorithm_ != 0) { setSignatureAlgorithmValue(other.getSignatureAlgorithmValue()); } @@ -2802,11 +3359,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2818,82 +3379,121 @@ public Builder mergeFrom( private int signatureAlgorithm_ = 0; /** + * + * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override public int getSignatureAlgorithmValue() { + @java.lang.Override + public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** + * + * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for signatureAlgorithm to set. * @return This builder for chaining. */ public Builder setSignatureAlgorithmValue(int value) { - + signatureAlgorithm_ = value; onChanged(); return this; } /** + * + * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The signatureAlgorithm. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm getSignatureAlgorithm() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm + getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm result = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .EcSignatureAlgorithm + result = + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.EcSignatureAlgorithm.UNRECOGNIZED + : result; } /** + * + * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm value) { + public Builder setSignatureAlgorithm( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .EcSignatureAlgorithm + value) { if (value == null) { throw new NullPointerException(); } - + signatureAlgorithm_ = value.getNumber(); onChanged(); return this; } /** + * + * *
            * Optional. A signature algorithm that must be used. If this is omitted, any
            * EC-based signature algorithm will be allowed.
            * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm signature_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2906,30 +3506,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyType.EcKeyType + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EcKeyType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EcKeyType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EcKeyType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EcKeyType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2941,21 +3547,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int keyTypeCase_ = 0; private java.lang.Object keyType_; + public enum KeyTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RSA(1), ELLIPTIC_CURVE(2), KEYTYPE_NOT_SET(0); private final int value; + private KeyTypeCase(int value) { this.value = value; } @@ -2971,30 +3580,38 @@ public static KeyTypeCase valueOf(int value) { public static KeyTypeCase forNumber(int value) { switch (value) { - case 1: return RSA; - case 2: return ELLIPTIC_CURVE; - case 0: return KEYTYPE_NOT_SET; - default: return null; + case 1: + return RSA; + case 2: + return ELLIPTIC_CURVE; + case 0: + return KEYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KeyTypeCase - getKeyTypeCase() { - return KeyTypeCase.forNumber( - keyTypeCase_); + public KeyTypeCase getKeyTypeCase() { + return KeyTypeCase.forNumber(keyTypeCase_); } public static final int RSA_FIELD_NUMBER = 1; /** + * + * *
        * Represents an allowed RSA key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * * @return Whether the rsa field is set. */ @java.lang.Override @@ -3002,42 +3619,65 @@ public boolean hasRsa() { return keyTypeCase_ == 1; } /** + * + * *
        * Represents an allowed RSA key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * * @return The rsa. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getRsa() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + getRsa() { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } /** + * + * *
        * Represents an allowed RSA key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder getRsaOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder + getRsaOrBuilder() { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } public static final int ELLIPTIC_CURVE_FIELD_NUMBER = 2; /** + * + * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * * @return Whether the ellipticCurve field is set. */ @java.lang.Override @@ -3045,36 +3685,55 @@ public boolean hasEllipticCurve() { return keyTypeCase_ == 2; } /** + * + * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * * @return The ellipticCurve. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getEllipticCurve() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + getEllipticCurve() { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .getDefaultInstance(); } /** + * + * *
        * Represents an allowed Elliptic Curve key type.
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder getEllipticCurveOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyTypeOrBuilder + getEllipticCurveOrBuilder() { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3086,13 +3745,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 (keyTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_); + output.writeMessage( + 1, + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_); } if (keyTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_); + output.writeMessage( + 2, + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_); } unknownFields.writeTo(output); } @@ -3104,12 +3770,20 @@ public int getSerializedSize() { size = 0; if (keyTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_); } if (keyTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3119,22 +3793,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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) obj; if (!getKeyTypeCase().equals(other.getKeyTypeCase())) return false; switch (keyTypeCase_) { case 1: - if (!getRsa() - .equals(other.getRsa())) return false; + if (!getRsa().equals(other.getRsa())) return false; break; case 2: - if (!getEllipticCurve() - .equals(other.getEllipticCurve())) return false; + if (!getEllipticCurve().equals(other.getEllipticCurve())) return false; break; case 0: default: @@ -3167,88 +3842,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); - } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + } + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + 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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3258,6 +3948,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes a "type" of key that may be used in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued
        * from a [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -3266,40 +3958,45 @@ protected Builder newBuilderForType(
        * algorithms, such as any RSA key.
        * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3309,19 +4006,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3329,8 +4029,10 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType result = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(this); if (keyTypeCase_ == 1) { if (rsaBuilder_ == null) { result.keyType_ = keyType_; @@ -3354,58 +4056,71 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) { - return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other) { - if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType other) { + if (other + == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .getDefaultInstance()) return this; switch (other.getKeyTypeCase()) { - case RSA: { - mergeRsa(other.getRsa()); - break; - } - case ELLIPTIC_CURVE: { - mergeEllipticCurve(other.getEllipticCurve()); - break; - } - case KEYTYPE_NOT_SET: { - break; - } + case RSA: + { + mergeRsa(other.getRsa()); + break; + } + case ELLIPTIC_CURVE: + { + mergeEllipticCurve(other.getEllipticCurve()); + break; + } + case KEYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3422,11 +4137,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3435,12 +4153,12 @@ public Builder mergeFrom( } return this; } + private int keyTypeCase_ = 0; private java.lang.Object keyType_; - public KeyTypeCase - getKeyTypeCase() { - return KeyTypeCase.forNumber( - keyTypeCase_); + + public KeyTypeCase getKeyTypeCase() { + return KeyTypeCase.forNumber(keyTypeCase_); } public Builder clearKeyType() { @@ -3450,15 +4168,25 @@ public Builder clearKeyType() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder> rsaBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder> + rsaBuilder_; /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * * @return Whether the rsa field is set. */ @java.lang.Override @@ -3466,35 +4194,52 @@ public boolean hasRsa() { return keyTypeCase_ == 1; } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * * @return The rsa. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType getRsa() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType + getRsa() { if (rsaBuilder_ == null) { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } else { if (keyTypeCase_ == 1) { return rsaBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ - public Builder setRsa(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType value) { + public Builder setRsa( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + value) { if (rsaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3508,14 +4253,20 @@ public Builder setRsa(com.google.cloud.security.privateca.v1.CaPool.IssuancePoli return this; } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ public Builder setRsa( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + .Builder + builderForValue) { if (rsaBuilder_ == null) { keyType_ = builderForValue.build(); onChanged(); @@ -3526,18 +4277,32 @@ public Builder setRsa( return this; } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ - public Builder mergeRsa(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType value) { + public Builder mergeRsa( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType + value) { if (rsaBuilder_ == null) { - if (keyTypeCase_ == 1 && - keyType_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance()) { - keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.newBuilder((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_) - .mergeFrom(value).buildPartial(); + if (keyTypeCase_ == 1 + && keyType_ + != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance()) { + keyType_ = + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.newBuilder( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyType.RsaKeyType) + keyType_) + .mergeFrom(value) + .buildPartial(); } else { keyType_ = value; } @@ -3553,11 +4318,15 @@ public Builder mergeRsa(com.google.cloud.security.privateca.v1.CaPool.IssuancePo return this; } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ public Builder clearRsa() { if (rsaBuilder_ == null) { @@ -3576,67 +4345,113 @@ public Builder clearRsa() { return this; } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder getRsaBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.Builder + getRsaBuilder() { return getRsaFieldBuilder().getBuilder(); } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder getRsaOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder + getRsaOrBuilder() { if ((keyTypeCase_ == 1) && (rsaBuilder_ != null)) { return rsaBuilder_.getMessageOrBuilder(); } else { if (keyTypeCase_ == 1) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } } /** + * + * *
          * Represents an allowed RSA key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType rsa = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder> getRsaFieldBuilder() { if (rsaBuilder_ == null) { if (!(keyTypeCase_ == 1)) { - keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.getDefaultInstance(); + keyType_ = + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.getDefaultInstance(); } - rsaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyTypeOrBuilder>( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType) keyType_, + rsaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyTypeOrBuilder>( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .RsaKeyType) + keyType_, getParentForChildren(), isClean()); keyType_ = null; } keyTypeCase_ = 1; - onChanged();; + onChanged(); + ; return rsaBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder> ellipticCurveBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyTypeOrBuilder> + ellipticCurveBuilder_; /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * * @return Whether the ellipticCurve field is set. */ @java.lang.Override @@ -3644,35 +4459,51 @@ public boolean hasEllipticCurve() { return keyTypeCase_ == 2; } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * * @return The ellipticCurve. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType getEllipticCurve() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + getEllipticCurve() { if (ellipticCurveBuilder_ == null) { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance(); } else { if (keyTypeCase_ == 2) { return ellipticCurveBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance(); } } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ - public Builder setEllipticCurve(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType value) { + public Builder setEllipticCurve( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + value) { if (ellipticCurveBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3686,14 +4517,20 @@ public Builder setEllipticCurve(com.google.cloud.security.privateca.v1.CaPool.Is return this; } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ public Builder setEllipticCurve( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .Builder + builderForValue) { if (ellipticCurveBuilder_ == null) { keyType_ = builderForValue.build(); onChanged(); @@ -3704,18 +4541,32 @@ public Builder setEllipticCurve( return this; } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ - public Builder mergeEllipticCurve(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType value) { + public Builder mergeEllipticCurve( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + value) { if (ellipticCurveBuilder_ == null) { - if (keyTypeCase_ == 2 && - keyType_ != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance()) { - keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.newBuilder((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_) - .mergeFrom(value).buildPartial(); + if (keyTypeCase_ == 2 + && keyType_ + != com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance()) { + keyType_ = + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.newBuilder( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyType.EcKeyType) + keyType_) + .mergeFrom(value) + .buildPartial(); } else { keyType_ = value; } @@ -3731,11 +4582,15 @@ public Builder mergeEllipticCurve(com.google.cloud.security.privateca.v1.CaPool. return this; } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ public Builder clearEllipticCurve() { if (ellipticCurveBuilder_ == null) { @@ -3754,58 +4609,94 @@ public Builder clearEllipticCurve() { return this; } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder getEllipticCurveBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType + .Builder + getEllipticCurveBuilder() { return getEllipticCurveFieldBuilder().getBuilder(); } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder getEllipticCurveOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyTypeOrBuilder + getEllipticCurveOrBuilder() { if ((keyTypeCase_ == 2) && (ellipticCurveBuilder_ != null)) { return ellipticCurveBuilder_.getMessageOrBuilder(); } else { if (keyTypeCase_ == 2) { - return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_; + return (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_; } - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance(); } } /** + * + * *
          * Represents an allowed Elliptic Curve key type.
          * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType elliptic_curve = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyTypeOrBuilder> getEllipticCurveFieldBuilder() { if (ellipticCurveBuilder_ == null) { if (!(keyTypeCase_ == 2)) { - keyType_ = com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.getDefaultInstance(); + keyType_ = + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.getDefaultInstance(); } - ellipticCurveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyTypeOrBuilder>( - (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType) keyType_, + ellipticCurveBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyTypeOrBuilder>( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .EcKeyType) + keyType_, getParentForChildren(), isClean()); keyType_ = null; } keyTypeCase_ = 2; - onChanged();; + onChanged(); + ; return ellipticCurveBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3818,30 +4709,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyType + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedKeyType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedKeyType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedKeyType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedKeyType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3853,39 +4748,49 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IssuanceModesOrBuilder extends + public interface IssuanceModesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowCsrBasedIssuance. */ boolean getAllowCsrBasedIssuance(); /** + * + * *
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowConfigBasedIssuance. */ boolean getAllowConfigBasedIssuance(); } /** + * + * *
      * [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] specifies the allowed ways in which
      * [Certificates][google.cloud.security.privateca.v1.Certificate] may be requested from this
@@ -3894,30 +4799,29 @@ public interface IssuanceModesOrBuilder extends
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes}
      */
-    public static final class IssuanceModes extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class IssuanceModes extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)
         IssuanceModesOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use IssuanceModes.newBuilder() to construct.
       private IssuanceModes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private IssuanceModes() {
-      }
+
+      private IssuanceModes() {}
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new IssuanceModes();
       }
 
       @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
+      public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
+
       private IssuanceModes(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3936,23 +4840,23 @@ private IssuanceModes(
               case 0:
                 done = true;
                 break;
-              case 8: {
-
-                allowCsrBasedIssuance_ = input.readBool();
-                break;
-              }
-              case 16: {
-
-                allowConfigBasedIssuance_ = input.readBool();
-                break;
-              }
-              default: {
-                if (!parseUnknownField(
-                    input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
+              case 8:
+                {
+                  allowCsrBasedIssuance_ = input.readBool();
+                  break;
+                }
+              case 16:
+                {
+                  allowConfigBasedIssuance_ = input.readBool();
+                  break;
+                }
+              default:
+                {
+                  if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                    done = true;
+                  }
+                  break;
                 }
-                break;
-              }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3960,35 +4864,42 @@ private IssuanceModes(
         } catch (com.google.protobuf.UninitializedMessageException e) {
           throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(
-              e).setUnfinishedMessage(this);
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor;
+
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder.class);
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class,
+                com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder
+                    .class);
       }
 
       public static final int ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER = 1;
       private boolean allowCsrBasedIssuance_;
       /**
+       *
+       *
        * 
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -3999,12 +4910,16 @@ public boolean getAllowCsrBasedIssuance() { public static final int ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER = 2; private boolean allowConfigBasedIssuance_; /** + * + * *
        * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -4013,6 +4928,7 @@ public boolean getAllowConfigBasedIssuance() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4024,8 +4940,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (allowCsrBasedIssuance_ != false) { output.writeBool(1, allowCsrBasedIssuance_); } @@ -4042,12 +4957,11 @@ public int getSerializedSize() { size = 0; if (allowCsrBasedIssuance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, allowCsrBasedIssuance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowCsrBasedIssuance_); } if (allowConfigBasedIssuance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowConfigBasedIssuance_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowConfigBasedIssuance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4057,17 +4971,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) obj; - if (getAllowCsrBasedIssuance() - != other.getAllowCsrBasedIssuance()) return false; - if (getAllowConfigBasedIssuance() - != other.getAllowConfigBasedIssuance()) return false; + if (getAllowCsrBasedIssuance() != other.getAllowCsrBasedIssuance()) return false; + if (getAllowConfigBasedIssuance() != other.getAllowConfigBasedIssuance()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4080,98 +4995,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowCsrBasedIssuance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCsrBasedIssuance()); hash = (37 * hash) + ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowConfigBasedIssuance()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowConfigBasedIssuance()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes 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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + 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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4181,46 +5110,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] specifies the allowed ways in which
        * [Certificates][google.cloud.security.privateca.v1.Certificate] may be requested from this
        * [CaPool][google.cloud.security.privateca.v1.CaPool].
        * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4232,19 +5168,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes build() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4252,8 +5191,10 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(this); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + buildPartial() { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes result = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(this); result.allowCsrBasedIssuance_ = allowCsrBasedIssuance_; result.allowConfigBasedIssuance_ = allowConfigBasedIssuance_; onBuilt(); @@ -4264,46 +5205,55 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) { - return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other) { - if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes other) { + if (other + == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .getDefaultInstance()) return this; if (other.getAllowCsrBasedIssuance() != false) { setAllowCsrBasedIssuance(other.getAllowCsrBasedIssuance()); } @@ -4325,11 +5275,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parsedMessage = null; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4339,14 +5292,17 @@ public Builder mergeFrom( return this; } - private boolean allowCsrBasedIssuance_ ; + private boolean allowCsrBasedIssuance_; /** + * + * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -4354,45 +5310,55 @@ public boolean getAllowCsrBasedIssuance() { return allowCsrBasedIssuance_; } /** + * + * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowCsrBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowCsrBasedIssuance(boolean value) { - + allowCsrBasedIssuance_ = value; onChanged(); return this; } /** + * + * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowCsrBasedIssuance() { - + allowCsrBasedIssuance_ = false; onChanged(); return this; } - private boolean allowConfigBasedIssuance_ ; + private boolean allowConfigBasedIssuance_; /** + * + * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -4400,36 +5366,45 @@ public boolean getAllowConfigBasedIssuance() { return allowConfigBasedIssuance_; } /** + * + * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowConfigBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowConfigBasedIssuance(boolean value) { - + allowConfigBasedIssuance_ = value; onChanged(); return this; } /** + * + * *
          * Optional. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowConfigBasedIssuance() { - + allowConfigBasedIssuance_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4442,30 +5417,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .IssuanceModes + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuanceModes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuanceModes(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuanceModes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuanceModes(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4477,85 +5456,115 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ALLOWED_KEY_TYPES_FIELD_NUMBER = 1; - private java.util.List allowedKeyTypes_; + private java.util.List< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> + allowedKeyTypes_; /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAllowedKeyTypesList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> + getAllowedKeyTypesList() { return allowedKeyTypes_; } /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyTypeOrBuilder> getAllowedKeyTypesOrBuilderList() { return allowedKeyTypes_; } /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAllowedKeyTypesCount() { return allowedKeyTypes_.size(); } /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + getAllowedKeyTypes(int index) { return allowedKeyTypes_.get(index); } /** + * + * *
      * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
      * public key must match one of the key types listed here. Otherwise,
      * any key may be used.
      * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder + getAllowedKeyTypesOrBuilder(int index) { return allowedKeyTypes_.get(index); } public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 2; private com.google.protobuf.Duration maximumLifetime_; /** + * + * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -4563,7 +5572,10 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy
      * be explicitly truncated to match it.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumLifetime field is set. */ @java.lang.Override @@ -4571,6 +5583,8 @@ public boolean hasMaximumLifetime() { return maximumLifetime_ != null; } /** + * + * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -4578,14 +5592,21 @@ public boolean hasMaximumLifetime() {
      * be explicitly truncated to match it.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumLifetime. */ @java.lang.Override public com.google.protobuf.Duration getMaximumLifetime() { - return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; } /** + * + * *
      * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
      * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -4593,7 +5614,9 @@ public com.google.protobuf.Duration getMaximumLifetime() {
      * be explicitly truncated to match it.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { @@ -4601,14 +5624,20 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { } public static final int ALLOWED_ISSUANCE_MODES_FIELD_NUMBER = 3; - private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + allowedIssuanceModes_; /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedIssuanceModes field is set. */ @java.lang.Override @@ -4616,34 +5645,50 @@ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModes_ != null; } /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedIssuanceModes. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes() { - return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + getAllowedIssuanceModes() { + return allowedIssuanceModes_ == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .getDefaultInstance() + : allowedIssuanceModes_; } /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder + getAllowedIssuanceModesOrBuilder() { return getAllowedIssuanceModes(); } public static final int BASELINE_VALUES_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1.X509Parameters baselineValues_; /** + * + * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -4654,7 +5699,10 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the baselineValues field is set. */ @java.lang.Override @@ -4662,6 +5710,8 @@ public boolean hasBaselineValues() { return baselineValues_ != null; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -4672,14 +5722,21 @@ public boolean hasBaselineValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The baselineValues. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues() { - return baselineValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : baselineValues_; + return baselineValues_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : baselineValues_; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all certificates issued
      * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -4690,16 +5747,22 @@ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues()
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselineValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder + getBaselineValuesOrBuilder() { return getBaselineValues(); } public static final int IDENTITY_CONSTRAINTS_FIELD_NUMBER = 5; - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + identityConstraints_; /** + * + * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -4707,7 +5770,10 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselin
      * certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConstraints field is set. */ @java.lang.Override @@ -4715,6 +5781,8 @@ public boolean hasIdentityConstraints() { return identityConstraints_ != null; } /** + * + * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -4722,14 +5790,23 @@ public boolean hasIdentityConstraints() {
      * certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConstraints. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { - return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + getIdentityConstraints() { + return identityConstraints_ == null + ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + .getDefaultInstance() + : identityConstraints_; } /** + * + * *
      * Optional. Describes constraints on identities that may appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -4737,16 +5814,22 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints get
      * certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder + getIdentityConstraintsOrBuilder() { return getIdentityConstraints(); } public static final int PASSTHROUGH_EXTENSIONS_FIELD_NUMBER = 6; - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + passthroughExtensions_; /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -4760,7 +5843,10 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBu
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the passthroughExtensions field is set. */ @java.lang.Override @@ -4768,6 +5854,8 @@ public boolean hasPassthroughExtensions() { return passthroughExtensions_ != null; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -4781,14 +5869,23 @@ public boolean hasPassthroughExtensions() {
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The passthroughExtensions. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { - return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getPassthroughExtensions() { + return passthroughExtensions_ == null + ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .getDefaultInstance() + : passthroughExtensions_; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -4802,14 +5899,18 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints ge
      * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder + getPassthroughExtensionsOrBuilder() { return getPassthroughExtensions(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4821,8 +5922,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedKeyTypes_.size(); i++) { output.writeMessage(1, allowedKeyTypes_.get(i)); } @@ -4851,28 +5951,26 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < allowedKeyTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, allowedKeyTypes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, allowedKeyTypes_.get(i)); } if (maximumLifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaximumLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumLifetime()); } if (allowedIssuanceModes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAllowedIssuanceModes()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllowedIssuanceModes()); } if (baselineValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getBaselineValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBaselineValues()); } if (identityConstraints_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIdentityConstraints()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIdentityConstraints()); } if (passthroughExtensions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getPassthroughExtensions()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPassthroughExtensions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4882,39 +5980,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy other = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) obj; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy other = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) obj; - if (!getAllowedKeyTypesList() - .equals(other.getAllowedKeyTypesList())) return false; + if (!getAllowedKeyTypesList().equals(other.getAllowedKeyTypesList())) return false; if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; if (hasMaximumLifetime()) { - if (!getMaximumLifetime() - .equals(other.getMaximumLifetime())) return false; + if (!getMaximumLifetime().equals(other.getMaximumLifetime())) return false; } if (hasAllowedIssuanceModes() != other.hasAllowedIssuanceModes()) return false; if (hasAllowedIssuanceModes()) { - if (!getAllowedIssuanceModes() - .equals(other.getAllowedIssuanceModes())) return false; + if (!getAllowedIssuanceModes().equals(other.getAllowedIssuanceModes())) return false; } if (hasBaselineValues() != other.hasBaselineValues()) return false; if (hasBaselineValues()) { - if (!getBaselineValues() - .equals(other.getBaselineValues())) return false; + if (!getBaselineValues().equals(other.getBaselineValues())) return false; } if (hasIdentityConstraints() != other.hasIdentityConstraints()) return false; if (hasIdentityConstraints()) { - if (!getIdentityConstraints() - .equals(other.getIdentityConstraints())) return false; + if (!getIdentityConstraints().equals(other.getIdentityConstraints())) return false; } if (hasPassthroughExtensions() != other.hasPassthroughExtensions()) return false; if (hasPassthroughExtensions()) { - if (!getPassthroughExtensions() - .equals(other.getPassthroughExtensions())) return false; + if (!getPassthroughExtensions().equals(other.getPassthroughExtensions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4957,87 +6050,94 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy 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.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5047,27 +6147,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Defines controls over all certificate issuance within a [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CaPool.IssuancePolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.class, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.newBuilder() @@ -5075,17 +6180,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAllowedKeyTypesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5129,13 +6234,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance(); } @@ -5150,7 +6256,8 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy build() { @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy buildPartial() { - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy result = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy(this); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy result = + new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy(this); int from_bitField0_ = bitField0_; if (allowedKeyTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5194,38 +6301,41 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CaPool.IssuancePolicy) { - return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy)other); + return mergeFrom((com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) other); } else { super.mergeFrom(other); return this; @@ -5233,7 +6343,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy other) { - if (other == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance()) return this; + if (other + == com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance()) + return this; if (allowedKeyTypesBuilder_ == null) { if (!other.allowedKeyTypes_.isEmpty()) { if (allowedKeyTypes_.isEmpty()) { @@ -5252,9 +6364,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool.IssuanceP allowedKeyTypesBuilder_ = null; allowedKeyTypes_ = other.allowedKeyTypes_; bitField0_ = (bitField0_ & ~0x00000001); - allowedKeyTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedKeyTypesFieldBuilder() : null; + allowedKeyTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedKeyTypesFieldBuilder() + : null; } else { allowedKeyTypesBuilder_.addAllMessages(other.allowedKeyTypes_); } @@ -5294,7 +6407,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5303,30 +6418,45 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List allowedKeyTypes_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> + allowedKeyTypes_ = java.util.Collections.emptyList(); + private void ensureAllowedKeyTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedKeyTypes_ = new java.util.ArrayList(allowedKeyTypes_); + allowedKeyTypes_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType>( + allowedKeyTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> allowedKeyTypesBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> + allowedKeyTypesBuilder_; /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAllowedKeyTypesList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> + getAllowedKeyTypesList() { if (allowedKeyTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedKeyTypes_); } else { @@ -5334,13 +6464,17 @@ public java.util.List * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's * public key must match one of the key types listed here. Otherwise, * any key may be used. *
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAllowedKeyTypesCount() { if (allowedKeyTypesBuilder_ == null) { @@ -5350,15 +6484,20 @@ public int getAllowedKeyTypesCount() { } } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType getAllowedKeyTypes(int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + getAllowedKeyTypes(int index) { if (allowedKeyTypesBuilder_ == null) { return allowedKeyTypes_.get(index); } else { @@ -5366,16 +6505,21 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy } } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedKeyTypes( - int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { + int index, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { if (allowedKeyTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5389,16 +6533,22 @@ public Builder setAllowedKeyTypes( return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedKeyTypes( - int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder + builderForValue) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); allowedKeyTypes_.set(index, builderForValue.build()); @@ -5409,15 +6559,20 @@ public Builder setAllowedKeyTypes( return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAllowedKeyTypes(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { + public Builder addAllowedKeyTypes( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { if (allowedKeyTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5431,16 +6586,21 @@ public Builder addAllowedKeyTypes(com.google.cloud.security.privateca.v1.CaPool. return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllowedKeyTypes( - int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { + int index, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType value) { if (allowedKeyTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5454,16 +6614,21 @@ public Builder addAllowedKeyTypes( return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllowedKeyTypes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder + builderForValue) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); allowedKeyTypes_.add(builderForValue.build()); @@ -5474,16 +6639,22 @@ public Builder addAllowedKeyTypes( return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllowedKeyTypes( - int index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder + builderForValue) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); allowedKeyTypes_.add(index, builderForValue.build()); @@ -5494,20 +6665,26 @@ public Builder addAllowedKeyTypes( return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAllowedKeyTypes( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType> + values) { if (allowedKeyTypesBuilder_ == null) { ensureAllowedKeyTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedKeyTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedKeyTypes_); onChanged(); } else { allowedKeyTypesBuilder_.addAllMessages(values); @@ -5515,13 +6692,17 @@ public Builder addAllAllowedKeyTypes( return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllowedKeyTypes() { if (allowedKeyTypesBuilder_ == null) { @@ -5534,13 +6715,17 @@ public Builder clearAllowedKeyTypes() { return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAllowedKeyTypes(int index) { if (allowedKeyTypesBuilder_ == null) { @@ -5553,45 +6738,61 @@ public Builder removeAllowedKeyTypes(int index) { return this; } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder getAllowedKeyTypesBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder + getAllowedKeyTypesBuilder(int index) { return getAllowedKeyTypesFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder getAllowedKeyTypesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder + getAllowedKeyTypesOrBuilder(int index) { if (allowedKeyTypesBuilder_ == null) { - return allowedKeyTypes_.get(index); } else { + return allowedKeyTypes_.get(index); + } else { return allowedKeyTypesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAllowedKeyTypesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyTypeOrBuilder> + getAllowedKeyTypesOrBuilderList() { if (allowedKeyTypesBuilder_ != null) { return allowedKeyTypesBuilder_.getMessageOrBuilderList(); } else { @@ -5599,51 +6800,78 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy } } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder addAllowedKeyTypesBuilder() { - return getAllowedKeyTypesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder + addAllowedKeyTypesBuilder() { + return getAllowedKeyTypesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .getDefaultInstance()); } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder addAllowedKeyTypesBuilder( - int index) { - return getAllowedKeyTypesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder + addAllowedKeyTypesBuilder(int index) { + return getAllowedKeyTypesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .getDefaultInstance()); } /** + * + * *
        * Optional. If any [AllowedKeyType][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType] is specified, then the certificate request's
        * public key must match one of the key types listed here. Otherwise,
        * any key may be used.
        * 
* - * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType allowed_key_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAllowedKeyTypesBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder> + getAllowedKeyTypesBuilderList() { return getAllowedKeyTypesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder> getAllowedKeyTypesFieldBuilder() { if (allowedKeyTypesBuilder_ == null) { - allowedKeyTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTypeOrBuilder>( + allowedKeyTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType + .Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .AllowedKeyTypeOrBuilder>( allowedKeyTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -5655,8 +6883,13 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy private com.google.protobuf.Duration maximumLifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumLifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maximumLifetimeBuilder_; /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5664,13 +6897,18 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyTy
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumLifetime field is set. */ public boolean hasMaximumLifetime() { return maximumLifetimeBuilder_ != null || maximumLifetime_ != null; } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5678,17 +6916,24 @@ public boolean hasMaximumLifetime() {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumLifetime. */ public com.google.protobuf.Duration getMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { - return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; } else { return maximumLifetimeBuilder_.getMessage(); } } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5696,7 +6941,9 @@ public com.google.protobuf.Duration getMaximumLifetime() {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { @@ -5712,6 +6959,8 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5719,10 +6968,11 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMaximumLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (maximumLifetimeBuilder_ == null) { maximumLifetime_ = builderForValue.build(); onChanged(); @@ -5733,6 +6983,8 @@ public Builder setMaximumLifetime( return this; } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5740,13 +6992,17 @@ public Builder setMaximumLifetime(
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { if (maximumLifetime_ != null) { maximumLifetime_ = - com.google.protobuf.Duration.newBuilder(maximumLifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(maximumLifetime_) + .mergeFrom(value) + .buildPartial(); } else { maximumLifetime_ = value; } @@ -5758,6 +7014,8 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5765,7 +7023,9 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { @@ -5779,6 +7039,8 @@ public Builder clearMaximumLifetime() { return this; } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5786,14 +7048,18 @@ public Builder clearMaximumLifetime() {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { - + onChanged(); return getMaximumLifetimeFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5801,17 +7067,22 @@ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { if (maximumLifetimeBuilder_ != null) { return maximumLifetimeBuilder_.getMessageOrBuilder(); } else { - return maximumLifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; } } /** + * + * *
        * Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note
        * that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a
@@ -5819,62 +7090,90 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() {
        * be explicitly truncated to match it.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getMaximumLifetimeFieldBuilder() { if (maximumLifetimeBuilder_ == null) { - maximumLifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaximumLifetime(), - getParentForChildren(), - isClean()); + maximumLifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaximumLifetime(), getParentForChildren(), isClean()); maximumLifetime_ = null; } return maximumLifetimeBuilder_; } - private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + allowedIssuanceModes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> allowedIssuanceModesBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> + allowedIssuanceModesBuilder_; /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedIssuanceModes field is set. */ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModesBuilder_ != null || allowedIssuanceModes_ != null; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedIssuanceModes. */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes getAllowedIssuanceModes() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + getAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { - return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; + return allowedIssuanceModes_ == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .getDefaultInstance() + : allowedIssuanceModes_; } else { return allowedIssuanceModesBuilder_.getMessage(); } } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAllowedIssuanceModes(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { + public Builder setAllowedIssuanceModes( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5888,15 +7187,20 @@ public Builder setAllowedIssuanceModes(com.google.cloud.security.privateca.v1.Ca return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedIssuanceModes( - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder + builderForValue) { if (allowedIssuanceModesBuilder_ == null) { allowedIssuanceModes_ = builderForValue.build(); onChanged(); @@ -5907,18 +7211,26 @@ public Builder setAllowedIssuanceModes( return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAllowedIssuanceModes(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { + public Builder mergeAllowedIssuanceModes( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes value) { if (allowedIssuanceModesBuilder_ == null) { if (allowedIssuanceModes_ != null) { allowedIssuanceModes_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.newBuilder(allowedIssuanceModes_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .newBuilder(allowedIssuanceModes_) + .mergeFrom(value) + .buildPartial(); } else { allowedIssuanceModes_ = value; } @@ -5930,12 +7242,16 @@ public Builder mergeAllowedIssuanceModes(com.google.cloud.security.privateca.v1. return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { @@ -5949,51 +7265,72 @@ public Builder clearAllowedIssuanceModes() { return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder getAllowedIssuanceModesBuilder() { - + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder + getAllowedIssuanceModesBuilder() { + onChanged(); return getAllowedIssuanceModesFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder + getAllowedIssuanceModesOrBuilder() { if (allowedIssuanceModesBuilder_ != null) { return allowedIssuanceModesBuilder_.getMessageOrBuilder(); } else { - return allowedIssuanceModes_ == null ? - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; + return allowedIssuanceModes_ == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .getDefaultInstance() + : allowedIssuanceModes_; } } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes allowed_issuance_modes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder> getAllowedIssuanceModesFieldBuilder() { if (allowedIssuanceModesBuilder_ == null) { - allowedIssuanceModesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModesOrBuilder>( - getAllowedIssuanceModes(), - getParentForChildren(), - isClean()); + allowedIssuanceModesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes + .Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + .IssuanceModesOrBuilder>( + getAllowedIssuanceModes(), getParentForChildren(), isClean()); allowedIssuanceModes_ = null; } return allowedIssuanceModesBuilder_; @@ -6001,8 +7338,13 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode private com.google.cloud.security.privateca.v1.X509Parameters baselineValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> baselineValuesBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + baselineValuesBuilder_; /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6013,13 +7355,18 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceMode
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the baselineValues field is set. */ public boolean hasBaselineValues() { return baselineValuesBuilder_ != null || baselineValues_ != null; } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6030,17 +7377,24 @@ public boolean hasBaselineValues() {
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The baselineValues. */ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues() { if (baselineValuesBuilder_ == null) { - return baselineValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : baselineValues_; + return baselineValues_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : baselineValues_; } else { return baselineValuesBuilder_.getMessage(); } } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6051,9 +7405,12 @@ public com.google.cloud.security.privateca.v1.X509Parameters getBaselineValues()
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setBaselineValues(com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder setBaselineValues( + com.google.cloud.security.privateca.v1.X509Parameters value) { if (baselineValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6067,6 +7424,8 @@ public Builder setBaselineValues(com.google.cloud.security.privateca.v1.X509Para return this; } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6077,7 +7436,9 @@ public Builder setBaselineValues(com.google.cloud.security.privateca.v1.X509Para
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBaselineValues( com.google.cloud.security.privateca.v1.X509Parameters.Builder builderForValue) { @@ -6091,6 +7452,8 @@ public Builder setBaselineValues( return this; } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6101,13 +7464,18 @@ public Builder setBaselineValues(
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeBaselineValues(com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder mergeBaselineValues( + com.google.cloud.security.privateca.v1.X509Parameters value) { if (baselineValuesBuilder_ == null) { if (baselineValues_ != null) { baselineValues_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(baselineValues_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(baselineValues_) + .mergeFrom(value) + .buildPartial(); } else { baselineValues_ = value; } @@ -6119,6 +7487,8 @@ public Builder mergeBaselineValues(com.google.cloud.security.privateca.v1.X509Pa return this; } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6129,7 +7499,9 @@ public Builder mergeBaselineValues(com.google.cloud.security.privateca.v1.X509Pa
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBaselineValues() { if (baselineValuesBuilder_ == null) { @@ -6143,6 +7515,8 @@ public Builder clearBaselineValues() { return this; } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6153,14 +7527,19 @@ public Builder clearBaselineValues() {
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Parameters.Builder getBaselineValuesBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.Builder + getBaselineValuesBuilder() { + onChanged(); return getBaselineValuesFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6171,17 +7550,23 @@ public com.google.cloud.security.privateca.v1.X509Parameters.Builder getBaseline
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselineValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder + getBaselineValuesOrBuilder() { if (baselineValuesBuilder_ != null) { return baselineValuesBuilder_.getMessageOrBuilder(); } else { - return baselineValues_ == null ? - com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : baselineValues_; + return baselineValues_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : baselineValues_; } } /** + * + * *
        * Optional. A set of X.509 values that will be applied to all certificates issued
        * through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request includes conflicting
@@ -6192,26 +7577,37 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselin
        * properties, the certificate issuance request will fail.
        * 
* - * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters baseline_values = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getBaselineValuesFieldBuilder() { if (baselineValuesBuilder_ == null) { - baselineValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getBaselineValues(), - getParentForChildren(), - isClean()); + baselineValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getBaselineValues(), getParentForChildren(), isClean()); baselineValues_ = null; } return baselineValuesBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + identityConstraints_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> identityConstraintsBuilder_; + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> + identityConstraintsBuilder_; /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6219,13 +7615,18 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getBaselin
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConstraints field is set. */ public boolean hasIdentityConstraints() { return identityConstraintsBuilder_ != null || identityConstraints_ != null; } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6233,17 +7634,26 @@ public boolean hasIdentityConstraints() {
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConstraints. */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + getIdentityConstraints() { if (identityConstraintsBuilder_ == null) { - return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; + return identityConstraints_ == null + ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + .getDefaultInstance() + : identityConstraints_; } else { return identityConstraintsBuilder_.getMessage(); } } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6251,9 +7661,12 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints get
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder setIdentityConstraints( + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6267,6 +7680,8 @@ public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.Cer return this; } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6274,10 +7689,13 @@ public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.Cer
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder + builderForValue) { if (identityConstraintsBuilder_ == null) { identityConstraints_ = builderForValue.build(); onChanged(); @@ -6288,6 +7706,8 @@ public Builder setIdentityConstraints( return this; } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6295,13 +7715,19 @@ public Builder setIdentityConstraints(
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder mergeIdentityConstraints( + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (identityConstraints_ != null) { identityConstraints_ = - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder(identityConstraints_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder( + identityConstraints_) + .mergeFrom(value) + .buildPartial(); } else { identityConstraints_ = value; } @@ -6313,6 +7739,8 @@ public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.C return this; } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6320,7 +7748,9 @@ public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.C
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdentityConstraints() { if (identityConstraintsBuilder_ == null) { @@ -6334,6 +7764,8 @@ public Builder clearIdentityConstraints() { return this; } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6341,14 +7773,19 @@ public Builder clearIdentityConstraints() {
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder getIdentityConstraintsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder + getIdentityConstraintsBuilder() { + onChanged(); return getIdentityConstraintsFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6356,17 +7793,24 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Bui
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder + getIdentityConstraintsOrBuilder() { if (identityConstraintsBuilder_ != null) { return identityConstraintsBuilder_.getMessageOrBuilder(); } else { - return identityConstraints_ == null ? - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; + return identityConstraints_ == null + ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + .getDefaultInstance() + : identityConstraints_; } } /** + * + * *
        * Optional. Describes constraints on identities that may appear in
        * [Certificates][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool].
@@ -6374,26 +7818,37 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBu
        * certificate's identity.
        * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> getIdentityConstraintsFieldBuilder() { if (identityConstraintsBuilder_ == null) { - identityConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( - getIdentityConstraints(), - getParentForChildren(), - isClean()); + identityConstraintsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( + getIdentityConstraints(), getParentForChildren(), isClean()); identityConstraints_ = null; } return identityConstraintsBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + passthroughExtensions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> passthroughExtensionsBuilder_; + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> + passthroughExtensionsBuilder_; /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6407,13 +7862,18 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBu
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the passthroughExtensions field is set. */ public boolean hasPassthroughExtensions() { return passthroughExtensionsBuilder_ != null || passthroughExtensions_ != null; } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6427,17 +7887,26 @@ public boolean hasPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The passthroughExtensions. */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { - return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; + return passthroughExtensions_ == null + ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .getDefaultInstance() + : passthroughExtensions_; } else { return passthroughExtensionsBuilder_.getMessage(); } } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6451,9 +7920,12 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints ge
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder setPassthroughExtensions( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6467,6 +7939,8 @@ public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.C return this; } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6480,10 +7954,13 @@ public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.C
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder + builderForValue) { if (passthroughExtensionsBuilder_ == null) { passthroughExtensions_ = builderForValue.build(); onChanged(); @@ -6494,6 +7971,8 @@ public Builder setPassthroughExtensions( return this; } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6507,13 +7986,19 @@ public Builder setPassthroughExtensions(
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder mergePassthroughExtensions( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (passthroughExtensions_ != null) { passthroughExtensions_ = - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder(passthroughExtensions_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder( + passthroughExtensions_) + .mergeFrom(value) + .buildPartial(); } else { passthroughExtensions_ = value; } @@ -6525,6 +8010,8 @@ public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1 return this; } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6538,7 +8025,9 @@ public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { @@ -6552,6 +8041,8 @@ public Builder clearPassthroughExtensions() { return this; } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6565,14 +8056,19 @@ public Builder clearPassthroughExtensions() {
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder getPassthroughExtensionsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder + getPassthroughExtensionsBuilder() { + onChanged(); return getPassthroughExtensionsFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6586,17 +8082,24 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Bu
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder + getPassthroughExtensionsOrBuilder() { if (passthroughExtensionsBuilder_ != null) { return passthroughExtensionsBuilder_.getMessageOrBuilder(); } else { - return passthroughExtensions_ == null ? - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; + return passthroughExtensions_ == null + ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .getDefaultInstance() + : passthroughExtensions_; } } /** + * + * *
        * Optional. Describes the set of X.509 extensions that may appear in a
        * [Certificate][google.cloud.security.privateca.v1.Certificate] issued through this [CaPool][google.cloud.security.privateca.v1.CaPool]. If a certificate request
@@ -6610,21 +8113,27 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrB
        * extensions set in this [CaPool][google.cloud.security.privateca.v1.CaPool]'s [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values].
        * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> getPassthroughExtensionsFieldBuilder() { if (passthroughExtensionsBuilder_ == null) { - passthroughExtensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( - getPassthroughExtensions(), - getParentForChildren(), - isClean()); + passthroughExtensionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( + getPassthroughExtensions(), getParentForChildren(), isClean()); passthroughExtensions_ = null; } return passthroughExtensionsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6637,30 +8146,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool.IssuancePolicy) - private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy(); } - public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuancePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuancePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6672,21 +8183,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy + 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 [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -6695,30 +8209,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * 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 { @@ -6729,39 +8243,59 @@ public java.lang.String getName() { public static final int TIER_FIELD_NUMBER = 2; private int tier_; /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The tier. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = + com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED + : result; } public static final int ISSUANCE_POLICY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuancePolicy_; /** + * + * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the issuancePolicy field is set. */ @java.lang.Override @@ -6769,41 +8303,58 @@ public boolean hasIssuancePolicy() { return issuancePolicy_ != null; } /** + * + * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuancePolicy. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getIssuancePolicy() { - return issuancePolicy_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() : issuancePolicy_; + return issuancePolicy_ == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() + : issuancePolicy_; } /** + * + * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder getIssuancePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder + getIssuancePolicyOrBuilder() { return getIssuancePolicy(); } public static final int PUBLISHING_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1.CaPool.PublishingOptions publishingOptions_; /** + * + * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publishingOptions field is set. */ @java.lang.Override @@ -6811,52 +8362,63 @@ public boolean hasPublishingOptions() { return publishingOptions_ != null; } /** + * + * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publishingOptions. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getPublishingOptions() { - return publishingOptions_ == null ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() : publishingOptions_; + return publishingOptions_ == null + ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() + : publishingOptions_; } /** + * + * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder getPublishingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder + getPublishingOptionsOrBuilder() { return getPublishingOptions(); } public static final int LABELS_FIELD_NUMBER = 5; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -6865,28 +8427,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -6894,11 +8458,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -6906,16 +8471,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -6923,12 +8488,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -6936,6 +8500,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6947,8 +8512,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6961,12 +8525,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (publishingOptions_ != null) { output.writeMessage(4, getPublishingOptions()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); unknownFields.writeTo(output); } @@ -6980,26 +8540,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (tier_ != com.google.cloud.security.privateca.v1.CaPool.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, tier_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, tier_); } if (issuancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getIssuancePolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIssuancePolicy()); } if (publishingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPublishingOptions()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishingOptions()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7009,28 +8566,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.security.privateca.v1.CaPool)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CaPool other = (com.google.cloud.security.privateca.v1.CaPool) obj; + com.google.cloud.security.privateca.v1.CaPool other = + (com.google.cloud.security.privateca.v1.CaPool) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (tier_ != other.tier_) return false; if (hasIssuancePolicy() != other.hasIssuancePolicy()) return false; if (hasIssuancePolicy()) { - if (!getIssuancePolicy() - .equals(other.getIssuancePolicy())) return false; + if (!getIssuancePolicy().equals(other.getIssuancePolicy())) return false; } if (hasPublishingOptions() != other.hasPublishingOptions()) return false; if (hasPublishingOptions()) { - if (!getPublishingOptions() - .equals(other.getPublishingOptions())) return false; + if (!getPublishingOptions().equals(other.getPublishingOptions())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7063,97 +8617,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.CaPool parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom(java.io.InputStream input) 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.security.privateca.v1.CaPool parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CaPool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CaPool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CaPool parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1.CaPool prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] that form a trust anchor. A
@@ -7164,43 +8725,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CaPool}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CaPool)
       com.google.cloud.security.privateca.v1.CaPoolOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CaPool.class, com.google.cloud.security.privateca.v1.CaPool.Builder.class);
+              com.google.cloud.security.privateca.v1.CaPool.class,
+              com.google.cloud.security.privateca.v1.CaPool.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CaPool.newBuilder()
@@ -7208,16 +8769,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -7242,9 +8802,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CaPool_descriptor;
     }
 
     @java.lang.Override
@@ -7263,7 +8823,8 @@ public com.google.cloud.security.privateca.v1.CaPool build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CaPool buildPartial() {
-      com.google.cloud.security.privateca.v1.CaPool result = new com.google.cloud.security.privateca.v1.CaPool(this);
+      com.google.cloud.security.privateca.v1.CaPool result =
+          new com.google.cloud.security.privateca.v1.CaPool(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.tier_ = tier_;
@@ -7287,38 +8848,39 @@ public com.google.cloud.security.privateca.v1.CaPool buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CaPool) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CaPool)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CaPool) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7340,8 +8902,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CaPool other) {
       if (other.hasPublishingOptions()) {
         mergePublishingOptions(other.getPublishingOptions());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -7370,23 +8931,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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; @@ -7395,21 +8959,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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 { @@ -7417,57 +8982,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* * 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; @@ -7475,51 +9047,75 @@ public Builder setNameBytes( private int tier_ = 0; /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The tier. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = + com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The tier to set. * @return This builder for chaining. */ @@ -7527,21 +9123,26 @@ public Builder setTier(com.google.cloud.security.privateca.v1.CaPool.Tier value) if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; @@ -7549,44 +9150,64 @@ public Builder clearTier() { private com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuancePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> issuancePolicyBuilder_; + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> + issuancePolicyBuilder_; /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the issuancePolicy field is set. */ public boolean hasIssuancePolicy() { return issuancePolicyBuilder_ != null || issuancePolicy_ != null; } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuancePolicy. */ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getIssuancePolicy() { if (issuancePolicyBuilder_ == null) { - return issuancePolicy_ == null ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() : issuancePolicy_; + return issuancePolicy_ == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() + : issuancePolicy_; } else { return issuancePolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIssuancePolicy(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { + public Builder setIssuancePolicy( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { if (issuancePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7600,12 +9221,16 @@ public Builder setIssuancePolicy(com.google.cloud.security.privateca.v1.CaPool.I return this; } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIssuancePolicy( com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder builderForValue) { @@ -7619,18 +9244,26 @@ public Builder setIssuancePolicy( return this; } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeIssuancePolicy(com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { + public Builder mergeIssuancePolicy( + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy value) { if (issuancePolicyBuilder_ == null) { if (issuancePolicy_ != null) { issuancePolicy_ = - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.newBuilder(issuancePolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.newBuilder( + issuancePolicy_) + .mergeFrom(value) + .buildPartial(); } else { issuancePolicy_ = value; } @@ -7642,12 +9275,16 @@ public Builder mergeIssuancePolicy(com.google.cloud.security.privateca.v1.CaPool return this; } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIssuancePolicy() { if (issuancePolicyBuilder_ == null) { @@ -7661,51 +9298,69 @@ public Builder clearIssuancePolicy() { return this; } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder getIssuancePolicyBuilder() { - + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder + getIssuancePolicyBuilder() { + onChanged(); return getIssuancePolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder getIssuancePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder + getIssuancePolicyOrBuilder() { if (issuancePolicyBuilder_ != null) { return issuancePolicyBuilder_.getMessageOrBuilder(); } else { - return issuancePolicy_ == null ? - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() : issuancePolicy_; + return issuancePolicy_ == null + ? com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.getDefaultInstance() + : issuancePolicy_; } } /** + * + * *
      * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
      * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder> getIssuancePolicyFieldBuilder() { if (issuancePolicyBuilder_ == null) { - issuancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder>( - getIssuancePolicy(), - getParentForChildren(), - isClean()); + issuancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy.Builder, + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder>( + getIssuancePolicy(), getParentForChildren(), isClean()); issuancePolicy_ = null; } return issuancePolicyBuilder_; @@ -7713,47 +9368,67 @@ public com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder get private com.google.cloud.security.privateca.v1.CaPool.PublishingOptions publishingOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> publishingOptionsBuilder_; + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, + com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> + publishingOptionsBuilder_; /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publishingOptions field is set. */ public boolean hasPublishingOptions() { return publishingOptionsBuilder_ != null || publishingOptions_ != null; } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publishingOptions. */ public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getPublishingOptions() { if (publishingOptionsBuilder_ == null) { - return publishingOptions_ == null ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() : publishingOptions_; + return publishingOptions_ == null + ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() + : publishingOptions_; } else { return publishingOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPublishingOptions(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { + public Builder setPublishingOptions( + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { if (publishingOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7767,13 +9442,17 @@ public Builder setPublishingOptions(com.google.cloud.security.privateca.v1.CaPoo return this; } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublishingOptions( com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder builderForValue) { @@ -7787,19 +9466,27 @@ public Builder setPublishingOptions( return this; } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePublishingOptions(com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { + public Builder mergePublishingOptions( + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions value) { if (publishingOptionsBuilder_ == null) { if (publishingOptions_ != null) { publishingOptions_ = - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder(publishingOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.newBuilder( + publishingOptions_) + .mergeFrom(value) + .buildPartial(); } else { publishingOptions_ = value; } @@ -7811,13 +9498,17 @@ public Builder mergePublishingOptions(com.google.cloud.security.privateca.v1.CaP return this; } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPublishingOptions() { if (publishingOptionsBuilder_ == null) { @@ -7831,75 +9522,92 @@ public Builder clearPublishingOptions() { return this; } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder getPublishingOptionsBuilder() { - + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder + getPublishingOptionsBuilder() { + onChanged(); return getPublishingOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder getPublishingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder + getPublishingOptionsOrBuilder() { if (publishingOptionsBuilder_ != null) { return publishingOptionsBuilder_.getMessageOrBuilder(); } else { - return publishingOptions_ == null ? - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() : publishingOptions_; + return publishingOptions_ == null + ? com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.getDefaultInstance() + : publishingOptions_; } } /** + * + * *
      * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
      * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
      * [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, + com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder> getPublishingOptionsFieldBuilder() { if (publishingOptionsBuilder_ == null) { - publishingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder>( - getPublishingOptions(), - getParentForChildren(), - isClean()); + publishingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions, + com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder, + com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder>( + getPublishingOptions(), getParentForChildren(), isClean()); publishingOptions_ = null; } return publishingOptionsBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -7911,28 +9619,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -7940,11 +9650,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -7952,16 +9663,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -7969,12 +9681,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -7982,69 +9693,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8054,12 +9762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CaPool) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CaPool) private static final com.google.cloud.security.privateca.v1.CaPool DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CaPool(); } @@ -8068,16 +9776,16 @@ public static com.google.cloud.security.privateca.v1.CaPool getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaPool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaPool(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaPool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CaPool(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8092,6 +9800,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CaPool getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java index ac6d01b5..53049697 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolOrBuilder.java @@ -1,117 +1,180 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CaPoolOrBuilder extends +public interface CaPoolOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CaPool) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* * 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 [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The tier. */ com.google.cloud.security.privateca.v1.CaPool.Tier getTier(); /** + * + * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the issuancePolicy field is set. */ boolean hasIssuancePolicy(); /** + * + * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuancePolicy. */ com.google.cloud.security.privateca.v1.CaPool.IssuancePolicy getIssuancePolicy(); /** + * + * *
    * Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate]
    * will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.IssuancePolicy issuance_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder getIssuancePolicyOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.IssuancePolicyOrBuilder + getIssuancePolicyOrBuilder(); /** + * + * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publishingOptions field is set. */ boolean hasPublishingOptions(); /** + * + * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publishingOptions. */ com.google.cloud.security.privateca.v1.CaPool.PublishingOptions getPublishingOptions(); /** + * + * *
    * Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing
    * [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this
    * [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CaPool.PublishingOptions publishing_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder getPublishingOptionsOrBuilder(); + com.google.cloud.security.privateca.v1.CaPool.PublishingOptionsOrBuilder + getPublishingOptionsOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -120,30 +183,31 @@ public interface CaPoolOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -152,18 +216,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java index fb9d2ba4..b9f2061e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Certificate.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a
  * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.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() {
     name_ = "";
     issuerCertificateAuthority_ = "";
@@ -31,16 +49,15 @@ 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;
   }
+
   private Certificate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,150 +77,179 @@ private Certificate(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            certificateConfigCase_ = 2;
-            certificateConfig_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
-            if (certificateConfigCase_ == 3) {
-              subBuilder = ((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_).toBuilder();
-            }
-            certificateConfig_ =
-                input.readMessage(com.google.cloud.security.privateca.v1.CertificateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_);
-              certificateConfig_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
-            certificateConfigCase_ = 3;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            issuerCertificateAuthority_ = s;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (lifetime_ != null) {
-              subBuilder = lifetime_.toBuilder();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              certificateConfigCase_ = 2;
+              certificateConfig_ = s;
+              break;
             }
-            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lifetime_);
-              lifetime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
+              if (certificateConfigCase_ == 3) {
+                subBuilder =
+                    ((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_)
+                        .toBuilder();
+              }
+              certificateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_);
+                certificateConfig_ = subBuilder.buildPartial();
+              }
+              certificateConfigCase_ = 3;
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            certificateTemplate_ = s;
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
-
-            subjectMode_ = rawValue;
-            break;
-          }
-          case 66: {
-            com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder subBuilder = null;
-            if (revocationDetails_ != null) {
-              subBuilder = revocationDetails_.toBuilder();
+              issuerCertificateAuthority_ = s;
+              break;
             }
-            revocationDetails_ = input.readMessage(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(revocationDetails_);
-              revocationDetails_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (lifetime_ != null) {
+                subBuilder = lifetime_.toBuilder();
+              }
+              lifetime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lifetime_);
+                lifetime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              certificateTemplate_ = s;
+              break;
+            }
+          case 56:
+            {
+              int rawValue = input.readEnum();
 
-            pemCertificate_ = s;
-            break;
-          }
-          case 82: {
-            com.google.cloud.security.privateca.v1.CertificateDescription.Builder subBuilder = null;
-            if (certificateDescription_ != null) {
-              subBuilder = certificateDescription_.toBuilder();
+              subjectMode_ = rawValue;
+              break;
             }
-            certificateDescription_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateDescription_);
-              certificateDescription_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder
+                  subBuilder = null;
+              if (revocationDetails_ != null) {
+                subBuilder = revocationDetails_.toBuilder();
+              }
+              revocationDetails_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(revocationDetails_);
+                revocationDetails_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              pemCertificate_ = s;
+              break;
             }
-            pemCertificateChain_.add(s);
-            break;
-          }
-          case 98: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 82:
+            {
+              com.google.cloud.security.privateca.v1.CertificateDescription.Builder subBuilder =
+                  null;
+              if (certificateDescription_ != null) {
+                subBuilder = certificateDescription_.toBuilder();
+              }
+              certificateDescription_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateDescription.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateDescription_);
+                certificateDescription_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pemCertificateChain_.add(s);
+              break;
             }
+          case 98:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 106: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 106:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 114: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 114:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -211,8 +257,7 @@ private Certificate(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCertificateChain_ = pemCertificateChain_.getUnmodifiableView();
@@ -221,73 +266,90 @@ private Certificate(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_Certificate_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 14:
         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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.Certificate.class, com.google.cloud.security.privateca.v1.Certificate.Builder.class);
+            com.google.cloud.security.privateca.v1.Certificate.class,
+            com.google.cloud.security.privateca.v1.Certificate.Builder.class);
   }
 
-  public interface RevocationDetailsOrBuilder extends
+  public interface RevocationDetailsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.Certificate.RevocationDetails)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return The enum numeric value on the wire for revocationState. */ int getRevocationStateValue(); /** + * + * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return The revocationState. */ com.google.cloud.security.privateca.v1.RevocationReason getRevocationState(); /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return Whether the revocationTime field is set. */ boolean hasRevocationTime(); /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return The revocationTime. */ com.google.protobuf.Timestamp getRevocationTime(); /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
@@ -297,37 +359,39 @@ public interface RevocationDetailsOrBuilder extends com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder(); } /** + * + * *
    * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.Certificate.RevocationDetails} */ - public static final class RevocationDetails extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RevocationDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.Certificate.RevocationDetails) RevocationDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevocationDetails.newBuilder() to construct. private RevocationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RevocationDetails() { revocationState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RevocationDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RevocationDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -346,32 +410,35 @@ private RevocationDetails( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - revocationState_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (revocationTime_ != null) { - subBuilder = revocationTime_.toBuilder(); + revocationState_ = rawValue; + break; } - revocationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationTime_); - revocationTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (revocationTime_ != null) { + subBuilder = revocationTime_.toBuilder(); + } + revocationTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(revocationTime_); + revocationTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -379,61 +446,77 @@ private RevocationDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); } public static final int REVOCATION_STATE_FIELD_NUMBER = 1; private int revocationState_; /** + * + * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override public int getRevocationStateValue() { + @java.lang.Override + public int getRevocationStateValue() { return revocationState_; } /** + * + * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return The revocationState. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationState() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); - return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.RevocationReason result = + com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); + return result == null + ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED + : result; } public static final int REVOCATION_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp revocationTime_; /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return Whether the revocationTime field is set. */ @java.lang.Override @@ -441,18 +524,25 @@ public boolean hasRevocationTime() { return revocationTime_ != null; } /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return The revocationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevocationTime() { - return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; + return revocationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revocationTime_; } /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
@@ -465,6 +555,7 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -476,9 +567,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (revocationState_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (revocationState_ + != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(1, revocationState_); } if (revocationTime_ != null) { @@ -493,13 +585,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (revocationState_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, revocationState_); + if (revocationState_ + != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, revocationState_); } if (revocationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRevocationTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRevocationTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -509,18 +601,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.Certificate.RevocationDetails)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other = (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) obj; + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other = + (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) obj; if (revocationState_ != other.revocationState_) return false; if (hasRevocationTime() != other.hasRevocationTime()) return false; if (hasRevocationTime()) { - if (!getRevocationTime() - .equals(other.getRevocationTime())) return false; + if (!getRevocationTime().equals(other.getRevocationTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -545,87 +637,95 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails 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.security.privateca.v1.Certificate.RevocationDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails 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.security.privateca.v1.Certificate.RevocationDetails + 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.security.privateca.v1.Certificate.RevocationDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -635,44 +735,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.Certificate.RevocationDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.Certificate.RevocationDetails) com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.class, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -688,19 +793,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails build() { - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -709,7 +817,8 @@ public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails buil @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails buildPartial() { - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = new com.google.cloud.security.privateca.v1.Certificate.RevocationDetails(this); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails result = + new com.google.cloud.security.privateca.v1.Certificate.RevocationDetails(this); result.revocationState_ = revocationState_; if (revocationTimeBuilder_ == null) { result.revocationTime_ = revocationTime_; @@ -724,46 +833,53 @@ public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.Certificate.RevocationDetails) { - return mergeFrom((com.google.cloud.security.privateca.v1.Certificate.RevocationDetails)other); + return mergeFrom( + (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other) { - if (other == com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails other) { + if (other + == com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + .getDefaultInstance()) return this; if (other.revocationState_ != 0) { setRevocationStateValue(other.getRevocationStateValue()); } @@ -789,7 +905,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.Certificate.RevocationDetails) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -801,73 +919,93 @@ public Builder mergeFrom( private int revocationState_ = 0; /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override public int getRevocationStateValue() { + @java.lang.Override + public int getRevocationStateValue() { return revocationState_; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @param value The enum numeric value on the wire for revocationState to set. * @return This builder for chaining. */ public Builder setRevocationStateValue(int value) { - + revocationState_ = value; onChanged(); return this; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return The revocationState. */ @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); - return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.RevocationReason result = + com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationState_); + return result == null + ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED + : result; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @param value The revocationState to set. * @return This builder for chaining. */ - public Builder setRevocationState(com.google.cloud.security.privateca.v1.RevocationReason value) { + public Builder setRevocationState( + com.google.cloud.security.privateca.v1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_state = 1; + * * @return This builder for chaining. */ public Builder clearRevocationState() { - + revocationState_ = 0; onChanged(); return this; @@ -875,34 +1013,47 @@ public Builder clearRevocationState() { private com.google.protobuf.Timestamp revocationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revocationTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revocationTimeBuilder_; /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return Whether the revocationTime field is set. */ public boolean hasRevocationTime() { return revocationTimeBuilder_ != null || revocationTime_ != null; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return The revocationTime. */ public com.google.protobuf.Timestamp getRevocationTime() { if (revocationTimeBuilder_ == null) { - return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; + return revocationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revocationTime_; } else { return revocationTimeBuilder_.getMessage(); } } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -923,14 +1074,15 @@ public Builder setRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; */ - public Builder setRevocationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevocationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (revocationTimeBuilder_ == null) { revocationTime_ = builderForValue.build(); onChanged(); @@ -941,6 +1093,8 @@ public Builder setRevocationTime( return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -951,7 +1105,9 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { if (revocationTimeBuilder_ == null) { if (revocationTime_ != null) { revocationTime_ = - com.google.protobuf.Timestamp.newBuilder(revocationTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(revocationTime_) + .mergeFrom(value) + .buildPartial(); } else { revocationTime_ = value; } @@ -963,6 +1119,8 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -981,6 +1139,8 @@ public Builder clearRevocationTime() { return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -988,11 +1148,13 @@ public Builder clearRevocationTime() { * .google.protobuf.Timestamp revocation_time = 2; */ public com.google.protobuf.Timestamp.Builder getRevocationTimeBuilder() { - + onChanged(); return getRevocationTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1003,11 +1165,14 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { if (revocationTimeBuilder_ != null) { return revocationTimeBuilder_.getMessageOrBuilder(); } else { - return revocationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; + return revocationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revocationTime_; } } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
@@ -1015,18 +1180,22 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { * .google.protobuf.Timestamp revocation_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getRevocationTimeFieldBuilder() { if (revocationTimeBuilder_ == null) { - revocationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRevocationTime(), - getParentForChildren(), - isClean()); + revocationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevocationTime(), getParentForChildren(), isClean()); revocationTime_ = null; } return revocationTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1039,30 +1208,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.Certificate.RevocationDetails) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.Certificate.RevocationDetails) - private static final com.google.cloud.security.privateca.v1.Certificate.RevocationDetails DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.Certificate.RevocationDetails(); } - public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevocationDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevocationDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1074,21 +1245,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int certificateConfigCase_ = 0; private java.lang.Object certificateConfig_; + public enum CertificateConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PEM_CSR(2), CONFIG(3), CERTIFICATECONFIG_NOT_SET(0); private final int value; + private CertificateConfigCase(int value) { this.value = value; } @@ -1104,32 +1278,40 @@ public static CertificateConfigCase valueOf(int value) { public static CertificateConfigCase forNumber(int value) { switch (value) { - case 2: return PEM_CSR; - case 3: return CONFIG; - case 0: return CERTIFICATECONFIG_NOT_SET; - default: return null; + case 2: + return PEM_CSR; + case 3: + return CONFIG; + case 0: + return CERTIFICATECONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public CertificateConfigCase - getCertificateConfigCase() { - return CertificateConfigCase.forNumber( - certificateConfigCase_); + public CertificateConfigCase getCertificateConfigCase() { + return CertificateConfigCase.forNumber(certificateConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -1138,30 +1320,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -1171,22 +1355,28 @@ public java.lang.String getName() { public static final int PEM_CSR_FIELD_NUMBER = 2; /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return Whether the pemCsr field is set. */ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pemCsr. */ public java.lang.String getPemCsr() { @@ -1197,8 +1387,7 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -1207,23 +1396,24 @@ public java.lang.String getPemCsr() { } } /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -1235,12 +1425,17 @@ public java.lang.String getPemCsr() { public static final int CONFIG_FIELD_NUMBER = 3; /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -1248,33 +1443,42 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); } /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); } @@ -1282,12 +1486,17 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf public static final int ISSUER_CERTIFICATE_AUTHORITY_FIELD_NUMBER = 4; private volatile java.lang.Object issuerCertificateAuthority_; /** + * + * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The issuerCertificateAuthority. */ @java.lang.Override @@ -1296,30 +1505,32 @@ public java.lang.String getIssuerCertificateAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuerCertificateAuthority_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for issuerCertificateAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuerCertificateAuthorityBytes() { + public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() { java.lang.Object ref = issuerCertificateAuthority_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuerCertificateAuthority_ = b; return b; } else { @@ -1330,6 +1541,8 @@ public java.lang.String getIssuerCertificateAuthority() { public static final int LIFETIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration lifetime_; /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1337,7 +1550,10 @@ public java.lang.String getIssuerCertificateAuthority() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -1345,6 +1561,8 @@ public boolean hasLifetime() { return lifetime_ != null; } /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1352,7 +1570,10 @@ public boolean hasLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ @java.lang.Override @@ -1360,6 +1581,8 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1367,7 +1590,9 @@ public com.google.protobuf.Duration getLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -1377,6 +1602,8 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { public static final int CERTIFICATE_TEMPLATE_FIELD_NUMBER = 6; private volatile java.lang.Object certificateTemplate_; /** + * + * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -1386,7 +1613,10 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The certificateTemplate. */ @java.lang.Override @@ -1395,14 +1625,15 @@ public java.lang.String getCertificateTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplate_ = s; return s; } } /** + * + * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -1412,17 +1643,18 @@ public java.lang.String getCertificateTemplate() {
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for certificateTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateTemplateBytes() { + public com.google.protobuf.ByteString getCertificateTemplateBytes() { java.lang.Object ref = certificateTemplate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateTemplate_ = b; return b; } else { @@ -1433,41 +1665,61 @@ public java.lang.String getCertificateTemplate() { public static final int SUBJECT_MODE_FIELD_NUMBER = 7; private int subjectMode_; /** + * + * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for subjectMode. */ - @java.lang.Override public int getSubjectModeValue() { + @java.lang.Override + public int getSubjectModeValue() { return subjectMode_; } /** + * + * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The subjectMode. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.SubjectRequestMode result = com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); - return result == null ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.SubjectRequestMode result = + com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); + return result == null + ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED + : result; } public static final int REVOCATION_DETAILS_FIELD_NUMBER = 8; private com.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocationDetails_; /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revocationDetails field is set. */ @java.lang.Override @@ -1475,39 +1727,55 @@ public boolean hasRevocationDetails() { return revocationDetails_ != null; } /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revocationDetails. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getRevocationDetails() { - return revocationDetails_ == null ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + getRevocationDetails() { + return revocationDetails_ == null + ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() + : revocationDetails_; } /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder + getRevocationDetailsOrBuilder() { return getRevocationDetails(); } public static final int PEM_CERTIFICATE_FIELD_NUMBER = 9; private volatile java.lang.Object pemCertificate_; /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCertificate. */ @java.lang.Override @@ -1516,29 +1784,29 @@ public java.lang.String getPemCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; } } /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCertificateBytes() { + public com.google.protobuf.ByteString getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -1549,11 +1817,16 @@ public java.lang.String getPemCertificate() { public static final int CERTIFICATE_DESCRIPTION_FIELD_NUMBER = 10; private com.google.cloud.security.privateca.v1.CertificateDescription certificateDescription_; /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the certificateDescription field is set. */ @java.lang.Override @@ -1561,63 +1834,86 @@ public boolean hasCertificateDescription() { return certificateDescription_ != null; } /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The certificateDescription. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateDescription getCertificateDescription() { - return certificateDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() : certificateDescription_; + return certificateDescription_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() + : certificateDescription_; } /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder + getCertificateDescriptionOrBuilder() { return getCertificateDescription(); } public static final int PEM_CERTIFICATE_CHAIN_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList pemCertificateChain_; /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList - getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { return pemCertificateChain_; } /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1625,28 +1921,35 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString - getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1654,11 +1957,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1666,11 +1973,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1680,11 +1990,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1692,11 +2006,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1704,11 +2022,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1716,24 +2037,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 14; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1742,28 +2062,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1771,11 +2093,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1783,16 +2106,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1800,12 +2123,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1813,6 +2135,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1824,8 +2147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1833,7 +2155,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateConfig_); } if (certificateConfigCase_ == 3) { - output.writeMessage(3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); + output.writeMessage( + 3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuerCertificateAuthority_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, issuerCertificateAuthority_); @@ -1844,7 +2167,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateTemplate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, certificateTemplate_); } - if (subjectMode_ != com.google.cloud.security.privateca.v1.SubjectRequestMode.SUBJECT_REQUEST_MODE_UNSPECIFIED.getNumber()) { + if (subjectMode_ + != com.google.cloud.security.privateca.v1.SubjectRequestMode + .SUBJECT_REQUEST_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, subjectMode_); } if (revocationDetails_ != null) { @@ -1857,7 +2183,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(10, getCertificateDescription()); } for (int i = 0; i < pemCertificateChain_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, pemCertificateChain_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, pemCertificateChain_.getRaw(i)); } if (createTime_ != null) { output.writeMessage(12, getCreateTime()); @@ -1865,12 +2192,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(13, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 14); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 14); unknownFields.writeTo(output); } @@ -1887,33 +2210,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateConfig_); } if (certificateConfigCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuerCertificateAuthority_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, issuerCertificateAuthority_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, issuerCertificateAuthority_); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLifetime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, certificateTemplate_); } - if (subjectMode_ != com.google.cloud.security.privateca.v1.SubjectRequestMode.SUBJECT_REQUEST_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, subjectMode_); + if (subjectMode_ + != com.google.cloud.security.privateca.v1.SubjectRequestMode + .SUBJECT_REQUEST_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, subjectMode_); } if (revocationDetails_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRevocationDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRevocationDetails()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pemCertificate_); } if (certificateDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCertificateDescription()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCertificateDescription()); } { int dataSize = 0; @@ -1924,22 +2249,20 @@ public int getSerializedSize() { size += 1 * getPemCertificateChainList().size(); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getUpdateTime()); - } - 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(14, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUpdateTime()); + } + 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(14, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1949,60 +2272,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.Certificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.Certificate other = (com.google.cloud.security.privateca.v1.Certificate) obj; + com.google.cloud.security.privateca.v1.Certificate other = + (com.google.cloud.security.privateca.v1.Certificate) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getIssuerCertificateAuthority() - .equals(other.getIssuerCertificateAuthority())) return false; + if (!getName().equals(other.getName())) return false; + if (!getIssuerCertificateAuthority().equals(other.getIssuerCertificateAuthority())) + return false; if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime() - .equals(other.getLifetime())) return false; + if (!getLifetime().equals(other.getLifetime())) return false; } - if (!getCertificateTemplate() - .equals(other.getCertificateTemplate())) return false; + if (!getCertificateTemplate().equals(other.getCertificateTemplate())) return false; if (subjectMode_ != other.subjectMode_) return false; if (hasRevocationDetails() != other.hasRevocationDetails()) return false; if (hasRevocationDetails()) { - if (!getRevocationDetails() - .equals(other.getRevocationDetails())) return false; + if (!getRevocationDetails().equals(other.getRevocationDetails())) return false; } - if (!getPemCertificate() - .equals(other.getPemCertificate())) return false; + if (!getPemCertificate().equals(other.getPemCertificate())) return false; if (hasCertificateDescription() != other.hasCertificateDescription()) return false; if (hasCertificateDescription()) { - if (!getCertificateDescription() - .equals(other.getCertificateDescription())) return false; + if (!getCertificateDescription().equals(other.getCertificateDescription())) return false; } - if (!getPemCertificateChainList() - .equals(other.getPemCertificateChainList())) return false; + if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getCertificateConfigCase().equals(other.getCertificateConfigCase())) return false; switch (certificateConfigCase_) { case 2: - if (!getPemCsr() - .equals(other.getPemCsr())) return false; + if (!getPemCsr().equals(other.getPemCsr())) return false; break; case 3: - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; break; case 0: default: @@ -2074,96 +2386,103 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.Certificate 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.security.privateca.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.security.privateca.v1.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.Certificate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.Certificate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.Certificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.Certificate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.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.security.privateca.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.security.privateca.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.security.privateca.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.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
@@ -2171,43 +2490,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.v1.Certificate)
       com.google.cloud.security.privateca.v1.CertificateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 14:
           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 14:
           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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.Certificate.class, com.google.cloud.security.privateca.v1.Certificate.Builder.class);
+              com.google.cloud.security.privateca.v1.Certificate.class,
+              com.google.cloud.security.privateca.v1.Certificate.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.Certificate.newBuilder()
@@ -2215,16 +2534,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2277,9 +2595,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_Certificate_descriptor;
     }
 
     @java.lang.Override
@@ -2298,7 +2616,8 @@ public com.google.cloud.security.privateca.v1.Certificate build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.Certificate buildPartial() {
-      com.google.cloud.security.privateca.v1.Certificate result = new com.google.cloud.security.privateca.v1.Certificate(this);
+      com.google.cloud.security.privateca.v1.Certificate result =
+          new com.google.cloud.security.privateca.v1.Certificate(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (certificateConfigCase_ == 2) {
@@ -2356,38 +2675,39 @@ public com.google.cloud.security.privateca.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.security.privateca.v1.Certificate) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.Certificate)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.Certificate) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2395,7 +2715,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.Certificate other) {
-      if (other == com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2440,22 +2761,24 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.Certificate othe
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       switch (other.getCertificateConfigCase()) {
-        case PEM_CSR: {
-          certificateConfigCase_ = 2;
-          certificateConfig_ = other.certificateConfig_;
-          onChanged();
-          break;
-        }
-        case CONFIG: {
-          mergeConfig(other.getConfig());
-          break;
-        }
-        case CERTIFICATECONFIG_NOT_SET: {
-          break;
-        }
+        case PEM_CSR:
+          {
+            certificateConfigCase_ = 2;
+            certificateConfig_ = other.certificateConfig_;
+            onChanged();
+            break;
+          }
+        case CONFIG:
+          {
+            mergeConfig(other.getConfig());
+            break;
+          }
+        case CERTIFICATECONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2476,7 +2799,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.Certificate) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.Certificate) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2485,12 +2809,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int certificateConfigCase_ = 0;
     private java.lang.Object certificateConfig_;
-    public CertificateConfigCase
-        getCertificateConfigCase() {
-      return CertificateConfigCase.forNumber(
-          certificateConfigCase_);
+
+    public CertificateConfigCase getCertificateConfigCase() {
+      return CertificateConfigCase.forNumber(certificateConfigCase_);
     }
 
     public Builder clearCertificateConfig() {
@@ -2504,19 +2828,23 @@ public Builder clearCertificateConfig() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -2525,21 +2853,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -2547,68 +2878,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** + * + * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return Whether the pemCsr field is set. */ @java.lang.Override @@ -2616,11 +2963,14 @@ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pemCsr. */ @java.lang.Override @@ -2630,8 +2980,7 @@ public java.lang.String getPemCsr() { ref = certificateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -2642,24 +2991,25 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -2669,30 +3019,35 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr( - java.lang.String value) { + public Builder setPemCsr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - certificateConfigCase_ = 2; + throw new NullPointerException(); + } + certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPemCsr() { @@ -2704,20 +3059,22 @@ public Builder clearPemCsr() { return this; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); @@ -2725,14 +3082,22 @@ public Builder setPemCsrBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> configBuilder_; + com.google.cloud.security.privateca.v1.CertificateConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> + configBuilder_; /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -2740,12 +3105,17 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ @java.lang.Override @@ -2763,12 +3133,16 @@ public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { } } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { @@ -2784,12 +3158,16 @@ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfi return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig( com.google.cloud.security.privateca.v1.CertificateConfig.Builder builderForValue) { @@ -2803,19 +3181,27 @@ public Builder setConfig( return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { - if (certificateConfigCase_ == 3 && - certificateConfig_ != com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance()) { - certificateConfig_ = com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder((com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_) - .mergeFrom(value).buildPartial(); + if (certificateConfigCase_ == 3 + && certificateConfig_ + != com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance()) { + certificateConfig_ = + com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder( + (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_) + .mergeFrom(value) + .buildPartial(); } else { certificateConfig_ = value; } @@ -2831,12 +3217,16 @@ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateCon return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -2855,23 +3245,31 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.cloud.security.privateca.v1.CertificateConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { @@ -2885,47 +3283,62 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf } } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1.CertificateConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { if (!(certificateConfigCase_ == 3)) { - certificateConfig_ = com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); + certificateConfig_ = + com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance(); } - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( (com.google.cloud.security.privateca.v1.CertificateConfig) certificateConfig_, getParentForChildren(), isClean()); certificateConfig_ = null; } certificateConfigCase_ = 3; - onChanged();; + onChanged(); + ; return configBuilder_; } private java.lang.Object issuerCertificateAuthority_ = ""; /** + * + * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The issuerCertificateAuthority. */ public java.lang.String getIssuerCertificateAuthority() { java.lang.Object ref = issuerCertificateAuthority_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuerCertificateAuthority_ = s; return s; @@ -2934,21 +3347,24 @@ public java.lang.String getIssuerCertificateAuthority() { } } /** + * + * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for issuerCertificateAuthority. */ - public com.google.protobuf.ByteString - getIssuerCertificateAuthorityBytes() { + public com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes() { java.lang.Object ref = issuerCertificateAuthority_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuerCertificateAuthority_ = b; return b; } else { @@ -2956,57 +3372,70 @@ public java.lang.String getIssuerCertificateAuthority() { } } /** + * + * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The issuerCertificateAuthority to set. * @return This builder for chaining. */ - public Builder setIssuerCertificateAuthority( - java.lang.String value) { + public Builder setIssuerCertificateAuthority(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuerCertificateAuthority_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearIssuerCertificateAuthority() { - + issuerCertificateAuthority_ = getDefaultInstance().getIssuerCertificateAuthority(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for issuerCertificateAuthority to set. * @return This builder for chaining. */ - public Builder setIssuerCertificateAuthorityBytes( - com.google.protobuf.ByteString value) { + public Builder setIssuerCertificateAuthorityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuerCertificateAuthority_ = value; onChanged(); return this; @@ -3014,8 +3443,13 @@ public Builder setIssuerCertificateAuthorityBytes( private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3023,13 +3457,18 @@ public Builder setIssuerCertificateAuthorityBytes(
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3037,7 +3476,10 @@ public boolean hasLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -3048,6 +3490,8 @@ public com.google.protobuf.Duration getLifetime() { } } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3055,7 +3499,9 @@ public com.google.protobuf.Duration getLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -3071,6 +3517,8 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3078,10 +3526,11 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -3092,6 +3541,8 @@ public Builder setLifetime( return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3099,13 +3550,15 @@ public Builder setLifetime(
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -3117,6 +3570,8 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3124,7 +3579,9 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -3138,6 +3595,8 @@ public Builder clearLifetime() { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3145,14 +3604,18 @@ public Builder clearLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3160,17 +3623,20 @@ public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -3178,17 +3644,22 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getLifetime(), - getParentForChildren(), - isClean()); + lifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLifetime(), getParentForChildren(), isClean()); lifetime_ = null; } return lifetimeBuilder_; @@ -3196,6 +3667,8 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { private java.lang.Object certificateTemplate_ = ""; /** + * + * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3205,14 +3678,16 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The certificateTemplate. */ public java.lang.String getCertificateTemplate() { java.lang.Object ref = certificateTemplate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplate_ = s; return s; @@ -3221,6 +3696,8 @@ public java.lang.String getCertificateTemplate() { } } /** + * + * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3230,16 +3707,17 @@ public java.lang.String getCertificateTemplate() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for certificateTemplate. */ - public com.google.protobuf.ByteString - getCertificateTemplateBytes() { + public com.google.protobuf.ByteString getCertificateTemplateBytes() { java.lang.Object ref = certificateTemplate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateTemplate_ = b; return b; } else { @@ -3247,6 +3725,8 @@ public java.lang.String getCertificateTemplate() { } } /** + * + * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3256,21 +3736,25 @@ public java.lang.String getCertificateTemplate() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The certificateTemplate to set. * @return This builder for chaining. */ - public Builder setCertificateTemplate( - java.lang.String value) { + public Builder setCertificateTemplate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateTemplate_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3280,16 +3764,21 @@ public Builder setCertificateTemplate(
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCertificateTemplate() { - + certificateTemplate_ = getDefaultInstance().getCertificateTemplate(); onChanged(); return this; } /** + * + * *
      * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
      * certificate, in the format
@@ -3299,17 +3788,19 @@ public Builder clearCertificateTemplate() {
      * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for certificateTemplate to set. * @return This builder for chaining. */ - public Builder setCertificateTemplateBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateTemplateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateTemplate_ = value; onChanged(); return this; @@ -3317,55 +3808,79 @@ public Builder setCertificateTemplateBytes( private int subjectMode_ = 0; /** + * + * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for subjectMode. */ - @java.lang.Override public int getSubjectModeValue() { + @java.lang.Override + public int getSubjectModeValue() { return subjectMode_; } /** + * + * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for subjectMode to set. * @return This builder for chaining. */ public Builder setSubjectModeValue(int value) { - + subjectMode_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The subjectMode. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.SubjectRequestMode result = com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); - return result == null ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.SubjectRequestMode result = + com.google.cloud.security.privateca.v1.SubjectRequestMode.valueOf(subjectMode_); + return result == null + ? com.google.cloud.security.privateca.v1.SubjectRequestMode.UNRECOGNIZED + : result; } /** + * + * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The subjectMode to set. * @return This builder for chaining. */ @@ -3373,22 +3888,27 @@ public Builder setSubjectMode(com.google.cloud.security.privateca.v1.SubjectRequ if (value == null) { throw new NullPointerException(); } - + subjectMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
      * If this is omitted, the `DEFAULT` subject mode will be used.
      * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearSubjectMode() { - + subjectMode_ = 0; onChanged(); return this; @@ -3396,44 +3916,66 @@ public Builder clearSubjectMode() { private com.google.cloud.security.privateca.v1.Certificate.RevocationDetails revocationDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> revocationDetailsBuilder_; + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> + revocationDetailsBuilder_; /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revocationDetails field is set. */ public boolean hasRevocationDetails() { return revocationDetailsBuilder_ != null || revocationDetails_ != null; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revocationDetails. */ - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getRevocationDetails() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + getRevocationDetails() { if (revocationDetailsBuilder_ == null) { - return revocationDetails_ == null ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; + return revocationDetails_ == null + ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + .getDefaultInstance() + : revocationDetails_; } else { return revocationDetailsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRevocationDetails(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { + public Builder setRevocationDetails( + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3447,15 +3989,20 @@ public Builder setRevocationDetails(com.google.cloud.security.privateca.v1.Certi return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevocationDetails( - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder builderForValue) { + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder + builderForValue) { if (revocationDetailsBuilder_ == null) { revocationDetails_ = builderForValue.build(); onChanged(); @@ -3466,18 +4013,26 @@ public Builder setRevocationDetails( return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeRevocationDetails(com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { + public Builder mergeRevocationDetails( + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (revocationDetails_ != null) { revocationDetails_ = - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder(revocationDetails_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.newBuilder( + revocationDetails_) + .mergeFrom(value) + .buildPartial(); } else { revocationDetails_ = value; } @@ -3489,12 +4044,16 @@ public Builder mergeRevocationDetails(com.google.cloud.security.privateca.v1.Cer return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevocationDetails() { if (revocationDetailsBuilder_ == null) { @@ -3508,51 +4067,70 @@ public Builder clearRevocationDetails() { return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder getRevocationDetailsBuilder() { - + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder + getRevocationDetailsBuilder() { + onChanged(); return getRevocationDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder + getRevocationDetailsOrBuilder() { if (revocationDetailsBuilder_ != null) { return revocationDetailsBuilder_.getMessageOrBuilder(); } else { - return revocationDetails_ == null ? - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; + return revocationDetails_ == null + ? com.google.cloud.security.privateca.v1.Certificate.RevocationDetails + .getDefaultInstance() + : revocationDetails_; } } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder> getRevocationDetailsFieldBuilder() { if (revocationDetailsBuilder_ == null) { - revocationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder>( - getRevocationDetails(), - getParentForChildren(), - isClean()); + revocationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetails.Builder, + com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder>( + getRevocationDetails(), getParentForChildren(), isClean()); revocationDetails_ = null; } return revocationDetailsBuilder_; @@ -3560,18 +4138,20 @@ public com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBui private java.lang.Object pemCertificate_ = ""; /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCertificate. */ public java.lang.String getPemCertificate() { java.lang.Object ref = pemCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; @@ -3580,20 +4160,21 @@ public java.lang.String getPemCertificate() { } } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCertificate. */ - public com.google.protobuf.ByteString - getPemCertificateBytes() { + public com.google.protobuf.ByteString getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -3601,54 +4182,61 @@ public java.lang.String getPemCertificate() { } } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificate( - java.lang.String value) { + public Builder setPemCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCertificate_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPemCertificate() { - + pemCertificate_ = getDefaultInstance().getPemCertificate(); onChanged(); return this; } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCertificate_ = value; onChanged(); return this; @@ -3656,41 +4244,62 @@ public Builder setPemCertificateBytes( private com.google.cloud.security.privateca.v1.CertificateDescription certificateDescription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> certificateDescriptionBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + certificateDescriptionBuilder_; /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the certificateDescription field is set. */ public boolean hasCertificateDescription() { return certificateDescriptionBuilder_ != null || certificateDescription_ != null; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The certificateDescription. */ - public com.google.cloud.security.privateca.v1.CertificateDescription getCertificateDescription() { + public com.google.cloud.security.privateca.v1.CertificateDescription + getCertificateDescription() { if (certificateDescriptionBuilder_ == null) { - return certificateDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() : certificateDescription_; + return certificateDescription_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() + : certificateDescription_; } else { return certificateDescriptionBuilder_.getMessage(); } } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCertificateDescription(com.google.cloud.security.privateca.v1.CertificateDescription value) { + public Builder setCertificateDescription( + com.google.cloud.security.privateca.v1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3704,11 +4313,15 @@ public Builder setCertificateDescription(com.google.cloud.security.privateca.v1. return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCertificateDescription( com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { @@ -3722,17 +4335,25 @@ public Builder setCertificateDescription( return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCertificateDescription(com.google.cloud.security.privateca.v1.CertificateDescription value) { + public Builder mergeCertificateDescription( + com.google.cloud.security.privateca.v1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (certificateDescription_ != null) { certificateDescription_ = - com.google.cloud.security.privateca.v1.CertificateDescription.newBuilder(certificateDescription_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.newBuilder( + certificateDescription_) + .mergeFrom(value) + .buildPartial(); } else { certificateDescription_ = value; } @@ -3744,11 +4365,15 @@ public Builder mergeCertificateDescription(com.google.cloud.security.privateca.v return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCertificateDescription() { if (certificateDescriptionBuilder_ == null) { @@ -3762,92 +4387,126 @@ public Builder clearCertificateDescription() { return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder getCertificateDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder + getCertificateDescriptionBuilder() { + onChanged(); return getCertificateDescriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder + getCertificateDescriptionOrBuilder() { if (certificateDescriptionBuilder_ != null) { return certificateDescriptionBuilder_.getMessageOrBuilder(); } else { - return certificateDescription_ == null ? - com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() : certificateDescription_; + return certificateDescription_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance() + : certificateDescription_; } } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> getCertificateDescriptionFieldBuilder() { if (certificateDescriptionBuilder_ == null) { - certificateDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( - getCertificateDescription(), - getParentForChildren(), - isClean()); + certificateDescriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( + getCertificateDescription(), getParentForChildren(), isClean()); certificateDescription_ = null; } return certificateDescriptionBuilder_; } - private com.google.protobuf.LazyStringList pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pemCertificateChain_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePemCertificateChainIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList(pemCertificateChain_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList - getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { return pemCertificateChain_.getUnmodifiableView(); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -3855,85 +4514,105 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString - getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. */ - public Builder setPemCertificateChain( - int index, java.lang.String value) { + public Builder setPemCertificateChain(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChain( - java.lang.String value) { + public Builder addPemCertificateChain(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addAllPemCertificateChain( - java.lang.Iterable values) { + public Builder addAllPemCertificateChain(java.lang.Iterable values) { ensurePemCertificateChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pemCertificateChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificateChain_); onChanged(); return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPemCertificateChain() { @@ -3943,21 +4622,25 @@ public Builder clearPemCertificateChain() { return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChainBytes( - com.google.protobuf.ByteString value) { + public Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); @@ -3966,39 +4649,58 @@ public Builder addPemCertificateChainBytes( 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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4014,14 +4716,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.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(); @@ -4032,17 +4737,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.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; } @@ -4054,11 +4763,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4072,48 +4785,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.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 [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -4121,39 +4850,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4169,14 +4917,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4187,17 +4938,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4209,11 +4964,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4227,69 +4986,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4301,28 +5075,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4330,11 +5106,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4342,16 +5119,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -4359,12 +5137,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -4372,69 +5149,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4444,12 +5218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.Certificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.Certificate) private static final com.google.cloud.security.privateca.v1.Certificate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.Certificate(); } @@ -4458,16 +5232,16 @@ public static com.google.cloud.security.privateca.v1.Certificate getDefaultInsta 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 { - return new Certificate(input, extensionRegistry); - } - }; + 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 { + return new Certificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4482,6 +5256,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java index 933116ff..58d4249a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] represents an individual Certificate Authority.
  * A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1.Certificate].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority}
  */
-public final class CertificateAuthority extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateAuthority extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority)
     CertificateAuthorityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateAuthority.newBuilder() to construct.
   private CertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateAuthority() {
     name_ = "";
     type_ = 0;
@@ -32,16 +50,15 @@ private CertificateAuthority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateAuthority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateAuthority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,191 +78,232 @@ private CertificateAuthority(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            type_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (lifetime_ != null) {
-              subBuilder = lifetime_.toBuilder();
-            }
-            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lifetime_);
-              lifetime_ = subBuilder.buildPartial();
+              type_ = rawValue;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CertificateConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 42: {
-            com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder subBuilder = null;
-            if (keySpec_ != null) {
-              subBuilder = keySpec_.toBuilder();
-            }
-            keySpec_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(keySpec_);
-              keySpec_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (lifetime_ != null) {
+                subBuilder = lifetime_.toBuilder();
+              }
+              lifetime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lifetime_);
+                lifetime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
-            if (subordinateConfig_ != null) {
-              subBuilder = subordinateConfig_.toBuilder();
-            }
-            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1.SubordinateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subordinateConfig_);
-              subordinateConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder
+                  subBuilder = null;
+              if (keySpec_ != null) {
+                subBuilder = keySpec_.toBuilder();
+              }
+              keySpec_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(keySpec_);
+                keySpec_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
-
-            tier_ = rawValue;
-            break;
-          }
-          case 64: {
-            int rawValue = input.readEnum();
-
-            state_ = rawValue;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            pemCaCertificates_.add(s);
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              caCertificateDescriptions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            caCertificateDescriptions_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.parser(), extensionRegistry));
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 50:
+            {
+              com.google.cloud.security.privateca.v1.SubordinateConfig.Builder subBuilder = null;
+              if (subordinateConfig_ != null) {
+                subBuilder = subordinateConfig_.toBuilder();
+              }
+              subordinateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.SubordinateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subordinateConfig_);
+                subordinateConfig_ = subBuilder.buildPartial();
+              }
 
-            gcsBucket_ = s;
-            break;
-          }
-          case 98: {
-            com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder subBuilder = null;
-            if (accessUrls_ != null) {
-              subBuilder = accessUrls_.toBuilder();
+              break;
             }
-            accessUrls_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(accessUrls_);
-              accessUrls_ = subBuilder.buildPartial();
+          case 56:
+            {
+              int rawValue = input.readEnum();
+
+              tier_ = rawValue;
+              break;
             }
+          case 64:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 106: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pemCaCertificates_.add(s);
+              break;
             }
-
-            break;
-          }
-          case 114: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                caCertificateDescriptions_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1.CertificateDescription>();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              caCertificateDescriptions_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateDescription.parser(),
+                      extensionRegistry));
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              gcsBucket_ = s;
+              break;
             }
+          case 98:
+            {
+              com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder
+                  subBuilder = null;
+              if (accessUrls_ != null) {
+                subBuilder = accessUrls_.toBuilder();
+              }
+              accessUrls_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(accessUrls_);
+                accessUrls_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 122: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (deleteTime_ != null) {
-              subBuilder = deleteTime_.toBuilder();
+              break;
             }
-            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(deleteTime_);
-              deleteTime_ = subBuilder.buildPartial();
+          case 106:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 114:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 130: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (expireTime_ != null) {
-              subBuilder = expireTime_.toBuilder();
+              break;
             }
-            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(expireTime_);
-              expireTime_ = subBuilder.buildPartial();
+          case 122:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (deleteTime_ != null) {
+                subBuilder = deleteTime_.toBuilder();
+              }
+              deleteTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(deleteTime_);
+                deleteTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 130:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (expireTime_ != null) {
+                subBuilder = expireTime_.toBuilder();
+              }
+              expireTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(expireTime_);
+                expireTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 138: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000004;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 138:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000004;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -253,54 +311,59 @@ private CertificateAuthority(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCaCertificates_ = pemCaCertificates_.getUnmodifiableView();
       }
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+        caCertificateDescriptions_ =
+            java.util.Collections.unmodifiableList(caCertificateDescriptions_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_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 17:
         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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateAuthority.class, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateAuthority.class,
+            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], indicating its issuing chain.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateAuthority.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -309,6 +372,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Self-signed CA.
      * 
@@ -317,6 +382,8 @@ public enum Type */ SELF_SIGNED(1), /** + * + * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * or an unmanaged CA.
@@ -329,6 +396,8 @@ public enum Type
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -337,6 +406,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Self-signed CA.
      * 
@@ -345,6 +416,8 @@ public enum Type */ public static final int SELF_SIGNED_VALUE = 1; /** + * + * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * or an unmanaged CA.
@@ -354,7 +427,6 @@ public enum Type
      */
     public static final int SUBORDINATE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -379,49 +451,51 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return SELF_SIGNED;
-        case 2: return SUBORDINATE;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return SELF_SIGNED;
+        case 2:
+          return SUBORDINATE;
+        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<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Type findValueByNumber(int number) {
-              return Type.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Type findValueByNumber(int number) {
+            return Type.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -439,15 +513,18 @@ private Type(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The state of a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], indicating if it can be used.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateAuthority.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -456,6 +533,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will be
@@ -466,6 +545,8 @@ public enum State
      */
     ENABLED(1),
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not be
@@ -476,6 +557,8 @@ public enum State
      */
     DISABLED(2),
     /**
+     *
+     *
      * 
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not
@@ -486,6 +569,8 @@ public enum State
      */
     STAGED(3),
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA will not be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will not be
@@ -496,6 +581,8 @@ public enum State
      */
     AWAITING_USER_ACTIVATION(4),
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA may still be recovered by calling
@@ -512,6 +599,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -520,6 +609,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will be
@@ -530,6 +621,8 @@ public enum State
      */
     public static final int ENABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not be
@@ -540,6 +633,8 @@ public enum State
      */
     public static final int DISABLED_VALUE = 2;
     /**
+     *
+     *
      * 
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA. The CA will be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, but will not
@@ -550,6 +645,8 @@ public enum State
      */
     public static final int STAGED_VALUE = 3;
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA will not be part of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s trust anchor, and will not be
@@ -560,6 +657,8 @@ public enum State
      */
     public static final int AWAITING_USER_ACTIVATION_VALUE = 4;
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * The CA may still be recovered by calling
@@ -573,7 +672,6 @@ public enum State
      */
     public static final int DELETED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -598,52 +696,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ENABLED;
-        case 2: return DISABLED;
-        case 3: return STAGED;
-        case 4: return AWAITING_USER_ACTIVATION;
-        case 5: return DELETED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ENABLED;
+        case 2:
+          return DISABLED;
+        case 3:
+          return STAGED;
+        case 4:
+          return AWAITING_USER_ACTIVATION;
+        case 5:
+          return DELETED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -661,6 +764,8 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The algorithm of a Cloud KMS CryptoKeyVersion of a
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] with the
@@ -675,9 +780,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm}
    */
-  public enum SignHashAlgorithm
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -686,6 +792,8 @@ public enum SignHashAlgorithm */ SIGN_HASH_ALGORITHM_UNSPECIFIED(0), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -694,6 +802,8 @@ public enum SignHashAlgorithm */ RSA_PSS_2048_SHA256(1), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -702,6 +812,8 @@ public enum SignHashAlgorithm */ RSA_PSS_3072_SHA256(2), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -710,6 +822,8 @@ public enum SignHashAlgorithm */ RSA_PSS_4096_SHA256(3), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -718,6 +832,8 @@ public enum SignHashAlgorithm */ RSA_PKCS1_2048_SHA256(6), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -726,6 +842,8 @@ public enum SignHashAlgorithm */ RSA_PKCS1_3072_SHA256(7), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -734,6 +852,8 @@ public enum SignHashAlgorithm */ RSA_PKCS1_4096_SHA256(8), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -742,6 +862,8 @@ public enum SignHashAlgorithm */ EC_P256_SHA256(4), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -753,6 +875,8 @@ public enum SignHashAlgorithm ; /** + * + * *
      * Not specified.
      * 
@@ -761,6 +885,8 @@ public enum SignHashAlgorithm */ public static final int SIGN_HASH_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -769,6 +895,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -777,6 +905,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -785,6 +915,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -793,6 +925,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PKCS1_2048_SHA256_VALUE = 6; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -801,6 +935,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PKCS1_3072_SHA256_VALUE = 7; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -809,6 +945,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PKCS1_4096_SHA256_VALUE = 8; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -817,6 +955,8 @@ public enum SignHashAlgorithm */ public static final int EC_P256_SHA256_VALUE = 4; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -825,7 +965,6 @@ public enum SignHashAlgorithm */ public static final int EC_P384_SHA384_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -850,16 +989,26 @@ public static SignHashAlgorithm valueOf(int value) { */ public static SignHashAlgorithm forNumber(int value) { switch (value) { - case 0: return SIGN_HASH_ALGORITHM_UNSPECIFIED; - case 1: return RSA_PSS_2048_SHA256; - case 2: return RSA_PSS_3072_SHA256; - case 3: return RSA_PSS_4096_SHA256; - case 6: return RSA_PKCS1_2048_SHA256; - case 7: return RSA_PKCS1_3072_SHA256; - case 8: return RSA_PKCS1_4096_SHA256; - case 4: return EC_P256_SHA256; - case 5: return EC_P384_SHA384; - default: return null; + case 0: + return SIGN_HASH_ALGORITHM_UNSPECIFIED; + case 1: + return RSA_PSS_2048_SHA256; + case 2: + return RSA_PSS_3072_SHA256; + case 3: + return RSA_PSS_4096_SHA256; + case 6: + return RSA_PKCS1_2048_SHA256; + case 7: + return RSA_PKCS1_3072_SHA256; + case 8: + return RSA_PKCS1_4096_SHA256; + case 4: + return EC_P256_SHA256; + case 5: + return EC_P384_SHA384; + default: + return null; } } @@ -867,29 +1016,31 @@ public static SignHashAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignHashAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignHashAlgorithm findValueByNumber(int number) { - return SignHashAlgorithm.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignHashAlgorithm findValueByNumber(int number) { + return SignHashAlgorithm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.getDescriptor() + .getEnumTypes() + .get(2); } private static final SignHashAlgorithm[] VALUES = values(); @@ -897,8 +1048,7 @@ public SignHashAlgorithm findValueByNumber(int number) { public static SignHashAlgorithm 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; @@ -915,93 +1065,112 @@ private SignHashAlgorithm(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm) } - public interface AccessUrlsOrBuilder extends + public interface AccessUrlsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The caCertificateAccessUrl. */ java.lang.String getCaCertificateAccessUrl(); /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The bytes for caCertificateAccessUrl. */ - com.google.protobuf.ByteString - getCaCertificateAccessUrlBytes(); + com.google.protobuf.ByteString getCaCertificateAccessUrlBytes(); /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @return A list containing the crlAccessUrls. */ - java.util.List - getCrlAccessUrlsList(); + java.util.List getCrlAccessUrlsList(); /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @return The count of crlAccessUrls. */ int getCrlAccessUrlsCount(); /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @param index The index of the element to return. * @return The crlAccessUrls at the given index. */ java.lang.String getCrlAccessUrls(int index); /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @param index The index of the value to return. * @return The bytes of the crlAccessUrls at the given index. */ - com.google.protobuf.ByteString - getCrlAccessUrlsBytes(int index); + com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index); } /** + * + * *
    * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will publish content.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls} */ - public static final class AccessUrls extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AccessUrls extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) AccessUrlsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessUrls.newBuilder() to construct. private AccessUrls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessUrls() { caCertificateAccessUrl_ = ""; crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1009,16 +1178,15 @@ private AccessUrls() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessUrls(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessUrls( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1038,28 +1206,30 @@ private AccessUrls( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificateAccessUrl_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + caCertificateAccessUrl_ = s; + break; } - crlAccessUrls_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + crlAccessUrls_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1067,8 +1237,7 @@ private AccessUrls( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crlAccessUrls_ = crlAccessUrls_.getUnmodifiableView(); @@ -1077,28 +1246,34 @@ private AccessUrls( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder.class); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder.class); } public static final int CA_CERTIFICATE_ACCESS_URL_FIELD_NUMBER = 1; private volatile java.lang.Object caCertificateAccessUrl_; /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The caCertificateAccessUrl. */ @java.lang.Override @@ -1107,30 +1282,30 @@ public java.lang.String getCaCertificateAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; } } /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The bytes for caCertificateAccessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -1141,37 +1316,45 @@ public java.lang.String getCaCertificateAccessUrl() { public static final int CRL_ACCESS_URLS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList crlAccessUrls_; /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @return A list containing the crlAccessUrls. */ - public com.google.protobuf.ProtocolStringList - getCrlAccessUrlsList() { + public com.google.protobuf.ProtocolStringList getCrlAccessUrlsList() { return crlAccessUrls_; } /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @return The count of crlAccessUrls. */ public int getCrlAccessUrlsCount() { return crlAccessUrls_.size(); } /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @param index The index of the element to return. * @return The crlAccessUrls at the given index. */ @@ -1179,21 +1362,24 @@ public java.lang.String getCrlAccessUrls(int index) { return crlAccessUrls_.get(index); } /** + * + * *
      * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * repeated string crl_access_urls = 2; + * * @param index The index of the value to return. * @return The bytes of the crlAccessUrls at the given index. */ - public com.google.protobuf.ByteString - getCrlAccessUrlsBytes(int index) { + public com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index) { return crlAccessUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1205,8 +1391,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caCertificateAccessUrl_); } @@ -1223,7 +1408,8 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); } { int dataSize = 0; @@ -1241,17 +1427,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.security.privateca.v1.CertificateAuthority.AccessUrls)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other = (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) obj; + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other = + (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) obj; - if (!getCaCertificateAccessUrl() - .equals(other.getCaCertificateAccessUrl())) return false; - if (!getCrlAccessUrlsList() - .equals(other.getCrlAccessUrlsList())) return false; + if (!getCaCertificateAccessUrl().equals(other.getCaCertificateAccessUrl())) return false; + if (!getCrlAccessUrlsList().equals(other.getCrlAccessUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1275,87 +1461,95 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls 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.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls 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.security.privateca.v1.CertificateAuthority.AccessUrls + 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.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1365,44 +1559,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will publish content.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder.class); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.class, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1414,19 +1614,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls build() { - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1435,7 +1638,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls bu @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls buildPartial() { - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(this); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls result = + new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(this); int from_bitField0_ = bitField0_; result.caCertificateAccessUrl_ = caCertificateAccessUrl_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1451,46 +1655,54 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateAuthority.AccessUrls) { - return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls)other); + if (other + instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other) { - if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + .getDefaultInstance()) return this; if (!other.getCaCertificateAccessUrl().isEmpty()) { caCertificateAccessUrl_ = other.caCertificateAccessUrl_; onChanged(); @@ -1524,7 +1736,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1533,23 +1747,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object caCertificateAccessUrl_ = ""; /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @return The caCertificateAccessUrl. */ public java.lang.String getCaCertificateAccessUrl() { java.lang.Object ref = caCertificateAccessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; @@ -1558,21 +1775,22 @@ public java.lang.String getCaCertificateAccessUrl() { } } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @return The bytes for caCertificateAccessUrl. */ - public com.google.protobuf.ByteString - getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -1580,101 +1798,118 @@ public java.lang.String getCaCertificateAccessUrl() { } } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @param value The caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrl( - java.lang.String value) { + public Builder setCaCertificateAccessUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificateAccessUrl_ = value; onChanged(); return this; } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @return This builder for chaining. */ public Builder clearCaCertificateAccessUrl() { - + caCertificateAccessUrl_ = getDefaultInstance().getCaCertificateAccessUrl(); onChanged(); return this; } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @param value The bytes for caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setCaCertificateAccessUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificateAccessUrl_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList crlAccessUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList crlAccessUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCrlAccessUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { crlAccessUrls_ = new com.google.protobuf.LazyStringArrayList(crlAccessUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @return A list containing the crlAccessUrls. */ - public com.google.protobuf.ProtocolStringList - getCrlAccessUrlsList() { + public com.google.protobuf.ProtocolStringList getCrlAccessUrlsList() { return crlAccessUrls_.getUnmodifiableView(); } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @return The count of crlAccessUrls. */ public int getCrlAccessUrlsCount() { return crlAccessUrls_.size(); } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @param index The index of the element to return. * @return The crlAccessUrls at the given index. */ @@ -1682,85 +1917,95 @@ public java.lang.String getCrlAccessUrls(int index) { return crlAccessUrls_.get(index); } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @param index The index of the value to return. * @return The bytes of the crlAccessUrls at the given index. */ - public com.google.protobuf.ByteString - getCrlAccessUrlsBytes(int index) { + public com.google.protobuf.ByteString getCrlAccessUrlsBytes(int index) { return crlAccessUrls_.getByteString(index); } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @param index The index to set the value at. * @param value The crlAccessUrls to set. * @return This builder for chaining. */ - public Builder setCrlAccessUrls( - int index, java.lang.String value) { + public Builder setCrlAccessUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlAccessUrlsIsMutable(); + throw new NullPointerException(); + } + ensureCrlAccessUrlsIsMutable(); crlAccessUrls_.set(index, value); onChanged(); return this; } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @param value The crlAccessUrls to add. * @return This builder for chaining. */ - public Builder addCrlAccessUrls( - java.lang.String value) { + public Builder addCrlAccessUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlAccessUrlsIsMutable(); + throw new NullPointerException(); + } + ensureCrlAccessUrlsIsMutable(); crlAccessUrls_.add(value); onChanged(); return this; } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @param values The crlAccessUrls to add. * @return This builder for chaining. */ - public Builder addAllCrlAccessUrls( - java.lang.Iterable values) { + public Builder addAllCrlAccessUrls(java.lang.Iterable values) { ensureCrlAccessUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, crlAccessUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlAccessUrls_); onChanged(); return this; } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @return This builder for chaining. */ public Builder clearCrlAccessUrls() { @@ -1770,26 +2015,29 @@ public Builder clearCrlAccessUrls() { return this; } /** + * + * *
        * The URLs where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * repeated string crl_access_urls = 2; + * * @param value The bytes of the crlAccessUrls to add. * @return This builder for chaining. */ - public Builder addCrlAccessUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addCrlAccessUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCrlAccessUrlsIsMutable(); crlAccessUrls_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1802,30 +2050,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls) - private static final com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls(); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessUrls parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessUrls(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessUrls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessUrls(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1837,17 +2088,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface KeyVersionSpecOrBuilder extends + public interface KeyVersionSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -1857,10 +2111,13 @@ public interface KeyVersionSpecOrBuilder extends
      * 
* * string cloud_kms_key_version = 1; + * * @return Whether the cloudKmsKeyVersion field is set. */ boolean hasCloudKmsKeyVersion(); /** + * + * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -1870,10 +2127,13 @@ public interface KeyVersionSpecOrBuilder extends
      * 
* * string cloud_kms_key_version = 1; + * * @return The cloudKmsKeyVersion. */ java.lang.String getCloudKmsKeyVersion(); /** + * + * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -1883,78 +2143,95 @@ public interface KeyVersionSpecOrBuilder extends
      * 
* * string cloud_kms_key_version = 1; + * * @return The bytes for cloudKmsKeyVersion. */ - com.google.protobuf.ByteString - getCloudKmsKeyVersionBytes(); + com.google.protobuf.ByteString getCloudKmsKeyVersionBytes(); /** + * + * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return Whether the algorithm field is set. */ boolean hasAlgorithm(); /** + * + * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** + * + * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return The algorithm. */ com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm getAlgorithm(); - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase(); + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.KeyVersionCase + getKeyVersionCase(); } /** + * + * *
    * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will use.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec} */ - public static final class KeyVersionSpec extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KeyVersionSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) KeyVersionSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyVersionSpec.newBuilder() to construct. private KeyVersionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KeyVersionSpec() { - } + + private KeyVersionSpec() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KeyVersionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KeyVersionSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1973,25 +2250,27 @@ private KeyVersionSpec( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - keyVersionCase_ = 1; - keyVersion_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - keyVersionCase_ = 2; - keyVersion_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + keyVersionCase_ = 1; + keyVersion_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + keyVersionCase_ = 2; + keyVersion_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1999,35 +2278,41 @@ private KeyVersionSpec( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder.class); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder + .class); } private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; + public enum KeyVersionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_KMS_KEY_VERSION(1), ALGORITHM(2), KEYVERSION_NOT_SET(0); private final int value; + private KeyVersionCase(int value) { this.value = value; } @@ -2043,25 +2328,30 @@ public static KeyVersionCase valueOf(int value) { public static KeyVersionCase forNumber(int value) { switch (value) { - case 1: return CLOUD_KMS_KEY_VERSION; - case 2: return ALGORITHM; - case 0: return KEYVERSION_NOT_SET; - default: return null; + case 1: + return CLOUD_KMS_KEY_VERSION; + case 2: + return ALGORITHM; + case 0: + return KEYVERSION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KeyVersionCase - getKeyVersionCase() { - return KeyVersionCase.forNumber( - keyVersionCase_); + public KeyVersionCase getKeyVersionCase() { + return KeyVersionCase.forNumber(keyVersionCase_); } public static final int CLOUD_KMS_KEY_VERSION_FIELD_NUMBER = 1; /** + * + * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2071,12 +2361,15 @@ public int getNumber() {
      * 
* * string cloud_kms_key_version = 1; + * * @return Whether the cloudKmsKeyVersion field is set. */ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** + * + * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2086,6 +2379,7 @@ public boolean hasCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1; + * * @return The cloudKmsKeyVersion. */ public java.lang.String getCloudKmsKeyVersion() { @@ -2096,8 +2390,7 @@ public java.lang.String getCloudKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -2106,6 +2399,8 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** + * + * *
      * The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -2115,18 +2410,17 @@ public java.lang.String getCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1; + * * @return The bytes for cloudKmsKeyVersion. */ - public com.google.protobuf.ByteString - getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -2138,26 +2432,36 @@ public java.lang.String getCloudKmsKeyVersion() { public static final int ALGORITHM_FIELD_NUMBER = 2; /** + * + * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** + * + * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return The enum numeric value on the wire for algorithm. */ public int getAlgorithmValue() { @@ -2167,26 +2471,38 @@ public int getAlgorithmValue() { return 0; } /** + * + * *
      * The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return The algorithm. */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm + getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( - (java.lang.Integer) keyVersion_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( + (java.lang.Integer) keyVersion_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm + .UNRECOGNIZED + : result; } - return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; + return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm + .SIGN_HASH_ALGORITHM_UNSPECIFIED; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2198,8 +2514,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (keyVersionCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyVersion_); } @@ -2219,8 +2534,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyVersion_); } if (keyVersionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ((java.lang.Integer) keyVersion_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) keyVersion_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2230,22 +2546,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.security.privateca.v1.CertificateAuthority.KeyVersionSpec)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other = (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) obj; + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other = + (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) obj; if (!getKeyVersionCase().equals(other.getKeyVersionCase())) return false; switch (keyVersionCase_) { case 1: - if (!getCloudKmsKeyVersion() - .equals(other.getCloudKmsKeyVersion())) return false; + if (!getCloudKmsKeyVersion().equals(other.getCloudKmsKeyVersion())) return false; break; case 2: - if (getAlgorithmValue() - != other.getAlgorithmValue()) return false; + if (getAlgorithmValue() != other.getAlgorithmValue()) return false; break; case 0: default: @@ -2278,88 +2594,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec 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.security.privateca.v1.CertificateAuthority.KeyVersionSpec + 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.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2369,44 +2698,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will use.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder.class); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.class, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2416,19 +2751,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec build() { - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2436,8 +2774,10 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec buildPartial() { - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(this); + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + buildPartial() { + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec result = + new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(this); if (keyVersionCase_ == 1) { result.keyVersion_ = keyVersion_; } @@ -2453,60 +2793,71 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateAuthority.KeyVersionSpec) { - return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec)other); + if (other + instanceof com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other) { - if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance()) return this; switch (other.getKeyVersionCase()) { - case CLOUD_KMS_KEY_VERSION: { - keyVersionCase_ = 1; - keyVersion_ = other.keyVersion_; - onChanged(); - break; - } - case ALGORITHM: { - setAlgorithmValue(other.getAlgorithmValue()); - break; - } - case KEYVERSION_NOT_SET: { - break; - } + case CLOUD_KMS_KEY_VERSION: + { + keyVersionCase_ = 1; + keyVersion_ = other.keyVersion_; + onChanged(); + break; + } + case ALGORITHM: + { + setAlgorithmValue(other.getAlgorithmValue()); + break; + } + case KEYVERSION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2523,11 +2874,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2536,12 +2890,12 @@ public Builder mergeFrom( } return this; } + private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; - public KeyVersionCase - getKeyVersionCase() { - return KeyVersionCase.forNumber( - keyVersionCase_); + + public KeyVersionCase getKeyVersionCase() { + return KeyVersionCase.forNumber(keyVersionCase_); } public Builder clearKeyVersion() { @@ -2551,8 +2905,9 @@ public Builder clearKeyVersion() { return this; } - /** + * + * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2562,6 +2917,7 @@ public Builder clearKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; + * * @return Whether the cloudKmsKeyVersion field is set. */ @java.lang.Override @@ -2569,6 +2925,8 @@ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** + * + * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2578,6 +2936,7 @@ public boolean hasCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; + * * @return The cloudKmsKeyVersion. */ @java.lang.Override @@ -2587,8 +2946,7 @@ public java.lang.String getCloudKmsKeyVersion() { ref = keyVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -2599,6 +2957,8 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** + * + * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2608,19 +2968,18 @@ public java.lang.String getCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; + * * @return The bytes for cloudKmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -2630,6 +2989,8 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** + * + * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2639,20 +3000,22 @@ public java.lang.String getCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; + * * @param value The cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersion( - java.lang.String value) { + public Builder setCloudKmsKeyVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - keyVersionCase_ = 1; + throw new NullPointerException(); + } + keyVersionCase_ = 1; keyVersion_ = value; onChanged(); return this; } /** + * + * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2662,6 +3025,7 @@ public Builder setCloudKmsKeyVersion(
        * 
* * string cloud_kms_key_version = 1; + * * @return This builder for chaining. */ public Builder clearCloudKmsKeyVersion() { @@ -2673,6 +3037,8 @@ public Builder clearCloudKmsKeyVersion() { return this; } /** + * + * *
        * The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -2682,15 +3048,15 @@ public Builder clearCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1; + * * @param value The bytes for cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); keyVersionCase_ = 1; keyVersion_ = value; onChanged(); @@ -2698,13 +3064,18 @@ public Builder setCloudKmsKeyVersionBytes( } /** + * + * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return Whether the algorithm field is set. */ @java.lang.Override @@ -2712,13 +3083,18 @@ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** + * + * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return The enum numeric value on the wire for algorithm. */ @java.lang.Override @@ -2729,13 +3105,18 @@ public int getAlgorithmValue() { return 0; } /** + * + * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @param value The enum numeric value on the wire for algorithm to set. * @return This builder for chaining. */ @@ -2746,37 +3127,54 @@ public Builder setAlgorithmValue(int value) { return this; } /** + * + * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return The algorithm. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm + getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( - (java.lang.Integer) keyVersion_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm result = + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.valueOf( + (java.lang.Integer) keyVersion_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm + .UNRECOGNIZED + : result; } - return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; + return com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm + .SIGN_HASH_ALGORITHM_UNSPECIFIED; } /** + * + * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm(com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm value) { + public Builder setAlgorithm( + com.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm value) { if (value == null) { throw new NullPointerException(); } @@ -2786,13 +3184,18 @@ public Builder setAlgorithm(com.google.cloud.security.privateca.v1.CertificateAu return this; } /** + * + * *
        * The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2; + * + * * @return This builder for chaining. */ public Builder clearAlgorithm() { @@ -2803,6 +3206,7 @@ public Builder clearAlgorithm() { } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2815,30 +3219,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec) - private static final com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec(); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyVersionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyVersionSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyVersionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyVersionSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2850,21 +3257,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -2873,30 +3283,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * 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 { @@ -2907,38 +3317,58 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = + com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED + : result; } public static final int CONFIG_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CertificateConfig config_; /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -2946,23 +3376,34 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { - return config_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { @@ -2972,13 +3413,18 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf public static final int LIFETIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration lifetime_; /** + * + * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -2986,13 +3432,18 @@ public boolean hasLifetime() { return lifetime_ != null; } /** + * + * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ @java.lang.Override @@ -3000,13 +3451,17 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** + * + * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -3016,6 +3471,8 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { public static final int KEY_SPEC_FIELD_NUMBER = 5; private com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec keySpec_; /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -3023,7 +3480,10 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the keySpec field is set. */ @java.lang.Override @@ -3031,6 +3491,8 @@ public boolean hasKeySpec() { return keySpec_ != null; } /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -3038,14 +3500,22 @@ public boolean hasKeySpec() {
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The keySpec. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getKeySpec() { - return keySpec_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; + return keySpec_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance() + : keySpec_; } /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -3053,23 +3523,31 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder + getKeySpecOrBuilder() { return getKeySpec(); } public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -3077,92 +3555,136 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int TIER_FIELD_NUMBER = 7; private int tier_; /** + * + * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tier. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = + com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED + : result; } public static final int STATE_FIELD_NUMBER = 8; private int state_; /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.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 [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.State getState() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.State result = + com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED + : result; } public static final int PEM_CA_CERTIFICATES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList pemCaCertificates_; /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3170,14 +3692,17 @@ public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubo
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { return pemCaCertificates_; } /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3185,13 +3710,17 @@ public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubo
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3199,7 +3728,9 @@ public int getPemCaCertificatesCount() {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -3207,6 +3738,8 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -3214,83 +3747,110 @@ public java.lang.String getPemCaCertificates(int index) {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } public static final int CA_CERTIFICATE_DESCRIPTIONS_FIELD_NUMBER = 10; - private java.util.List caCertificateDescriptions_; + private java.util.List + caCertificateDescriptions_; /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getCaCertificateDescriptionsList() { + public java.util.List + getCaCertificateDescriptionsList() { return caCertificateDescriptions_; } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsOrBuilderList() { return caCertificateDescriptions_; } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getCaCertificateDescriptionsCount() { return caCertificateDescriptions_.size(); } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions( + int index) { return caCertificateDescriptions_.get(index); } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder + getCaCertificateDescriptionsOrBuilder(int index) { return caCertificateDescriptions_.get(index); } public static final int GCS_BUCKET_FIELD_NUMBER = 11; private volatile java.lang.Object gcsBucket_; /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -3301,6 +3861,7 @@ public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder ge
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The gcsBucket. */ @java.lang.Override @@ -3309,14 +3870,15 @@ public java.lang.String getGcsBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; } } /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -3327,16 +3889,15 @@ public java.lang.String getGcsBucket() {
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for gcsBucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsBucketBytes() { + public com.google.protobuf.ByteString getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -3347,12 +3908,17 @@ public java.lang.String getGcsBucket() { public static final int ACCESS_URLS_FIELD_NUMBER = 12; private com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls accessUrls_; /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accessUrls field is set. */ @java.lang.Override @@ -3360,39 +3926,56 @@ public boolean hasAccessUrls() { return accessUrls_ != null; } /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accessUrls. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getAccessUrls() { - return accessUrls_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; + return accessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + .getDefaultInstance() + : accessUrls_; } /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder + getAccessUrlsOrBuilder() { return getAccessUrls(); } public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -3400,11 +3983,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -3412,11 +3999,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -3426,11 +4016,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3438,11 +4032,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -3450,11 +4048,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -3464,12 +4065,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -3477,12 +4082,16 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -3490,12 +4099,15 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -3505,12 +4117,16 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -3518,12 +4134,16 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -3531,12 +4151,15 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -3544,24 +4167,23 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 17; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -3570,28 +4192,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -3599,11 +4223,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -3611,16 +4236,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -3628,12 +4253,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -3641,6 +4265,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3652,12 +4277,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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 (type_ != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (config_ != null) { @@ -3675,7 +4301,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tier_ != com.google.cloud.security.privateca.v1.CaPool.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(7, tier_); } - if (state_ != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, state_); } for (int i = 0; i < pemCaCertificates_.size(); i++) { @@ -3702,12 +4330,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != null) { output.writeMessage(16, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 17); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 17); unknownFields.writeTo(output); } @@ -3720,33 +4344,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.security.privateca.v1.CertificateAuthority.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLifetime()); } if (keySpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getKeySpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getKeySpec()); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSubordinateConfig()); } if (tier_ != com.google.cloud.security.privateca.v1.CaPool.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, tier_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, tier_); } - if (state_ != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + if (state_ + != com.google.cloud.security.privateca.v1.CertificateAuthority.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } { int dataSize = 0; @@ -3757,41 +4378,37 @@ public int getSerializedSize() { size += 1 * getPemCaCertificatesList().size(); } for (int i = 0; i < caCertificateDescriptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, caCertificateDescriptions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, caCertificateDescriptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, gcsBucket_); } if (accessUrls_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getAccessUrls()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getAccessUrls()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getExpireTime()); - } - 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(17, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getExpireTime()); + } + 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(17, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3801,71 +4418,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.security.privateca.v1.CertificateAuthority)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateAuthority other = (com.google.cloud.security.privateca.v1.CertificateAuthority) obj; + com.google.cloud.security.privateca.v1.CertificateAuthority other = + (com.google.cloud.security.privateca.v1.CertificateAuthority) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime() - .equals(other.getLifetime())) return false; + if (!getLifetime().equals(other.getLifetime())) return false; } if (hasKeySpec() != other.hasKeySpec()) return false; if (hasKeySpec()) { - if (!getKeySpec() - .equals(other.getKeySpec())) return false; + if (!getKeySpec().equals(other.getKeySpec())) return false; } if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig() - .equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; } if (tier_ != other.tier_) return false; if (state_ != other.state_) return false; - if (!getPemCaCertificatesList() - .equals(other.getPemCaCertificatesList())) return false; - if (!getCaCertificateDescriptionsList() - .equals(other.getCaCertificateDescriptionsList())) return false; - if (!getGcsBucket() - .equals(other.getGcsBucket())) return false; + if (!getPemCaCertificatesList().equals(other.getPemCaCertificatesList())) return false; + if (!getCaCertificateDescriptionsList().equals(other.getCaCertificateDescriptionsList())) + return false; + if (!getGcsBucket().equals(other.getGcsBucket())) return false; if (hasAccessUrls() != other.hasAccessUrls()) return false; if (hasAccessUrls()) { - if (!getAccessUrls() - .equals(other.getAccessUrls())) return false; + if (!getAccessUrls().equals(other.getAccessUrls())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) 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 (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3941,96 +4546,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateAuthority 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.security.privateca.v1.CertificateAuthority parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateAuthority parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateAuthority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateAuthority prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateAuthority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] represents an individual Certificate Authority.
    * A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1.Certificate].
@@ -4038,43 +4651,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateAuthority}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateAuthority)
       com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 17:
           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 17:
           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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateAuthority.class, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateAuthority.class,
+              com.google.cloud.security.privateca.v1.CertificateAuthority.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder()
@@ -4082,17 +4695,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCaCertificateDescriptionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4173,9 +4786,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor;
     }
 
     @java.lang.Override
@@ -4194,7 +4807,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateAuthority buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateAuthority result = new com.google.cloud.security.privateca.v1.CertificateAuthority(this);
+      com.google.cloud.security.privateca.v1.CertificateAuthority result =
+          new com.google.cloud.security.privateca.v1.CertificateAuthority(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.type_ = type_;
@@ -4227,7 +4841,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority buildPartial(
       result.pemCaCertificates_ = pemCaCertificates_;
       if (caCertificateDescriptionsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
-          caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+          caCertificateDescriptions_ =
+              java.util.Collections.unmodifiableList(caCertificateDescriptions_);
           bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.caCertificateDescriptions_ = caCertificateDescriptions_;
@@ -4270,38 +4885,39 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateAuthority) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateAuthority) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4309,7 +4925,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAuthority other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -4363,9 +4980,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAutho
             caCertificateDescriptionsBuilder_ = null;
             caCertificateDescriptions_ = other.caCertificateDescriptions_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            caCertificateDescriptionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCaCertificateDescriptionsFieldBuilder() : null;
+            caCertificateDescriptionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCaCertificateDescriptionsFieldBuilder()
+                    : null;
           } else {
             caCertificateDescriptionsBuilder_.addAllMessages(other.caCertificateDescriptions_);
           }
@@ -4390,8 +5008,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateAutho
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -4411,7 +5028,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateAuthority) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateAuthority) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -4420,23 +5038,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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; @@ -4445,21 +5066,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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 { @@ -4467,57 +5089,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* * 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; @@ -4525,51 +5154,75 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.Type result = + com.google.cloud.security.privateca.v1.CertificateAuthority.Type.valueOf(type_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -4577,21 +5230,26 @@ public Builder setType(com.google.cloud.security.privateca.v1.CertificateAuthori if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -4599,39 +5257,58 @@ public Builder clearType() { private com.google.cloud.security.privateca.v1.CertificateConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> configBuilder_; + com.google.cloud.security.privateca.v1.CertificateConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ public com.google.cloud.security.privateca.v1.CertificateConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { @@ -4647,11 +5324,15 @@ public Builder setConfig(com.google.cloud.security.privateca.v1.CertificateConfi return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig( com.google.cloud.security.privateca.v1.CertificateConfig.Builder builderForValue) { @@ -4665,17 +5346,23 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -4687,11 +5374,15 @@ public Builder mergeConfig(com.google.cloud.security.privateca.v1.CertificateCon return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -4705,48 +5396,64 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.cloud.security.privateca.v1.CertificateConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1.CertificateConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig, com.google.cloud.security.privateca.v1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -4754,28 +5461,41 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -4786,13 +5506,17 @@ public com.google.protobuf.Duration getLifetime() { } } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -4808,16 +5532,19 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -4828,19 +5555,23 @@ public Builder setLifetime( return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -4852,13 +5583,17 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -4872,54 +5607,68 @@ public Builder clearLifetime() { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** + * + * *
      * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getLifetime(), - getParentForChildren(), - isClean()); + lifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLifetime(), getParentForChildren(), isClean()); lifetime_ = null; } return lifetimeBuilder_; @@ -4927,8 +5676,13 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { private com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec keySpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> keySpecBuilder_; + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> + keySpecBuilder_; /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -4936,13 +5690,18 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the keySpec field is set. */ public boolean hasKeySpec() { return keySpecBuilder_ != null || keySpec_ != null; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -4950,17 +5709,25 @@ public boolean hasKeySpec() {
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The keySpec. */ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getKeySpec() { if (keySpecBuilder_ == null) { - return keySpec_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; + return keySpec_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance() + : keySpec_; } else { return keySpecBuilder_.getMessage(); } } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -4968,9 +5735,12 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setKeySpec(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { + public Builder setKeySpec( + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4984,6 +5754,8 @@ public Builder setKeySpec(com.google.cloud.security.privateca.v1.CertificateAuth return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -4991,10 +5763,13 @@ public Builder setKeySpec(com.google.cloud.security.privateca.v1.CertificateAuth
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setKeySpec( - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder + builderForValue) { if (keySpecBuilder_ == null) { keySpec_ = builderForValue.build(); onChanged(); @@ -5005,6 +5780,8 @@ public Builder setKeySpec( return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5012,13 +5789,19 @@ public Builder setKeySpec(
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeKeySpec(com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { + public Builder mergeKeySpec( + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (keySpec_ != null) { keySpec_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder(keySpec_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.newBuilder( + keySpec_) + .mergeFrom(value) + .buildPartial(); } else { keySpec_ = value; } @@ -5030,6 +5813,8 @@ public Builder mergeKeySpec(com.google.cloud.security.privateca.v1.CertificateAu return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5037,7 +5822,9 @@ public Builder mergeKeySpec(com.google.cloud.security.privateca.v1.CertificateAu
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearKeySpec() { if (keySpecBuilder_ == null) { @@ -5051,6 +5838,8 @@ public Builder clearKeySpec() { return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5058,14 +5847,19 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder getKeySpecBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder + getKeySpecBuilder() { + onChanged(); return getKeySpecFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5073,17 +5867,24 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder + getKeySpecOrBuilder() { if (keySpecBuilder_ != null) { return keySpecBuilder_.getMessageOrBuilder(); } else { - return keySpec_ == null ? - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; + return keySpec_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance() + : keySpec_; } } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -5091,17 +5892,22 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder> getKeySpecFieldBuilder() { if (keySpecBuilder_ == null) { - keySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder>( - getKeySpec(), - getParentForChildren(), - isClean()); + keySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec, + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority + .KeyVersionSpecOrBuilder>(getKeySpec(), getParentForChildren(), isClean()); keySpec_ = null; } return keySpecBuilder_; @@ -5109,47 +5915,67 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpe private com.google.cloud.security.privateca.v1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1.SubordinateConfig, + com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> + subordinateConfigBuilder_; /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder setSubordinateConfig( + com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5163,13 +5989,17 @@ public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1.Subor return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1.SubordinateConfig.Builder builderForValue) { @@ -5183,19 +6013,27 @@ public Builder setSubordinateConfig( return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1.SubordinateConfig value) { + public Builder mergeSubordinateConfig( + com.google.cloud.security.privateca.v1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder( + subordinateConfig_) + .mergeFrom(value) + .buildPartial(); } else { subordinateConfig_ = value; } @@ -5207,13 +6045,17 @@ public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1.Sub return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -5227,54 +6069,72 @@ public Builder clearSubordinateConfig() { return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1.SubordinateConfig.Builder + getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null ? - com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1.SubordinateConfig, + com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), - getParentForChildren(), - isClean()); + subordinateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubordinateConfig, + com.google.cloud.security.privateca.v1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), getParentForChildren(), isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -5282,55 +6142,79 @@ public com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubo private int tier_ = 0; /** + * + * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tier. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CaPool.Tier result = com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); - return result == null ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CaPool.Tier result = + com.google.cloud.security.privateca.v1.CaPool.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.security.privateca.v1.CaPool.Tier.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The tier to set. * @return This builder for chaining. */ @@ -5338,22 +6222,27 @@ public Builder setTier(com.google.cloud.security.privateca.v1.CaPool.Tier value) if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; @@ -5361,86 +6250,120 @@ public Builder clearTier() { private int state_ = 0; /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.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 [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.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 [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateAuthority.State result = + com.google.cloud.security.privateca.v1.CertificateAuthority.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.security.privateca.v1.CertificateAuthority.State value) { + public Builder setState( + com.google.cloud.security.privateca.v1.CertificateAuthority.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList pemCaCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pemCaCertificates_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePemCaCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCaCertificates_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5448,14 +6371,17 @@ private void ensurePemCaCertificatesIsMutable() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { return pemCaCertificates_.getUnmodifiableView(); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5463,13 +6389,17 @@ private void ensurePemCaCertificatesIsMutable() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5477,7 +6407,9 @@ public int getPemCaCertificatesCount() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -5485,6 +6417,8 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5492,15 +6426,18 @@ public java.lang.String getPemCaCertificates(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5508,22 +6445,25 @@ public java.lang.String getPemCaCertificates(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The pemCaCertificates to set. * @return This builder for chaining. */ - public Builder setPemCaCertificates( - int index, java.lang.String value) { + public Builder setPemCaCertificates(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5531,21 +6471,24 @@ public Builder setPemCaCertificates(
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificates( - java.lang.String value) { + public Builder addPemCaCertificates(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5553,19 +6496,21 @@ public Builder addPemCaCertificates(
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCaCertificates( - java.lang.Iterable values) { + public Builder addAllPemCaCertificates(java.lang.Iterable values) { ensurePemCaCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pemCaCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCaCertificates_); onChanged(); return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5573,7 +6518,9 @@ public Builder addAllPemCaCertificates(
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPemCaCertificates() { @@ -5583,6 +6530,8 @@ public Builder clearPemCaCertificates() { return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -5590,43 +6539,55 @@ public Builder clearPemCaCertificates() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificatesBytes( - com.google.protobuf.ByteString value) { + public Builder addPemCaCertificatesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } - private java.util.List caCertificateDescriptions_ = - java.util.Collections.emptyList(); + private java.util.List + caCertificateDescriptions_ = java.util.Collections.emptyList(); + private void ensureCaCertificateDescriptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - caCertificateDescriptions_ = new java.util.ArrayList(caCertificateDescriptions_); + caCertificateDescriptions_ = + new java.util.ArrayList( + caCertificateDescriptions_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> caCertificateDescriptionsBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + caCertificateDescriptionsBuilder_; /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getCaCertificateDescriptionsList() { + public java.util.List + getCaCertificateDescriptionsList() { if (caCertificateDescriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(caCertificateDescriptions_); } else { @@ -5634,12 +6595,16 @@ public java.util.List * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate * and its issuers. Ordered as self-to-root. *
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getCaCertificateDescriptionsCount() { if (caCertificateDescriptionsBuilder_ == null) { @@ -5649,14 +6614,19 @@ public int getCaCertificateDescriptionsCount() { } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1.CertificateDescription + getCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { return caCertificateDescriptions_.get(index); } else { @@ -5664,12 +6634,16 @@ public com.google.cloud.security.privateca.v1.CertificateDescription getCaCertif } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1.CertificateDescription value) { @@ -5686,15 +6660,20 @@ public Builder setCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCaCertificateDescriptions( - int index, com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.set(index, builderForValue.build()); @@ -5705,14 +6684,19 @@ public Builder setCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCaCertificateDescriptions(com.google.cloud.security.privateca.v1.CertificateDescription value) { + public Builder addCaCertificateDescriptions( + com.google.cloud.security.privateca.v1.CertificateDescription value) { if (caCertificateDescriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5726,12 +6710,16 @@ public Builder addCaCertificateDescriptions(com.google.cloud.security.privateca. return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1.CertificateDescription value) { @@ -5748,12 +6736,16 @@ public Builder addCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCaCertificateDescriptions( com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { @@ -5767,15 +6759,20 @@ public Builder addCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCaCertificateDescriptions( - int index, com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.add(index, builderForValue.build()); @@ -5786,19 +6783,23 @@ public Builder addCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllCaCertificateDescriptions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, caCertificateDescriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCertificateDescriptions_); onChanged(); } else { caCertificateDescriptionsBuilder_.addAllMessages(values); @@ -5806,12 +6807,16 @@ public Builder addAllCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCaCertificateDescriptions() { if (caCertificateDescriptionsBuilder_ == null) { @@ -5824,12 +6829,16 @@ public Builder clearCaCertificateDescriptions() { return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { @@ -5842,42 +6851,56 @@ public Builder removeCaCertificateDescriptions(int index) { return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder getCaCertificateDescriptionsBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder + getCaCertificateDescriptionsBuilder(int index) { return getCaCertificateDescriptionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder + getCaCertificateDescriptionsOrBuilder(int index) { if (caCertificateDescriptionsBuilder_ == null) { - return caCertificateDescriptions_.get(index); } else { + return caCertificateDescriptions_.get(index); + } else { return caCertificateDescriptionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCaCertificateDescriptionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + getCaCertificateDescriptionsOrBuilderList() { if (caCertificateDescriptionsBuilder_ != null) { return caCertificateDescriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -5885,48 +6908,70 @@ public com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder ge } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder() { - return getCaCertificateDescriptionsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder + addCaCertificateDescriptionsBuilder() { + return getCaCertificateDescriptionsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder( - int index) { - return getCaCertificateDescriptionsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateDescription.Builder + addCaCertificateDescriptionsBuilder(int index) { + return getCaCertificateDescriptionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()); } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCaCertificateDescriptionsBuilderList() { + public java.util.List + getCaCertificateDescriptionsBuilderList() { return getCaCertificateDescriptionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsFieldBuilder() { if (caCertificateDescriptionsBuilder_ == null) { - caCertificateDescriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription, com.google.cloud.security.privateca.v1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( + caCertificateDescriptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder>( caCertificateDescriptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5938,6 +6983,8 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.Builder add private java.lang.Object gcsBucket_ = ""; /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -5948,13 +6995,13 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.Builder add
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The gcsBucket. */ public java.lang.String getGcsBucket() { java.lang.Object ref = gcsBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; @@ -5963,6 +7010,8 @@ public java.lang.String getGcsBucket() { } } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -5973,15 +7022,14 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for gcsBucket. */ - public com.google.protobuf.ByteString - getGcsBucketBytes() { + public com.google.protobuf.ByteString getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -5989,6 +7037,8 @@ public java.lang.String getGcsBucket() { } } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -5999,20 +7049,22 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucket( - java.lang.String value) { + public Builder setGcsBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsBucket_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -6023,15 +7075,18 @@ public Builder setGcsBucket(
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearGcsBucket() { - + gcsBucket_ = getDefaultInstance().getGcsBucket(); onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -6042,16 +7097,16 @@ public Builder clearGcsBucket() {
      * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; onChanged(); return this; @@ -6059,44 +7114,65 @@ public Builder setGcsBucketBytes( private com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls accessUrls_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> accessUrlsBuilder_; + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> + accessUrlsBuilder_; /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accessUrls field is set. */ public boolean hasAccessUrls() { return accessUrlsBuilder_ != null || accessUrls_ != null; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accessUrls. */ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getAccessUrls() { if (accessUrlsBuilder_ == null) { - return accessUrls_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; + return accessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + .getDefaultInstance() + : accessUrls_; } else { return accessUrlsBuilder_.getMessage(); } } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAccessUrls(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { + public Builder setAccessUrls( + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6110,15 +7186,20 @@ public Builder setAccessUrls(com.google.cloud.security.privateca.v1.CertificateA return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAccessUrls( - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder + builderForValue) { if (accessUrlsBuilder_ == null) { accessUrls_ = builderForValue.build(); onChanged(); @@ -6129,18 +7210,26 @@ public Builder setAccessUrls( return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeAccessUrls(com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { + public Builder mergeAccessUrls( + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (accessUrls_ != null) { accessUrls_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder(accessUrls_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.newBuilder( + accessUrls_) + .mergeFrom(value) + .buildPartial(); } else { accessUrls_ = value; } @@ -6152,12 +7241,16 @@ public Builder mergeAccessUrls(com.google.cloud.security.privateca.v1.Certificat return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAccessUrls() { if (accessUrlsBuilder_ == null) { @@ -6171,51 +7264,70 @@ public Builder clearAccessUrls() { return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder getAccessUrlsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder + getAccessUrlsBuilder() { + onChanged(); return getAccessUrlsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder + getAccessUrlsOrBuilder() { if (accessUrlsBuilder_ != null) { return accessUrlsBuilder_.getMessageOrBuilder(); } else { - return accessUrls_ == null ? - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; + return accessUrls_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls + .getDefaultInstance() + : accessUrls_; } } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder> getAccessUrlsFieldBuilder() { if (accessUrlsBuilder_ == null) { - accessUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder>( - getAccessUrls(), - getParentForChildren(), - isClean()); + accessUrlsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder>( + getAccessUrls(), getParentForChildren(), isClean()); accessUrls_ = null; } return accessUrlsBuilder_; @@ -6223,39 +7335,58 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrB 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -6271,14 +7402,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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(); @@ -6289,17 +7423,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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; } @@ -6311,11 +7449,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -6329,48 +7471,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -6378,39 +7536,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -6426,14 +7603,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -6444,17 +7624,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -6466,11 +7650,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -6484,48 +7672,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -6533,42 +7737,61 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -6584,15 +7807,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -6603,18 +7829,22 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -6626,12 +7856,16 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -6645,51 +7879,67 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
      * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -6697,42 +7947,61 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { 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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -6748,15 +8017,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.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(); @@ -6767,18 +8039,22 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.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; } @@ -6790,12 +8066,16 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -6809,72 +8089,87 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
      * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
      * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 16 [(.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_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -6886,28 +8181,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -6915,11 +8212,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -6927,16 +8225,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -6944,12 +8243,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -6957,69 +8255,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7029,12 +8324,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateAuthority) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateAuthority) private static final com.google.cloud.security.privateca.v1.CertificateAuthority DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateAuthority(); } @@ -7043,16 +8338,16 @@ public static com.google.cloud.security.privateca.v1.CertificateAuthority getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateAuthority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateAuthority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateAuthority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7067,6 +8362,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateAuthority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java index eccd6bc3..d7f948ea 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java @@ -1,114 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateAuthorityOrBuilder extends +public interface CertificateAuthorityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateAuthority) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* * 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 [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ com.google.cloud.security.privateca.v1.CertificateAuthority.Type getType(); /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ com.google.cloud.security.privateca.v1.CertificateConfig getConfig(); /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** + * + * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** + * + * *
    * Required. Immutable. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
    * certificate.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -116,11 +177,16 @@ public interface CertificateAuthorityOrBuilder extends
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the keySpec field is set. */ boolean hasKeySpec(); /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -128,11 +194,16 @@ public interface CertificateAuthorityOrBuilder extends
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The keySpec. */ com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec getKeySpec(); /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -140,84 +211,123 @@ public interface CertificateAuthorityOrBuilder extends
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec key_spec = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpecOrBuilder + getKeySpecOrBuilder(); /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1.SubordinateConfig getSubordinateConfig(); /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig subordinate_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); /** + * + * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CaPool.Tier tier = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tier. */ com.google.cloud.security.privateca.v1.CaPool.Tier getTier(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.security.privateca.v1.CertificateAuthority.State getState(); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -225,12 +335,15 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCaCertificates. */ - java.util.List - getPemCaCertificatesList(); + java.util.List getPemCaCertificatesList(); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -238,11 +351,15 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCaCertificates. */ int getPemCaCertificatesCount(); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -250,12 +367,16 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ java.lang.String getPemCaCertificates(int index); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -263,63 +384,87 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - com.google.protobuf.ByteString - getPemCaCertificatesBytes(int index); + com.google.protobuf.ByteString getPemCaCertificatesBytes(int index); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getCaCertificateDescriptionsList(); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions(int index); + com.google.cloud.security.privateca.v1.CertificateDescription getCaCertificateDescriptions( + int index); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getCaCertificateDescriptionsCount(); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getCaCertificateDescriptionsOrBuilderList(); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateDescription ca_certificate_descriptions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder + getCaCertificateDescriptionsOrBuilder(int index); /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -330,10 +475,13 @@ com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCert
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The gcsBucket. */ java.lang.String getGcsBucket(); /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -344,156 +492,217 @@ com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCert
    * 
* * string gcs_bucket = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for gcsBucket. */ - com.google.protobuf.ByteString - getGcsBucketBytes(); + com.google.protobuf.ByteString getGcsBucketBytes(); /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accessUrls field is set. */ boolean hasAccessUrls(); /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accessUrls. */ com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls getAccessUrls(); /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls access_urls = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthority.AccessUrlsOrBuilder + getAccessUrlsOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if
    * it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged,
    * if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
    * 
* - * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -502,30 +711,31 @@ com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCaCert */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -534,18 +744,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 17 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java index 366dab1b..6220f433 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig] describes an X.509 certificate or CSR that is to be
  * created, as an alternative to using ASN.1.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig}
  */
-public final class CertificateConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateConfig)
     CertificateConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateConfig.newBuilder() to construct.
   private CertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CertificateConfig() {
-  }
+
+  private CertificateConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,52 +69,65 @@ private CertificateConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder subBuilder = null;
-            if (subjectConfig_ != null) {
-              subBuilder = subjectConfig_.toBuilder();
-            }
-            subjectConfig_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subjectConfig_);
-              subjectConfig_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder
+                  subBuilder = null;
+              if (subjectConfig_ != null) {
+                subBuilder = subjectConfig_.toBuilder();
+              }
+              subjectConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectConfig_);
+                subjectConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
-            if (x509Config_ != null) {
-              subBuilder = x509Config_.toBuilder();
-            }
-            x509Config_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(x509Config_);
-              x509Config_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
+              if (x509Config_ != null) {
+                subBuilder = x509Config_.toBuilder();
+              }
+              x509Config_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.X509Parameters.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(x509Config_);
+                x509Config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
-            if (publicKey_ != null) {
-              subBuilder = publicKey_.toBuilder();
-            }
-            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publicKey_);
-              publicKey_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
+              if (publicKey_ != null) {
+                subBuilder = publicKey_.toBuilder();
+              }
+              publicKey_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publicKey_);
+                publicKey_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,88 +135,121 @@ private CertificateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateConfig.class,
+            com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
   }
 
-  public interface SubjectConfigOrBuilder extends
+  public interface SubjectConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subject field is set. */ boolean hasSubject(); /** + * + * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subject. */ com.google.cloud.security.privateca.v1.Subject getSubject(); /** + * + * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder(); /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subjectAltName. */ com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName(); /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); } /** + * + * *
    * These values are used to create the distinguished name and subject
    * alternative name fields in an X.509 certificate.
@@ -195,30 +257,29 @@ public interface SubjectConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig}
    */
-  public static final class SubjectConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SubjectConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
       SubjectConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SubjectConfig.newBuilder() to construct.
     private SubjectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private SubjectConfig() {
-    }
+
+    private SubjectConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SubjectConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private SubjectConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -237,39 +298,46 @@ private SubjectConfig(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null;
-              if (subject_ != null) {
-                subBuilder = subject_.toBuilder();
+            case 10:
+              {
+                com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null;
+                if (subject_ != null) {
+                  subBuilder = subject_.toBuilder();
+                }
+                subject_ =
+                    input.readMessage(
+                        com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(subject_);
+                  subject_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-              subject_ = input.readMessage(com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subject_);
-                subject_ = subBuilder.buildPartial();
+            case 18:
+              {
+                com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null;
+                if (subjectAltName_ != null) {
+                  subBuilder = subjectAltName_.toBuilder();
+                }
+                subjectAltName_ =
+                    input.readMessage(
+                        com.google.cloud.security.privateca.v1.SubjectAltNames.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(subjectAltName_);
+                  subjectAltName_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-
-              break;
-            }
-            case 18: {
-              com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null;
-              if (subjectAltName_ != null) {
-                subBuilder = subjectAltName_.toBuilder();
-              }
-              subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1.SubjectAltNames.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectAltName_);
-                subjectAltName_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -277,35 +345,42 @@ private SubjectConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class,
+              com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder.class);
     }
 
     public static final int SUBJECT_FIELD_NUMBER = 1;
     private com.google.cloud.security.privateca.v1.Subject subject_;
     /**
+     *
+     *
      * 
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subject field is set. */ @java.lang.Override @@ -313,25 +388,36 @@ public boolean hasSubject() { return subject_ != null; } /** + * + * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Subject getSubject() { - return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() + : subject_; } /** + * + * *
      * Required. Contains distinguished name fields such as the common name, location and
      * organization.
      * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder() { @@ -341,11 +427,16 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_; /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -353,30 +444,43 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { return getSubjectAltName(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,8 +492,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subject_ != null) { output.writeMessage(1, getSubject()); } @@ -406,12 +509,10 @@ public int getSerializedSize() { size = 0; if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject()); } if (subjectAltName_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubjectAltName()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubjectAltName()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -421,22 +522,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.security.privateca.v1.CertificateConfig.SubjectConfig)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other = (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) obj; + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other = + (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) obj; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject() - .equals(other.getSubject())) return false; + if (!getSubject().equals(other.getSubject())) return false; } if (hasSubjectAltName() != other.hasSubjectAltName()) return false; if (hasSubjectAltName()) { - if (!getSubjectAltName() - .equals(other.getSubjectAltName())) return false; + if (!getSubjectAltName().equals(other.getSubjectAltName())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -463,87 +564,95 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig 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.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig 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.security.privateca.v1.CertificateConfig.SubjectConfig + 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.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -553,6 +662,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * These values are used to create the distinguished name and subject
      * alternative name fields in an X.509 certificate.
@@ -560,38 +671,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
         com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder.class);
+                com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.class,
+                com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -611,19 +726,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance();
+      public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
+          getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig build() {
-        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result = buildPartial();
+        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -632,7 +750,8 @@ public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig bu
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig buildPartial() {
-        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result = new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(this);
+        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig result =
+            new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(this);
         if (subjectBuilder_ == null) {
           result.subject_ = subject_;
         } else {
@@ -651,46 +770,54 @@ public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig bu
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateConfig.SubjectConfig) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)other);
+        if (other
+            instanceof com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) {
+          return mergeFrom(
+              (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other) {
-        if (other == com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig other) {
+        if (other
+            == com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig
+                .getDefaultInstance()) return this;
         if (other.hasSubject()) {
           mergeSubject(other.getSubject());
         }
@@ -716,7 +843,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -728,42 +857,61 @@ public Builder mergeFrom(
 
       private com.google.cloud.security.privateca.v1.Subject subject_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> subjectBuilder_;
+              com.google.cloud.security.privateca.v1.Subject,
+              com.google.cloud.security.privateca.v1.Subject.Builder,
+              com.google.cloud.security.privateca.v1.SubjectOrBuilder>
+          subjectBuilder_;
       /**
+       *
+       *
        * 
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subject. */ public com.google.cloud.security.privateca.v1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() + : subject_; } else { return subjectBuilder_.getMessage(); } } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value) { if (subjectBuilder_ == null) { @@ -779,12 +927,16 @@ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value) return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubject( com.google.cloud.security.privateca.v1.Subject.Builder builderForValue) { @@ -798,18 +950,24 @@ public Builder setSubject( return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value) { if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = - com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_) + .mergeFrom(value) + .buildPartial(); } else { subject_ = value; } @@ -821,12 +979,16 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubject() { if (subjectBuilder_ == null) { @@ -840,51 +1002,67 @@ public Builder clearSubject() { return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.Subject.Builder getSubjectBuilder() { - + onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder() { if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null ? - com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() + : subject_; } } /** + * + * *
        * Required. Contains distinguished name fields such as the common name, location and
        * organization.
        * 
* - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1.Subject, + com.google.cloud.security.privateca.v1.Subject.Builder, + com.google.cloud.security.privateca.v1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder>( - getSubject(), - getParentForChildren(), - isClean()); + subjectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Subject, + com.google.cloud.security.privateca.v1.Subject.Builder, + com.google.cloud.security.privateca.v1.SubjectOrBuilder>( + getSubject(), getParentForChildren(), isClean()); subject_ = null; } return subjectBuilder_; @@ -892,41 +1070,61 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_; + com.google.cloud.security.privateca.v1.SubjectAltNames, + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> + subjectAltNameBuilder_; /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder setSubjectAltName( + com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -940,11 +1138,15 @@ public Builder setSubjectAltName(com.google.cloud.security.privateca.v1.SubjectA return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubjectAltName( com.google.cloud.security.privateca.v1.SubjectAltNames.Builder builderForValue) { @@ -958,17 +1160,24 @@ public Builder setSubjectAltName( return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder mergeSubjectAltName( + com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_) + .mergeFrom(value) + .buildPartial(); } else { subjectAltName_ = value; } @@ -980,11 +1189,15 @@ public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1.Subjec return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubjectAltName() { if (subjectAltNameBuilder_ == null) { @@ -998,52 +1211,71 @@ public Builder clearSubjectAltName() { return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder + getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null ? - com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1.SubjectAltNames, + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), - getParentForChildren(), - isClean()); + subjectAltNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubjectAltNames, + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), getParentForChildren(), isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1056,30 +1288,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig) - private static final com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig(); } - public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1091,21 +1326,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int SUBJECT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subjectConfig_; /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subjectConfig field is set. */ @java.lang.Override @@ -1113,40 +1353,58 @@ public boolean hasSubjectConfig() { return subjectConfig_ != null; } /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subjectConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getSubjectConfig() { - return subjectConfig_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; + return subjectConfig_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + .getDefaultInstance() + : subjectConfig_; } /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder + getSubjectConfigOrBuilder() { return getSubjectConfig(); } public static final int X509_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters x509Config_; /** + * + * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the x509Config field is set. */ @java.lang.Override @@ -1154,25 +1412,36 @@ public boolean hasX509Config() { return x509Config_ != null; } /** + * + * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The x509Config. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getX509Config() { - return x509Config_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Config_; + return x509Config_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : x509Config_; } /** + * + * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509ConfigOrBuilder() { @@ -1182,13 +1451,18 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509Con public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.PublicKey publicKey_; /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -1196,27 +1470,38 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { - return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() + : publicKey_; } /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder() { @@ -1224,6 +1509,7 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1235,8 +1521,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subjectConfig_ != null) { output.writeMessage(1, getSubjectConfig()); } @@ -1256,16 +1541,13 @@ public int getSerializedSize() { size = 0; if (subjectConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubjectConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectConfig()); } if (x509Config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getX509Config()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getX509Config()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1275,27 +1557,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.security.privateca.v1.CertificateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateConfig other = (com.google.cloud.security.privateca.v1.CertificateConfig) obj; + com.google.cloud.security.privateca.v1.CertificateConfig other = + (com.google.cloud.security.privateca.v1.CertificateConfig) obj; if (hasSubjectConfig() != other.hasSubjectConfig()) return false; if (hasSubjectConfig()) { - if (!getSubjectConfig() - .equals(other.getSubjectConfig())) return false; + if (!getSubjectConfig().equals(other.getSubjectConfig())) return false; } if (hasX509Config() != other.hasX509Config()) return false; if (hasX509Config()) { - if (!getX509Config() - .equals(other.getX509Config())) return false; + if (!getX509Config().equals(other.getX509Config())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1326,96 +1606,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateConfig 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.security.privateca.v1.CertificateConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig] describes an X.509 certificate or CSR that is to be
    * created, as an alternative to using ASN.1.
@@ -1423,21 +1711,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateConfig)
       com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateConfig.class, com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateConfig.class,
+              com.google.cloud.security.privateca.v1.CertificateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateConfig.newBuilder()
@@ -1445,16 +1735,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1480,9 +1769,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1501,7 +1790,8 @@ public com.google.cloud.security.privateca.v1.CertificateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateConfig result = new com.google.cloud.security.privateca.v1.CertificateConfig(this);
+      com.google.cloud.security.privateca.v1.CertificateConfig result =
+          new com.google.cloud.security.privateca.v1.CertificateConfig(this);
       if (subjectConfigBuilder_ == null) {
         result.subjectConfig_ = subjectConfig_;
       } else {
@@ -1525,38 +1815,39 @@ public com.google.cloud.security.privateca.v1.CertificateConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1564,7 +1855,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateConfig other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateConfig.getDefaultInstance())
+        return this;
       if (other.hasSubjectConfig()) {
         mergeSubjectConfig(other.getSubjectConfig());
       }
@@ -1593,7 +1885,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1605,44 +1898,66 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subjectConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder> subjectConfigBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig,
+            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder,
+            com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder>
+        subjectConfigBuilder_;
     /**
+     *
+     *
      * 
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subjectConfig field is set. */ public boolean hasSubjectConfig() { return subjectConfigBuilder_ != null || subjectConfig_ != null; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subjectConfig. */ - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getSubjectConfig() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + getSubjectConfig() { if (subjectConfigBuilder_ == null) { - return subjectConfig_ == null ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; + return subjectConfig_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + .getDefaultInstance() + : subjectConfig_; } else { return subjectConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSubjectConfig(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { + public Builder setSubjectConfig( + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1656,15 +1971,20 @@ public Builder setSubjectConfig(com.google.cloud.security.privateca.v1.Certifica return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubjectConfig( - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder + builderForValue) { if (subjectConfigBuilder_ == null) { subjectConfig_ = builderForValue.build(); onChanged(); @@ -1675,18 +1995,26 @@ public Builder setSubjectConfig( return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSubjectConfig(com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { + public Builder mergeSubjectConfig( + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (subjectConfig_ != null) { subjectConfig_ = - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder(subjectConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.newBuilder( + subjectConfig_) + .mergeFrom(value) + .buildPartial(); } else { subjectConfig_ = value; } @@ -1698,12 +2026,16 @@ public Builder mergeSubjectConfig(com.google.cloud.security.privateca.v1.Certifi return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubjectConfig() { if (subjectConfigBuilder_ == null) { @@ -1717,51 +2049,70 @@ public Builder clearSubjectConfig() { return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder getSubjectConfigBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder + getSubjectConfigBuilder() { + onChanged(); return getSubjectConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder + getSubjectConfigOrBuilder() { if (subjectConfigBuilder_ != null) { return subjectConfigBuilder_.getMessageOrBuilder(); } else { - return subjectConfig_ == null ? - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; + return subjectConfig_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig + .getDefaultInstance() + : subjectConfig_; } } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder> + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder> getSubjectConfigFieldBuilder() { if (subjectConfigBuilder_ == null) { - subjectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder>( - getSubjectConfig(), - getParentForChildren(), - isClean()); + subjectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig, + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig.Builder, + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder>( + getSubjectConfig(), getParentForChildren(), isClean()); subjectConfig_ = null; } return subjectConfigBuilder_; @@ -1769,42 +2120,61 @@ public com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrB private com.google.cloud.security.privateca.v1.X509Parameters x509Config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> x509ConfigBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + x509ConfigBuilder_; /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the x509Config field is set. */ public boolean hasX509Config() { return x509ConfigBuilder_ != null || x509Config_ != null; } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The x509Config. */ public com.google.cloud.security.privateca.v1.X509Parameters getX509Config() { if (x509ConfigBuilder_ == null) { - return x509Config_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Config_; + return x509Config_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : x509Config_; } else { return x509ConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setX509Config(com.google.cloud.security.privateca.v1.X509Parameters value) { if (x509ConfigBuilder_ == null) { @@ -1820,12 +2190,16 @@ public Builder setX509Config(com.google.cloud.security.privateca.v1.X509Paramete return this; } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setX509Config( com.google.cloud.security.privateca.v1.X509Parameters.Builder builderForValue) { @@ -1839,18 +2213,24 @@ public Builder setX509Config( return this; } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeX509Config(com.google.cloud.security.privateca.v1.X509Parameters value) { if (x509ConfigBuilder_ == null) { if (x509Config_ != null) { x509Config_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Config_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Config_) + .mergeFrom(value) + .buildPartial(); } else { x509Config_ = value; } @@ -1862,12 +2242,16 @@ public Builder mergeX509Config(com.google.cloud.security.privateca.v1.X509Parame return this; } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearX509Config() { if (x509ConfigBuilder_ == null) { @@ -1881,51 +2265,67 @@ public Builder clearX509Config() { return this; } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.X509Parameters.Builder getX509ConfigBuilder() { - + onChanged(); return getX509ConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509ConfigOrBuilder() { if (x509ConfigBuilder_ != null) { return x509ConfigBuilder_.getMessageOrBuilder(); } else { - return x509Config_ == null ? - com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Config_; + return x509Config_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : x509Config_; } } /** + * + * *
      * Required. Describes how some of the technical X.509 fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getX509ConfigFieldBuilder() { if (x509ConfigBuilder_ == null) { - x509ConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getX509Config(), - getParentForChildren(), - isClean()); + x509ConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getX509Config(), getParentForChildren(), isClean()); x509Config_ = null; } return x509ConfigBuilder_; @@ -1933,45 +2333,64 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509Con private com.google.cloud.security.privateca.v1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> publicKeyBuilder_; + com.google.cloud.security.privateca.v1.PublicKey, + com.google.cloud.security.privateca.v1.PublicKey.Builder, + com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> + publicKeyBuilder_; /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publicKey. */ public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() + : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKey(com.google.cloud.security.privateca.v1.PublicKey value) { if (publicKeyBuilder_ == null) { @@ -1987,13 +2406,17 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1.PublicKey val return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKey( com.google.cloud.security.privateca.v1.PublicKey.Builder builderForValue) { @@ -2007,19 +2430,25 @@ public Builder setPublicKey( return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey value) { if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_) + .mergeFrom(value) + .buildPartial(); } else { publicKey_ = value; } @@ -2031,13 +2460,17 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey v return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPublicKey() { if (publicKeyBuilder_ == null) { @@ -2051,61 +2484,77 @@ public Builder clearPublicKey() { return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder() { if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null ? - com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() + : publicKey_; } } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1.PublicKey, + com.google.cloud.security.privateca.v1.PublicKey.Builder, + com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); + publicKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.PublicKey, + com.google.cloud.security.privateca.v1.PublicKey.Builder, + com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( + getPublicKey(), getParentForChildren(), isClean()); publicKey_ = null; } return publicKeyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2115,12 +2564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateConfig) private static final com.google.cloud.security.privateca.v1.CertificateConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateConfig(); } @@ -2129,16 +2578,16 @@ public static com.google.cloud.security.privateca.v1.CertificateConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2153,6 +2602,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java index c8d58f8d..3e676a18 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java @@ -1,102 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateConfigOrBuilder extends +public interface CertificateConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subjectConfig field is set. */ boolean hasSubjectConfig(); /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subjectConfig. */ com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig getSubjectConfig(); /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfigOrBuilder + getSubjectConfigOrBuilder(); /** + * + * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the x509Config field is set. */ boolean hasX509Config(); /** + * + * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The x509Config. */ com.google.cloud.security.privateca.v1.X509Parameters getX509Config(); /** + * + * *
    * Required. Describes how some of the technical X.509 fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.X509Parameters x509_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509ConfigOrBuilder(); /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publicKey. */ com.google.cloud.security.privateca.v1.PublicKey getPublicKey(); /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java index 186a61bb..450a2e4c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescription.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription] describes an X.509 certificate or CSR that has
  * been issued, as an alternative to using ASN.1 / X.509.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription}
  */
-public final class CertificateDescription extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateDescription extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription)
     CertificateDescriptionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateDescription.newBuilder() to construct.
   private CertificateDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateDescription() {
     crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -27,16 +45,15 @@ private CertificateDescription() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateDescription();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateDescription(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,109 +73,142 @@ private CertificateDescription(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder subBuilder = null;
-            if (subjectDescription_ != null) {
-              subBuilder = subjectDescription_.toBuilder();
-            }
-            subjectDescription_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subjectDescription_);
-              subjectDescription_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+                      .Builder
+                  subBuilder = null;
+              if (subjectDescription_ != null) {
+                subBuilder = subjectDescription_.toBuilder();
+              }
+              subjectDescription_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateDescription
+                          .SubjectDescription.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectDescription_);
+                subjectDescription_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
-            if (x509Description_ != null) {
-              subBuilder = x509Description_.toBuilder();
-            }
-            x509Description_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(x509Description_);
-              x509Description_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
+              if (x509Description_ != null) {
+                subBuilder = x509Description_.toBuilder();
+              }
+              x509Description_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.X509Parameters.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(x509Description_);
+                x509Description_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
-            if (publicKey_ != null) {
-              subBuilder = publicKey_.toBuilder();
-            }
-            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publicKey_);
-              publicKey_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.PublicKey.Builder subBuilder = null;
+              if (publicKey_ != null) {
+                subBuilder = publicKey_.toBuilder();
+              }
+              publicKey_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.PublicKey.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publicKey_);
+                publicKey_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder subBuilder = null;
-            if (subjectKeyId_ != null) {
-              subBuilder = subjectKeyId_.toBuilder();
-            }
-            subjectKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subjectKeyId_);
-              subjectKeyId_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder
+                  subBuilder = null;
+              if (subjectKeyId_ != null) {
+                subBuilder = subjectKeyId_.toBuilder();
+              }
+              subjectKeyId_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectKeyId_);
+                subjectKeyId_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 42: {
-            com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder subBuilder = null;
-            if (authorityKeyId_ != null) {
-              subBuilder = authorityKeyId_.toBuilder();
-            }
-            authorityKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(authorityKeyId_);
-              authorityKeyId_ = subBuilder.buildPartial();
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder
+                  subBuilder = null;
+              if (authorityKeyId_ != null) {
+                subBuilder = authorityKeyId_.toBuilder();
+              }
+              authorityKeyId_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(authorityKeyId_);
+                authorityKeyId_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            crlDistributionPoints_.add(s);
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            aiaIssuingCertificateUrls_.add(s);
-            break;
-          }
-          case 66: {
-            com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder subBuilder = null;
-            if (certFingerprint_ != null) {
-              subBuilder = certFingerprint_.toBuilder();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              crlDistributionPoints_.add(s);
+              break;
             }
-            certFingerprint_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certFingerprint_);
-              certFingerprint_ = subBuilder.buildPartial();
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              aiaIssuingCertificateUrls_.add(s);
+              break;
             }
+          case 66:
+            {
+              com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint
+                      .Builder
+                  subBuilder = null;
+              if (certFingerprint_ != null) {
+                subBuilder = certFingerprint_.toBuilder();
+              }
+              certFingerprint_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateDescription
+                          .CertificateFingerprint.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certFingerprint_);
+                certFingerprint_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -166,8 +216,7 @@ private CertificateDescription(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         crlDistributionPoints_ = crlDistributionPoints_.getUnmodifiableView();
@@ -179,44 +228,56 @@ private CertificateDescription(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateDescription.class,
+            com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
   }
 
-  public interface SubjectDescriptionOrBuilder extends
+  public interface SubjectDescriptionOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; + * * @return Whether the subject field is set. */ boolean hasSubject(); /** + * + * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; + * * @return The subject. */ com.google.cloud.security.privateca.v1.Subject getSubject(); /** + * + * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
@@ -227,24 +288,32 @@ public interface SubjectDescriptionOrBuilder extends
     com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder();
 
     /**
+     *
+     *
      * 
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; + * * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; + * * @return The subjectAltName. */ com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName(); /** + * + * *
      * The subject alternative name fields.
      * 
@@ -254,44 +323,57 @@ public interface SubjectDescriptionOrBuilder extends com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; + * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; + * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString - getHexSerialNumberBytes(); + com.google.protobuf.ByteString getHexSerialNumberBytes(); /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; + * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; + * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
@@ -301,24 +383,32 @@ public interface SubjectDescriptionOrBuilder extends com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** + * + * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; + * * @return Whether the notBeforeTime field is set. */ boolean hasNotBeforeTime(); /** + * + * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; + * * @return The notBeforeTime. */ com.google.protobuf.Timestamp getNotBeforeTime(); /** + * + * *
      * The time at which the certificate becomes valid.
      * 
@@ -328,6 +418,8 @@ public interface SubjectDescriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder(); /** + * + * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -336,10 +428,13 @@ public interface SubjectDescriptionOrBuilder extends
      * 
* * .google.protobuf.Timestamp not_after_time = 6; + * * @return Whether the notAfterTime field is set. */ boolean hasNotAfterTime(); /** + * + * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -348,10 +443,13 @@ public interface SubjectDescriptionOrBuilder extends
      * 
* * .google.protobuf.Timestamp not_after_time = 6; + * * @return The notAfterTime. */ com.google.protobuf.Timestamp getNotAfterTime(); /** + * + * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -364,38 +462,41 @@ public interface SubjectDescriptionOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder();
   }
   /**
+   *
+   *
    * 
    * These values describe fields in an issued X.509 certificate such as the
    * distinguished name, subject alternative names, serial number, and lifetime.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} */ - public static final class SubjectDescription extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SubjectDescription extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) SubjectDescriptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubjectDescription.newBuilder() to construct. private SubjectDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SubjectDescription() { hexSerialNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubjectDescription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubjectDescription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -414,84 +515,98 @@ private SubjectDescription( case 0: done = true; break; - case 10: { - com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null; - if (subject_ != null) { - subBuilder = subject_.toBuilder(); - } - subject_ = input.readMessage(com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subject_); - subject_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null; - if (subjectAltName_ != null) { - subBuilder = subjectAltName_.toBuilder(); - } - subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1.SubjectAltNames.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subjectAltName_); - subjectAltName_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - hexSerialNumber_ = s; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (lifetime_ != null) { - subBuilder = lifetime_.toBuilder(); + case 10: + { + com.google.cloud.security.privateca.v1.Subject.Builder subBuilder = null; + if (subject_ != null) { + subBuilder = subject_.toBuilder(); + } + subject_ = + input.readMessage( + com.google.cloud.security.privateca.v1.Subject.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subject_); + subject_ = subBuilder.buildPartial(); + } + + break; } - lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lifetime_); - lifetime_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder subBuilder = null; + if (subjectAltName_ != null) { + subBuilder = subjectAltName_.toBuilder(); + } + subjectAltName_ = + input.readMessage( + com.google.cloud.security.privateca.v1.SubjectAltNames.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subjectAltName_); + subjectAltName_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notBeforeTime_ != null) { - subBuilder = notBeforeTime_.toBuilder(); + hexSerialNumber_ = s; + break; } - notBeforeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notBeforeTime_); - notBeforeTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (lifetime_ != null) { + subBuilder = lifetime_.toBuilder(); + } + lifetime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lifetime_); + lifetime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notAfterTime_ != null) { - subBuilder = notAfterTime_.toBuilder(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notBeforeTime_ != null) { + subBuilder = notBeforeTime_.toBuilder(); + } + notBeforeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notBeforeTime_); + notBeforeTime_ = subBuilder.buildPartial(); + } + + break; } - notAfterTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notAfterTime_); - notAfterTime_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notAfterTime_ != null) { + subBuilder = notAfterTime_.toBuilder(); + } + notAfterTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notAfterTime_); + notAfterTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,35 +614,42 @@ private SubjectDescription( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .class, + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .Builder.class); } public static final int SUBJECT_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.Subject subject_; /** + * + * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; + * * @return Whether the subject field is set. */ @java.lang.Override @@ -535,19 +657,26 @@ public boolean hasSubject() { return subject_ != null; } /** + * + * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
      * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; + * * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Subject getSubject() { - return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() + : subject_; } /** + * + * *
      * Contains distinguished name fields such as the common name, location and
      * / organization.
@@ -563,11 +692,14 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
     public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 2;
     private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_;
     /**
+     *
+     *
      * 
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; + * * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -575,18 +707,25 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; + * * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } /** + * + * *
      * The subject alternative name fields.
      * 
@@ -594,18 +733,22 @@ public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName( * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { return getSubjectAltName(); } public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 3; private volatile java.lang.Object hexSerialNumber_; /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; + * * @return The hexSerialNumber. */ @java.lang.Override @@ -614,29 +757,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 3; + * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -647,11 +790,14 @@ public java.lang.String getHexSerialNumber() { public static final int LIFETIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration lifetime_; /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; + * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -659,11 +805,14 @@ public boolean hasLifetime() { return lifetime_ != null; } /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
* * .google.protobuf.Duration lifetime = 4; + * * @return The lifetime. */ @java.lang.Override @@ -671,6 +820,8 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * 
@@ -685,11 +836,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { public static final int NOT_BEFORE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp notBeforeTime_; /** + * + * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; + * * @return Whether the notBeforeTime field is set. */ @java.lang.Override @@ -697,18 +851,25 @@ public boolean hasNotBeforeTime() { return notBeforeTime_ != null; } /** + * + * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 5; + * * @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_; } /** + * + * *
      * The time at which the certificate becomes valid.
      * 
@@ -723,6 +884,8 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { public static final int NOT_AFTER_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp notAfterTime_; /** + * + * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -731,6 +894,7 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp not_after_time = 6; + * * @return Whether the notAfterTime field is set. */ @java.lang.Override @@ -738,6 +902,8 @@ public boolean hasNotAfterTime() { return notAfterTime_ != null; } /** + * + * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -746,13 +912,18 @@ public boolean hasNotAfterTime() {
      * 
* * .google.protobuf.Timestamp not_after_time = 6; + * * @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_; } /** + * + * *
      * The time after which the certificate is expired.
      * Per RFC 5280, the validity period for a certificate is the period of time
@@ -768,6 +939,7 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -779,8 +951,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (subject_ != null) {
         output.writeMessage(1, getSubject());
       }
@@ -809,27 +980,22 @@ public int getSerializedSize() {
 
       size = 0;
       if (subject_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getSubject());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject());
       }
       if (subjectAltName_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getSubjectAltName());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubjectAltName());
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hexSerialNumber_);
       }
       if (lifetime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, getLifetime());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLifetime());
       }
       if (notBeforeTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, getNotBeforeTime());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getNotBeforeTime());
       }
       if (notAfterTime_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, getNotAfterTime());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotAfterTime());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -839,39 +1005,36 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)) {
+      if (!(obj
+          instanceof
+          com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)) {
         return super.equals(obj);
       }
-      com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other = (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) obj;
+      com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other =
+          (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) obj;
 
       if (hasSubject() != other.hasSubject()) return false;
       if (hasSubject()) {
-        if (!getSubject()
-            .equals(other.getSubject())) return false;
+        if (!getSubject().equals(other.getSubject())) return false;
       }
       if (hasSubjectAltName() != other.hasSubjectAltName()) return false;
       if (hasSubjectAltName()) {
-        if (!getSubjectAltName()
-            .equals(other.getSubjectAltName())) return false;
+        if (!getSubjectAltName().equals(other.getSubjectAltName())) return false;
       }
-      if (!getHexSerialNumber()
-          .equals(other.getHexSerialNumber())) return false;
+      if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false;
       if (hasLifetime() != other.hasLifetime()) return false;
       if (hasLifetime()) {
-        if (!getLifetime()
-            .equals(other.getLifetime())) return false;
+        if (!getLifetime().equals(other.getLifetime())) 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 (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -911,88 +1074,102 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(
+            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(
+            com.google.protobuf.ByteString data,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription 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.security.privateca.v1.CertificateDescription.SubjectDescription
+        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.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+            prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1002,45 +1179,53 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * These values describe fields in an issued X.509 certificate such as the
      * distinguished name, subject alternative names, serial number, and lifetime.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .class, + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1080,19 +1265,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription build() { - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = buildPartial(); + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + build() { + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1100,8 +1289,11 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDesc } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription buildPartial() { - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription(this); + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + buildPartial() { + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription result = + new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription( + this); if (subjectBuilder_ == null) { result.subject_ = subject_; } else { @@ -1136,46 +1328,56 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDesc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateDescription.SubjectDescription) { - return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other) { - if (other == com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .getDefaultInstance()) return this; if (other.hasSubject()) { mergeSubject(other.getSubject()); } @@ -1210,11 +1412,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1226,36 +1431,49 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1.Subject subject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> subjectBuilder_; + com.google.cloud.security.privateca.v1.Subject, + com.google.cloud.security.privateca.v1.Subject.Builder, + com.google.cloud.security.privateca.v1.SubjectOrBuilder> + subjectBuilder_; /** + * + * *
        * Contains distinguished name fields such as the common name, location and
        * / organization.
        * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; + * * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** + * + * *
        * Contains distinguished name fields such as the common name, location and
        * / organization.
        * 
* * .google.cloud.security.privateca.v1.Subject subject = 1; + * * @return The subject. */ public com.google.cloud.security.privateca.v1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() + : subject_; } else { return subjectBuilder_.getMessage(); } } /** + * + * *
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1277,6 +1495,8 @@ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1296,6 +1516,8 @@ public Builder setSubject(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1307,7 +1529,9 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value
         if (subjectBuilder_ == null) {
           if (subject_ != null) {
             subject_ =
-              com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial();
+                com.google.cloud.security.privateca.v1.Subject.newBuilder(subject_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             subject_ = value;
           }
@@ -1319,6 +1543,8 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1338,6 +1564,8 @@ public Builder clearSubject() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1346,11 +1574,13 @@ public Builder clearSubject() {
        * .google.cloud.security.privateca.v1.Subject subject = 1;
        */
       public com.google.cloud.security.privateca.v1.Subject.Builder getSubjectBuilder() {
-        
+
         onChanged();
         return getSubjectFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1362,11 +1592,14 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
         if (subjectBuilder_ != null) {
           return subjectBuilder_.getMessageOrBuilder();
         } else {
-          return subject_ == null ?
-              com.google.cloud.security.privateca.v1.Subject.getDefaultInstance() : subject_;
+          return subject_ == null
+              ? com.google.cloud.security.privateca.v1.Subject.getDefaultInstance()
+              : subject_;
         }
       }
       /**
+       *
+       *
        * 
        * Contains distinguished name fields such as the common name, location and
        * / organization.
@@ -1375,14 +1608,17 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
        * .google.cloud.security.privateca.v1.Subject subject = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder> 
+              com.google.cloud.security.privateca.v1.Subject,
+              com.google.cloud.security.privateca.v1.Subject.Builder,
+              com.google.cloud.security.privateca.v1.SubjectOrBuilder>
           getSubjectFieldBuilder() {
         if (subjectBuilder_ == null) {
-          subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.security.privateca.v1.Subject, com.google.cloud.security.privateca.v1.Subject.Builder, com.google.cloud.security.privateca.v1.SubjectOrBuilder>(
-                  getSubject(),
-                  getParentForChildren(),
-                  isClean());
+          subjectBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.security.privateca.v1.Subject,
+                  com.google.cloud.security.privateca.v1.Subject.Builder,
+                  com.google.cloud.security.privateca.v1.SubjectOrBuilder>(
+                  getSubject(), getParentForChildren(), isClean());
           subject_ = null;
         }
         return subjectBuilder_;
@@ -1390,41 +1626,55 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild
 
       private com.google.cloud.security.privateca.v1.SubjectAltNames subjectAltName_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_;
+              com.google.cloud.security.privateca.v1.SubjectAltNames,
+              com.google.cloud.security.privateca.v1.SubjectAltNames.Builder,
+              com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>
+          subjectAltNameBuilder_;
       /**
+       *
+       *
        * 
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; + * * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; + * * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public Builder setSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder setSubjectAltName( + com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1438,6 +1688,8 @@ public Builder setSubjectAltName(com.google.cloud.security.privateca.v1.SubjectA return this; } /** + * + * *
        * The subject alternative name fields.
        * 
@@ -1456,17 +1708,22 @@ public Builder setSubjectAltName( return this; } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1.SubjectAltNames value) { + public Builder mergeSubjectAltName( + com.google.cloud.security.privateca.v1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder(subjectAltName_) + .mergeFrom(value) + .buildPartial(); } else { subjectAltName_ = value; } @@ -1478,6 +1735,8 @@ public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1.Subjec return this; } /** + * + * *
        * The subject alternative name fields.
        * 
@@ -1496,33 +1755,42 @@ public Builder clearSubjectAltName() { return this; } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1.SubjectAltNames.Builder + getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ - public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null ? - com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } } /** + * + * *
        * The subject alternative name fields.
        * 
@@ -1530,14 +1798,17 @@ public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjec * .google.cloud.security.privateca.v1.SubjectAltNames subject_alt_name = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1.SubjectAltNames, + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubjectAltNames, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), - getParentForChildren(), - isClean()); + subjectAltNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubjectAltNames, + com.google.cloud.security.privateca.v1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), getParentForChildren(), isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; @@ -1545,18 +1816,20 @@ public com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder getSubjec private java.lang.Object hexSerialNumber_ = ""; /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; + * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1565,20 +1838,21 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; + * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1586,54 +1860,61 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; + * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber( - java.lang.String value) { + public Builder setHexSerialNumber(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; + * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 3; + * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes( - com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1641,24 +1922,33 @@ public Builder setHexSerialNumberBytes( private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
* * .google.protobuf.Duration lifetime = 4; + * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
* * .google.protobuf.Duration lifetime = 4; + * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -1669,6 +1959,8 @@ public com.google.protobuf.Duration getLifetime() { } } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1689,14 +1981,15 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
* * .google.protobuf.Duration lifetime = 4; */ - public Builder setLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -1707,6 +2000,8 @@ public Builder setLifetime( return this; } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1717,7 +2012,7 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -1729,6 +2024,8 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1747,6 +2044,8 @@ public Builder clearLifetime() { return this; } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1754,11 +2053,13 @@ public Builder clearLifetime() { * .google.protobuf.Duration lifetime = 4; */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1769,11 +2070,12 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * 
@@ -1781,14 +2083,17 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { * .google.protobuf.Duration lifetime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getLifetime(), - getParentForChildren(), - isClean()); + lifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLifetime(), getParentForChildren(), isClean()); lifetime_ = null; } return lifetimeBuilder_; @@ -1796,34 +2101,47 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { 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_; /** + * + * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 5; + * * @return Whether the notBeforeTime field is set. */ public boolean hasNotBeforeTime() { return notBeforeTimeBuilder_ != null || notBeforeTime_ != null; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 5; + * * @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(); } } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -1844,14 +2162,15 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 5; */ - 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(); @@ -1862,6 +2181,8 @@ public Builder setNotBeforeTime( return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -1872,7 +2193,9 @@ 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; } @@ -1884,6 +2207,8 @@ public Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -1902,6 +2227,8 @@ public Builder clearNotBeforeTime() { return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -1909,11 +2236,13 @@ public Builder clearNotBeforeTime() { * .google.protobuf.Timestamp not_before_time = 5; */ public com.google.protobuf.Timestamp.Builder getNotBeforeTimeBuilder() { - + onChanged(); return getNotBeforeTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -1924,11 +2253,14 @@ 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_; } } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -1936,14 +2268,17 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { * .google.protobuf.Timestamp not_before_time = 5; */ 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_; @@ -1951,8 +2286,13 @@ 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_; /** + * + * *
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -1961,12 +2301,15 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() {
        * 
* * .google.protobuf.Timestamp not_after_time = 6; + * * @return Whether the notAfterTime field is set. */ public boolean hasNotAfterTime() { return notAfterTimeBuilder_ != null || notAfterTime_ != null; } /** + * + * *
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -1975,16 +2318,21 @@ public boolean hasNotAfterTime() {
        * 
* * .google.protobuf.Timestamp not_after_time = 6; + * * @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(); } } /** + * + * *
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2008,6 +2356,8 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2017,8 +2367,7 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp not_after_time = 6;
        */
-      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();
@@ -2029,6 +2378,8 @@ public Builder setNotAfterTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2042,7 +2393,9 @@ 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;
           }
@@ -2054,6 +2407,8 @@ public Builder mergeNotAfterTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2075,6 +2430,8 @@ public Builder clearNotAfterTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2085,11 +2442,13 @@ public Builder clearNotAfterTime() {
        * .google.protobuf.Timestamp not_after_time = 6;
        */
       public com.google.protobuf.Timestamp.Builder getNotAfterTimeBuilder() {
-        
+
         onChanged();
         return getNotAfterTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2103,11 +2462,14 @@ 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_;
         }
       }
       /**
+       *
+       *
        * 
        * The time after which the certificate is expired.
        * Per RFC 5280, the validity period for a certificate is the period of time
@@ -2118,18 +2480,22 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() {
        * .google.protobuf.Timestamp not_after_time = 6;
        */
       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_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2142,30 +2508,34 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription)
-    private static final com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription DEFAULT_INSTANCE;
+    private static final com.google.cloud.security.privateca.v1.CertificateDescription
+            .SubjectDescription
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription();
     }
 
-    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getDefaultInstance() {
+    public static com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public SubjectDescription parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new SubjectDescription(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public SubjectDescription parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new SubjectDescription(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2177,39 +2547,47 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface KeyIdOrBuilder extends
+  public interface KeyIdOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription.KeyId)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyId. */ java.lang.String getKeyId(); /** + * + * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyId. */ - com.google.protobuf.ByteString - getKeyIdBytes(); + com.google.protobuf.ByteString getKeyIdBytes(); } /** + * + * *
    * A KeyId identifies a specific public key, usually by hashing the public
    * key.
@@ -2217,31 +2595,31 @@ public interface KeyIdOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.KeyId}
    */
-  public static final class KeyId extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class KeyId extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription.KeyId)
       KeyIdOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use KeyId.newBuilder() to construct.
     private KeyId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private KeyId() {
       keyId_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new KeyId();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private KeyId(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2260,19 +2638,20 @@ private KeyId(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              keyId_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                keyId_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2280,35 +2659,40 @@ private KeyId(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class,
+              com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
     }
 
     public static final int KEY_ID_FIELD_NUMBER = 1;
     private volatile java.lang.Object keyId_;
     /**
+     *
+     *
      * 
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyId. */ @java.lang.Override @@ -2317,30 +2701,30 @@ public java.lang.String getKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** + * + * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyId. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyIdBytes() { + public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyId_ = b; return b; } else { @@ -2349,6 +2733,7 @@ public java.lang.String getKeyId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2360,8 +2745,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); } @@ -2385,15 +2769,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.security.privateca.v1.CertificateDescription.KeyId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other = (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) obj; + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other = + (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) obj; - if (!getKeyId() - .equals(other.getKeyId())) return false; + if (!getKeyId().equals(other.getKeyId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2413,87 +2797,95 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId 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.security.privateca.v1.CertificateDescription.KeyId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId 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.security.privateca.v1.CertificateDescription.KeyId + 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.security.privateca.v1.CertificateDescription.KeyId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2503,6 +2895,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A KeyId identifies a specific public key, usually by hashing the public
      * key.
@@ -2510,38 +2904,41 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.KeyId}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription.KeyId)
         com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
+                com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.class,
+                com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder.class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2551,14 +2948,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance();
+      public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId
+          getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1.CertificateDescription.KeyId
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -2572,7 +2971,8 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId build
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId buildPartial() {
-        com.google.cloud.security.privateca.v1.CertificateDescription.KeyId result = new com.google.cloud.security.privateca.v1.CertificateDescription.KeyId(this);
+        com.google.cloud.security.privateca.v1.CertificateDescription.KeyId result =
+            new com.google.cloud.security.privateca.v1.CertificateDescription.KeyId(this);
         result.keyId_ = keyId_;
         onBuilt();
         return result;
@@ -2582,46 +2982,53 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId build
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateDescription.KeyId) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription.KeyId)other);
+          return mergeFrom(
+              (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other) {
-        if (other == com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1.CertificateDescription.KeyId other) {
+        if (other
+            == com.google.cloud.security.privateca.v1.CertificateDescription.KeyId
+                .getDefaultInstance()) return this;
         if (!other.getKeyId().isEmpty()) {
           keyId_ = other.keyId_;
           onChanged();
@@ -2645,7 +3052,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1.CertificateDescription.KeyId)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2657,19 +3066,21 @@ public Builder mergeFrom(
 
       private java.lang.Object keyId_ = "";
       /**
+       *
+       *
        * 
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; @@ -2678,21 +3089,22 @@ public java.lang.String getKeyId() { } } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyId. */ - public com.google.protobuf.ByteString - getKeyIdBytes() { + public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyId_ = b; return b; } else { @@ -2700,61 +3112,69 @@ public java.lang.String getKeyId() { } } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The keyId to set. * @return This builder for chaining. */ - public Builder setKeyId( - java.lang.String value) { + public Builder setKeyId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyId_ = value; onChanged(); return this; } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKeyId() { - + keyId_ = getDefaultInstance().getKeyId(); onChanged(); return this; } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for keyId to set. * @return This builder for chaining. */ - public Builder setKeyIdBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2767,30 +3187,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription.KeyId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription.KeyId) - private static final com.google.cloud.security.privateca.v1.CertificateDescription.KeyId DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription.KeyId(); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2802,68 +3224,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CertificateFingerprintOrBuilder extends + public interface CertificateFingerprintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The sha256Hash. */ java.lang.String getSha256Hash(); /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The bytes for sha256Hash. */ - com.google.protobuf.ByteString - getSha256HashBytes(); + com.google.protobuf.ByteString getSha256HashBytes(); } /** + * + * *
    * A group of fingerprints for the x509 certificate.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} */ - public static final class CertificateFingerprint extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CertificateFingerprint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) CertificateFingerprintOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertificateFingerprint.newBuilder() to construct. private CertificateFingerprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CertificateFingerprint() { sha256Hash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CertificateFingerprint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CertificateFingerprint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2882,19 +3313,20 @@ private CertificateFingerprint( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sha256Hash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sha256Hash_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2902,34 +3334,41 @@ private CertificateFingerprint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .class, + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .Builder.class); } public static final int SHA256_HASH_FIELD_NUMBER = 1; private volatile java.lang.Object sha256Hash_; /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The sha256Hash. */ @java.lang.Override @@ -2938,29 +3377,29 @@ public java.lang.String getSha256Hash() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; } } /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The bytes for sha256Hash. */ @java.lang.Override - public com.google.protobuf.ByteString - getSha256HashBytes() { + public com.google.protobuf.ByteString getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -2969,6 +3408,7 @@ public java.lang.String getSha256Hash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2980,8 +3420,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256Hash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sha256Hash_); } @@ -3005,15 +3444,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint other = (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) obj; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint other = + (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) + obj; - if (!getSha256Hash() - .equals(other.getSha256Hash())) return false; + if (!getSha256Hash().equals(other.getSha256Hash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3032,88 +3474,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint 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.security.privateca.v1.CertificateDescription + .CertificateFingerprint + 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.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3123,44 +3591,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A group of fingerprints for the x509 certificate.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder.class); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .class, + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3170,19 +3647,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint build() { - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint result = buildPartial(); + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + build() { + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3190,8 +3671,12 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.Certificate } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint buildPartial() { - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint result = new com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint(this); + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + buildPartial() { + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + result = + new com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint(this); result.sha256Hash_ = sha256Hash_; onBuilt(); return result; @@ -3201,46 +3686,57 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.Certificate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateDescription.CertificateFingerprint) { - return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint other) { - if (other == com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .getDefaultInstance()) return this; if (!other.getSha256Hash().isEmpty()) { sha256Hash_ = other.sha256Hash_; onChanged(); @@ -3260,11 +3756,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3276,18 +3775,20 @@ public Builder mergeFrom( private java.lang.Object sha256Hash_ = ""; /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @return The sha256Hash. */ public java.lang.String getSha256Hash() { java.lang.Object ref = sha256Hash_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; @@ -3296,20 +3797,21 @@ public java.lang.String getSha256Hash() { } } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @return The bytes for sha256Hash. */ - public com.google.protobuf.ByteString - getSha256HashBytes() { + public com.google.protobuf.ByteString getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -3317,58 +3819,66 @@ public java.lang.String getSha256Hash() { } } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @param value The sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256Hash( - java.lang.String value) { + public Builder setSha256Hash(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256Hash_ = value; onChanged(); return this; } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @return This builder for chaining. */ public Builder clearSha256Hash() { - + sha256Hash_ = getDefaultInstance().getSha256Hash(); onChanged(); return this; } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @param value The bytes for sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256HashBytes( - com.google.protobuf.ByteString value) { + public Builder setSha256HashBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256Hash_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3381,30 +3891,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint) - private static final com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint(); } - public static com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateFingerprint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateFingerprint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateFingerprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateFingerprint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3416,21 +3932,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subjectDescription_; + private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + subjectDescription_; /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return Whether the subjectDescription field is set. */ @java.lang.Override @@ -3438,39 +3960,56 @@ public boolean hasSubjectDescription() { return subjectDescription_ != null; } /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return The subjectDescription. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getSubjectDescription() { - return subjectDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + getSubjectDescription() { + return subjectDescription_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .getDefaultInstance() + : subjectDescription_; } /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder + getSubjectDescriptionOrBuilder() { return getSubjectDescription(); } public static final int X509_DESCRIPTION_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters x509Description_; /** + * + * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; + * * @return Whether the x509Description field is set. */ @java.lang.Override @@ -3478,18 +4017,25 @@ public boolean hasX509Description() { return x509Description_ != null; } /** + * + * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; + * * @return The x509Description. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getX509Description() { - return x509Description_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Description_; + return x509Description_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : x509Description_; } /** + * + * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
@@ -3497,18 +4043,22 @@ public com.google.cloud.security.privateca.v1.X509Parameters getX509Description( * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder + getX509DescriptionOrBuilder() { return getX509Description(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.PublicKey publicKey_; /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; + * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -3516,18 +4066,25 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; + * * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { - return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() + : publicKey_; } /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -3542,12 +4099,16 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB public static final int SUBJECT_KEY_ID_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId subjectKeyId_; /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return Whether the subjectKeyId field is set. */ @java.lang.Override @@ -3555,40 +4116,54 @@ public boolean hasSubjectKeyId() { return subjectKeyId_ != null; } /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return The subjectKeyId. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId() { - return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() + : subjectKeyId_; } /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder + getSubjectKeyIdOrBuilder() { return getSubjectKeyId(); } public static final int AUTHORITY_KEY_ID_FIELD_NUMBER = 5; private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId authorityKeyId_; /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return Whether the authorityKeyId field is set. */ @java.lang.Override @@ -3596,34 +4171,46 @@ public boolean hasAuthorityKeyId() { return authorityKeyId_ != null; } /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return The authorityKeyId. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId() { - return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; + return authorityKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() + : authorityKeyId_; } /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder + getAuthorityKeyIdOrBuilder() { return getAuthorityKeyId(); } public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList crlDistributionPoints_; /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3631,13 +4218,15 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuil
    * 
* * repeated string crl_distribution_points = 6; + * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList - getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { return crlDistributionPoints_; } /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3645,12 +4234,15 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuil
    * 
* * repeated string crl_distribution_points = 6; + * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3658,6 +4250,7 @@ public int getCrlDistributionPointsCount() {
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -3665,6 +4258,8 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3672,48 +4267,56 @@ public java.lang.String getCrlDistributionPoints(int index) {
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString - getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_; /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList - getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_; } /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -3721,28 +4324,36 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString - getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } public static final int CERT_FINGERPRINT_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint certFingerprint_; + private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + certFingerprint_; /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return Whether the certFingerprint field is set. */ @java.lang.Override @@ -3750,30 +4361,46 @@ public boolean hasCertFingerprint() { return certFingerprint_ != null; } /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return The certFingerprint. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getCertFingerprint() { - return certFingerprint_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + getCertFingerprint() { + return certFingerprint_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .getDefaultInstance() + : certFingerprint_; } /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprintOrBuilder + getCertFingerprintOrBuilder() { return getCertFingerprint(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3785,8 +4412,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subjectDescription_ != null) { output.writeMessage(1, getSubjectDescription()); } @@ -3803,10 +4429,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(5, getAuthorityKeyId()); } for (int i = 0; i < crlDistributionPoints_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, crlDistributionPoints_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, crlDistributionPoints_.getRaw(i)); } for (int i = 0; i < aiaIssuingCertificateUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, aiaIssuingCertificateUrls_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, aiaIssuingCertificateUrls_.getRaw(i)); } if (certFingerprint_ != null) { output.writeMessage(8, getCertFingerprint()); @@ -3821,24 +4449,19 @@ public int getSerializedSize() { size = 0; if (subjectDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubjectDescription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectDescription()); } if (x509Description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getX509Description()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getX509Description()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); } if (subjectKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSubjectKeyId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubjectKeyId()); } if (authorityKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAuthorityKeyId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorityKeyId()); } { int dataSize = 0; @@ -3857,8 +4480,7 @@ public int getSerializedSize() { size += 1 * getAiaIssuingCertificateUrlsList().size(); } if (certFingerprint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCertFingerprint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCertFingerprint()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3868,46 +4490,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateDescription)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateDescription other = (com.google.cloud.security.privateca.v1.CertificateDescription) obj; + com.google.cloud.security.privateca.v1.CertificateDescription other = + (com.google.cloud.security.privateca.v1.CertificateDescription) obj; if (hasSubjectDescription() != other.hasSubjectDescription()) return false; if (hasSubjectDescription()) { - if (!getSubjectDescription() - .equals(other.getSubjectDescription())) return false; + if (!getSubjectDescription().equals(other.getSubjectDescription())) return false; } if (hasX509Description() != other.hasX509Description()) return false; if (hasX509Description()) { - if (!getX509Description() - .equals(other.getX509Description())) return false; + if (!getX509Description().equals(other.getX509Description())) 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 (hasSubjectKeyId() != other.hasSubjectKeyId()) return false; if (hasSubjectKeyId()) { - if (!getSubjectKeyId() - .equals(other.getSubjectKeyId())) return false; + if (!getSubjectKeyId().equals(other.getSubjectKeyId())) return false; } if (hasAuthorityKeyId() != other.hasAuthorityKeyId()) return false; if (hasAuthorityKeyId()) { - if (!getAuthorityKeyId() - .equals(other.getAuthorityKeyId())) return false; + if (!getAuthorityKeyId().equals(other.getAuthorityKeyId())) return false; } - if (!getCrlDistributionPointsList() - .equals(other.getCrlDistributionPointsList())) return false; - if (!getAiaIssuingCertificateUrlsList() - .equals(other.getAiaIssuingCertificateUrlsList())) return false; + if (!getCrlDistributionPointsList().equals(other.getCrlDistributionPointsList())) return false; + if (!getAiaIssuingCertificateUrlsList().equals(other.getAiaIssuingCertificateUrlsList())) + return false; if (hasCertFingerprint() != other.hasCertFingerprint()) return false; if (hasCertFingerprint()) { - if (!getCertFingerprint() - .equals(other.getCertFingerprint())) return false; + if (!getCertFingerprint().equals(other.getCertFingerprint())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3958,96 +4574,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateDescription 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.security.privateca.v1.CertificateDescription parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateDescription parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateDescription parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateDescription prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateDescription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription] describes an X.509 certificate or CSR that has
    * been issued, as an alternative to using ASN.1 / X.509.
@@ -4055,21 +4679,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateDescription}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateDescription)
       com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateDescription.class, com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateDescription.class,
+              com.google.cloud.security.privateca.v1.CertificateDescription.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateDescription.newBuilder()
@@ -4077,16 +4703,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4134,13 +4759,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateDescription getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.CertificateDescription
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance();
     }
 
@@ -4155,7 +4781,8 @@ public com.google.cloud.security.privateca.v1.CertificateDescription build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateDescription buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateDescription result = new com.google.cloud.security.privateca.v1.CertificateDescription(this);
+      com.google.cloud.security.privateca.v1.CertificateDescription result =
+          new com.google.cloud.security.privateca.v1.CertificateDescription(this);
       int from_bitField0_ = bitField0_;
       if (subjectDescriptionBuilder_ == null) {
         result.subjectDescription_ = subjectDescription_;
@@ -4205,38 +4832,39 @@ public com.google.cloud.security.privateca.v1.CertificateDescription buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateDescription) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateDescription) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4244,7 +4872,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateDescription other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.security.privateca.v1.CertificateDescription.getDefaultInstance())
+        return this;
       if (other.hasSubjectDescription()) {
         mergeSubjectDescription(other.getSubjectDescription());
       }
@@ -4302,7 +4932,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateDescription) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateDescription)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -4311,48 +4943,74 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subjectDescription_;
+    private com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+        subjectDescription_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder> subjectDescriptionBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription,
+            com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription
+                .Builder,
+            com.google.cloud.security.privateca.v1.CertificateDescription
+                .SubjectDescriptionOrBuilder>
+        subjectDescriptionBuilder_;
     /**
+     *
+     *
      * 
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return Whether the subjectDescription field is set. */ public boolean hasSubjectDescription() { return subjectDescriptionBuilder_ != null || subjectDescription_ != null; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return The subjectDescription. */ - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getSubjectDescription() { + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + getSubjectDescription() { if (subjectDescriptionBuilder_ == null) { - return subjectDescription_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; + return subjectDescription_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .getDefaultInstance() + : subjectDescription_; } else { return subjectDescriptionBuilder_.getMessage(); } } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public Builder setSubjectDescription(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { + public Builder setSubjectDescription( + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { if (subjectDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4366,15 +5024,20 @@ public Builder setSubjectDescription(com.google.cloud.security.privateca.v1.Cert return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ public Builder setSubjectDescription( - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder + builderForValue) { if (subjectDescriptionBuilder_ == null) { subjectDescription_ = builderForValue.build(); onChanged(); @@ -4385,18 +5048,26 @@ public Builder setSubjectDescription( return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public Builder mergeSubjectDescription(com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { + public Builder mergeSubjectDescription( + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription value) { if (subjectDescriptionBuilder_ == null) { if (subjectDescription_ != null) { subjectDescription_ = - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.newBuilder(subjectDescription_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .newBuilder(subjectDescription_) + .mergeFrom(value) + .buildPartial(); } else { subjectDescription_ = value; } @@ -4408,12 +5079,16 @@ public Builder mergeSubjectDescription(com.google.cloud.security.privateca.v1.Ce return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ public Builder clearSubjectDescription() { if (subjectDescriptionBuilder_ == null) { @@ -4427,51 +5102,74 @@ public Builder clearSubjectDescription() { return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder getSubjectDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder + getSubjectDescriptionBuilder() { + onChanged(); return getSubjectDescriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder + getSubjectDescriptionOrBuilder() { if (subjectDescriptionBuilder_ != null) { return subjectDescriptionBuilder_.getMessageOrBuilder(); } else { - return subjectDescription_ == null ? - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; + return subjectDescription_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .getDefaultInstance() + : subjectDescription_; } } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .Builder, + com.google.cloud.security.privateca.v1.CertificateDescription + .SubjectDescriptionOrBuilder> getSubjectDescriptionFieldBuilder() { if (subjectDescriptionBuilder_ == null) { - subjectDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder>( - getSubjectDescription(), - getParentForChildren(), - isClean()); + subjectDescriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription, + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + .Builder, + com.google.cloud.security.privateca.v1.CertificateDescription + .SubjectDescriptionOrBuilder>( + getSubjectDescription(), getParentForChildren(), isClean()); subjectDescription_ = null; } return subjectDescriptionBuilder_; @@ -4479,34 +5177,47 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDesc private com.google.cloud.security.privateca.v1.X509Parameters x509Description_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> x509DescriptionBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + x509DescriptionBuilder_; /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; + * * @return Whether the x509Description field is set. */ public boolean hasX509Description() { return x509DescriptionBuilder_ != null || x509Description_ != null; } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; + * * @return The x509Description. */ public com.google.cloud.security.privateca.v1.X509Parameters getX509Description() { if (x509DescriptionBuilder_ == null) { - return x509Description_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Description_; + return x509Description_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : x509Description_; } else { return x509DescriptionBuilder_.getMessage(); } } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -4527,6 +5238,8 @@ public Builder setX509Description(com.google.cloud.security.privateca.v1.X509Par return this; } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -4545,17 +5258,22 @@ public Builder setX509Description( return this; } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ - public Builder mergeX509Description(com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder mergeX509Description( + com.google.cloud.security.privateca.v1.X509Parameters value) { if (x509DescriptionBuilder_ == null) { if (x509Description_ != null) { x509Description_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Description_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(x509Description_) + .mergeFrom(value) + .buildPartial(); } else { x509Description_ = value; } @@ -4567,6 +5285,8 @@ public Builder mergeX509Description(com.google.cloud.security.privateca.v1.X509P return this; } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -4585,33 +5305,42 @@ public Builder clearX509Description() { return this; } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ - public com.google.cloud.security.privateca.v1.X509Parameters.Builder getX509DescriptionBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.Builder + getX509DescriptionBuilder() { + onChanged(); return getX509DescriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder + getX509DescriptionOrBuilder() { if (x509DescriptionBuilder_ != null) { return x509DescriptionBuilder_.getMessageOrBuilder(); } else { - return x509Description_ == null ? - com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : x509Description_; + return x509Description_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : x509Description_; } } /** + * + * *
      * Describes some of the technical X.509 fields in a certificate.
      * 
@@ -4619,14 +5348,17 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509Des * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getX509DescriptionFieldBuilder() { if (x509DescriptionBuilder_ == null) { - x509DescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getX509Description(), - getParentForChildren(), - isClean()); + x509DescriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getX509Description(), getParentForChildren(), isClean()); x509Description_ = null; } return x509DescriptionBuilder_; @@ -4634,34 +5366,47 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509Des private com.google.cloud.security.privateca.v1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> publicKeyBuilder_; + com.google.cloud.security.privateca.v1.PublicKey, + com.google.cloud.security.privateca.v1.PublicKey.Builder, + com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> + publicKeyBuilder_; /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; + * * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; + * * @return The publicKey. */ public com.google.cloud.security.privateca.v1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() + : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4682,6 +5427,8 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1.PublicKey val return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4700,6 +5447,8 @@ public Builder setPublicKey( return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4710,7 +5459,9 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey v if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.PublicKey.newBuilder(publicKey_) + .mergeFrom(value) + .buildPartial(); } else { publicKey_ = value; } @@ -4722,6 +5473,8 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1.PublicKey v return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4740,6 +5493,8 @@ public Builder clearPublicKey() { return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4747,11 +5502,13 @@ public Builder clearPublicKey() { * .google.cloud.security.privateca.v1.PublicKey public_key = 3; */ public com.google.cloud.security.privateca.v1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4762,11 +5519,14 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null ? - com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance() + : publicKey_; } } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4774,14 +5534,17 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB * .google.cloud.security.privateca.v1.PublicKey public_key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1.PublicKey, + com.google.cloud.security.privateca.v1.PublicKey.Builder, + com.google.cloud.security.privateca.v1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.PublicKey, com.google.cloud.security.privateca.v1.PublicKey.Builder, com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); + publicKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.PublicKey, + com.google.cloud.security.privateca.v1.PublicKey.Builder, + com.google.cloud.security.privateca.v1.PublicKeyOrBuilder>( + getPublicKey(), getParentForChildren(), isClean()); publicKey_ = null; } return publicKeyBuilder_; @@ -4789,44 +5552,62 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId subjectKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> subjectKeyIdBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> + subjectKeyIdBuilder_; /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return Whether the subjectKeyId field is set. */ public boolean hasSubjectKeyId() { return subjectKeyIdBuilder_ != null || subjectKeyId_ != null; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return The subjectKeyId. */ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { - return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + .getDefaultInstance() + : subjectKeyId_; } else { return subjectKeyIdBuilder_.getMessage(); } } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public Builder setSubjectKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder setSubjectKeyId( + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4840,15 +5621,19 @@ public Builder setSubjectKeyId(com.google.cloud.security.privateca.v1.Certificat return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ public Builder setSubjectKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder + builderForValue) { if (subjectKeyIdBuilder_ == null) { subjectKeyId_ = builderForValue.build(); onChanged(); @@ -4859,18 +5644,25 @@ public Builder setSubjectKeyId( return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public Builder mergeSubjectKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder mergeSubjectKeyId( + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (subjectKeyId_ != null) { subjectKeyId_ = - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder(subjectKeyId_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder( + subjectKeyId_) + .mergeFrom(value) + .buildPartial(); } else { subjectKeyId_ = value; } @@ -4882,12 +5674,15 @@ public Builder mergeSubjectKeyId(com.google.cloud.security.privateca.v1.Certific return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ public Builder clearSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { @@ -4901,51 +5696,67 @@ public Builder clearSubjectKeyId() { return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder getSubjectKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder + getSubjectKeyIdBuilder() { + onChanged(); return getSubjectKeyIdFieldBuilder().getBuilder(); } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder + getSubjectKeyIdOrBuilder() { if (subjectKeyIdBuilder_ != null) { return subjectKeyIdBuilder_.getMessageOrBuilder(); } else { - return subjectKeyId_ == null ? - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + .getDefaultInstance() + : subjectKeyId_; } } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> getSubjectKeyIdFieldBuilder() { if (subjectKeyIdBuilder_ == null) { - subjectKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( - getSubjectKeyId(), - getParentForChildren(), - isClean()); + subjectKeyIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( + getSubjectKeyId(), getParentForChildren(), isClean()); subjectKeyId_ = null; } return subjectKeyIdBuilder_; @@ -4953,44 +5764,62 @@ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuil private com.google.cloud.security.privateca.v1.CertificateDescription.KeyId authorityKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> authorityKeyIdBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> + authorityKeyIdBuilder_; /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return Whether the authorityKeyId field is set. */ public boolean hasAuthorityKeyId() { return authorityKeyIdBuilder_ != null || authorityKeyId_ != null; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return The authorityKeyId. */ public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { - return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; + return authorityKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + .getDefaultInstance() + : authorityKeyId_; } else { return authorityKeyIdBuilder_.getMessage(); } } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public Builder setAuthorityKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder setAuthorityKeyId( + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5004,15 +5833,19 @@ public Builder setAuthorityKeyId(com.google.cloud.security.privateca.v1.Certific return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ public Builder setAuthorityKeyId( - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder + builderForValue) { if (authorityKeyIdBuilder_ == null) { authorityKeyId_ = builderForValue.build(); onChanged(); @@ -5023,18 +5856,25 @@ public Builder setAuthorityKeyId( return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public Builder mergeAuthorityKeyId(com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { + public Builder mergeAuthorityKeyId( + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (authorityKeyId_ != null) { authorityKeyId_ = - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder(authorityKeyId_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.newBuilder( + authorityKeyId_) + .mergeFrom(value) + .buildPartial(); } else { authorityKeyId_ = value; } @@ -5046,12 +5886,15 @@ public Builder mergeAuthorityKeyId(com.google.cloud.security.privateca.v1.Certif return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ public Builder clearAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { @@ -5065,64 +5908,85 @@ public Builder clearAuthorityKeyId() { return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder getAuthorityKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder + getAuthorityKeyIdBuilder() { + onChanged(); return getAuthorityKeyIdFieldBuilder().getBuilder(); } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder + getAuthorityKeyIdOrBuilder() { if (authorityKeyIdBuilder_ != null) { return authorityKeyIdBuilder_.getMessageOrBuilder(); } else { - return authorityKeyId_ == null ? - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; + return authorityKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.KeyId + .getDefaultInstance() + : authorityKeyId_; } } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder> getAuthorityKeyIdFieldBuilder() { if (authorityKeyIdBuilder_ == null) { - authorityKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( - getAuthorityKeyId(), - getParentForChildren(), - isClean()); + authorityKeyIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder>( + getAuthorityKeyId(), getParentForChildren(), isClean()); authorityKeyId_ = null; } return authorityKeyIdBuilder_; } - private com.google.protobuf.LazyStringList crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList crlDistributionPoints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCrlDistributionPointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); + crlDistributionPoints_ = + new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5130,13 +5994,15 @@ private void ensureCrlDistributionPointsIsMutable() {
      * 
* * repeated string crl_distribution_points = 6; + * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList - getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { return crlDistributionPoints_.getUnmodifiableView(); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5144,12 +6010,15 @@ private void ensureCrlDistributionPointsIsMutable() {
      * 
* * repeated string crl_distribution_points = 6; + * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5157,6 +6026,7 @@ public int getCrlDistributionPointsCount() {
      * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -5164,6 +6034,8 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5171,14 +6043,16 @@ public java.lang.String getCrlDistributionPoints(int index) {
      * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString - getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5186,21 +6060,23 @@ public java.lang.String getCrlDistributionPoints(int index) {
      * 
* * repeated string crl_distribution_points = 6; + * * @param index The index to set the value at. * @param value The crlDistributionPoints to set. * @return This builder for chaining. */ - public Builder setCrlDistributionPoints( - int index, java.lang.String value) { + public Builder setCrlDistributionPoints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.set(index, value); onChanged(); return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5208,20 +6084,22 @@ public Builder setCrlDistributionPoints(
      * 
* * repeated string crl_distribution_points = 6; + * * @param value The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPoints( - java.lang.String value) { + public Builder addCrlDistributionPoints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5229,18 +6107,19 @@ public Builder addCrlDistributionPoints(
      * 
* * repeated string crl_distribution_points = 6; + * * @param values The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addAllCrlDistributionPoints( - java.lang.Iterable values) { + public Builder addAllCrlDistributionPoints(java.lang.Iterable values) { ensureCrlDistributionPointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, crlDistributionPoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlDistributionPoints_); onChanged(); return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5248,6 +6127,7 @@ public Builder addAllCrlDistributionPoints(
      * 
* * repeated string crl_distribution_points = 6; + * * @return This builder for chaining. */ public Builder clearCrlDistributionPoints() { @@ -5257,6 +6137,8 @@ public Builder clearCrlDistributionPoints() { return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5264,60 +6146,71 @@ public Builder clearCrlDistributionPoints() {
      * 
* * repeated string crl_distribution_points = 6; + * * @param value The bytes of the crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPointsBytes( - com.google.protobuf.ByteString value) { + public Builder addCrlDistributionPointsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAiaIssuingCertificateUrlsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); + aiaIssuingCertificateUrls_ = + new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList - getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_.getUnmodifiableView(); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -5325,85 +6218,95 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString - getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index to set the value at. * @param value The aiaIssuingCertificateUrls to set. * @return This builder for chaining. */ - public Builder setAiaIssuingCertificateUrls( - int index, java.lang.String value) { + public Builder setAiaIssuingCertificateUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param value The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrls( - java.lang.String value) { + public Builder addAiaIssuingCertificateUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param values The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAllAiaIssuingCertificateUrls( - java.lang.Iterable values) { + public Builder addAllAiaIssuingCertificateUrls(java.lang.Iterable values) { ensureAiaIssuingCertificateUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aiaIssuingCertificateUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaIssuingCertificateUrls_); onChanged(); return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return This builder for chaining. */ public Builder clearAiaIssuingCertificateUrls() { @@ -5413,64 +6316,92 @@ public Builder clearAiaIssuingCertificateUrls() { return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param value The bytes of the aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addAiaIssuingCertificateUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } - private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint certFingerprint_; + private com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + certFingerprint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder> certFingerprintBuilder_; + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .Builder, + com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprintOrBuilder> + certFingerprintBuilder_; /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return Whether the certFingerprint field is set. */ public boolean hasCertFingerprint() { return certFingerprintBuilder_ != null || certFingerprint_ != null; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return The certFingerprint. */ - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getCertFingerprint() { + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + getCertFingerprint() { if (certFingerprintBuilder_ == null) { - return certFingerprint_ == null ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; + return certFingerprint_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .getDefaultInstance() + : certFingerprint_; } else { return certFingerprintBuilder_.getMessage(); } } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public Builder setCertFingerprint(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint value) { + public Builder setCertFingerprint( + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + value) { if (certFingerprintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5484,14 +6415,19 @@ public Builder setCertFingerprint(com.google.cloud.security.privateca.v1.Certifi return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ public Builder setCertFingerprint( - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder + builderForValue) { if (certFingerprintBuilder_ == null) { certFingerprint_ = builderForValue.build(); onChanged(); @@ -5502,17 +6438,26 @@ public Builder setCertFingerprint( return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public Builder mergeCertFingerprint(com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint value) { + public Builder mergeCertFingerprint( + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + value) { if (certFingerprintBuilder_ == null) { if (certFingerprint_ != null) { certFingerprint_ = - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.newBuilder(certFingerprint_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .newBuilder(certFingerprint_) + .mergeFrom(value) + .buildPartial(); } else { certFingerprint_ = value; } @@ -5524,11 +6469,15 @@ public Builder mergeCertFingerprint(com.google.cloud.security.privateca.v1.Certi return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ public Builder clearCertFingerprint() { if (certFingerprintBuilder_ == null) { @@ -5542,55 +6491,81 @@ public Builder clearCertFingerprint() { return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder getCertFingerprintBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .Builder + getCertFingerprintBuilder() { + onChanged(); return getCertFingerprintFieldBuilder().getBuilder(); } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprintOrBuilder + getCertFingerprintOrBuilder() { if (certFingerprintBuilder_ != null) { return certFingerprintBuilder_.getMessageOrBuilder(); } else { - return certFingerprint_ == null ? - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; + return certFingerprint_ == null + ? com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .getDefaultInstance() + : certFingerprint_; } } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder> + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .Builder, + com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprintOrBuilder> getCertFingerprintFieldBuilder() { if (certFingerprintBuilder_ == null) { - certFingerprintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder>( - getCertFingerprint(), - getParentForChildren(), - isClean()); + certFingerprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprint, + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + .Builder, + com.google.cloud.security.privateca.v1.CertificateDescription + .CertificateFingerprintOrBuilder>( + getCertFingerprint(), getParentForChildren(), isClean()); certFingerprint_ = null; } return certFingerprintBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5600,12 +6575,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateDescription) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateDescription) - private static final com.google.cloud.security.privateca.v1.CertificateDescription DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateDescription + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateDescription(); } @@ -5614,16 +6590,16 @@ public static com.google.cloud.security.privateca.v1.CertificateDescription getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateDescription(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateDescription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5638,6 +6614,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java index f8fe8c63..882cc31e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateDescriptionOrBuilder.java @@ -1,61 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateDescriptionOrBuilder extends +public interface CertificateDescriptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateDescription) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return Whether the subjectDescription field is set. */ boolean hasSubjectDescription(); /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return The subjectDescription. */ - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription getSubjectDescription(); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription + getSubjectDescription(); /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.SubjectDescriptionOrBuilder + getSubjectDescriptionOrBuilder(); /** + * + * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; + * * @return Whether the x509Description field is set. */ boolean hasX509Description(); /** + * + * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1.X509Parameters x509_description = 2; + * * @return The x509Description. */ com.google.cloud.security.privateca.v1.X509Parameters getX509Description(); /** + * + * *
    * Describes some of the technical X.509 fields in a certificate.
    * 
@@ -65,24 +105,32 @@ public interface CertificateDescriptionOrBuilder extends com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getX509DescriptionOrBuilder(); /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; + * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1.PublicKey public_key = 3; + * * @return The publicKey. */ com.google.cloud.security.privateca.v1.PublicKey getPublicKey(); /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -92,66 +140,92 @@ public interface CertificateDescriptionOrBuilder extends com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder(); /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return Whether the subjectKeyId field is set. */ boolean hasSubjectKeyId(); /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return The subjectKeyId. */ com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getSubjectKeyId(); /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4; + * */ - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder + getSubjectKeyIdOrBuilder(); /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return Whether the authorityKeyId field is set. */ boolean hasAuthorityKeyId(); /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return The authorityKeyId. */ com.google.cloud.security.privateca.v1.CertificateDescription.KeyId getAuthorityKeyId(); /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5; + * */ - com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.KeyIdOrBuilder + getAuthorityKeyIdOrBuilder(); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -159,11 +233,13 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @return A list containing the crlDistributionPoints. */ - java.util.List - getCrlDistributionPointsList(); + java.util.List getCrlDistributionPointsList(); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -171,10 +247,13 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @return The count of crlDistributionPoints. */ int getCrlDistributionPointsCount(); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -182,11 +261,14 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ java.lang.String getCrlDistributionPoints(int index); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -194,81 +276,107 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - com.google.protobuf.ByteString - getCrlDistributionPointsBytes(int index); + com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return A list containing the aiaIssuingCertificateUrls. */ - java.util.List - getAiaIssuingCertificateUrlsList(); + java.util.List getAiaIssuingCertificateUrlsList(); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return The count of aiaIssuingCertificateUrls. */ int getAiaIssuingCertificateUrlsCount(); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ java.lang.String getAiaIssuingCertificateUrls(int index); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - com.google.protobuf.ByteString - getAiaIssuingCertificateUrlsBytes(int index); + com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index); /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return Whether the certFingerprint field is set. */ boolean hasCertFingerprint(); /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return The certFingerprint. */ - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint getCertFingerprint(); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint + getCertFingerprint(); /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprintOrBuilder + getCertFingerprintOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java index 3642c186..05926099 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraints.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Describes a set of X.509 extensions that may be part of some certificate
  * issuance controls.
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateExtensionConstraints}
  */
-public final class CertificateExtensionConstraints extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateExtensionConstraints extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateExtensionConstraints)
     CertificateExtensionConstraintsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateExtensionConstraints.newBuilder() to construct.
-  private CertificateExtensionConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CertificateExtensionConstraints(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateExtensionConstraints() {
     knownExtensions_ = java.util.Collections.emptyList();
     additionalExtensions_ = java.util.Collections.emptyList();
@@ -27,16 +46,15 @@ private CertificateExtensionConstraints() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateExtensionConstraints();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateExtensionConstraints(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,45 +74,50 @@ private CertificateExtensionConstraints(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              knownExtensions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            knownExtensions_.add(rawValue);
-            break;
-          }
-          case 10: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 8:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 knownExtensions_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               knownExtensions_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              additionalExtensions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 10:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  knownExtensions_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                knownExtensions_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
             }
-            additionalExtensions_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                additionalExtensions_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              additionalExtensions_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,8 +125,7 @@ private CertificateExtensionConstraints(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         knownExtensions_ = java.util.Collections.unmodifiableList(knownExtensions_);
@@ -115,30 +137,37 @@ private CertificateExtensionConstraints(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class,
+            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Describes well-known X.509 extensions that can appear in a [Certificate][google.cloud.security.privateca.v1.Certificate],
    * not including the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension.
    * 
* - * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension} + * Protobuf enum {@code + * google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension} */ - public enum KnownCertificateExtension - implements com.google.protobuf.ProtocolMessageEnum { + public enum KnownCertificateExtension implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -147,6 +176,8 @@ public enum KnownCertificateExtension */ KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED(0), /** + * + * *
      * Refers to a certificate's Key Usage extension, as described in [RFC 5280
      * section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3).
@@ -157,6 +188,8 @@ public enum KnownCertificateExtension
      */
     BASE_KEY_USAGE(1),
     /**
+     *
+     *
      * 
      * Refers to a certificate's Extended Key Usage extension, as described in
      * [RFC 5280
@@ -168,6 +201,8 @@ public enum KnownCertificateExtension
      */
     EXTENDED_KEY_USAGE(2),
     /**
+     *
+     *
      * 
      * Refers to a certificate's Basic Constraints extension, as described in
      * [RFC 5280
@@ -179,6 +214,8 @@ public enum KnownCertificateExtension
      */
     CA_OPTIONS(3),
     /**
+     *
+     *
      * 
      * Refers to a certificate's Policy object identifiers, as described in
      * [RFC 5280
@@ -190,6 +227,8 @@ public enum KnownCertificateExtension
      */
     POLICY_IDS(4),
     /**
+     *
+     *
      * 
      * Refers to OCSP servers in a certificate's Authority Information Access
      * extension, as described in
@@ -205,6 +244,8 @@ public enum KnownCertificateExtension
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -213,6 +254,8 @@ public enum KnownCertificateExtension */ public static final int KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Refers to a certificate's Key Usage extension, as described in [RFC 5280
      * section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3).
@@ -223,6 +266,8 @@ public enum KnownCertificateExtension
      */
     public static final int BASE_KEY_USAGE_VALUE = 1;
     /**
+     *
+     *
      * 
      * Refers to a certificate's Extended Key Usage extension, as described in
      * [RFC 5280
@@ -234,6 +279,8 @@ public enum KnownCertificateExtension
      */
     public static final int EXTENDED_KEY_USAGE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Refers to a certificate's Basic Constraints extension, as described in
      * [RFC 5280
@@ -245,6 +292,8 @@ public enum KnownCertificateExtension
      */
     public static final int CA_OPTIONS_VALUE = 3;
     /**
+     *
+     *
      * 
      * Refers to a certificate's Policy object identifiers, as described in
      * [RFC 5280
@@ -256,6 +305,8 @@ public enum KnownCertificateExtension
      */
     public static final int POLICY_IDS_VALUE = 4;
     /**
+     *
+     *
      * 
      * Refers to OCSP servers in a certificate's Authority Information Access
      * extension, as described in
@@ -268,7 +319,6 @@ public enum KnownCertificateExtension
      */
     public static final int AIA_OCSP_SERVERS_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -293,13 +343,20 @@ public static KnownCertificateExtension valueOf(int value) {
      */
     public static KnownCertificateExtension forNumber(int value) {
       switch (value) {
-        case 0: return KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED;
-        case 1: return BASE_KEY_USAGE;
-        case 2: return EXTENDED_KEY_USAGE;
-        case 3: return CA_OPTIONS;
-        case 4: return POLICY_IDS;
-        case 5: return AIA_OCSP_SERVERS;
-        default: return null;
+        case 0:
+          return KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED;
+        case 1:
+          return BASE_KEY_USAGE;
+        case 2:
+          return EXTENDED_KEY_USAGE;
+        case 3:
+          return CA_OPTIONS;
+        case 4:
+          return POLICY_IDS;
+        case 5:
+          return AIA_OCSP_SERVERS;
+        default:
+          return null;
       }
     }
 
@@ -307,29 +364,31 @@ public static KnownCertificateExtension forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        KnownCertificateExtension> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public KnownCertificateExtension findValueByNumber(int number) {
-              return KnownCertificateExtension.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public KnownCertificateExtension findValueByNumber(int number) {
+                return KnownCertificateExtension.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final KnownCertificateExtension[] VALUES = values();
@@ -337,8 +396,7 @@ public KnownCertificateExtension findValueByNumber(int number) {
     public static KnownCertificateExtension 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;
@@ -358,36 +416,65 @@ private KnownCertificateExtension(int value) {
   public static final int KNOWN_EXTENSIONS_FIELD_NUMBER = 1;
   private java.util.List knownExtensions_;
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-      java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension> knownExtensions_converter_ =
+          java.lang.Integer,
+          com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+              .KnownCertificateExtension>
+      knownExtensions_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>() {
-            public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension convert(java.lang.Integer from) {
+              java.lang.Integer,
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+                  .KnownCertificateExtension>() {
+            public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+                    .KnownCertificateExtension
+                convert(java.lang.Integer from) {
               @SuppressWarnings("deprecation")
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension result = com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension.valueOf(from);
-              return result == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension.UNRECOGNIZED : result;
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+                      .KnownCertificateExtension
+                  result =
+                      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+                          .KnownCertificateExtension.valueOf(from);
+              return result == null
+                  ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+                      .KnownCertificateExtension.UNRECOGNIZED
+                  : result;
             }
           };
   /**
+   *
+   *
    * 
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the knownExtensions. */ @java.lang.Override - public java.util.List getKnownExtensionsList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension> + getKnownExtensionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); + java.lang.Integer, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); } /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of knownExtensions. */ @java.lang.Override @@ -395,40 +482,56 @@ public int getKnownExtensionsCount() { return knownExtensions_.size(); } /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The knownExtensions at the given index. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index) { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension + getKnownExtensions(int index) { return knownExtensions_converter_.convert(knownExtensions_.get(index)); } /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for knownExtensions. */ @java.lang.Override - public java.util.List - getKnownExtensionsValueList() { + public java.util.List getKnownExtensionsValueList() { return knownExtensions_; } /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. */ @@ -436,71 +539,93 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Kn public int getKnownExtensionsValue(int index) { return knownExtensions_.get(index); } + private int knownExtensionsMemoizedSerializedSize; public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 2; private java.util.List additionalExtensions_; /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAdditionalExtensionsList() { + public java.util.List + getAdditionalExtensionsList() { return additionalExtensions_; } /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getAdditionalExtensionsOrBuilderList() { return additionalExtensions_; } /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAdditionalExtensionsCount() { return additionalExtensions_.size(); } /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(int index) { return additionalExtensions_.get(index); } /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExtensionsOrBuilder( @@ -509,6 +634,7 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExt } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -520,8 +646,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getKnownExtensionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -545,18 +670,19 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < knownExtensions_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(knownExtensions_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(knownExtensions_.get(i)); } size += dataSize; - if (!getKnownExtensionsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }knownExtensionsMemoizedSerializedSize = dataSize; + if (!getKnownExtensionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + knownExtensionsMemoizedSerializedSize = dataSize; } for (int i = 0; i < additionalExtensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, additionalExtensions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, additionalExtensions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -566,16 +692,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateExtensionConstraints)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other = (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) obj; + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other = + (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) obj; if (!knownExtensions_.equals(other.knownExtensions_)) return false; - if (!getAdditionalExtensionsList() - .equals(other.getAdditionalExtensionsList())) return false; + if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -601,96 +727,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints 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.security.privateca.v1.CertificateExtensionConstraints parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints 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.security.privateca.v1.CertificateExtensionConstraints + 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.security.privateca.v1.CertificateExtensionConstraints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a set of X.509 extensions that may be part of some certificate
    * issuance controls.
@@ -698,39 +833,42 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateExtensionConstraints}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateExtensionConstraints)
       com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.class,
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAdditionalExtensionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -746,19 +884,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints build() {
-      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result = buildPartial();
+      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -767,7 +908,8 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints bu
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result = new com.google.cloud.security.privateca.v1.CertificateExtensionConstraints(this);
+      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints result =
+          new com.google.cloud.security.privateca.v1.CertificateExtensionConstraints(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         knownExtensions_ = java.util.Collections.unmodifiableList(knownExtensions_);
@@ -791,46 +933,51 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints bu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateExtensionConstraints)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.CertificateExtensionConstraints other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+              .getDefaultInstance()) return this;
       if (!other.knownExtensions_.isEmpty()) {
         if (knownExtensions_.isEmpty()) {
           knownExtensions_ = other.knownExtensions_;
@@ -859,9 +1006,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateExten
             additionalExtensionsBuilder_ = null;
             additionalExtensions_ = other.additionalExtensions_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            additionalExtensionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAdditionalExtensionsFieldBuilder() : null;
+            additionalExtensionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAdditionalExtensionsFieldBuilder()
+                    : null;
           } else {
             additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
           }
@@ -886,7 +1034,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -895,10 +1045,11 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List knownExtensions_ =
-      java.util.Collections.emptyList();
+    private java.util.List knownExtensions_ = java.util.Collections.emptyList();
+
     private void ensureKnownExtensionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         knownExtensions_ = new java.util.ArrayList(knownExtensions_);
@@ -906,56 +1057,86 @@ private void ensureKnownExtensionsIsMutable() {
       }
     }
     /**
+     *
+     *
      * 
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the knownExtensions. */ - public java.util.List getKnownExtensionsList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension> + getKnownExtensionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); + java.lang.Integer, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension>(knownExtensions_, knownExtensions_converter_); } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of knownExtensions. */ public int getKnownExtensionsCount() { return knownExtensions_.size(); } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The knownExtensions at the given index. */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index) { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension + getKnownExtensions(int index) { return knownExtensions_converter_.convert(knownExtensions_.get(index)); } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The knownExtensions to set. * @return This builder for chaining. */ public Builder setKnownExtensions( - int index, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension value) { + int index, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension + value) { if (value == null) { throw new NullPointerException(); } @@ -965,16 +1146,24 @@ public Builder setKnownExtensions( return this; } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The knownExtensions to add. * @return This builder for chaining. */ - public Builder addKnownExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension value) { + public Builder addKnownExtensions( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension + value) { if (value == null) { throw new NullPointerException(); } @@ -984,31 +1173,47 @@ public Builder addKnownExtensions(com.google.cloud.security.privateca.v1.Certifi return this; } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The knownExtensions to add. * @return This builder for chaining. */ public Builder addAllKnownExtensions( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension> + values) { ensureKnownExtensionsIsMutable(); - for (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension value : values) { + for (com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension + value : values) { knownExtensions_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearKnownExtensions() { @@ -1018,25 +1223,34 @@ public Builder clearKnownExtensions() { return this; } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for knownExtensions. */ - public java.util.List - getKnownExtensionsValueList() { + public java.util.List getKnownExtensionsValueList() { return java.util.Collections.unmodifiableList(knownExtensions_); } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. */ @@ -1044,30 +1258,39 @@ public int getKnownExtensionsValue(int index) { return knownExtensions_.get(index); } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. * @return This builder for chaining. */ - public Builder setKnownExtensionsValue( - int index, int value) { + public Builder setKnownExtensionsValue(int index, int value) { ensureKnownExtensionsIsMutable(); knownExtensions_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for knownExtensions to add. * @return This builder for chaining. */ @@ -1078,17 +1301,21 @@ public Builder addKnownExtensionsValue(int value) { return this; } /** + * + * *
      * Optional. A set of named X.509 extensions. Will be combined with
      * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for knownExtensions to add. * @return This builder for chaining. */ - public Builder addAllKnownExtensionsValue( - java.lang.Iterable values) { + public Builder addAllKnownExtensionsValue(java.lang.Iterable values) { ensureKnownExtensionsIsMutable(); for (int value : values) { knownExtensions_.add(value); @@ -1098,27 +1325,38 @@ public Builder addAllKnownExtensionsValue( } private java.util.List additionalExtensions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAdditionalExtensionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - additionalExtensions_ = new java.util.ArrayList(additionalExtensions_); + additionalExtensions_ = + new java.util.ArrayList( + additionalExtensions_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> additionalExtensionsBuilder_; + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + additionalExtensionsBuilder_; /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAdditionalExtensionsList() { + public java.util.List + getAdditionalExtensionsList() { if (additionalExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalExtensions_); } else { @@ -1126,13 +1364,17 @@ public java.util.List getAdditi } } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAdditionalExtensionsCount() { if (additionalExtensionsBuilder_ == null) { @@ -1142,13 +1384,17 @@ public int getAdditionalExtensionsCount() { } } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -1158,13 +1404,17 @@ public com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(i } } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -1181,13 +1431,17 @@ public Builder setAdditionalExtensions( return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -1201,13 +1455,17 @@ public Builder setAdditionalExtensions( return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.ObjectId value) { if (additionalExtensionsBuilder_ == null) { @@ -1223,13 +1481,17 @@ public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.Ob return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -1246,13 +1508,17 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -1266,13 +1532,17 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -1286,20 +1556,23 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAdditionalExtensions( java.lang.Iterable values) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_); onChanged(); } else { additionalExtensionsBuilder_.addAllMessages(values); @@ -1307,13 +1580,17 @@ public Builder addAllAdditionalExtensions( return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAdditionalExtensions() { if (additionalExtensionsBuilder_ == null) { @@ -1326,13 +1603,17 @@ public Builder clearAdditionalExtensions() { return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -1345,45 +1626,58 @@ public Builder removeAdditionalExtensions(int index) { return this; } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.ObjectId.Builder getAdditionalExtensionsBuilder( int index) { return getAdditionalExtensionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExtensionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder + getAdditionalExtensionsOrBuilder(int index) { if (additionalExtensionsBuilder_ == null) { - return additionalExtensions_.get(index); } else { + return additionalExtensions_.get(index); + } else { return additionalExtensionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdditionalExtensionsOrBuilderList() { + public java.util.List + getAdditionalExtensionsOrBuilderList() { if (additionalExtensionsBuilder_ != null) { return additionalExtensionsBuilder_.getMessageOrBuilderList(); } else { @@ -1391,51 +1685,70 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExt } } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder addAdditionalExtensionsBuilder() { - return getAdditionalExtensionsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder + addAdditionalExtensionsBuilder() { + return getAdditionalExtensionsFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.ObjectId.Builder addAdditionalExtensionsBuilder( int index) { - return getAdditionalExtensionsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + return getAdditionalExtensionsFieldBuilder() + .addBuilder(index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
      * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
      * X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdditionalExtensionsBuilderList() { + public java.util.List + getAdditionalExtensionsBuilderList() { return getAdditionalExtensionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getAdditionalExtensionsFieldBuilder() { if (additionalExtensionsBuilder_ == null) { - additionalExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + additionalExtensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( additionalExtensions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1444,9 +1757,9 @@ public com.google.cloud.security.privateca.v1.ObjectId.Builder addAdditionalExte } return additionalExtensionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1456,30 +1769,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateExtensionConstraints) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateExtensionConstraints) - private static final com.google.cloud.security.privateca.v1.CertificateExtensionConstraints DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateExtensionConstraints(); } - public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateExtensionConstraints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateExtensionConstraints(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateExtensionConstraints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateExtensionConstraints(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1491,9 +1806,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java index 9801760e..44135a17 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateExtensionConstraintsOrBuilder.java @@ -1,116 +1,179 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateExtensionConstraintsOrBuilder extends +public interface CertificateExtensionConstraintsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateExtensionConstraints) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the knownExtensions. */ - java.util.List getKnownExtensionsList(); + java.util.List< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .KnownCertificateExtension> + getKnownExtensionsList(); /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of knownExtensions. */ int getKnownExtensionsCount(); /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The knownExtensions at the given index. */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension getKnownExtensions(int index); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension + getKnownExtensions(int index); /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for knownExtensions. */ - java.util.List - getKnownExtensionsValueList(); + java.util.List getKnownExtensionsValueList(); /** + * + * *
    * Optional. A set of named X.509 extensions. Will be combined with
    * [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension known_extensions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of knownExtensions at the given index. */ int getKnownExtensionsValue(int index); /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getAdditionalExtensionsList(); + java.util.List getAdditionalExtensionsList(); /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.ObjectId getAdditionalExtensions(int index); /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAdditionalExtensionsCount(); /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAdditionalExtensionsOrBuilderList(); /** + * + * *
    * Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions.
    * Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of
    * X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId additional_extensions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getAdditionalExtensionsOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java index 4cc5ea83..dbc2cd82 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraints.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Describes constraints on a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and
  * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].
@@ -11,30 +28,30 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateIdentityConstraints}
  */
-public final class CertificateIdentityConstraints extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateIdentityConstraints extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateIdentityConstraints)
     CertificateIdentityConstraintsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateIdentityConstraints.newBuilder() to construct.
-  private CertificateIdentityConstraints(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CertificateIdentityConstraints(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CertificateIdentityConstraints() {
-  }
+
+  private CertificateIdentityConstraints() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateIdentityConstraints();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateIdentityConstraints(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,36 +71,39 @@ private CertificateIdentityConstraints(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.type.Expr.Builder subBuilder = null;
-            if (celExpression_ != null) {
-              subBuilder = celExpression_.toBuilder();
+          case 10:
+            {
+              com.google.type.Expr.Builder subBuilder = null;
+              if (celExpression_ != null) {
+                subBuilder = celExpression_.toBuilder();
+              }
+              celExpression_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(celExpression_);
+                celExpression_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            celExpression_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(celExpression_);
-              celExpression_ = subBuilder.buildPartial();
+          case 16:
+            {
+              bitField0_ |= 0x00000001;
+              allowSubjectPassthrough_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 16: {
-            bitField0_ |= 0x00000001;
-            allowSubjectPassthrough_ = input.readBool();
-            break;
-          }
-          case 24: {
-            bitField0_ |= 0x00000002;
-            allowSubjectAltNamesPassthrough_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 24:
+            {
+              bitField0_ |= 0x00000002;
+              allowSubjectAltNamesPassthrough_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,30 +111,34 @@ private CertificateIdentityConstraints(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class,
+            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
   }
 
   private int bitField0_;
   public static final int CEL_EXPRESSION_FIELD_NUMBER = 1;
   private com.google.type.Expr celExpression_;
   /**
+   *
+   *
    * 
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -123,6 +147,7 @@ private CertificateIdentityConstraints(
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the celExpression field is set. */ @java.lang.Override @@ -130,6 +155,8 @@ public boolean hasCelExpression() { return celExpression_ != null; } /** + * + * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -138,6 +165,7 @@ public boolean hasCelExpression() {
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The celExpression. */ @java.lang.Override @@ -145,6 +173,8 @@ public com.google.type.Expr getCelExpression() { return celExpression_ == null ? com.google.type.Expr.getDefaultInstance() : celExpression_; } /** + * + * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -162,13 +192,17 @@ public com.google.type.ExprOrBuilder getCelExpressionOrBuilder() {
   public static final int ALLOW_SUBJECT_PASSTHROUGH_FIELD_NUMBER = 2;
   private boolean allowSubjectPassthrough_;
   /**
+   *
+   *
    * 
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the allowSubjectPassthrough field is set. */ @java.lang.Override @@ -176,13 +210,17 @@ public boolean hasAllowSubjectPassthrough() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowSubjectPassthrough. */ @java.lang.Override @@ -193,13 +231,18 @@ public boolean getAllowSubjectPassthrough() { public static final int ALLOW_SUBJECT_ALT_NAMES_PASSTHROUGH_FIELD_NUMBER = 3; private boolean allowSubjectAltNamesPassthrough_; /** + * + * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the allowSubjectAltNamesPassthrough field is set. */ @java.lang.Override @@ -207,13 +250,18 @@ public boolean hasAllowSubjectAltNamesPassthrough() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowSubjectAltNamesPassthrough. */ @java.lang.Override @@ -222,6 +270,7 @@ public boolean getAllowSubjectAltNamesPassthrough() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (celExpression_ != null) { output.writeMessage(1, getCelExpression()); } @@ -254,16 +302,15 @@ public int getSerializedSize() { size = 0; if (celExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCelExpression()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCelExpression()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowSubjectPassthrough_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowSubjectPassthrough_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowSubjectAltNamesPassthrough_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, allowSubjectAltNamesPassthrough_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,27 +320,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateIdentityConstraints)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other = (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) obj; + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other = + (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) obj; if (hasCelExpression() != other.hasCelExpression()) return false; if (hasCelExpression()) { - if (!getCelExpression() - .equals(other.getCelExpression())) return false; + if (!getCelExpression().equals(other.getCelExpression())) return false; } if (hasAllowSubjectPassthrough() != other.hasAllowSubjectPassthrough()) return false; if (hasAllowSubjectPassthrough()) { - if (getAllowSubjectPassthrough() - != other.getAllowSubjectPassthrough()) return false; + if (getAllowSubjectPassthrough() != other.getAllowSubjectPassthrough()) return false; } - if (hasAllowSubjectAltNamesPassthrough() != other.hasAllowSubjectAltNamesPassthrough()) return false; + if (hasAllowSubjectAltNamesPassthrough() != other.hasAllowSubjectAltNamesPassthrough()) + return false; if (hasAllowSubjectAltNamesPassthrough()) { - if (getAllowSubjectAltNamesPassthrough() - != other.getAllowSubjectAltNamesPassthrough()) return false; + if (getAllowSubjectAltNamesPassthrough() != other.getAllowSubjectAltNamesPassthrough()) + return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -312,13 +359,13 @@ public int hashCode() { } if (hasAllowSubjectPassthrough()) { hash = (37 * hash) + ALLOW_SUBJECT_PASSTHROUGH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowSubjectPassthrough()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowSubjectPassthrough()); } if (hasAllowSubjectAltNamesPassthrough()) { hash = (37 * hash) + ALLOW_SUBJECT_ALT_NAMES_PASSTHROUGH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowSubjectAltNamesPassthrough()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getAllowSubjectAltNamesPassthrough()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -326,96 +373,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints 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.security.privateca.v1.CertificateIdentityConstraints parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints 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.security.privateca.v1.CertificateIdentityConstraints + 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.security.privateca.v1.CertificateIdentityConstraints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes constraints on a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].
@@ -423,38 +479,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateIdentityConstraints}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateIdentityConstraints)
       com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.class,
+              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -472,14 +530,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -493,7 +553,8 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints bui
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateIdentityConstraints result = new com.google.cloud.security.privateca.v1.CertificateIdentityConstraints(this);
+      com.google.cloud.security.privateca.v1.CertificateIdentityConstraints result =
+          new com.google.cloud.security.privateca.v1.CertificateIdentityConstraints(this);
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (celExpressionBuilder_ == null) {
@@ -518,46 +579,51 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints bui
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateIdentityConstraints)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.CertificateIdentityConstraints other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
+              .getDefaultInstance()) return this;
       if (other.hasCelExpression()) {
         mergeCelExpression(other.getCelExpression());
       }
@@ -586,7 +652,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateIdentityConstraints)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -595,12 +663,16 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.type.Expr celExpression_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> celExpressionBuilder_;
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
+        celExpressionBuilder_;
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -609,12 +681,15 @@ public Builder mergeFrom(
      * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the celExpression field is set. */ public boolean hasCelExpression() { return celExpressionBuilder_ != null || celExpression_ != null; } /** + * + * *
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -623,6 +698,7 @@ public boolean hasCelExpression() {
      * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The celExpression. */ public com.google.type.Expr getCelExpression() { @@ -633,6 +709,8 @@ public com.google.type.Expr getCelExpression() { } } /** + * + * *
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -656,6 +734,8 @@ public Builder setCelExpression(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -665,8 +745,7 @@ public Builder setCelExpression(com.google.type.Expr value) {
      *
      * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setCelExpression(
-        com.google.type.Expr.Builder builderForValue) {
+    public Builder setCelExpression(com.google.type.Expr.Builder builderForValue) {
       if (celExpressionBuilder_ == null) {
         celExpression_ = builderForValue.build();
         onChanged();
@@ -677,6 +756,8 @@ public Builder setCelExpression(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -690,7 +771,7 @@ public Builder mergeCelExpression(com.google.type.Expr value) {
       if (celExpressionBuilder_ == null) {
         if (celExpression_ != null) {
           celExpression_ =
-            com.google.type.Expr.newBuilder(celExpression_).mergeFrom(value).buildPartial();
+              com.google.type.Expr.newBuilder(celExpression_).mergeFrom(value).buildPartial();
         } else {
           celExpression_ = value;
         }
@@ -702,6 +783,8 @@ public Builder mergeCelExpression(com.google.type.Expr value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -723,6 +806,8 @@ public Builder clearCelExpression() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -733,11 +818,13 @@ public Builder clearCelExpression() {
      * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     public com.google.type.Expr.Builder getCelExpressionBuilder() {
-      
+
       onChanged();
       return getCelExpressionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -751,11 +838,12 @@ public com.google.type.ExprOrBuilder getCelExpressionOrBuilder() {
       if (celExpressionBuilder_ != null) {
         return celExpressionBuilder_.getMessageOrBuilder();
       } else {
-        return celExpression_ == null ?
-            com.google.type.Expr.getDefaultInstance() : celExpression_;
+        return celExpression_ == null ? com.google.type.Expr.getDefaultInstance() : celExpression_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
      * and/or Subject Alternative Name before a certificate is signed.
@@ -766,28 +854,31 @@ public com.google.type.ExprOrBuilder getCelExpressionOrBuilder() {
      * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
+            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
         getCelExpressionFieldBuilder() {
       if (celExpressionBuilder_ == null) {
-        celExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
-                getCelExpression(),
-                getParentForChildren(),
-                isClean());
+        celExpressionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
+                getCelExpression(), getParentForChildren(), isClean());
         celExpression_ = null;
       }
       return celExpressionBuilder_;
     }
 
-    private boolean allowSubjectPassthrough_ ;
+    private boolean allowSubjectPassthrough_;
     /**
+     *
+     *
      * 
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the allowSubjectPassthrough field is set. */ @java.lang.Override @@ -795,13 +886,17 @@ public boolean hasAllowSubjectPassthrough() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowSubjectPassthrough. */ @java.lang.Override @@ -809,13 +904,17 @@ public boolean getAllowSubjectPassthrough() { return allowSubjectPassthrough_; } /** + * + * *
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The allowSubjectPassthrough to set. * @return This builder for chaining. */ @@ -826,13 +925,17 @@ public Builder setAllowSubjectPassthrough(boolean value) { return this; } /** + * + * *
      * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
      * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
      * will be discarded.
      * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAllowSubjectPassthrough() { @@ -842,15 +945,20 @@ public Builder clearAllowSubjectPassthrough() { return this; } - private boolean allowSubjectAltNamesPassthrough_ ; + private boolean allowSubjectAltNamesPassthrough_; /** + * + * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the allowSubjectAltNamesPassthrough field is set. */ @java.lang.Override @@ -858,13 +966,18 @@ public boolean hasAllowSubjectAltNamesPassthrough() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowSubjectAltNamesPassthrough. */ @java.lang.Override @@ -872,13 +985,18 @@ public boolean getAllowSubjectAltNamesPassthrough() { return allowSubjectAltNamesPassthrough_; } /** + * + * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The allowSubjectAltNamesPassthrough to set. * @return This builder for chaining. */ @@ -889,13 +1007,18 @@ public Builder setAllowSubjectAltNamesPassthrough(boolean value) { return this; } /** + * + * *
      * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
      * certificate request into the signed certificate. Otherwise, the requested
      * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
      * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAllowSubjectAltNamesPassthrough() { @@ -904,9 +1027,9 @@ public Builder clearAllowSubjectAltNamesPassthrough() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,30 +1039,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateIdentityConstraints) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateIdentityConstraints) - private static final com.google.cloud.security.privateca.v1.CertificateIdentityConstraints DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateIdentityConstraints(); } - public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateIdentityConstraints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateIdentityConstraints(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateIdentityConstraints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateIdentityConstraints(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,9 +1076,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java index fd6ca114..c517b250 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateIdentityConstraintsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateIdentityConstraintsOrBuilder extends +public interface CertificateIdentityConstraintsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateIdentityConstraints) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -16,10 +34,13 @@ public interface CertificateIdentityConstraintsOrBuilder extends
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the celExpression field is set. */ boolean hasCelExpression(); /** + * + * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -28,10 +49,13 @@ public interface CertificateIdentityConstraintsOrBuilder extends
    * 
* * .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The celExpression. */ com.google.type.Expr getCelExpression(); /** + * + * *
    * Optional. A CEL expression that may be used to validate the resolved X.509 Subject
    * and/or Subject Alternative Name before a certificate is signed.
@@ -44,47 +68,65 @@ public interface CertificateIdentityConstraintsOrBuilder extends
   com.google.type.ExprOrBuilder getCelExpressionOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the allowSubjectPassthrough field is set. */ boolean hasAllowSubjectPassthrough(); /** + * + * *
    * Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate
    * request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject]
    * will be discarded.
    * 
* - * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * optional bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowSubjectPassthrough. */ boolean getAllowSubjectPassthrough(); /** + * + * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the allowSubjectAltNamesPassthrough field is set. */ boolean hasAllowSubjectAltNamesPassthrough(); /** + * + * *
    * Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a
    * certificate request into the signed certificate. Otherwise, the requested
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
    * 
* - * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * optional bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowSubjectAltNamesPassthrough. */ boolean getAllowSubjectAltNamesPassthrough(); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java index 9fc8fd6e..72b0bd7d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateOrBuilder.java @@ -1,116 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateOrBuilder extends +public interface CertificateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.Certificate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return Whether the pemCsr field is set. */ boolean hasPemCsr(); /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pemCsr. */ java.lang.String getPemCsr(); /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString - getPemCsrBytes(); + com.google.protobuf.ByteString getPemCsrBytes(); /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ com.google.cloud.security.privateca.v1.CertificateConfig getConfig(); /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The issuerCertificateAuthority. */ java.lang.String getIssuerCertificateAuthority(); /** + * + * *
    * Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string issuer_certificate_authority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for issuerCertificateAuthority. */ - com.google.protobuf.ByteString - getIssuerCertificateAuthorityBytes(); + com.google.protobuf.ByteString getIssuerCertificateAuthorityBytes(); /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -118,11 +176,16 @@ public interface CertificateOrBuilder extends
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -130,11 +193,16 @@ public interface CertificateOrBuilder extends
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -142,11 +210,15 @@ public interface CertificateOrBuilder extends
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** + * + * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -156,11 +228,16 @@ public interface CertificateOrBuilder extends
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The certificateTemplate. */ java.lang.String getCertificateTemplate(); /** + * + * *
    * Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this
    * certificate, in the format
@@ -170,210 +247,295 @@ public interface CertificateOrBuilder extends
    * This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string certificate_template = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for certificateTemplate. */ - com.google.protobuf.ByteString - getCertificateTemplateBytes(); + com.google.protobuf.ByteString getCertificateTemplateBytes(); /** + * + * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for subjectMode. */ int getSubjectModeValue(); /** + * + * *
    * Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided.
    * If this is omitted, the `DEFAULT` subject mode will be used.
    * 
* - * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1.SubjectRequestMode subject_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The subjectMode. */ com.google.cloud.security.privateca.v1.SubjectRequestMode getSubjectMode(); /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revocationDetails field is set. */ boolean hasRevocationDetails(); /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revocationDetails. */ com.google.cloud.security.privateca.v1.Certificate.RevocationDetails getRevocationDetails(); /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.Certificate.RevocationDetails revocation_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder(); + com.google.cloud.security.privateca.v1.Certificate.RevocationDetailsOrBuilder + getRevocationDetailsOrBuilder(); /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCertificate. */ java.lang.String getPemCertificate(); /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCertificate. */ - com.google.protobuf.ByteString - getPemCertificateBytes(); + com.google.protobuf.ByteString getPemCertificateBytes(); /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the certificateDescription field is set. */ boolean hasCertificateDescription(); /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The certificateDescription. */ com.google.cloud.security.privateca.v1.CertificateDescription getCertificateDescription(); /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateDescription certificate_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateDescriptionOrBuilder + getCertificateDescriptionOrBuilder(); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCertificateChain. */ - java.util.List - getPemCertificateChainList(); + java.util.List getPemCertificateChainList(); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCertificateChain. */ int getPemCertificateChainCount(); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ java.lang.String getPemCertificateChain(int index); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - com.google.protobuf.ByteString - getPemCertificateChainBytes(int index); + com.google.protobuf.ByteString getPemCertificateChainBytes(int index); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -382,30 +544,31 @@ public interface CertificateOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -414,20 +577,21 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL]; */ + java.lang.String getLabelsOrThrow(java.lang.String key); - java.lang.String getLabelsOrThrow( - java.lang.String key); - - public com.google.cloud.security.privateca.v1.Certificate.CertificateConfigCase getCertificateConfigCase(); + public com.google.cloud.security.privateca.v1.Certificate.CertificateConfigCase + getCertificateConfigCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java index 39bdf8f2..c2a261b7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationList.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] corresponds to a signed X.509 certificate
  * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList}
  */
-public final class CertificateRevocationList extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateRevocationList extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateRevocationList)
     CertificateRevocationListOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateRevocationList.newBuilder() to construct.
   private CertificateRevocationList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateRevocationList() {
     name_ = "";
     revokedCertificates_ = java.util.Collections.emptyList();
@@ -32,16 +50,15 @@ private CertificateRevocationList() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateRevocationList();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateRevocationList(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,96 +78,112 @@ private CertificateRevocationList(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            sequenceNumber_ = input.readInt64();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              revokedCertificates_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            revokedCertificates_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pemCrl_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            accessUrl_ = s;
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
+          case 16:
+            {
+              sequenceNumber_ = input.readInt64();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                revokedCertificates_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1.CertificateRevocationList
+                            .RevokedCertificate>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              revokedCertificates_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateRevocationList
+                          .RevokedCertificate.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            state_ = rawValue;
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              pemCrl_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              accessUrl_ = s;
+              break;
             }
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 66:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            revisionId_ = s;
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              revisionId_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -158,8 +191,7 @@ private CertificateRevocationList(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         revokedCertificates_ = java.util.Collections.unmodifiableList(revokedCertificates_);
@@ -168,41 +200,46 @@ private CertificateRevocationList(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateRevocationList.class,
+            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The state of a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList], indicating if it is current.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1.CertificateRevocationList.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -211,6 +248,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is up to date.
      * 
@@ -219,6 +258,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is no longer current.
      * 
@@ -230,6 +271,8 @@ public enum State ; /** + * + * *
      * Not specified.
      * 
@@ -238,6 +281,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is up to date.
      * 
@@ -246,6 +291,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] is no longer current.
      * 
@@ -254,7 +301,6 @@ public enum State */ public static final int SUPERSEDED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -279,49 +325,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return SUPERSEDED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUPERSEDED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.CertificateRevocationList.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.CertificateRevocationList.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -338,87 +386,108 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.CertificateRevocationList.State) } - public interface RevokedCertificateOrBuilder extends + public interface RevokedCertificateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return The certificate. */ java.lang.String getCertificate(); /** + * + * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for certificate. */ - com.google.protobuf.ByteString - getCertificateBytes(); + com.google.protobuf.ByteString getCertificateBytes(); /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString - getHexSerialNumberBytes(); + com.google.protobuf.ByteString getHexSerialNumberBytes(); /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return The enum numeric value on the wire for revocationReason. */ int getRevocationReasonValue(); /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return The revocationReason. */ com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason(); } /** + * + * *
    * Describes a revoked [Certificate][google.cloud.security.privateca.v1.Certificate].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} */ - public static final class RevokedCertificate extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RevokedCertificate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) RevokedCertificateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevokedCertificate.newBuilder() to construct. private RevokedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RevokedCertificate() { certificate_ = ""; hexSerialNumber_ = ""; @@ -427,16 +496,15 @@ private RevokedCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RevokedCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RevokedCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -455,31 +523,34 @@ private RevokedCertificate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - certificate_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + certificate_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - hexSerialNumber_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + hexSerialNumber_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - revocationReason_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + revocationReason_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -487,35 +558,42 @@ private RevokedCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder.class); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .class, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private volatile java.lang.Object certificate_; /** + * + * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return The certificate. */ @java.lang.Override @@ -524,30 +602,30 @@ public java.lang.String getCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; } } /** + * + * *
      * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for certificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateBytes() { + public com.google.protobuf.ByteString getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificate_ = b; return b; } else { @@ -558,11 +636,14 @@ public java.lang.String getCertificate() { public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 2; private volatile java.lang.Object hexSerialNumber_; /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The hexSerialNumber. */ @java.lang.Override @@ -571,29 +652,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -604,31 +685,43 @@ public java.lang.String getHexSerialNumber() { public static final int REVOCATION_REASON_FIELD_NUMBER = 3; private int revocationReason_; /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override public int getRevocationReasonValue() { + @java.lang.Override + public int getRevocationReasonValue() { return revocationReason_; } /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return The revocationReason. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); - return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.RevocationReason result = + com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); + return result == null + ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -640,15 +733,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hexSerialNumber_); } - if (revocationReason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + if (revocationReason_ + != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(3, revocationReason_); } unknownFields.writeTo(output); @@ -666,9 +760,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hexSerialNumber_); } - if (revocationReason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, revocationReason_); + if (revocationReason_ + != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, revocationReason_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -678,17 +773,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate other = (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) obj; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate other = + (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) obj; - if (!getCertificate() - .equals(other.getCertificate())) return false; - if (!getHexSerialNumber() - .equals(other.getHexSerialNumber())) return false; + if (!getCertificate().equals(other.getCertificate())) return false; + if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false; if (revocationReason_ != other.revocationReason_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -712,88 +808,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate 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.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + 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.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -803,44 +925,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes a revoked [Certificate][google.cloud.security.privateca.v1.Certificate].
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code + * google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder.class); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .class, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -854,19 +985,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate build() { - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = buildPartial(); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + build() { + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -874,8 +1009,11 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedC } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate buildPartial() { - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate(this); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + buildPartial() { + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate result = + new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate( + this); result.certificate_ = certificate_; result.hexSerialNumber_ = hexSerialNumber_; result.revocationReason_ = revocationReason_; @@ -887,46 +1025,57 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.CertificateRevocationList.RevokedCertificate) { - return mergeFrom((com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate other) { - if (other == com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .getDefaultInstance()) return this; if (!other.getCertificate().isEmpty()) { certificate_ = other.certificate_; onChanged(); @@ -953,11 +1102,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate parsedMessage = null; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -969,19 +1121,21 @@ public Builder mergeFrom( private java.lang.Object certificate_ = ""; /** + * + * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return The certificate. */ public java.lang.String getCertificate() { java.lang.Object ref = certificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; @@ -990,21 +1144,22 @@ public java.lang.String getCertificate() { } } /** + * + * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for certificate. */ - public com.google.protobuf.ByteString - getCertificateBytes() { + public com.google.protobuf.ByteString getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificate_ = b; return b; } else { @@ -1012,57 +1167,64 @@ public java.lang.String getCertificate() { } } /** + * + * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @param value The certificate to set. * @return This builder for chaining. */ - public Builder setCertificate( - java.lang.String value) { + public Builder setCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificate_ = value; onChanged(); return this; } /** + * + * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearCertificate() { - + certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } /** + * + * *
        * The resource name for the [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
        * `projects/*/locations/*/caPools/*/certificates/*`.
        * 
* * string certificate = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for certificate to set. * @return This builder for chaining. */ - public Builder setCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificate_ = value; onChanged(); return this; @@ -1070,18 +1232,20 @@ public Builder setCertificateBytes( private java.lang.Object hexSerialNumber_ = ""; /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1090,20 +1254,21 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1111,54 +1276,61 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber( - java.lang.String value) { + public Builder setHexSerialNumber(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes( - com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1166,77 +1338,98 @@ public Builder setHexSerialNumberBytes( private int revocationReason_ = 0; /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override public int getRevocationReasonValue() { + @java.lang.Override + public int getRevocationReasonValue() { return revocationReason_; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @param value The enum numeric value on the wire for revocationReason to set. * @return This builder for chaining. */ public Builder setRevocationReasonValue(int value) { - + revocationReason_ = value; onChanged(); return this; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return The revocationReason. */ @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); - return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.RevocationReason result = + com.google.cloud.security.privateca.v1.RevocationReason.valueOf(revocationReason_); + return result == null + ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED + : result; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @param value The revocationReason to set. * @return This builder for chaining. */ - public Builder setRevocationReason(com.google.cloud.security.privateca.v1.RevocationReason value) { + public Builder setRevocationReason( + com.google.cloud.security.privateca.v1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationReason_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1.Certificate] was revoked.
        * 
* * .google.cloud.security.privateca.v1.RevocationReason revocation_reason = 3; + * * @return This builder for chaining. */ public Builder clearRevocationReason() { - + revocationReason_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1249,30 +1442,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate) - private static final com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate(); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokedCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokedCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokedCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokedCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,15 +1482,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + 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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -1301,6 +1501,7 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedC
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1309,14 +1510,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -1325,16 +1527,15 @@ 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 { @@ -1345,11 +1546,14 @@ public java.lang.String getName() { public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long sequenceNumber_; /** + * + * *
    * Output only. The CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sequenceNumber. */ @java.lang.Override @@ -1358,73 +1562,105 @@ public long getSequenceNumber() { } public static final int REVOKED_CERTIFICATES_FIELD_NUMBER = 3; - private java.util.List revokedCertificates_; + private java.util.List< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> + revokedCertificates_; /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getRevokedCertificatesList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> + getRevokedCertificatesList() { return revokedCertificates_; } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder> getRevokedCertificatesOrBuilderList() { return revokedCertificates_; } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getRevokedCertificatesCount() { return revokedCertificates_.size(); } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + getRevokedCertificates(int index) { return revokedCertificates_.get(index); } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder + getRevokedCertificatesOrBuilder(int index) { return revokedCertificates_.get(index); } public static final int PEM_CRL_FIELD_NUMBER = 4; private volatile java.lang.Object pemCrl_; /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCrl. */ @java.lang.Override @@ -1433,29 +1669,29 @@ public java.lang.String getPemCrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; } } /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCrlBytes() { + public com.google.protobuf.ByteString getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -1466,11 +1702,14 @@ public java.lang.String getPemCrl() { public static final int ACCESS_URL_FIELD_NUMBER = 5; private volatile java.lang.Object accessUrl_; /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The accessUrl. */ @java.lang.Override @@ -1479,29 +1718,29 @@ public java.lang.String getAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; } } /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for accessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessUrlBytes() { + public com.google.protobuf.ByteString getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -1512,38 +1751,57 @@ public java.lang.String getAccessUrl() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = + com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1551,11 +1809,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1563,11 +1825,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1577,11 +1842,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1589,11 +1858,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1601,11 +1874,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1615,6 +1891,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int REVISION_ID_FIELD_NUMBER = 9; private volatile java.lang.Object revisionId_; /** + * + * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -1622,6 +1900,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ @java.lang.Override @@ -1630,14 +1909,15 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -1645,16 +1925,15 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1663,24 +1942,23 @@ public java.lang.String getRevisionId() { } public static final int LABELS_FIELD_NUMBER = 10; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1689,28 +1967,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1718,11 +1998,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1730,16 +2011,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1747,12 +2028,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1760,6 +2040,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1771,8 +2052,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1788,7 +2068,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, accessUrl_); } - if (state_ != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, state_); } if (createTime_ != null) { @@ -1800,12 +2082,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, revisionId_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); unknownFields.writeTo(output); } @@ -1819,12 +2097,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sequenceNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sequenceNumber_); } for (int i = 0; i < revokedCertificates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, revokedCertificates_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, revokedCertificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pemCrl_); @@ -1832,30 +2109,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, accessUrl_); } - if (state_ != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.security.privateca.v1.CertificateRevocationList.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, revisionId_); } - 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__); + 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1865,38 +2141,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateRevocationList other = (com.google.cloud.security.privateca.v1.CertificateRevocationList) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSequenceNumber() - != other.getSequenceNumber()) return false; - if (!getRevokedCertificatesList() - .equals(other.getRevokedCertificatesList())) return false; - if (!getPemCrl() - .equals(other.getPemCrl())) return false; - if (!getAccessUrl() - .equals(other.getAccessUrl())) return false; + com.google.cloud.security.privateca.v1.CertificateRevocationList other = + (com.google.cloud.security.privateca.v1.CertificateRevocationList) obj; + + if (!getName().equals(other.getName())) return false; + if (getSequenceNumber() != other.getSequenceNumber()) return false; + if (!getRevokedCertificatesList().equals(other.getRevokedCertificatesList())) return false; + if (!getPemCrl().equals(other.getPemCrl())) return false; + if (!getAccessUrl().equals(other.getAccessUrl())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getRevisionId() - .equals(other.getRevisionId())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1911,8 +2179,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequenceNumber()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSequenceNumber()); if (getRevokedCertificatesCount() > 0) { hash = (37 * hash) + REVOKED_CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getRevokedCertificatesList().hashCode(); @@ -1943,96 +2210,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateRevocationList 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.security.privateca.v1.CertificateRevocationList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateRevocationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateRevocationList prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateRevocationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] corresponds to a signed X.509 certificate
    * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -2041,43 +2316,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateRevocationList}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateRevocationList)
       com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_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.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateRevocationList.class,
+              com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateRevocationList.newBuilder()
@@ -2085,17 +2360,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRevokedCertificatesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2134,13 +2409,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CertificateRevocationList getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.CertificateRevocationList
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance();
     }
 
@@ -2155,7 +2431,8 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateRevocationList buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateRevocationList result = new com.google.cloud.security.privateca.v1.CertificateRevocationList(this);
+      com.google.cloud.security.privateca.v1.CertificateRevocationList result =
+          new com.google.cloud.security.privateca.v1.CertificateRevocationList(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.sequenceNumber_ = sequenceNumber_;
@@ -2192,46 +2469,50 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateRevocationList) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateRevocationList)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateRevocationList) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateRevocationList other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.CertificateRevocationList other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2257,9 +2538,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateRevoc
             revokedCertificatesBuilder_ = null;
             revokedCertificates_ = other.revokedCertificates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            revokedCertificatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRevokedCertificatesFieldBuilder() : null;
+            revokedCertificatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRevokedCertificatesFieldBuilder()
+                    : null;
           } else {
             revokedCertificatesBuilder_.addAllMessages(other.revokedCertificates_);
           }
@@ -2286,8 +2568,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateRevoc
         revisionId_ = other.revisionId_;
         onChanged();
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -2307,7 +2588,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateRevocationList) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateRevocationList)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2316,10 +2599,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2328,13 +2614,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; @@ -2343,6 +2629,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2351,15 +2639,14 @@ 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 { @@ -2367,6 +2654,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2375,20 +2664,22 @@ public java.lang.String getName() {
      * 
* * 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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2397,15 +2688,18 @@ public Builder setName(
      * 
* * 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 [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
      * the format
@@ -2414,28 +2708,31 @@ 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; } - private long sequenceNumber_ ; + private long sequenceNumber_; /** + * + * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sequenceNumber. */ @java.lang.Override @@ -2443,55 +2740,77 @@ public long getSequenceNumber() { return sequenceNumber_; } /** + * + * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { - + sequenceNumber_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSequenceNumber() { - + sequenceNumber_ = 0L; onChanged(); return this; } - private java.util.List revokedCertificates_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> + revokedCertificates_ = java.util.Collections.emptyList(); + private void ensureRevokedCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - revokedCertificates_ = new java.util.ArrayList(revokedCertificates_); + revokedCertificates_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate>(revokedCertificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder> revokedCertificatesBuilder_; + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder> + revokedCertificatesBuilder_; /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getRevokedCertificatesList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> + getRevokedCertificatesList() { if (revokedCertificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(revokedCertificates_); } else { @@ -2499,11 +2818,15 @@ public java.util.List * Output only. The revoked serial numbers that appear in pem_crl. *
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getRevokedCertificatesCount() { if (revokedCertificatesBuilder_ == null) { @@ -2513,13 +2836,18 @@ public int getRevokedCertificatesCount() { } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + getRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { return revokedCertificates_.get(index); } else { @@ -2527,14 +2855,19 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedC } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevokedCertificates( - int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { + int index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2548,14 +2881,20 @@ public Builder setRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevokedCertificates( - int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder + builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.set(index, builderForValue.build()); @@ -2566,13 +2905,18 @@ public Builder setRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addRevokedCertificates(com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { + public Builder addRevokedCertificates( + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2586,14 +2930,19 @@ public Builder addRevokedCertificates(com.google.cloud.security.privateca.v1.Cer return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRevokedCertificates( - int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { + int index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2607,14 +2956,19 @@ public Builder addRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRevokedCertificates( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder + builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(builderForValue.build()); @@ -2625,14 +2979,20 @@ public Builder addRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRevokedCertificates( - int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder + builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(index, builderForValue.build()); @@ -2643,18 +3003,25 @@ public Builder addRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllRevokedCertificates( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificate> + values) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, revokedCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revokedCertificates_); onChanged(); } else { revokedCertificatesBuilder_.addAllMessages(values); @@ -2662,11 +3029,15 @@ public Builder addAllRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevokedCertificates() { if (revokedCertificatesBuilder_ == null) { @@ -2679,11 +3050,15 @@ public Builder clearRevokedCertificates() { return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { @@ -2696,39 +3071,57 @@ public Builder removeRevokedCertificates(int index) { return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder getRevokedCertificatesBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder + getRevokedCertificatesBuilder(int index) { return getRevokedCertificatesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder + getRevokedCertificatesOrBuilder(int index) { if (revokedCertificatesBuilder_ == null) { - return revokedCertificates_.get(index); } else { + return revokedCertificates_.get(index); + } else { return revokedCertificatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getRevokedCertificatesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder> + getRevokedCertificatesOrBuilderList() { if (revokedCertificatesBuilder_ != null) { return revokedCertificatesBuilder_.getMessageOrBuilderList(); } else { @@ -2736,45 +3129,77 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedC } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder() { - return getRevokedCertificatesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder + addRevokedCertificatesBuilder() { + return getRevokedCertificatesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .getDefaultInstance()); } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder( - int index) { - return getRevokedCertificatesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder + addRevokedCertificatesBuilder(int index) { + return getRevokedCertificatesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .getDefaultInstance()); } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getRevokedCertificatesBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder> + getRevokedCertificatesBuilderList() { return getRevokedCertificatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder> getRevokedCertificatesFieldBuilder() { if (revokedCertificatesBuilder_ == null) { - revokedCertificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder>( + revokedCertificatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate, + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + .Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder>( revokedCertificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2786,18 +3211,20 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedC private java.lang.Object pemCrl_ = ""; /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCrl. */ public java.lang.String getPemCrl() { java.lang.Object ref = pemCrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; @@ -2806,20 +3233,21 @@ public java.lang.String getPemCrl() { } } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCrl. */ - public com.google.protobuf.ByteString - getPemCrlBytes() { + public com.google.protobuf.ByteString getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -2827,54 +3255,61 @@ public java.lang.String getPemCrl() { } } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrl( - java.lang.String value) { + public Builder setPemCrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPemCrl() { - + pemCrl_ = getDefaultInstance().getPemCrl(); onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrlBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCrl_ = value; onChanged(); return this; @@ -2882,18 +3317,20 @@ public Builder setPemCrlBytes( private java.lang.Object accessUrl_ = ""; /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The accessUrl. */ public java.lang.String getAccessUrl() { java.lang.Object ref = accessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; @@ -2902,20 +3339,21 @@ public java.lang.String getAccessUrl() { } } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for accessUrl. */ - public com.google.protobuf.ByteString - getAccessUrlBytes() { + public com.google.protobuf.ByteString getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -2923,54 +3361,61 @@ public java.lang.String getAccessUrl() { } } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrl( - java.lang.String value) { + public Builder setAccessUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accessUrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAccessUrl() { - + accessUrl_ = getDefaultInstance().getAccessUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setAccessUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessUrl_ = value; onChanged(); return this; @@ -2978,73 +3423,103 @@ public Builder setAccessUrlBytes( private int state_ = 0; /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.CertificateRevocationList.State result = + com.google.cloud.security.privateca.v1.CertificateRevocationList.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1.CertificateRevocationList.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.security.privateca.v1.CertificateRevocationList.State value) { + public Builder setState( + com.google.cloud.security.privateca.v1.CertificateRevocationList.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3052,39 +3527,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3100,14 +3594,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3118,17 +3615,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3140,11 +3641,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3158,48 +3663,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3207,39 +3728,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3255,14 +3795,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3273,17 +3816,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3295,11 +3842,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3313,48 +3864,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3362,6 +3929,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object revisionId_ = ""; /** + * + * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3369,13 +3938,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -3384,6 +3953,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3391,15 +3962,14 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -3407,6 +3977,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3414,20 +3986,22 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId( - java.lang.String value) { + public Builder setRevisionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revisionId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3435,15 +4009,18 @@ public Builder setRevisionId(
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevisionId() { - + revisionId_ = getDefaultInstance().getRevisionId(); onChanged(); return this; } /** + * + * *
      * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
      * committed whenever a new CRL is published. The format is an 8-character
@@ -3451,37 +4028,36 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3493,28 +4069,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3522,11 +4100,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3534,16 +4113,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3551,12 +4131,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -3564,69 +4143,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3636,30 +4212,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateRevocationList) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateRevocationList) - private static final com.google.cloud.security.privateca.v1.CertificateRevocationList DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CertificateRevocationList + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateRevocationList(); } - public static com.google.cloud.security.privateca.v1.CertificateRevocationList getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CertificateRevocationList + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateRevocationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateRevocationList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateRevocationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateRevocationList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3671,9 +4249,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CertificateRevocationList + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java index e40ff16f..129997d5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateRevocationListOrBuilder extends +public interface CertificateRevocationListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateRevocationList) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -16,10 +34,13 @@ public interface CertificateRevocationListOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in
    * the format
@@ -28,179 +49,251 @@ public interface CertificateRevocationListOrBuilder extends
    * 
* * 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 CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sequenceNumber. */ long getSequenceNumber(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate> getRevokedCertificatesList(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate + getRevokedCertificates(int index); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getRevokedCertificatesCount(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.security.privateca.v1.CertificateRevocationList + .RevokedCertificateOrBuilder> getRevokedCertificatesOrBuilderList(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificateOrBuilder + getRevokedCertificatesOrBuilder(int index); /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCrl. */ java.lang.String getPemCrl(); /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCrl. */ - com.google.protobuf.ByteString - getPemCrlBytes(); + com.google.protobuf.ByteString getPemCrlBytes(); /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The accessUrl. */ java.lang.String getAccessUrl(); /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for accessUrl. */ - com.google.protobuf.ByteString - getAccessUrlBytes(); + com.google.protobuf.ByteString getAccessUrlBytes(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.security.privateca.v1.CertificateRevocationList.State getState(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -208,10 +301,13 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertific
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ java.lang.String getRevisionId(); /** + * + * *
    * Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is
    * committed whenever a new CRL is published. The format is an 8-character
@@ -219,12 +315,14 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertific
    * 
* * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString - getRevisionIdBytes(); + com.google.protobuf.ByteString getRevisionIdBytes(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -233,30 +331,31 @@ com.google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertific */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -265,18 +364,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java index c0cc42e3..166da6c2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] refers to a managed template for certificate
  * issuance.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CertificateTemplate}
  */
-public final class CertificateTemplate extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateTemplate extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateTemplate)
     CertificateTemplateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateTemplate.newBuilder() to construct.
   private CertificateTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateTemplate() {
     name_ = "";
     description_ = "";
@@ -27,16 +45,15 @@ private CertificateTemplate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateTemplate();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateTemplate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,103 +73,125 @@ private CertificateTemplate(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
-            if (predefinedValues_ != null) {
-              subBuilder = predefinedValues_.toBuilder();
-            }
-            predefinedValues_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(predefinedValues_);
-              predefinedValues_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder subBuilder = null;
-            if (identityConstraints_ != null) {
-              subBuilder = identityConstraints_.toBuilder();
+              name_ = s;
+              break;
             }
-            identityConstraints_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(identityConstraints_);
-              identityConstraints_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1.X509Parameters.Builder subBuilder = null;
+              if (predefinedValues_ != null) {
+                subBuilder = predefinedValues_.toBuilder();
+              }
+              predefinedValues_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.X509Parameters.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(predefinedValues_);
+                predefinedValues_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 34: {
-            com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder subBuilder = null;
-            if (passthroughExtensions_ != null) {
-              subBuilder = passthroughExtensions_.toBuilder();
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder
+                  subBuilder = null;
+              if (identityConstraints_ != null) {
+                subBuilder = identityConstraints_.toBuilder();
+              }
+              identityConstraints_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateIdentityConstraints
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(identityConstraints_);
+                identityConstraints_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            passthroughExtensions_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(passthroughExtensions_);
-              passthroughExtensions_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder
+                  subBuilder = null;
+              if (passthroughExtensions_ != null) {
+                subBuilder = passthroughExtensions_.toBuilder();
+              }
+              passthroughExtensions_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateExtensionConstraints
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(passthroughExtensions_);
+                passthroughExtensions_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 50: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 58:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 66:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-
-            break;
-          }
-          case 66: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -160,47 +199,53 @@ private CertificateTemplate(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 8:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CertificateTemplate.class, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
+            com.google.cloud.security.privateca.v1.CertificateTemplate.class,
+            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -209,30 +254,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -243,6 +290,8 @@ public java.lang.String getName() { public static final int PREDEFINED_VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters predefinedValues_; /** + * + * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -253,7 +302,10 @@ public java.lang.String getName() {
    * properties, the certificate issuance request will fail.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the predefinedValues field is set. */ @java.lang.Override @@ -261,6 +313,8 @@ public boolean hasPredefinedValues() { return predefinedValues_ != null; } /** + * + * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -271,14 +325,21 @@ public boolean hasPredefinedValues() {
    * properties, the certificate issuance request will fail.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The predefinedValues. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues() { - return predefinedValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : predefinedValues_; + return predefinedValues_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : predefinedValues_; } /** + * + * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -289,23 +350,32 @@ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues
    * properties, the certificate issuance request will fail.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefinedValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder + getPredefinedValuesOrBuilder() { return getPredefinedValues(); } public static final int IDENTITY_CONSTRAINTS_FIELD_NUMBER = 3; - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + identityConstraints_; /** + * + * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConstraints field is set. */ @java.lang.Override @@ -313,36 +383,52 @@ public boolean hasIdentityConstraints() { return identityConstraints_ != null; } /** + * + * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConstraints. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { - return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + getIdentityConstraints() { + return identityConstraints_ == null + ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() + : identityConstraints_; } /** + * + * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder + getIdentityConstraintsOrBuilder() { return getIdentityConstraints(); } public static final int PASSTHROUGH_EXTENSIONS_FIELD_NUMBER = 4; - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + passthroughExtensions_; /** + * + * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -356,7 +442,10 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBu
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the passthroughExtensions field is set. */ @java.lang.Override @@ -364,6 +453,8 @@ public boolean hasPassthroughExtensions() { return passthroughExtensions_ != null; } /** + * + * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -377,14 +468,23 @@ public boolean hasPassthroughExtensions() {
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The passthroughExtensions. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { - return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getPassthroughExtensions() { + return passthroughExtensions_ == null + ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .getDefaultInstance() + : passthroughExtensions_; } /** + * + * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -398,21 +498,27 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints ge
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder + getPassthroughExtensionsOrBuilder() { return getPassthroughExtensions(); } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** + * + * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -421,29 +527,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -454,11 +560,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -466,11 +576,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -478,11 +592,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -492,11 +609,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -504,11 +625,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -516,11 +641,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -528,24 +656,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -554,28 +681,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -583,11 +712,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -595,16 +725,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -612,12 +742,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -625,6 +754,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,8 +766,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -659,12 +788,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); unknownFields.writeTo(output); } @@ -678,37 +803,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (predefinedValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPredefinedValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPredefinedValues()); } if (identityConstraints_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getIdentityConstraints()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIdentityConstraints()); } if (passthroughExtensions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPassthroughExtensions()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPassthroughExtensions()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -718,44 +839,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.security.privateca.v1.CertificateTemplate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CertificateTemplate other = (com.google.cloud.security.privateca.v1.CertificateTemplate) obj; + com.google.cloud.security.privateca.v1.CertificateTemplate other = + (com.google.cloud.security.privateca.v1.CertificateTemplate) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasPredefinedValues() != other.hasPredefinedValues()) return false; if (hasPredefinedValues()) { - if (!getPredefinedValues() - .equals(other.getPredefinedValues())) return false; + if (!getPredefinedValues().equals(other.getPredefinedValues())) return false; } if (hasIdentityConstraints() != other.hasIdentityConstraints()) return false; if (hasIdentityConstraints()) { - if (!getIdentityConstraints() - .equals(other.getIdentityConstraints())) return false; + if (!getIdentityConstraints().equals(other.getIdentityConstraints())) return false; } if (hasPassthroughExtensions() != other.hasPassthroughExtensions()) return false; if (hasPassthroughExtensions()) { - if (!getPassthroughExtensions() - .equals(other.getPassthroughExtensions())) return false; + if (!getPassthroughExtensions().equals(other.getPassthroughExtensions())) return false; } - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -801,96 +915,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CertificateTemplate 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.security.privateca.v1.CertificateTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CertificateTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CertificateTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CertificateTemplate prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CertificateTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] refers to a managed template for certificate
    * issuance.
@@ -898,43 +1020,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CertificateTemplate}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateTemplate)
       com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 8:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 8:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CertificateTemplate.class, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
+              com.google.cloud.security.privateca.v1.CertificateTemplate.class,
+              com.google.cloud.security.privateca.v1.CertificateTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder()
@@ -942,16 +1064,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -994,9 +1115,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -1015,7 +1136,8 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CertificateTemplate buildPartial() {
-      com.google.cloud.security.privateca.v1.CertificateTemplate result = new com.google.cloud.security.privateca.v1.CertificateTemplate(this);
+      com.google.cloud.security.privateca.v1.CertificateTemplate result =
+          new com.google.cloud.security.privateca.v1.CertificateTemplate(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (predefinedValuesBuilder_ == null) {
@@ -1054,38 +1176,39 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CertificateTemplate) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateTemplate)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CertificateTemplate) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1093,7 +1216,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTemplate other) {
-      if (other == com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1117,8 +1241,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTempl
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -1138,7 +1261,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CertificateTemplate) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CertificateTemplate) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1147,23 +1271,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -1172,21 +1301,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -1194,57 +1326,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** + * + * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -1252,8 +1397,13 @@ public Builder setNameBytes( private com.google.cloud.security.privateca.v1.X509Parameters predefinedValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> predefinedValuesBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + predefinedValuesBuilder_; /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1264,13 +1414,18 @@ public Builder setNameBytes(
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the predefinedValues field is set. */ public boolean hasPredefinedValues() { return predefinedValuesBuilder_ != null || predefinedValues_ != null; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1281,17 +1436,24 @@ public boolean hasPredefinedValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The predefinedValues. */ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues() { if (predefinedValuesBuilder_ == null) { - return predefinedValues_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : predefinedValues_; + return predefinedValues_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : predefinedValues_; } else { return predefinedValuesBuilder_.getMessage(); } } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1302,9 +1464,12 @@ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPredefinedValues(com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder setPredefinedValues( + com.google.cloud.security.privateca.v1.X509Parameters value) { if (predefinedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1318,6 +1483,8 @@ public Builder setPredefinedValues(com.google.cloud.security.privateca.v1.X509Pa return this; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1328,7 +1495,9 @@ public Builder setPredefinedValues(com.google.cloud.security.privateca.v1.X509Pa
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPredefinedValues( com.google.cloud.security.privateca.v1.X509Parameters.Builder builderForValue) { @@ -1342,6 +1511,8 @@ public Builder setPredefinedValues( return this; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1352,13 +1523,18 @@ public Builder setPredefinedValues(
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePredefinedValues(com.google.cloud.security.privateca.v1.X509Parameters value) { + public Builder mergePredefinedValues( + com.google.cloud.security.privateca.v1.X509Parameters value) { if (predefinedValuesBuilder_ == null) { if (predefinedValues_ != null) { predefinedValues_ = - com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(predefinedValues_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.newBuilder(predefinedValues_) + .mergeFrom(value) + .buildPartial(); } else { predefinedValues_ = value; } @@ -1370,6 +1546,8 @@ public Builder mergePredefinedValues(com.google.cloud.security.privateca.v1.X509 return this; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1380,7 +1558,9 @@ public Builder mergePredefinedValues(com.google.cloud.security.privateca.v1.X509
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPredefinedValues() { if (predefinedValuesBuilder_ == null) { @@ -1394,6 +1574,8 @@ public Builder clearPredefinedValues() { return this; } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1404,14 +1586,19 @@ public Builder clearPredefinedValues() {
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Parameters.Builder getPredefinedValuesBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.Builder + getPredefinedValuesBuilder() { + onChanged(); return getPredefinedValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1422,17 +1609,23 @@ public com.google.cloud.security.privateca.v1.X509Parameters.Builder getPredefin
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefinedValuesOrBuilder() { + public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder + getPredefinedValuesOrBuilder() { if (predefinedValuesBuilder_ != null) { return predefinedValuesBuilder_.getMessageOrBuilder(); } else { - return predefinedValues_ == null ? - com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() : predefinedValues_; + return predefinedValues_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance() + : predefinedValues_; } } /** + * + * *
      * Optional. A set of X.509 values that will be applied to all issued certificates that
      * use this template. If the certificate request includes conflicting values
@@ -1443,65 +1636,93 @@ public com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefi
      * properties, the certificate issuance request will fail.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder> getPredefinedValuesFieldBuilder() { if (predefinedValuesBuilder_ == null) { - predefinedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters, com.google.cloud.security.privateca.v1.X509Parameters.Builder, com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( - getPredefinedValues(), - getParentForChildren(), - isClean()); + predefinedValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters, + com.google.cloud.security.privateca.v1.X509Parameters.Builder, + com.google.cloud.security.privateca.v1.X509ParametersOrBuilder>( + getPredefinedValues(), getParentForChildren(), isClean()); predefinedValues_ = null; } return predefinedValuesBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints identityConstraints_; + private com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + identityConstraints_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> identityConstraintsBuilder_; + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> + identityConstraintsBuilder_; /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConstraints field is set. */ public boolean hasIdentityConstraints() { return identityConstraintsBuilder_ != null || identityConstraints_ != null; } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConstraints. */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + getIdentityConstraints() { if (identityConstraintsBuilder_ == null) { - return identityConstraints_ == null ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; + return identityConstraints_ == null + ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + .getDefaultInstance() + : identityConstraints_; } else { return identityConstraintsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder setIdentityConstraints( + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1515,16 +1736,21 @@ public Builder setIdentityConstraints(com.google.cloud.security.privateca.v1.Cer return this; } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdentityConstraints( - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder + builderForValue) { if (identityConstraintsBuilder_ == null) { identityConstraints_ = builderForValue.build(); onChanged(); @@ -1535,19 +1761,27 @@ public Builder setIdentityConstraints( return this; } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { + public Builder mergeIdentityConstraints( + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { if (identityConstraints_ != null) { identityConstraints_ = - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder(identityConstraints_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.newBuilder( + identityConstraints_) + .mergeFrom(value) + .buildPartial(); } else { identityConstraints_ = value; } @@ -1559,13 +1793,17 @@ public Builder mergeIdentityConstraints(com.google.cloud.security.privateca.v1.C return this; } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdentityConstraints() { if (identityConstraintsBuilder_ == null) { @@ -1579,63 +1817,88 @@ public Builder clearIdentityConstraints() { return this; } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder getIdentityConstraintsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder + getIdentityConstraintsBuilder() { + onChanged(); return getIdentityConstraintsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder + getIdentityConstraintsOrBuilder() { if (identityConstraintsBuilder_ != null) { return identityConstraintsBuilder_.getMessageOrBuilder(); } else { - return identityConstraints_ == null ? - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.getDefaultInstance() : identityConstraints_; + return identityConstraints_ == null + ? com.google.cloud.security.privateca.v1.CertificateIdentityConstraints + .getDefaultInstance() + : identityConstraints_; } } /** + * + * *
      * Optional. Describes constraints on identities that may be appear in
      * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
      * then this template will not add restrictions on a certificate's identity.
      * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder> getIdentityConstraintsFieldBuilder() { if (identityConstraintsBuilder_ == null) { - identityConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( - getIdentityConstraints(), - getParentForChildren(), - isClean()); + identityConstraintsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder>( + getIdentityConstraints(), getParentForChildren(), isClean()); identityConstraints_ = null; } return identityConstraintsBuilder_; } - private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints passthroughExtensions_; + private com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + passthroughExtensions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> passthroughExtensionsBuilder_; + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> + passthroughExtensionsBuilder_; /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1649,13 +1912,18 @@ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBu
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the passthroughExtensions field is set. */ public boolean hasPassthroughExtensions() { return passthroughExtensionsBuilder_ != null || passthroughExtensions_ != null; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1669,17 +1937,26 @@ public boolean hasPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The passthroughExtensions. */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + getPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { - return passthroughExtensions_ == null ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; + return passthroughExtensions_ == null + ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .getDefaultInstance() + : passthroughExtensions_; } else { return passthroughExtensionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1693,9 +1970,12 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints ge
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder setPassthroughExtensions( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1709,6 +1989,8 @@ public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.C return this; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1722,10 +2004,13 @@ public Builder setPassthroughExtensions(com.google.cloud.security.privateca.v1.C
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPassthroughExtensions( - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder builderForValue) { + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder + builderForValue) { if (passthroughExtensionsBuilder_ == null) { passthroughExtensions_ = builderForValue.build(); onChanged(); @@ -1736,6 +2021,8 @@ public Builder setPassthroughExtensions( return this; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1749,13 +2036,19 @@ public Builder setPassthroughExtensions(
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { + public Builder mergePassthroughExtensions( + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { if (passthroughExtensions_ != null) { passthroughExtensions_ = - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder(passthroughExtensions_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.newBuilder( + passthroughExtensions_) + .mergeFrom(value) + .buildPartial(); } else { passthroughExtensions_ = value; } @@ -1767,6 +2060,8 @@ public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1 return this; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1780,7 +2075,9 @@ public Builder mergePassthroughExtensions(com.google.cloud.security.privateca.v1
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPassthroughExtensions() { if (passthroughExtensionsBuilder_ == null) { @@ -1794,6 +2091,8 @@ public Builder clearPassthroughExtensions() { return this; } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1807,14 +2106,19 @@ public Builder clearPassthroughExtensions() {
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder getPassthroughExtensionsBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder + getPassthroughExtensionsBuilder() { + onChanged(); return getPassthroughExtensionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1828,17 +2132,24 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Bu
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder + getPassthroughExtensionsOrBuilder() { if (passthroughExtensionsBuilder_ != null) { return passthroughExtensionsBuilder_.getMessageOrBuilder(); } else { - return passthroughExtensions_ == null ? - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.getDefaultInstance() : passthroughExtensions_; + return passthroughExtensions_ == null + ? com.google.cloud.security.privateca.v1.CertificateExtensionConstraints + .getDefaultInstance() + : passthroughExtensions_; } } /** + * + * *
      * Optional. Describes the set of X.509 extensions that may appear in a
      * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -1852,17 +2163,22 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrB
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
      * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder> getPassthroughExtensionsFieldBuilder() { if (passthroughExtensionsBuilder_ == null) { - passthroughExtensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( - getPassthroughExtensions(), - getParentForChildren(), - isClean()); + passthroughExtensionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder, + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder>( + getPassthroughExtensions(), getParentForChildren(), isClean()); passthroughExtensions_ = null; } return passthroughExtensionsBuilder_; @@ -1870,18 +2186,20 @@ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrB private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1890,20 +2208,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1911,54 +2230,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A human-readable description of scenarios this template is intended for.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1966,39 +2292,58 @@ public Builder setDescriptionBytes( 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 [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2014,14 +2359,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2032,17 +2380,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2054,11 +2406,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2072,48 +2428,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2121,39 +2493,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2169,14 +2560,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2187,17 +2581,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2209,11 +2607,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2227,69 +2629,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2301,28 +2718,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -2330,11 +2749,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -2342,16 +2762,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -2359,12 +2780,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -2372,69 +2792,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2444,12 +2861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CertificateTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateTemplate) private static final com.google.cloud.security.privateca.v1.CertificateTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateTemplate(); } @@ -2458,16 +2875,16 @@ public static com.google.cloud.security.privateca.v1.CertificateTemplate getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateTemplate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2482,6 +2899,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CertificateTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java index 555cad86..f2787079 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface CertificateTemplateOrBuilder extends +public interface CertificateTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -40,11 +67,16 @@ public interface CertificateTemplateOrBuilder extends
    * properties, the certificate issuance request will fail.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the predefinedValues field is set. */ boolean hasPredefinedValues(); /** + * + * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -55,11 +87,16 @@ public interface CertificateTemplateOrBuilder extends
    * properties, the certificate issuance request will fail.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The predefinedValues. */ com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues(); /** + * + * *
    * Optional. A set of X.509 values that will be applied to all issued certificates that
    * use this template. If the certificate request includes conflicting values
@@ -70,44 +107,63 @@ public interface CertificateTemplateOrBuilder extends
    * properties, the certificate issuance request will fail.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters predefined_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.X509ParametersOrBuilder getPredefinedValuesOrBuilder(); /** + * + * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identityConstraints field is set. */ boolean hasIdentityConstraints(); /** + * + * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identityConstraints. */ com.google.cloud.security.privateca.v1.CertificateIdentityConstraints getIdentityConstraints(); /** + * + * *
    * Optional. Describes constraints on identities that may be appear in
    * [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted,
    * then this template will not add restrictions on a certificate's identity.
    * 
* - * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateIdentityConstraints identity_constraints = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder getIdentityConstraintsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateIdentityConstraintsOrBuilder + getIdentityConstraintsOrBuilder(); /** + * + * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -121,11 +177,16 @@ public interface CertificateTemplateOrBuilder extends
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the passthroughExtensions field is set. */ boolean hasPassthroughExtensions(); /** + * + * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -139,11 +200,16 @@ public interface CertificateTemplateOrBuilder extends
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The passthroughExtensions. */ com.google.cloud.security.privateca.v1.CertificateExtensionConstraints getPassthroughExtensions(); /** + * + * *
    * Optional. Describes the set of X.509 extensions that may appear in a
    * [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate
@@ -157,85 +223,117 @@ public interface CertificateTemplateOrBuilder extends
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].
    * 
* - * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.CertificateExtensionConstraints passthrough_extensions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder getPassthroughExtensionsOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateExtensionConstraintsOrBuilder + getPassthroughExtensionsOrBuilder(); /** + * + * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A human-readable description of scenarios this template is intended for.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -244,30 +342,31 @@ public interface CertificateTemplateOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -276,18 +375,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java index 3608ad62..f8e72a1f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.CreateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CreateCaPoolRequest}
  */
-public final class CreateCaPoolRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateCaPoolRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCaPoolRequest)
     CreateCaPoolRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateCaPoolRequest.newBuilder() to construct.
   private CreateCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateCaPoolRequest() {
     parent_ = "";
     caPoolId_ = "";
@@ -28,16 +46,15 @@ private CreateCaPoolRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateCaPoolRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateCaPoolRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,44 +73,50 @@ private CreateCaPoolRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            caPoolId_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
-            if (caPool_ != null) {
-              subBuilder = caPool_.toBuilder();
+              parent_ = s;
+              break;
             }
-            caPool_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(caPool_);
-              caPool_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              caPoolId_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
+              if (caPool_ != null) {
+                subBuilder = caPool_.toBuilder();
+              }
+              caPool_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(caPool_);
+                caPool_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,35 +124,42 @@ private CreateCaPoolRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, com.google.cloud.security.privateca.v1.CreateCaPoolRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class,
+            com.google.cloud.security.privateca.v1.CreateCaPoolRequest.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
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 @@ -138,30 +168,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 { @@ -172,12 +204,15 @@ public java.lang.String getParent() { public static final int CA_POOL_ID_FIELD_NUMBER = 2; private volatile java.lang.Object caPoolId_; /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The caPoolId. */ @java.lang.Override @@ -186,30 +221,30 @@ public java.lang.String getCaPoolId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPoolId_ = s; return s; } } /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for caPoolId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaPoolIdBytes() { + public com.google.protobuf.ByteString getCaPoolIdBytes() { java.lang.Object ref = caPoolId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caPoolId_ = b; return b; } else { @@ -220,11 +255,16 @@ public java.lang.String getCaPoolId() { public static final int CA_POOL_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CaPool caPool_; /** + * + * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the caPool field is set. */ @java.lang.Override @@ -232,23 +272,34 @@ public boolean hasCaPool() { return caPool_ != null; } /** + * + * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The caPool. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool getCaPool() { - return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; + return caPool_ == null + ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() + : caPool_; } /** + * + * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { @@ -258,6 +309,8 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -273,6 +326,7 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -281,14 +335,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -304,16 +359,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -322,6 +376,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -363,8 +417,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caPoolId_); } if (caPool_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCaPool()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCaPool()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -377,24 +430,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.security.privateca.v1.CreateCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCaPoolRequest other = (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.CreateCaPoolRequest other = + (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCaPoolId() - .equals(other.getCaPoolId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCaPoolId().equals(other.getCaPoolId())) return false; if (hasCaPool() != other.hasCaPool()) return false; if (hasCaPool()) { - if (!getCaPool() - .equals(other.getCaPool())) return false; + if (!getCaPool().equals(other.getCaPool())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,96 +472,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest 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.security.privateca.v1.CreateCaPoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCaPoolRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CreateCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool].
@@ -519,21 +577,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CreateCaPoolRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCaPoolRequest)
       com.google.cloud.security.privateca.v1.CreateCaPoolRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class, com.google.cloud.security.privateca.v1.CreateCaPoolRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.CreateCaPoolRequest.class,
+              com.google.cloud.security.privateca.v1.CreateCaPoolRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.CreateCaPoolRequest.newBuilder()
@@ -541,16 +601,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -570,9 +629,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
@@ -591,7 +650,8 @@ public com.google.cloud.security.privateca.v1.CreateCaPoolRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCaPoolRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.CreateCaPoolRequest result = new com.google.cloud.security.privateca.v1.CreateCaPoolRequest(this);
+      com.google.cloud.security.privateca.v1.CreateCaPoolRequest result =
+          new com.google.cloud.security.privateca.v1.CreateCaPoolRequest(this);
       result.parent_ = parent_;
       result.caPoolId_ = caPoolId_;
       if (caPoolBuilder_ == null) {
@@ -608,38 +668,39 @@ public com.google.cloud.security.privateca.v1.CreateCaPoolRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.CreateCaPoolRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCaPoolRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCaPoolRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -647,7 +708,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCaPoolRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.CreateCaPoolRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.CreateCaPoolRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -682,7 +744,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CreateCaPoolRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -694,19 +757,23 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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; @@ -715,21 +782,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 { @@ -737,57 +807,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPool][google.cloud.security.privateca.v1.CaPool], 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; @@ -795,19 +878,21 @@ public Builder setParentBytes( private java.lang.Object caPoolId_ = ""; /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The caPoolId. */ public java.lang.String getCaPoolId() { java.lang.Object ref = caPoolId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPoolId_ = s; return s; @@ -816,21 +901,22 @@ public java.lang.String getCaPoolId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for caPoolId. */ - public com.google.protobuf.ByteString - getCaPoolIdBytes() { + public com.google.protobuf.ByteString getCaPoolIdBytes() { java.lang.Object ref = caPoolId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caPoolId_ = b; return b; } else { @@ -838,57 +924,64 @@ public java.lang.String getCaPoolId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The caPoolId to set. * @return This builder for chaining. */ - public Builder setCaPoolId( - java.lang.String value) { + public Builder setCaPoolId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caPoolId_ = value; onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCaPoolId() { - + caPoolId_ = getDefaultInstance().getCaPoolId(); onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for caPoolId to set. * @return This builder for chaining. */ - public Builder setCaPoolIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCaPoolIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPoolId_ = value; onChanged(); return this; @@ -896,39 +989,58 @@ public Builder setCaPoolIdBytes( private com.google.cloud.security.privateca.v1.CaPool caPool_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> caPoolBuilder_; + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + caPoolBuilder_; /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the caPool field is set. */ public boolean hasCaPool() { return caPoolBuilder_ != null || caPool_ != null; } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The caPool. */ public com.google.cloud.security.privateca.v1.CaPool getCaPool() { if (caPoolBuilder_ == null) { - return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; + return caPool_ == null + ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() + : caPool_; } else { return caPoolBuilder_.getMessage(); } } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { @@ -944,11 +1056,15 @@ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { return this; } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCaPool( com.google.cloud.security.privateca.v1.CaPool.Builder builderForValue) { @@ -962,17 +1078,23 @@ public Builder setCaPool( return this; } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { if (caPool_ != null) { caPool_ = - com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_) + .mergeFrom(value) + .buildPartial(); } else { caPool_ = value; } @@ -984,11 +1106,15 @@ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) return this; } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCaPool() { if (caPoolBuilder_ == null) { @@ -1002,48 +1128,64 @@ public Builder clearCaPool() { return this; } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolBuilder() { - + onChanged(); return getCaPoolFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { if (caPoolBuilder_ != null) { return caPoolBuilder_.getMessageOrBuilder(); } else { - return caPool_ == null ? - com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; + return caPool_ == null + ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() + : caPool_; } } /** + * + * *
      * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder> getCaPoolFieldBuilder() { if (caPoolBuilder_ == null) { - caPoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( - getCaPool(), - getParentForChildren(), - isClean()); + caPoolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( + getCaPool(), getParentForChildren(), isClean()); caPool_ = null; } return caPoolBuilder_; @@ -1051,6 +1193,8 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1066,13 +1210,13 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1081,6 +1225,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1096,15 +1242,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1112,6 +1257,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1127,20 +1274,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1156,15 +1305,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1180,23 +1332,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1206,12 +1358,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCaPoolRequest) private static final com.google.cloud.security.privateca.v1.CreateCaPoolRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCaPoolRequest(); } @@ -1220,16 +1372,16 @@ public static com.google.cloud.security.privateca.v1.CreateCaPoolRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1244,6 +1396,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.CreateCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java index 9c7ceb94..9abe15b3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCaPoolRequestOrBuilder.java @@ -1,84 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCaPoolRequestOrBuilder extends +public interface CreateCaPoolRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCaPoolRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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
    * [CaPool][google.cloud.security.privateca.v1.CaPool], 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 ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The caPoolId. */ java.lang.String getCaPoolId(); /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string ca_pool_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for caPoolId. */ - com.google.protobuf.ByteString - getCaPoolIdBytes(); + com.google.protobuf.ByteString getCaPoolIdBytes(); /** + * + * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the caPool field is set. */ boolean hasCaPool(); /** + * + * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The caPool. */ com.google.cloud.security.privateca.v1.CaPool getCaPool(); /** + * + * *
    * Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -94,10 +140,13 @@ public interface CreateCaPoolRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -113,8 +162,8 @@ public interface CreateCaPoolRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java index c0b3b51b..78d6b23a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest}
  */
-public final class CreateCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)
     CreateCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateCertificateAuthorityRequest.newBuilder() to construct.
-  private CreateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateCertificateAuthorityRequest() {
     parent_ = "";
     certificateAuthorityId_ = "";
@@ -28,16 +47,15 @@ private CreateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,44 +74,51 @@ private CreateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            certificateAuthorityId_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
-            if (certificateAuthority_ != null) {
-              subBuilder = certificateAuthority_.toBuilder();
+              parent_ = s;
+              break;
             }
-            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateAuthority_);
-              certificateAuthority_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              certificateAuthorityId_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
+              if (certificateAuthority_ != null) {
+                subBuilder = certificateAuthority_.toBuilder();
+              }
+              certificateAuthority_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateAuthority.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateAuthority_);
+                certificateAuthority_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,36 +126,43 @@ private CreateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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,31 +171,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 { @@ -174,12 +208,15 @@ public java.lang.String getParent() { public static final int CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateAuthorityId_; /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthorityId. */ @java.lang.Override @@ -188,30 +225,30 @@ public java.lang.String getCertificateAuthorityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; } } /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthorityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -222,11 +259,16 @@ public java.lang.String getCertificateAuthorityId() { public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_; /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -234,32 +276,46 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -275,6 +331,7 @@ public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getC
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -283,14 +340,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -306,16 +364,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -324,6 +381,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -365,8 +422,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateAuthorityId_); } if (certificateAuthority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCertificateAuthority()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateAuthority()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -379,24 +436,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.security.privateca.v1.CreateCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCertificateAuthorityId() - .equals(other.getCertificateAuthorityId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCertificateAuthorityId().equals(other.getCertificateAuthorityId())) return false; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority() - .equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,96 +479,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest 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.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest 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.security.privateca.v1.CreateCertificateAuthorityRequest + 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.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -521,38 +585,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -572,19 +639,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -593,7 +663,8 @@ public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(this);
       result.parent_ = parent_;
       result.certificateAuthorityId_ = certificateAuthorityId_;
       if (certificateAuthorityBuilder_ == null) {
@@ -610,46 +681,52 @@ public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -684,7 +761,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -696,20 +775,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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; @@ -718,22 +801,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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 { @@ -741,60 +827,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * 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; @@ -802,19 +901,21 @@ public Builder setParentBytes( private java.lang.Object certificateAuthorityId_ = ""; /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthorityId. */ public java.lang.String getCertificateAuthorityId() { java.lang.Object ref = certificateAuthorityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; @@ -823,21 +924,22 @@ public java.lang.String getCertificateAuthorityId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthorityId. */ - public com.google.protobuf.ByteString - getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -845,57 +947,64 @@ public java.lang.String getCertificateAuthorityId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityId( - java.lang.String value) { + public Builder setCertificateAuthorityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateAuthorityId_ = value; onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCertificateAuthorityId() { - + certificateAuthorityId_ = getDefaultInstance().getCertificateAuthorityId(); onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateAuthorityId_ = value; onChanged(); return this; @@ -903,41 +1012,61 @@ public Builder setCertificateAuthorityIdBytes( private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_; + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + certificateAuthorityBuilder_; /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder setCertificateAuthority( + com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -951,11 +1080,15 @@ public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1.Ce return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { @@ -969,17 +1102,25 @@ public Builder setCertificateAuthority( return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder mergeCertificateAuthority( + com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder( + certificateAuthority_) + .mergeFrom(value) + .buildPartial(); } else { certificateAuthority_ = value; } @@ -991,11 +1132,15 @@ public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1. return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -1009,48 +1154,66 @@ public Builder clearCertificateAuthority() { return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder + getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null ? - com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), - getParentForChildren(), - isClean()); + certificateAuthorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), getParentForChildren(), isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -1058,6 +1221,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getC private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1073,13 +1238,13 @@ public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getC
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1088,6 +1253,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1103,15 +1270,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1119,6 +1285,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1134,20 +1302,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1163,15 +1333,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1187,23 +1360,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1213,30 +1386,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,9 +1424,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java index 6d93b956..a41b9602 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateAuthorityRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCertificateAuthorityRequestOrBuilder extends +public interface CreateCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthorityId. */ java.lang.String getCertificateAuthorityId(); /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthorityId. */ - com.google.protobuf.ByteString - getCertificateAuthorityIdBytes(); + com.google.protobuf.ByteString getCertificateAuthorityIdBytes(); /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority(); /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,10 +143,13 @@ public interface CreateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -115,8 +165,8 @@ public interface CreateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java index ead07878..38f9d7ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateRequest} */ -public final class CreateCertificateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCertificateRequest) CreateCertificateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCertificateRequest.newBuilder() to construct. private CreateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCertificateRequest() { parent_ = ""; certificateId_ = ""; @@ -28,16 +46,15 @@ private CreateCertificateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,55 +73,63 @@ private CreateCertificateRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - certificateId_ = s; - break; - } - case 26: { - com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); + certificateId_ = s; + break; } - certificate_ = input.readMessage(com.google.cloud.security.privateca.v1.Certificate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); + } + certificate_ = + input.readMessage( + com.google.cloud.security.privateca.v1.Certificate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + requestId_ = s; + break; + } + case 40: + { + validateOnly_ = input.readBool(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - issuingCertificateAuthorityId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + issuingCertificateAuthorityId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,35 +137,42 @@ private CreateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, + com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 @@ -149,30 +181,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 { @@ -183,6 +217,8 @@ public java.lang.String getParent() { public static final int CERTIFICATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateId_; /** + * + * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -191,6 +227,7 @@ public java.lang.String getParent() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The certificateId. */ @java.lang.Override @@ -199,14 +236,15 @@ public java.lang.String getCertificateId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } } /** + * + * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -215,16 +253,15 @@ public java.lang.String getCertificateId() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for certificateId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateIdBytes() { + public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateId_ = b; return b; } else { @@ -235,11 +272,16 @@ public java.lang.String getCertificateId() { public static final int CERTIFICATE_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.Certificate certificate_; /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ @java.lang.Override @@ -247,23 +289,34 @@ public boolean hasCertificate() { return certificate_ != null; } /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate getCertificate() { - return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() + : certificate_; } /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { @@ -273,6 +326,8 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -288,6 +343,7 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -296,14 +352,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -319,16 +376,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -339,6 +395,8 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_; /** + * + * *
    * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
    * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -346,6 +404,7 @@ public java.lang.String getRequestId() {
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -356,6 +415,8 @@ public boolean getValidateOnly() { public static final int ISSUING_CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER = 6; private volatile java.lang.Object issuingCertificateAuthorityId_; /** + * + * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -370,7 +431,9 @@ public boolean getValidateOnly() {
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuingCertificateAuthorityId. */ @java.lang.Override @@ -379,14 +442,15 @@ public java.lang.String getIssuingCertificateAuthorityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuingCertificateAuthorityId_ = s; return s; } } /** + * + * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -401,17 +465,17 @@ public java.lang.String getIssuingCertificateAuthorityId() {
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for issuingCertificateAuthorityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuingCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() { java.lang.Object ref = issuingCertificateAuthorityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuingCertificateAuthorityId_ = b; return b; } else { @@ -420,6 +484,7 @@ public java.lang.String getIssuingCertificateAuthorityId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,8 +496,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -467,18 +531,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateId_); } if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCertificate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuingCertificateAuthorityId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, issuingCertificateAuthorityId_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 6, issuingCertificateAuthorityId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -488,28 +552,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.security.privateca.v1.CreateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCertificateRequest other = (com.google.cloud.security.privateca.v1.CreateCertificateRequest) obj; + com.google.cloud.security.privateca.v1.CreateCertificateRequest other = + (com.google.cloud.security.privateca.v1.CreateCertificateRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCertificateId() - .equals(other.getCertificateId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCertificateId().equals(other.getCertificateId())) return false; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate() - .equals(other.getCertificate())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getIssuingCertificateAuthorityId() - .equals(other.getIssuingCertificateAuthorityId())) return false; + if (!getCertificate().equals(other.getCertificate())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getIssuingCertificateAuthorityId().equals(other.getIssuingCertificateAuthorityId())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -532,8 +592,7 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ISSUING_CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER; hash = (53 * hash) + getIssuingCertificateAuthorityId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -542,117 +601,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCertificateRequest 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.security.privateca.v1.CreateCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CreateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCertificateRequest) com.google.cloud.security.privateca.v1.CreateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.CreateCertificateRequest.class, + com.google.cloud.security.privateca.v1.CreateCertificateRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.CreateCertificateRequest.newBuilder() @@ -660,16 +729,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -693,13 +761,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateRequest + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance(); } @@ -714,7 +783,8 @@ public com.google.cloud.security.privateca.v1.CreateCertificateRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.CreateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1.CreateCertificateRequest result = new com.google.cloud.security.privateca.v1.CreateCertificateRequest(this); + com.google.cloud.security.privateca.v1.CreateCertificateRequest result = + new com.google.cloud.security.privateca.v1.CreateCertificateRequest(this); result.parent_ = parent_; result.certificateId_ = certificateId_; if (certificateBuilder_ == null) { @@ -733,46 +803,50 @@ public com.google.cloud.security.privateca.v1.CreateCertificateRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.CreateCertificateRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateRequest)other); + return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCertificateRequest other) { - if (other == com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CreateCertificateRequest other) { + if (other + == com.google.cloud.security.privateca.v1.CreateCertificateRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -814,7 +888,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.CreateCertificateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.CreateCertificateRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -826,19 +902,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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; @@ -847,21 +927,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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 { @@ -869,57 +952,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * string 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
      * in the format `projects/*/locations/*/caPools/*`.
      * 
* - * 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; @@ -927,6 +1023,8 @@ public Builder setParentBytes( private java.lang.Object certificateId_ = ""; /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -935,13 +1033,13 @@ public Builder setParentBytes(
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; @@ -950,6 +1048,8 @@ public java.lang.String getCertificateId() { } } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -958,15 +1058,14 @@ public java.lang.String getCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for certificateId. */ - public com.google.protobuf.ByteString - getCertificateIdBytes() { + public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateId_ = b; return b; } else { @@ -974,6 +1073,8 @@ public java.lang.String getCertificateId() { } } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -982,20 +1083,22 @@ public java.lang.String getCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateId( - java.lang.String value) { + public Builder setCertificateId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1004,15 +1107,18 @@ public Builder setCertificateId(
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCertificateId() { - + certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -1021,16 +1127,16 @@ public Builder clearCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateId_ = value; onChanged(); return this; @@ -1038,39 +1144,58 @@ public Builder setCertificateIdBytes( private com.google.cloud.security.privateca.v1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> certificateBuilder_; + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder> + certificateBuilder_; /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ public com.google.cloud.security.privateca.v1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() + : certificate_; } else { return certificateBuilder_.getMessage(); } } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { @@ -1086,11 +1211,15 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate( com.google.cloud.security.privateca.v1.Certificate.Builder builderForValue) { @@ -1104,17 +1233,23 @@ public Builder setCertificate( return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_) + .mergeFrom(value) + .buildPartial(); } else { certificate_ = value; } @@ -1126,11 +1261,15 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certifica return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -1144,48 +1283,64 @@ public Builder clearCertificate() { return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null ? - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() + : certificate_; } } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder>( - getCertificate(), - getParentForChildren(), - isClean()); + certificateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder>( + getCertificate(), getParentForChildren(), isClean()); certificate_ = null; } return certificateBuilder_; @@ -1193,6 +1348,8 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1208,13 +1365,13 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1223,6 +1380,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1238,15 +1397,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1254,6 +1412,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1269,20 +1429,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1298,15 +1460,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1322,23 +1487,25 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
      * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -1346,6 +1513,7 @@ public Builder setRequestIdBytes(
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1353,6 +1521,8 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
      * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -1360,16 +1530,19 @@ public boolean getValidateOnly() {
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
      * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -1377,10 +1550,11 @@ public Builder setValidateOnly(boolean value) {
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -1388,6 +1562,8 @@ public Builder clearValidateOnly() { private java.lang.Object issuingCertificateAuthorityId_ = ""; /** + * + * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1402,14 +1578,15 @@ public Builder clearValidateOnly() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuingCertificateAuthorityId. */ public java.lang.String getIssuingCertificateAuthorityId() { java.lang.Object ref = issuingCertificateAuthorityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuingCertificateAuthorityId_ = s; return s; @@ -1418,6 +1595,8 @@ public java.lang.String getIssuingCertificateAuthorityId() { } } /** + * + * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1432,16 +1611,16 @@ public java.lang.String getIssuingCertificateAuthorityId() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for issuingCertificateAuthorityId. */ - public com.google.protobuf.ByteString - getIssuingCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes() { java.lang.Object ref = issuingCertificateAuthorityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuingCertificateAuthorityId_ = b; return b; } else { @@ -1449,6 +1628,8 @@ public java.lang.String getIssuingCertificateAuthorityId() { } } /** + * + * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1463,21 +1644,24 @@ public java.lang.String getIssuingCertificateAuthorityId() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The issuingCertificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setIssuingCertificateAuthorityId( - java.lang.String value) { + public Builder setIssuingCertificateAuthorityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuingCertificateAuthorityId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1492,16 +1676,20 @@ public Builder setIssuingCertificateAuthorityId(
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearIssuingCertificateAuthorityId() { - + issuingCertificateAuthorityId_ = getDefaultInstance().getIssuingCertificateAuthorityId(); onChanged(); return this; } /** + * + * *
      * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
      * certificate.  This optional field will ignore the load-balancing scheme of
@@ -1516,24 +1704,25 @@ public Builder clearIssuingCertificateAuthorityId() {
      * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
      * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for issuingCertificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setIssuingCertificateAuthorityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIssuingCertificateAuthorityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuingCertificateAuthorityId_ = 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); } @@ -1543,30 +1732,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCertificateRequest) - private static final com.google.cloud.security.privateca.v1.CreateCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CreateCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1.CreateCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CreateCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1578,9 +1769,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java index e8528df7..b2ee534f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCertificateRequestOrBuilder extends +public interface CreateCertificateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate],
    * in the format `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -38,10 +65,13 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The certificateId. */ java.lang.String getCertificateId(); /** + * + * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -50,39 +80,55 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for certificateId. */ - com.google.protobuf.ByteString - getCertificateIdBytes(); + com.google.protobuf.ByteString getCertificateIdBytes(); /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ boolean hasCertificate(); /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ com.google.cloud.security.privateca.v1.Certificate getCertificate(); /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -98,10 +144,13 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -117,12 +166,14 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. If this is true, no [Certificate][google.cloud.security.privateca.v1.Certificate] resource will be persisted regardless
    * of the [CaPool][google.cloud.security.privateca.v1.CaPool]'s [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned [Certificate][google.cloud.security.privateca.v1.Certificate]
@@ -130,11 +181,14 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -149,11 +203,15 @@ public interface CreateCertificateRequestOrBuilder extends
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuingCertificateAuthorityId. */ java.lang.String getIssuingCertificateAuthorityId(); /** + * + * *
    * Optional. The resource ID of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that should issue the
    * certificate.  This optional field will ignore the load-balancing scheme of
@@ -168,9 +226,10 @@ public interface CreateCertificateRequestOrBuilder extends
    * [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id] to "my-ca".
    * 
* - * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string issuing_certificate_authority_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for issuingCertificateAuthorityId. */ - com.google.protobuf.ByteString - getIssuingCertificateAuthorityIdBytes(); + com.google.protobuf.ByteString getIssuingCertificateAuthorityIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java index 7fe1311d..0f722b2e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.CreateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateTemplateRequest}
  */
-public final class CreateCertificateTemplateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)
     CreateCertificateTemplateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateCertificateTemplateRequest.newBuilder() to construct.
-  private CreateCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateCertificateTemplateRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateCertificateTemplateRequest() {
     parent_ = "";
     certificateTemplateId_ = "";
@@ -28,16 +47,15 @@ private CreateCertificateTemplateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,44 +74,51 @@ private CreateCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            certificateTemplateId_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
-            if (certificateTemplate_ != null) {
-              subBuilder = certificateTemplate_.toBuilder();
+              parent_ = s;
+              break;
             }
-            certificateTemplate_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateTemplate.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateTemplate_);
-              certificateTemplate_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              certificateTemplateId_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
+              if (certificateTemplate_ != null) {
+                subBuilder = certificateTemplate_.toBuilder();
+              }
+              certificateTemplate_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateTemplate.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateTemplate_);
+                certificateTemplate_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,36 +126,43 @@ private CreateCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class,
+            com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.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
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 @@ -139,31 +171,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -174,12 +208,15 @@ public java.lang.String getParent() { public static final int CERTIFICATE_TEMPLATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateTemplateId_; /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateTemplateId. */ @java.lang.Override @@ -188,30 +225,30 @@ public java.lang.String getCertificateTemplateId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplateId_ = s; return s; } } /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateTemplateId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateTemplateIdBytes() { + public com.google.protobuf.ByteString getCertificateTemplateIdBytes() { java.lang.Object ref = certificateTemplateId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateTemplateId_ = b; return b; } else { @@ -222,11 +259,16 @@ public java.lang.String getCertificateTemplateId() { public static final int CERTIFICATE_TEMPLATE_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_; /** + * + * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateTemplate field is set. */ @java.lang.Override @@ -234,32 +276,46 @@ public boolean hasCertificateTemplate() { return certificateTemplate_ != null; } /** + * + * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateTemplate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { - return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; + return certificateTemplate_ == null + ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() + : certificateTemplate_; } /** + * + * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplateOrBuilder() { return getCertificateTemplate(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -275,6 +331,7 @@ public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCe
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -283,14 +340,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -306,16 +364,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -324,6 +381,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -365,8 +422,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateTemplateId_); } if (certificateTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCertificateTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateTemplate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -379,24 +435,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.security.privateca.v1.CreateCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other = + (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCertificateTemplateId() - .equals(other.getCertificateTemplateId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCertificateTemplateId().equals(other.getCertificateTemplateId())) return false; if (hasCertificateTemplate() != other.hasCertificateTemplate()) return false; if (hasCertificateTemplate()) { - if (!getCertificateTemplate() - .equals(other.getCertificateTemplate())) return false; + if (!getCertificateTemplate().equals(other.getCertificateTemplate())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,96 +477,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest 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.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest 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.security.privateca.v1.CreateCertificateTemplateRequest + 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.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate].
@@ -521,38 +583,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.CreateCertificateTemplateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.class,
+              com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -572,19 +637,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest build() {
-      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -593,7 +661,8 @@ public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest result =
+          new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(this);
       result.parent_ = parent_;
       result.certificateTemplateId_ = certificateTemplateId_;
       if (certificateTemplateBuilder_ == null) {
@@ -610,46 +679,52 @@ public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest b
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -684,7 +759,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -696,20 +773,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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; @@ -718,22 +799,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -741,60 +825,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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; @@ -802,19 +899,21 @@ public Builder setParentBytes( private java.lang.Object certificateTemplateId_ = ""; /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateTemplateId. */ public java.lang.String getCertificateTemplateId() { java.lang.Object ref = certificateTemplateId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateTemplateId_ = s; return s; @@ -823,21 +922,22 @@ public java.lang.String getCertificateTemplateId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateTemplateId. */ - public com.google.protobuf.ByteString - getCertificateTemplateIdBytes() { + public com.google.protobuf.ByteString getCertificateTemplateIdBytes() { java.lang.Object ref = certificateTemplateId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateTemplateId_ = b; return b; } else { @@ -845,57 +945,64 @@ public java.lang.String getCertificateTemplateId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The certificateTemplateId to set. * @return This builder for chaining. */ - public Builder setCertificateTemplateId( - java.lang.String value) { + public Builder setCertificateTemplateId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateTemplateId_ = value; onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCertificateTemplateId() { - + certificateTemplateId_ = getDefaultInstance().getCertificateTemplateId(); onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for certificateTemplateId to set. * @return This builder for chaining. */ - public Builder setCertificateTemplateIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateTemplateIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateTemplateId_ = value; onChanged(); return this; @@ -903,41 +1010,61 @@ public Builder setCertificateTemplateIdBytes( private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> certificateTemplateBuilder_; + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + certificateTemplateBuilder_; /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateTemplate field is set. */ public boolean hasCertificateTemplate() { return certificateTemplateBuilder_ != null || certificateTemplate_ != null; } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateTemplate. */ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { if (certificateTemplateBuilder_ == null) { - return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; + return certificateTemplate_ == null + ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() + : certificateTemplate_; } else { return certificateTemplateBuilder_.getMessage(); } } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder setCertificateTemplate( + com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -951,11 +1078,15 @@ public Builder setCertificateTemplate(com.google.cloud.security.privateca.v1.Cer return this; } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateTemplate( com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { @@ -969,17 +1100,25 @@ public Builder setCertificateTemplate( return this; } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder mergeCertificateTemplate( + com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (certificateTemplate_ != null) { certificateTemplate_ = - com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder(certificateTemplate_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder( + certificateTemplate_) + .mergeFrom(value) + .buildPartial(); } else { certificateTemplate_ = value; } @@ -991,11 +1130,15 @@ public Builder mergeCertificateTemplate(com.google.cloud.security.privateca.v1.C return this; } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateTemplate() { if (certificateTemplateBuilder_ == null) { @@ -1009,48 +1152,66 @@ public Builder clearCertificateTemplate() { return this; } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder getCertificateTemplateBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder + getCertificateTemplateBuilder() { + onChanged(); return getCertificateTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplateOrBuilder() { if (certificateTemplateBuilder_ != null) { return certificateTemplateBuilder_.getMessageOrBuilder(); } else { - return certificateTemplate_ == null ? - com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; + return certificateTemplate_ == null + ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() + : certificateTemplate_; } } /** + * + * *
      * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplateFieldBuilder() { if (certificateTemplateBuilder_ == null) { - certificateTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( - getCertificateTemplate(), - getParentForChildren(), - isClean()); + certificateTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( + getCertificateTemplate(), getParentForChildren(), isClean()); certificateTemplate_ = null; } return certificateTemplateBuilder_; @@ -1058,6 +1219,8 @@ public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCe private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1073,13 +1236,13 @@ public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCe
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1088,6 +1251,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1103,15 +1268,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1119,6 +1283,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1134,20 +1300,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1163,15 +1331,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1187,23 +1358,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1213,30 +1384,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,9 +1422,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.CreateCertificateTemplateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java index 96991137..e2b08066 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CreateCertificateTemplateRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface CreateCertificateTemplateRequestOrBuilder extends +public interface CreateCertificateTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CreateCertificateTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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
    * [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], 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 certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateTemplateId. */ java.lang.String getCertificateTemplateId(); /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateTemplateId. */ - com.google.protobuf.ByteString - getCertificateTemplateIdBytes(); + com.google.protobuf.ByteString getCertificateTemplateIdBytes(); /** + * + * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateTemplate field is set. */ boolean hasCertificateTemplate(); /** + * + * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateTemplate. */ com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate(); /** + * + * *
    * Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplateOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,10 +143,13 @@ public interface CreateCertificateTemplateRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -115,8 +165,8 @@ public interface CreateCertificateTemplateRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java index 6d75ae07..cde96b93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.DeleteCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCaPoolRequest}
  */
-public final class DeleteCaPoolRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteCaPoolRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DeleteCaPoolRequest)
     DeleteCaPoolRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteCaPoolRequest.newBuilder() to construct.
   private DeleteCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteCaPoolRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +45,15 @@ private DeleteCaPoolRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteCaPoolRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteCaPoolRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private DeleteCaPoolRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +100,42 @@ private DeleteCaPoolRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class,
+            com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string name = 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 @@ -118,30 +144,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string name = 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 { @@ -152,6 +180,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +197,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +206,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +230,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +247,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +289,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.DeleteCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DeleteCaPoolRequest other = (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest other = + (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,96 +320,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest 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.security.privateca.v1.DeleteCaPoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.DeleteCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DeleteCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool].
@@ -387,21 +425,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCaPoolRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DeleteCaPoolRequest)
       com.google.cloud.security.privateca.v1.DeleteCaPoolRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class, com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.class,
+              com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.newBuilder()
@@ -409,16 +449,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,9 +469,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
@@ -451,7 +490,8 @@ public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DeleteCaPoolRequest result = new com.google.cloud.security.privateca.v1.DeleteCaPoolRequest(this);
+      com.google.cloud.security.privateca.v1.DeleteCaPoolRequest result =
+          new com.google.cloud.security.privateca.v1.DeleteCaPoolRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,38 +502,39 @@ public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCaPoolRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -501,7 +542,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.DeleteCaPoolRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.DeleteCaPoolRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -529,7 +571,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.DeleteCaPoolRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +584,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +609,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string name = 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 { @@ -584,57 +634,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * 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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string 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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * 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; @@ -642,6 +705,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +722,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +737,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +754,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +769,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +786,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +817,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +844,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DeleteCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DeleteCaPoolRequest) private static final com.google.cloud.security.privateca.v1.DeleteCaPoolRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DeleteCaPoolRequest(); } @@ -811,16 +884,16 @@ public static com.google.cloud.security.privateca.v1.DeleteCaPoolRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,6 +908,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.DeleteCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java index 0b3f263f..3b956b0d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCaPoolRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DeleteCaPoolRequestOrBuilder extends +public interface DeleteCaPoolRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DeleteCaPoolRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string name = 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 for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface DeleteCaPoolRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface DeleteCaPoolRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java index 96085ca0..17208303 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.DeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest}
  */
-public final class DeleteCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)
     DeleteCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteCertificateAuthorityRequest.newBuilder() to construct.
-  private DeleteCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private DeleteCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,35 +73,37 @@ private DeleteCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            requestId_ = s;
-            break;
-          }
-          case 32: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            ignoreActiveCertificates_ = input.readBool();
-            break;
-          }
-          case 40: {
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            skipGracePeriod_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          case 32:
+            {
+              ignoreActiveCertificates_ = input.readBool();
+              break;
+            }
+          case 40:
+            {
+              skipGracePeriod_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,35 +111,42 @@ private DeleteCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -128,30 +155,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -162,6 +191,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -177,6 +208,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -185,14 +217,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -208,16 +241,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -228,12 +260,15 @@ public java.lang.String getRequestId() { public static final int IGNORE_ACTIVE_CERTIFICATES_FIELD_NUMBER = 4; private boolean ignoreActiveCertificates_; /** + * + * *
    * Optional. This field allows the CA to be deleted even if the CA has
    * active certs. Active certs include both unrevoked and unexpired certs.
    * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreActiveCertificates. */ @java.lang.Override @@ -244,6 +279,8 @@ public boolean getIgnoreActiveCertificates() { public static final int SKIP_GRACE_PERIOD_FIELD_NUMBER = 5; private boolean skipGracePeriod_; /** + * + * *
    * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
    * possible without a 30-day grace period where undeletion would have been
@@ -251,6 +288,7 @@ public boolean getIgnoreActiveCertificates() {
    * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The skipGracePeriod. */ @java.lang.Override @@ -259,6 +297,7 @@ public boolean getSkipGracePeriod() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -300,12 +338,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (ignoreActiveCertificates_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, ignoreActiveCertificates_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, ignoreActiveCertificates_); } if (skipGracePeriod_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, skipGracePeriod_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, skipGracePeriod_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,21 +351,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.security.privateca.v1.DeleteCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getIgnoreActiveCertificates() - != other.getIgnoreActiveCertificates()) return false; - if (getSkipGracePeriod() - != other.getSkipGracePeriod()) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getIgnoreActiveCertificates() != other.getIgnoreActiveCertificates()) return false; + if (getSkipGracePeriod() != other.getSkipGracePeriod()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -346,107 +380,114 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + IGNORE_ACTIVE_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnoreActiveCertificates()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreActiveCertificates()); hash = (37 * hash) + SKIP_GRACE_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSkipGracePeriod()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipGracePeriod()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest 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.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest 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.security.privateca.v1.DeleteCertificateAuthorityRequest + 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.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority].
@@ -454,38 +495,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,19 +545,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -522,7 +569,8 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       result.ignoreActiveCertificates_ = ignoreActiveCertificates_;
@@ -535,46 +583,52 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -608,7 +662,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -620,19 +676,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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; @@ -641,21 +701,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -663,57 +726,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -721,6 +797,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -736,13 +814,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -751,6 +829,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -766,15 +846,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -782,6 +861,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -797,20 +878,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -826,15 +909,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -850,29 +936,32 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - private boolean ignoreActiveCertificates_ ; + private boolean ignoreActiveCertificates_; /** + * + * *
      * Optional. This field allows the CA to be deleted even if the CA has
      * active certs. Active certs include both unrevoked and unexpired certs.
      * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreActiveCertificates. */ @java.lang.Override @@ -880,39 +969,47 @@ public boolean getIgnoreActiveCertificates() { return ignoreActiveCertificates_; } /** + * + * *
      * Optional. This field allows the CA to be deleted even if the CA has
      * active certs. Active certs include both unrevoked and unexpired certs.
      * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ignoreActiveCertificates to set. * @return This builder for chaining. */ public Builder setIgnoreActiveCertificates(boolean value) { - + ignoreActiveCertificates_ = value; onChanged(); return this; } /** + * + * *
      * Optional. This field allows the CA to be deleted even if the CA has
      * active certs. Active certs include both unrevoked and unexpired certs.
      * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIgnoreActiveCertificates() { - + ignoreActiveCertificates_ = false; onChanged(); return this; } - private boolean skipGracePeriod_ ; + private boolean skipGracePeriod_; /** + * + * *
      * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
      * possible without a 30-day grace period where undeletion would have been
@@ -920,6 +1017,7 @@ public Builder clearIgnoreActiveCertificates() {
      * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The skipGracePeriod. */ @java.lang.Override @@ -927,6 +1025,8 @@ public boolean getSkipGracePeriod() { return skipGracePeriod_; } /** + * + * *
      * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
      * possible without a 30-day grace period where undeletion would have been
@@ -934,16 +1034,19 @@ public boolean getSkipGracePeriod() {
      * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The skipGracePeriod to set. * @return This builder for chaining. */ public Builder setSkipGracePeriod(boolean value) { - + skipGracePeriod_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
      * possible without a 30-day grace period where undeletion would have been
@@ -951,17 +1054,18 @@ public Builder setSkipGracePeriod(boolean value) {
      * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSkipGracePeriod() { - + skipGracePeriod_ = 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); } @@ -971,30 +1075,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,9 +1113,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java index c7052388..931fccf0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DeleteCertificateAuthorityRequestOrBuilder extends +public interface DeleteCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DeleteCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface DeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,23 +94,28 @@ public interface DeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. This field allows the CA to be deleted even if the CA has
    * active certs. Active certs include both unrevoked and unexpired certs.
    * 
* * bool ignore_active_certificates = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ignoreActiveCertificates. */ boolean getIgnoreActiveCertificates(); /** + * + * *
    * Optional. If this flag is set, the Certificate Authority will be deleted as soon as
    * possible without a 30-day grace period where undeletion would have been
@@ -88,6 +123,7 @@ public interface DeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * bool skip_grace_period = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The skipGracePeriod. */ boolean getSkipGracePeriod(); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java index 6a158171..902dff4f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.DeleteCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest}
  */
-public final class DeleteCertificateTemplateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)
     DeleteCertificateTemplateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteCertificateTemplateRequest.newBuilder() to construct.
-  private DeleteCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteCertificateTemplateRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteCertificateTemplateRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private DeleteCertificateTemplateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +73,27 @@ private DeleteCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +101,42 @@ private DeleteCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class,
+            com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 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 @@ -118,30 +145,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 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 { @@ -152,6 +181,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +198,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +207,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +231,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +248,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +290,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other = + (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,96 +321,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest 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.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest 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.security.privateca.v1.DeleteCertificateTemplateRequest + 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.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DeleteCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate].
@@ -387,38 +427,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.class,
+              com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,19 +473,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest build() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -451,7 +497,8 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest result =
+          new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,46 +509,52 @@ public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest b
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -529,7 +582,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +596,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +621,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string name = 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 { @@ -584,57 +646,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * 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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * string 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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
      * `projects/*/locations/*/certificateTemplates/*`.
      * 
* - * 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; @@ -642,6 +717,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +734,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +749,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +766,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +781,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +798,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +829,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +856,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +882,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +920,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java index c4239380..f61466ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DeleteCertificateTemplateRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DeleteCertificateTemplateRequestOrBuilder extends +public interface DeleteCertificateTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 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 for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format
    * `projects/*/locations/*/certificateTemplates/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface DeleteCertificateTemplateRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface DeleteCertificateTemplateRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java index 4a8638cf..f5100c67 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest}
  */
-public final class DisableCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DisableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)
     DisableCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DisableCertificateAuthorityRequest.newBuilder() to construct.
-  private DisableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DisableCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DisableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private DisableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DisableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DisableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +73,27 @@ private DisableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +101,43 @@ private DisableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +146,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +182,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +199,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +208,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +232,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +249,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +291,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.security.privateca.v1.DisableCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,96 +323,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest 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.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest 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.security.privateca.v1.DisableCertificateAuthorityRequest + 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.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority].
@@ -387,38 +429,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,19 +475,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -450,8 +498,10 @@ public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,46 +512,52 @@ public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -525,11 +581,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +600,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +625,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +650,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +721,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +738,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +753,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +770,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +785,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +802,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +833,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +860,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +886,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +924,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java index 1d5ef54d..7d918046 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/DisableCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface DisableCertificateAuthorityRequestOrBuilder extends +public interface DisableCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.DisableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface DisableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface DisableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java index f243f7e9..7e184139 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest}
  */
-public final class EnableCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EnableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)
     EnableCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EnableCertificateAuthorityRequest.newBuilder() to construct.
-  private EnableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private EnableCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EnableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private EnableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EnableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EnableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +73,27 @@ private EnableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +101,42 @@ private EnableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +145,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +181,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +198,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +207,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +231,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +248,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +290,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.security.privateca.v1.EnableCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,96 +322,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest 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.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest 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.security.privateca.v1.EnableCertificateAuthorityRequest + 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.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -387,38 +428,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,19 +474,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -451,7 +498,8 @@ public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,46 +510,52 @@ public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -529,7 +583,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +597,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +622,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +647,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +718,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +735,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +750,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +767,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +782,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +799,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +830,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +857,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +883,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +921,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java index ecb2fae4..db3255d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/EnableCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface EnableCertificateAuthorityRequestOrBuilder extends +public interface EnableCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.EnableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface EnableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface EnableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java index a27ad87e..b7cafb36 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsRequest}
  */
-public final class FetchCaCertsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FetchCaCertsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCaCertsRequest)
     FetchCaCertsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FetchCaCertsRequest.newBuilder() to construct.
   private FetchCaCertsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FetchCaCertsRequest() {
     caPool_ = "";
     requestId_ = "";
@@ -27,16 +45,15 @@ private FetchCaCertsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FetchCaCertsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FetchCaCertsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private FetchCaCertsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            caPool_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              caPool_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +100,42 @@ private FetchCaCertsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class,
+            com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
   }
 
   public static final int CA_POOL_FIELD_NUMBER = 1;
   private volatile java.lang.Object caPool_;
   /**
+   *
+   *
    * 
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The caPool. */ @java.lang.Override @@ -118,30 +144,32 @@ public java.lang.String getCaPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPool_ = s; return s; } } /** + * + * *
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for caPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaPoolBytes() { + public com.google.protobuf.ByteString getCaPoolBytes() { java.lang.Object ref = caPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caPool_ = b; return b; } else { @@ -152,6 +180,8 @@ public java.lang.String getCaPool() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +197,7 @@ public java.lang.String getCaPool() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +206,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +230,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +247,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caPool_); } @@ -258,17 +289,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.FetchCaCertsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCaCertsRequest other = (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) obj; + com.google.cloud.security.privateca.v1.FetchCaCertsRequest other = + (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) obj; - if (!getCaPool() - .equals(other.getCaPool())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getCaPool().equals(other.getCaPool())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,96 +320,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest 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.security.privateca.v1.FetchCaCertsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCaCertsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.FetchCaCertsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -387,21 +425,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCaCertsRequest)
       com.google.cloud.security.privateca.v1.FetchCaCertsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class, com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.FetchCaCertsRequest.class,
+              com.google.cloud.security.privateca.v1.FetchCaCertsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.FetchCaCertsRequest.newBuilder()
@@ -409,16 +449,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,9 +469,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -451,7 +490,8 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCaCertsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCaCertsRequest result = new com.google.cloud.security.privateca.v1.FetchCaCertsRequest(this);
+      com.google.cloud.security.privateca.v1.FetchCaCertsRequest result =
+          new com.google.cloud.security.privateca.v1.FetchCaCertsRequest(this);
       result.caPool_ = caPool_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,38 +502,39 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.FetchCaCertsRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -501,7 +542,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsRequest.getDefaultInstance())
+        return this;
       if (!other.getCaPool().isEmpty()) {
         caPool_ = other.caPool_;
         onChanged();
@@ -529,7 +571,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.FetchCaCertsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +584,23 @@ public Builder mergeFrom(
 
     private java.lang.Object caPool_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The caPool. */ public java.lang.String getCaPool() { java.lang.Object ref = caPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caPool_ = s; return s; @@ -562,21 +609,24 @@ public java.lang.String getCaPool() { } } /** + * + * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for caPool. */ - public com.google.protobuf.ByteString - getCaPoolBytes() { + public com.google.protobuf.ByteString getCaPoolBytes() { java.lang.Object ref = caPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caPool_ = b; return b; } else { @@ -584,57 +634,70 @@ public java.lang.String getCaPool() { } } /** + * + * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The caPool to set. * @return This builder for chaining. */ - public Builder setCaPool( - java.lang.String value) { + public Builder setCaPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caPool_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCaPool() { - + caPool_ = getDefaultInstance().getCaPool(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
      * format `projects/*/locations/*/caPools/*`.
      * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for caPool to set. * @return This builder for chaining. */ - public Builder setCaPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setCaPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caPool_ = value; onChanged(); return this; @@ -642,6 +705,8 @@ public Builder setCaPoolBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +722,13 @@ public Builder setCaPoolBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +737,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +754,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +769,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +786,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +817,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +844,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCaCertsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCaCertsRequest) private static final com.google.cloud.security.privateca.v1.FetchCaCertsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCaCertsRequest(); } @@ -811,16 +884,16 @@ public static com.google.cloud.security.privateca.v1.FetchCaCertsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCaCertsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCaCertsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCaCertsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCaCertsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,6 +908,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.FetchCaCertsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java index d5c05a00..93037db3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface FetchCaCertsRequestOrBuilder extends +public interface FetchCaCertsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCaCertsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The caPool. */ java.lang.String getCaPool(); /** + * + * *
    * Required. The resource name for the [CaPool][google.cloud.security.privateca.v1.CaPool] in the
    * format `projects/*/locations/*/caPools/*`.
    * 
* - * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for caPool. */ - com.google.protobuf.ByteString - getCaPoolBytes(); + com.google.protobuf.ByteString getCaPoolBytes(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface FetchCaCertsRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface FetchCaCertsRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java index 20dcc72b..fc5fb498 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse}
  */
-public final class FetchCaCertsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FetchCaCertsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse)
     FetchCaCertsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FetchCaCertsResponse.newBuilder() to construct.
   private FetchCaCertsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FetchCaCertsResponse() {
     caCerts_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FetchCaCertsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FetchCaCertsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,22 +72,28 @@ private FetchCaCertsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              caCerts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                caCerts_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              caCerts_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain
+                          .parser(),
+                      extensionRegistry));
+              break;
             }
-            caCerts_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -78,8 +101,7 @@ private FetchCaCertsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         caCerts_ = java.util.Collections.unmodifiableList(caCerts_);
@@ -88,92 +110,104 @@ private FetchCaCertsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class,
+            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
   }
 
-  public interface CertChainOrBuilder extends
+  public interface CertChainOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @return A list containing the certificates. */ - java.util.List - getCertificatesList(); + java.util.List getCertificatesList(); /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @return The count of certificates. */ int getCertificatesCount(); /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @param index The index of the element to return. * @return The certificates at the given index. */ java.lang.String getCertificates(int index); /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @param index The index of the value to return. * @return The bytes of the certificates at the given index. */ - com.google.protobuf.ByteString - getCertificatesBytes(int index); + com.google.protobuf.ByteString getCertificatesBytes(int index); } - /** - * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} - */ - public static final class CertChain extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} */ + public static final class CertChain extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) CertChainOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertChain.newBuilder() to construct. private CertChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CertChain() { certificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CertChain(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CertChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -193,22 +227,23 @@ private CertChain( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificates_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + certificates_.add(s); + break; } - certificates_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -216,8 +251,7 @@ private CertChain( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = certificates_.getUnmodifiableView(); @@ -226,50 +260,61 @@ private CertChain( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder.class); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList certificates_; /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @return A list containing the certificates. */ - public com.google.protobuf.ProtocolStringList - getCertificatesList() { + public com.google.protobuf.ProtocolStringList getCertificatesList() { return certificates_; } /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @return The count of certificates. */ public int getCertificatesCount() { return certificates_.size(); } /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @param index The index of the element to return. * @return The certificates at the given index. */ @@ -277,20 +322,23 @@ public java.lang.String getCertificates(int index) { return certificates_.get(index); } /** + * + * *
      * The certificates that form the CA chain, from leaf to root order.
      * 
* * repeated string certificates = 1; + * * @param index The index of the value to return. * @return The bytes of the certificates at the given index. */ - public com.google.protobuf.ByteString - getCertificatesBytes(int index) { + public com.google.protobuf.ByteString getCertificatesBytes(int index) { return certificates_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,8 +350,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificates_.getRaw(i)); } @@ -332,15 +379,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.security.privateca.v1.FetchCaCertsResponse.CertChain)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) obj; + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other = + (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) obj; - if (!getCertificatesList() - .equals(other.getCertificatesList())) return false; + if (!getCertificatesList().equals(other.getCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,87 +409,95 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain 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.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain 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.security.privateca.v1.FetchCaCertsResponse.CertChain + 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.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -451,41 +506,43 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder.class); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.class, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -495,19 +552,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain build() { - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = buildPartial(); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -516,7 +576,8 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain bui @java.lang.Override public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain buildPartial() { - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(this); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain result = + new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { certificates_ = certificates_.getUnmodifiableView(); @@ -531,46 +592,54 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.FetchCaCertsResponse.CertChain) { - return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain)other); + if (other + instanceof com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other) { - if (other == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain other) { + if (other + == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + .getDefaultInstance()) return this; if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { certificates_ = other.certificates_; @@ -600,7 +669,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,44 +680,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList certificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList certificates_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new com.google.protobuf.LazyStringArrayList(certificates_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @return A list containing the certificates. */ - public com.google.protobuf.ProtocolStringList - getCertificatesList() { + public com.google.protobuf.ProtocolStringList getCertificatesList() { return certificates_.getUnmodifiableView(); } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @return The count of certificates. */ public int getCertificatesCount() { return certificates_.size(); } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @param index The index of the element to return. * @return The certificates at the given index. */ @@ -654,80 +736,90 @@ public java.lang.String getCertificates(int index) { return certificates_.get(index); } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @param index The index of the value to return. * @return The bytes of the certificates at the given index. */ - public com.google.protobuf.ByteString - getCertificatesBytes(int index) { + public com.google.protobuf.ByteString getCertificatesBytes(int index) { return certificates_.getByteString(index); } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @param index The index to set the value at. * @param value The certificates to set. * @return This builder for chaining. */ - public Builder setCertificates( - int index, java.lang.String value) { + public Builder setCertificates(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCertificatesIsMutable(); + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); certificates_.set(index, value); onChanged(); return this; } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @param value The certificates to add. * @return This builder for chaining. */ - public Builder addCertificates( - java.lang.String value) { + public Builder addCertificates(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCertificatesIsMutable(); + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); return this; } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @param values The certificates to add. * @return This builder for chaining. */ - public Builder addAllCertificates( - java.lang.Iterable values) { + public Builder addAllCertificates(java.lang.Iterable values) { ensureCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); onChanged(); return this; } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @return This builder for chaining. */ public Builder clearCertificates() { @@ -737,25 +829,28 @@ public Builder clearCertificates() { return this; } /** + * + * *
        * The certificates that form the CA chain, from leaf to root order.
        * 
* * repeated string certificates = 1; + * * @param value The bytes of the certificates to add. * @return This builder for chaining. */ - public Builder addCertificatesBytes( - com.google.protobuf.ByteString value) { + public Builder addCertificatesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -768,30 +863,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain) - private static final com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain(); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertChain(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertChain(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -803,83 +901,103 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CA_CERTS_FIELD_NUMBER = 1; - private java.util.List caCerts_; + private java.util.List + caCerts_; /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ @java.lang.Override - public java.util.List getCaCertsList() { + public java.util.List + getCaCertsList() { return caCerts_; } /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> getCaCertsOrBuilderList() { return caCerts_; } /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ @java.lang.Override public int getCaCertsCount() { return caCerts_.size(); } /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts(int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts( + int index) { return caCerts_.get(index); } /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder getCaCertsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder + getCaCertsOrBuilder(int index) { return caCerts_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -891,8 +1009,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < caCerts_.size(); i++) { output.writeMessage(1, caCerts_.get(i)); } @@ -906,8 +1023,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < caCerts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, caCerts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caCerts_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -917,15 +1033,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.security.privateca.v1.FetchCaCertsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCaCertsResponse other = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) obj; + com.google.cloud.security.privateca.v1.FetchCaCertsResponse other = + (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) obj; - if (!getCaCertsList() - .equals(other.getCaCertsList())) return false; + if (!getCaCertsList().equals(other.getCaCertsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -947,96 +1063,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse 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.security.privateca.v1.FetchCaCertsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCaCertsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCaCerts][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts].
@@ -1044,21 +1168,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCaCertsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCaCertsResponse)
       com.google.cloud.security.privateca.v1.FetchCaCertsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.FetchCaCertsResponse.class,
+              com.google.cloud.security.privateca.v1.FetchCaCertsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.FetchCaCertsResponse.newBuilder()
@@ -1066,17 +1192,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCaCertsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1090,9 +1216,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -1111,7 +1237,8 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCaCertsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCaCertsResponse result = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse(this);
+      com.google.cloud.security.privateca.v1.FetchCaCertsResponse result =
+          new com.google.cloud.security.privateca.v1.FetchCaCertsResponse(this);
       int from_bitField0_ = bitField0_;
       if (caCertsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1130,38 +1257,39 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.FetchCaCertsResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsResponse)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCaCertsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1169,7 +1297,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.FetchCaCertsResponse.getDefaultInstance())
+        return this;
       if (caCertsBuilder_ == null) {
         if (!other.caCerts_.isEmpty()) {
           if (caCerts_.isEmpty()) {
@@ -1188,9 +1317,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCaCertsResp
             caCertsBuilder_ = null;
             caCerts_ = other.caCerts_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            caCertsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCaCertsFieldBuilder() : null;
+            caCertsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCaCertsFieldBuilder()
+                    : null;
           } else {
             caCertsBuilder_.addAllMessages(other.caCerts_);
           }
@@ -1215,7 +1345,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.FetchCaCertsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1224,30 +1355,42 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List caCerts_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        caCerts_ = java.util.Collections.emptyList();
+
     private void ensureCaCertsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        caCerts_ = new java.util.ArrayList(caCerts_);
+        caCerts_ =
+            new java.util.ArrayList<
+                com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain>(caCerts_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> caCertsBuilder_;
+            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain,
+            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder,
+            com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder>
+        caCertsBuilder_;
 
     /**
+     *
+     *
      * 
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public java.util.List getCaCertsList() { + public java.util.List + getCaCertsList() { if (caCertsBuilder_ == null) { return java.util.Collections.unmodifiableList(caCerts_); } else { @@ -1255,13 +1398,17 @@ public java.util.List * The PEM encoded CA certificate chains of all * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool]. *
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public int getCaCertsCount() { if (caCertsBuilder_ == null) { @@ -1271,15 +1418,20 @@ public int getCaCertsCount() { } } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts(int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts( + int index) { if (caCertsBuilder_ == null) { return caCerts_.get(index); } else { @@ -1287,13 +1439,17 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain get } } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder setCaCerts( int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { @@ -1310,16 +1466,22 @@ public Builder setCaCerts( return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder setCaCerts( - int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + builderForValue) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); caCerts_.set(index, builderForValue.build()); @@ -1330,15 +1492,20 @@ public Builder setCaCerts( return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public Builder addCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { + public Builder addCaCerts( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { if (caCertsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1352,13 +1519,17 @@ public Builder addCaCerts(com.google.cloud.security.privateca.v1.FetchCaCertsRes return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder addCaCerts( int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain value) { @@ -1375,16 +1546,21 @@ public Builder addCaCerts( return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder addCaCerts( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder builderForValue) { + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + builderForValue) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); caCerts_.add(builderForValue.build()); @@ -1395,16 +1571,22 @@ public Builder addCaCerts( return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder addCaCerts( - int index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + builderForValue) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); caCerts_.add(index, builderForValue.build()); @@ -1415,20 +1597,25 @@ public Builder addCaCerts( return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder addAllCaCerts( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain> + values) { if (caCertsBuilder_ == null) { ensureCaCertsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, caCerts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCerts_); onChanged(); } else { caCertsBuilder_.addAllMessages(values); @@ -1436,13 +1623,17 @@ public Builder addAllCaCerts( return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder clearCaCerts() { if (caCertsBuilder_ == null) { @@ -1455,13 +1646,17 @@ public Builder clearCaCerts() { return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ public Builder removeCaCerts(int index) { if (caCertsBuilder_ == null) { @@ -1474,45 +1669,60 @@ public Builder removeCaCerts(int index) { return this; } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder getCaCertsBuilder( - int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + getCaCertsBuilder(int index) { return getCaCertsFieldBuilder().getBuilder(index); } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder getCaCertsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder + getCaCertsOrBuilder(int index) { if (caCertsBuilder_ == null) { - return caCerts_.get(index); } else { + return caCerts_.get(index); + } else { return caCertsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public java.util.List - getCaCertsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> + getCaCertsOrBuilderList() { if (caCertsBuilder_ != null) { return caCertsBuilder_.getMessageOrBuilderList(); } else { @@ -1520,62 +1730,84 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBu } } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder addCaCertsBuilder() { - return getCaCertsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + addCaCertsBuilder() { + return getCaCertsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + .getDefaultInstance()); } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder addCaCertsBuilder( - int index) { - return getCaCertsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder + addCaCertsBuilder(int index) { + return getCaCertsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain + .getDefaultInstance()); } /** + * + * *
      * The PEM encoded CA certificate chains of all
      * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
      * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
      * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - public java.util.List - getCaCertsBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder> + getCaCertsBuilderList() { return getCaCertsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> getCaCertsFieldBuilder() { if (caCertsBuilder_ == null) { - caCertsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder>( - caCerts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + caCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain.Builder, + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder>( + caCerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); caCerts_ = null; } return caCertsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1585,12 +1817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCaCertsResponse) private static final com.google.cloud.security.privateca.v1.FetchCaCertsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCaCertsResponse(); } @@ -1599,16 +1831,16 @@ public static com.google.cloud.security.privateca.v1.FetchCaCertsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCaCertsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCaCertsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCaCertsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCaCertsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1623,6 +1855,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.FetchCaCertsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java index 97e507fd..c1157ebc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java @@ -1,63 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface FetchCaCertsResponseOrBuilder extends +public interface FetchCaCertsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCaCertsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - java.util.List + java.util.List getCaCertsList(); /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain getCaCerts(int index); /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ int getCaCertsCount(); /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder> getCaCertsOrBuilderList(); /** + * + * *
    * The PEM encoded CA certificate chains of all
    * [ACTIVE][CertificateAuthority.State.ACTIVE] [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
    * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
    * 
* - * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; + * */ - com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder getCaCertsOrBuilder( - int index); + com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChainOrBuilder + getCaCertsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java index 3246480c..c3f37614 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest}
  */
-public final class FetchCertificateAuthorityCsrRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FetchCertificateAuthorityCsrRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)
     FetchCertificateAuthorityCsrRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FetchCertificateAuthorityCsrRequest.newBuilder() to construct.
-  private FetchCertificateAuthorityCsrRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private FetchCertificateAuthorityCsrRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FetchCertificateAuthorityCsrRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FetchCertificateAuthorityCsrRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FetchCertificateAuthorityCsrRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +73,20 @@ private FetchCertificateAuthorityCsrRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,35 +94,43 @@ private FetchCertificateAuthorityCsrRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class,
+            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -111,30 +139,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -143,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,15 +209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) obj; + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other = + (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,97 +237,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest 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.security.privateca.v1.FetchCertificateAuthorityCsrRequest + 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.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -304,38 +349,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)
       com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.class,
+              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -345,19 +393,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest build() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -365,8 +416,10 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(this);
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest result =
+          new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -376,46 +429,52 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrReques
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -435,11 +494,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -451,19 +513,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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; @@ -472,21 +538,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -494,64 +563,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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); } @@ -561,30 +643,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) - private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest(); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -596,9 +681,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java new file mode 100644 index 00000000..8e979132 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface FetchCertificateAuthorityCsrRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
+   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
+   * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java index 105a972a..6ed09dc0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse}
  */
-public final class FetchCertificateAuthorityCsrResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FetchCertificateAuthorityCsrResponse
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)
     FetchCertificateAuthorityCsrResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FetchCertificateAuthorityCsrResponse.newBuilder() to construct.
-  private FetchCertificateAuthorityCsrResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private FetchCertificateAuthorityCsrResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FetchCertificateAuthorityCsrResponse() {
     pemCsr_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FetchCertificateAuthorityCsrResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FetchCertificateAuthorityCsrResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +73,20 @@ private FetchCertificateAuthorityCsrResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pemCsr_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              pemCsr_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,34 +94,40 @@ private FetchCertificateAuthorityCsrResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class,
+            com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder
+                .class);
   }
 
   public static final int PEM_CSR_FIELD_NUMBER = 1;
   private volatile java.lang.Object pemCsr_;
   /**
+   *
+   *
    * 
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCsr. */ @java.lang.Override @@ -110,29 +136,29 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; } } /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -141,6 +167,7 @@ public java.lang.String getPemCsr() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCsr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCsr_); } @@ -177,15 +203,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) obj; + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other = + (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) obj; - if (!getPemCsr() - .equals(other.getPemCsr())) return false; + if (!getPemCsr().equals(other.getPemCsr())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,97 +231,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse 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.security.privateca.v1.FetchCertificateAuthorityCsrResponse + 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.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -302,38 +343,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)
       com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.class,
+              com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,19 +387,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse build() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result = buildPartial();
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -363,8 +410,10 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRespon
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(this);
+    public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse result =
+          new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(this);
       result.pemCsr_ = pemCsr_;
       onBuilt();
       return result;
@@ -374,46 +423,52 @@ public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRespon
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse
+              .getDefaultInstance()) return this;
       if (!other.getPemCsr().isEmpty()) {
         pemCsr_ = other.pemCsr_;
         onChanged();
@@ -433,11 +488,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parsedMessage = null;
+      com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +507,20 @@ public Builder mergeFrom(
 
     private java.lang.Object pemCsr_ = "";
     /**
+     *
+     *
      * 
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCsr. */ public java.lang.String getPemCsr() { java.lang.Object ref = pemCsr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; @@ -469,20 +529,21 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -490,61 +551,68 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr( - java.lang.String value) { + public Builder setPemCsr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCsr_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPemCsr() { - + pemCsr_ = getDefaultInstance().getPemCsr(); onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCsr_ = 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); } @@ -554,30 +622,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) - private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse(); } - public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,9 +660,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java index 97d529f2..fc17d310 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCertificateAuthorityCsrResponseOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface FetchCertificateAuthorityCsrResponseOrBuilder extends +public interface FetchCertificateAuthorityCsrResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCsr. */ java.lang.String getPemCsr(); /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString - getPemCsrBytes(); + com.google.protobuf.ByteString getPemCsrBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java index 5d601574..061bac70 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for [CertificateAuthorityService.GetCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCaPoolRequest} */ -public final class GetCaPoolRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCaPoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCaPoolRequest) GetCaPoolRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCaPoolRequest.newBuilder() to construct. private GetCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCaPoolRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCaPoolRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCaPoolRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetCaPoolRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetCaPoolRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, + com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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 @@ -109,29 +134,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 [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,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.security.privateca.v1.GetCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCaPoolRequest other = (com.google.cloud.security.privateca.v1.GetCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.GetCaPoolRequest other = + (com.google.cloud.security.privateca.v1.GetCaPoolRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCaPoolRequest 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.security.privateca.v1.GetCaPoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCaPoolRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.GetCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.GetCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCaPoolRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCaPoolRequest) com.google.cloud.security.privateca.v1.GetCaPoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCaPoolRequest.class, + com.google.cloud.security.privateca.v1.GetCaPoolRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.GetCaPoolRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.security.privateca.v1.GetCaPoolRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.GetCaPoolRequest buildPartial() { - com.google.cloud.security.privateca.v1.GetCaPoolRequest result = new com.google.cloud.security.privateca.v1.GetCaPoolRequest(this); + com.google.cloud.security.privateca.v1.GetCaPoolRequest result = + new com.google.cloud.security.privateca.v1.GetCaPoolRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.security.privateca.v1.GetCaPoolRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.GetCaPoolRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.GetCaPoolRequest)other); + return mergeFrom((com.google.cloud.security.privateca.v1.GetCaPoolRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCaPoolRequest other) { - if (other == com.google.cloud.security.privateca.v1.GetCaPoolRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.security.privateca.v1.GetCaPoolRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.GetCaPoolRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.GetCaPoolRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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 { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCaPoolRequest) private static final com.google.cloud.security.privateca.v1.GetCaPoolRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCaPoolRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.security.privateca.v1.GetCaPoolRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.GetCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java new file mode 100644 index 00000000..bdc066df --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCaPoolRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCaPoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCaPoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java index 9a81ce35..ec1c5b67 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateAuthorityRequest} */ -public final class GetCertificateAuthorityRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) GetCertificateAuthorityRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCertificateAuthorityRequest.newBuilder() to construct. - private GetCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetCertificateAuthorityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCertificateAuthorityRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCertificateAuthorityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCertificateAuthorityRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private GetCertificateAuthorityRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,42 @@ private GetCertificateAuthorityRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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 @@ -110,30 +136,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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 { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +206,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.security.privateca.v1.GetCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +234,145 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest 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.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest 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.security.privateca.v1.GetCertificateAuthorityRequest + 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.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateAuthorityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +382,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +405,8 @@ public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest bui @java.lang.Override public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest(this); + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest result = + new com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +416,51 @@ public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest)other); + return mergeFrom( + (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other) { - if (other == com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest other) { + if (other + == com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +484,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +498,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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; @@ -470,21 +523,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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 { @@ -492,64 +548,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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); } @@ -559,30 +628,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +665,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.GetCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java new file mode 100644 index 00000000..236eb1e1 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateAuthorityRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateAuthorityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateAuthorityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java index fb96c801..3ffc68d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRequest}
  */
-public final class GetCertificateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetCertificateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateRequest)
     GetCertificateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetCertificateRequest.newBuilder() to construct.
   private GetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetCertificateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private GetCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,34 +92,41 @@ private GetCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.GetCertificateRequest.class,
+            com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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 @@ -110,29 +135,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 [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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 { @@ -141,6 +168,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -177,15 +204,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.security.privateca.v1.GetCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateRequest other = (com.google.cloud.security.privateca.v1.GetCertificateRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateRequest other = + (com.google.cloud.security.privateca.v1.GetCertificateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,96 +232,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCertificateRequest 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.security.privateca.v1.GetCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.GetCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate].
@@ -302,21 +337,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateRequest)
       com.google.cloud.security.privateca.v1.GetCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.GetCertificateRequest.class,
+              com.google.cloud.security.privateca.v1.GetCertificateRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.GetCertificateRequest.newBuilder()
@@ -324,16 +361,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,13 +379,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateRequest getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.GetCertificateRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance();
     }
 
@@ -364,7 +401,8 @@ public com.google.cloud.security.privateca.v1.GetCertificateRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.GetCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.GetCertificateRequest result = new com.google.cloud.security.privateca.v1.GetCertificateRequest(this);
+      com.google.cloud.security.privateca.v1.GetCertificateRequest result =
+          new com.google.cloud.security.privateca.v1.GetCertificateRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -374,38 +412,39 @@ public com.google.cloud.security.privateca.v1.GetCertificateRequest buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.security.privateca.v1.GetCertificateRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -437,7 +478,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.GetCertificateRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +491,22 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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; @@ -469,20 +515,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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 { @@ -490,61 +539,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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); } @@ -554,12 +616,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.GetCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateRequest(); } @@ -568,16 +631,16 @@ public static com.google.cloud.security.privateca.v1.GetCertificateRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.GetCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java new file mode 100644 index 00000000..57d34b00 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java index 1a0d9f01..a53ffa19 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList].
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRevocationListRequest}
  */
-public final class GetCertificateRevocationListRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetCertificateRevocationListRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)
     GetCertificateRevocationListRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetCertificateRevocationListRequest.newBuilder() to construct.
-  private GetCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GetCertificateRevocationListRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetCertificateRevocationListRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetCertificateRevocationListRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetCertificateRevocationListRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +73,20 @@ private GetCertificateRevocationListRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,35 +94,43 @@ private GetCertificateRevocationListRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class,
+            com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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 @@ -111,30 +139,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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 { @@ -143,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,15 +209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other = + (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,97 +237,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest 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.security.privateca.v1.GetCertificateRevocationListRequest + 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.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList].
@@ -304,38 +349,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateRevocationListRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)
       com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.class,
+              com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -345,19 +393,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest build() {
-      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -365,8 +416,10 @@ public com.google.cloud.security.privateca.v1.GetCertificateRevocationListReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(this);
+    public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest result =
+          new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -376,46 +429,52 @@ public com.google.cloud.security.privateca.v1.GetCertificateRevocationListReques
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -435,11 +494,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -451,19 +513,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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; @@ -472,21 +538,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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 { @@ -494,64 +563,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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); } @@ -561,30 +643,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -596,9 +681,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.GetCertificateRevocationListRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java new file mode 100644 index 00000000..09cd9cc3 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateRevocationListRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateRevocationListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateRevocationListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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.security.privateca.v1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java index feb4d078..3a13cd9e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.GetCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateTemplateRequest}
  */
-public final class GetCertificateTemplateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.GetCertificateTemplateRequest)
     GetCertificateTemplateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetCertificateTemplateRequest.newBuilder() to construct.
   private GetCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetCertificateTemplateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private GetCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,35 +92,42 @@ private GetCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class,
+            com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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 @@ -111,30 +136,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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 { @@ -143,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,15 +206,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.security.privateca.v1.GetCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other = + (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,96 +234,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest 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.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest 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.security.privateca.v1.GetCertificateTemplateRequest + 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.security.privateca.v1.GetCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate].
@@ -304,38 +340,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.GetCertificateTemplateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.GetCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.GetCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.class,
+              com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -345,14 +383,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -366,7 +406,8 @@ public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest buil
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest result =
+          new com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -376,46 +417,51 @@ public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest buil
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -439,7 +485,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -451,19 +499,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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; @@ -472,21 +524,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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 { @@ -494,64 +549,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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); } @@ -561,30 +629,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -596,9 +666,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.GetCertificateTemplateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java new file mode 100644 index 00000000..cfebc0ed --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/GetCertificateTemplateRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public interface GetCertificateTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.GetCertificateTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java index 658f0308..723ad3f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [KeyUsage][google.cloud.security.privateca.v1.KeyUsage] describes key usage values that may appear in an X.509
  * certificate.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage}
  */
-public final class KeyUsage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KeyUsage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.KeyUsage)
     KeyUsageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KeyUsage.newBuilder() to construct.
   private KeyUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KeyUsage() {
     unknownExtendedKeyUsages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KeyUsage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KeyUsage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,62 @@ private KeyUsage(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder subBuilder = null;
-            if (baseKeyUsage_ != null) {
-              subBuilder = baseKeyUsage_.toBuilder();
-            }
-            baseKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(baseKeyUsage_);
-              baseKeyUsage_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder subBuilder =
+                  null;
+              if (baseKeyUsage_ != null) {
+                subBuilder = baseKeyUsage_.toBuilder();
+              }
+              baseKeyUsage_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(baseKeyUsage_);
+                baseKeyUsage_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder subBuilder = null;
-            if (extendedKeyUsage_ != null) {
-              subBuilder = extendedKeyUsage_.toBuilder();
-            }
-            extendedKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(extendedKeyUsage_);
-              extendedKeyUsage_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
+                  subBuilder = null;
+              if (extendedKeyUsage_ != null) {
+                subBuilder = extendedKeyUsage_.toBuilder();
+              }
+              extendedKeyUsage_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(extendedKeyUsage_);
+                extendedKeyUsage_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              unknownExtendedKeyUsages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            unknownExtendedKeyUsages_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                unknownExtendedKeyUsages_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              unknownExtendedKeyUsages_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,125 +135,158 @@ private KeyUsage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+        unknownExtendedKeyUsages_ =
+            java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.KeyUsage.class, com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
+            com.google.cloud.security.privateca.v1.KeyUsage.class,
+            com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
   }
 
-  public interface KeyUsageOptionsOrBuilder extends
+  public interface KeyUsageOptionsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; + * * @return The digitalSignature. */ boolean getDigitalSignature(); /** + * + * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; + * * @return The contentCommitment. */ boolean getContentCommitment(); /** + * + * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; + * * @return The keyEncipherment. */ boolean getKeyEncipherment(); /** + * + * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; + * * @return The dataEncipherment. */ boolean getDataEncipherment(); /** + * + * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; + * * @return The keyAgreement. */ boolean getKeyAgreement(); /** + * + * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; + * * @return The certSign. */ boolean getCertSign(); /** + * + * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; + * * @return The crlSign. */ boolean getCrlSign(); /** + * + * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; + * * @return The encipherOnly. */ boolean getEncipherOnly(); /** + * + * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; + * * @return The decipherOnly. */ boolean getDecipherOnly(); } /** + * + * *
    * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
    * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -230,30 +294,29 @@ public interface KeyUsageOptionsOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions}
    */
-  public static final class KeyUsageOptions extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class KeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
       KeyUsageOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use KeyUsageOptions.newBuilder() to construct.
     private KeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private KeyUsageOptions() {
-    }
+
+    private KeyUsageOptions() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new KeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private KeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -272,58 +335,58 @@ private KeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8: {
-
-              digitalSignature_ = input.readBool();
-              break;
-            }
-            case 16: {
-
-              contentCommitment_ = input.readBool();
-              break;
-            }
-            case 24: {
-
-              keyEncipherment_ = input.readBool();
-              break;
-            }
-            case 32: {
-
-              dataEncipherment_ = input.readBool();
-              break;
-            }
-            case 40: {
-
-              keyAgreement_ = input.readBool();
-              break;
-            }
-            case 48: {
-
-              certSign_ = input.readBool();
-              break;
-            }
-            case 56: {
-
-              crlSign_ = input.readBool();
-              break;
-            }
-            case 64: {
-
-              encipherOnly_ = input.readBool();
-              break;
-            }
-            case 72: {
-
-              decipherOnly_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 8:
+              {
+                digitalSignature_ = input.readBool();
+                break;
+              }
+            case 16:
+              {
+                contentCommitment_ = input.readBool();
+                break;
+              }
+            case 24:
+              {
+                keyEncipherment_ = input.readBool();
+                break;
+              }
+            case 32:
+              {
+                dataEncipherment_ = input.readBool();
+                break;
+              }
+            case 40:
+              {
+                keyAgreement_ = input.readBool();
+                break;
+              }
+            case 48:
+              {
+                certSign_ = input.readBool();
+                break;
+              }
+            case 56:
+              {
+                crlSign_ = input.readBool();
+                break;
+              }
+            case 64:
+              {
+                encipherOnly_ = input.readBool();
+                break;
+              }
+            case 72:
+              {
+                decipherOnly_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -331,34 +394,39 @@ private KeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
+              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class,
+              com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
     }
 
     public static final int DIGITAL_SIGNATURE_FIELD_NUMBER = 1;
     private boolean digitalSignature_;
     /**
+     *
+     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; + * * @return The digitalSignature. */ @java.lang.Override @@ -369,12 +437,15 @@ public boolean getDigitalSignature() { public static final int CONTENT_COMMITMENT_FIELD_NUMBER = 2; private boolean contentCommitment_; /** + * + * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; + * * @return The contentCommitment. */ @java.lang.Override @@ -385,11 +456,14 @@ public boolean getContentCommitment() { public static final int KEY_ENCIPHERMENT_FIELD_NUMBER = 3; private boolean keyEncipherment_; /** + * + * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; + * * @return The keyEncipherment. */ @java.lang.Override @@ -400,11 +474,14 @@ public boolean getKeyEncipherment() { public static final int DATA_ENCIPHERMENT_FIELD_NUMBER = 4; private boolean dataEncipherment_; /** + * + * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; + * * @return The dataEncipherment. */ @java.lang.Override @@ -415,11 +492,14 @@ public boolean getDataEncipherment() { public static final int KEY_AGREEMENT_FIELD_NUMBER = 5; private boolean keyAgreement_; /** + * + * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; + * * @return The keyAgreement. */ @java.lang.Override @@ -430,11 +510,14 @@ public boolean getKeyAgreement() { public static final int CERT_SIGN_FIELD_NUMBER = 6; private boolean certSign_; /** + * + * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; + * * @return The certSign. */ @java.lang.Override @@ -445,11 +528,14 @@ public boolean getCertSign() { public static final int CRL_SIGN_FIELD_NUMBER = 7; private boolean crlSign_; /** + * + * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; + * * @return The crlSign. */ @java.lang.Override @@ -460,11 +546,14 @@ public boolean getCrlSign() { public static final int ENCIPHER_ONLY_FIELD_NUMBER = 8; private boolean encipherOnly_; /** + * + * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; + * * @return The encipherOnly. */ @java.lang.Override @@ -475,11 +564,14 @@ public boolean getEncipherOnly() { public static final int DECIPHER_ONLY_FIELD_NUMBER = 9; private boolean decipherOnly_; /** + * + * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; + * * @return The decipherOnly. */ @java.lang.Override @@ -488,6 +580,7 @@ public boolean getDecipherOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -499,8 +592,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (digitalSignature_ != false) { output.writeBool(1, digitalSignature_); } @@ -538,40 +630,31 @@ public int getSerializedSize() { size = 0; if (digitalSignature_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, digitalSignature_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, digitalSignature_); } if (contentCommitment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, contentCommitment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contentCommitment_); } if (keyEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, keyEncipherment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, keyEncipherment_); } if (dataEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, dataEncipherment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dataEncipherment_); } if (keyAgreement_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, keyAgreement_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, keyAgreement_); } if (certSign_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, certSign_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, certSign_); } if (crlSign_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, crlSign_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, crlSign_); } if (encipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, encipherOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, encipherOnly_); } if (decipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, decipherOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, decipherOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -581,31 +664,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.security.privateca.v1.KeyUsage.KeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other = (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) obj; - - if (getDigitalSignature() - != other.getDigitalSignature()) return false; - if (getContentCommitment() - != other.getContentCommitment()) return false; - if (getKeyEncipherment() - != other.getKeyEncipherment()) return false; - if (getDataEncipherment() - != other.getDataEncipherment()) return false; - if (getKeyAgreement() - != other.getKeyAgreement()) return false; - if (getCertSign() - != other.getCertSign()) return false; - if (getCrlSign() - != other.getCrlSign()) return false; - if (getEncipherOnly() - != other.getEncipherOnly()) return false; - if (getDecipherOnly() - != other.getDecipherOnly()) return false; + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other = + (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) obj; + + if (getDigitalSignature() != other.getDigitalSignature()) return false; + if (getContentCommitment() != other.getContentCommitment()) return false; + if (getKeyEncipherment() != other.getKeyEncipherment()) return false; + if (getDataEncipherment() != other.getDataEncipherment()) return false; + if (getKeyAgreement() != other.getKeyAgreement()) return false; + if (getCertSign() != other.getCertSign()) return false; + if (getCrlSign() != other.getCrlSign()) return false; + if (getEncipherOnly() != other.getEncipherOnly()) return false; + if (getDecipherOnly() != other.getDecipherOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -618,119 +693,118 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIGITAL_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDigitalSignature()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDigitalSignature()); hash = (37 * hash) + CONTENT_COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContentCommitment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContentCommitment()); hash = (37 * hash) + KEY_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getKeyEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyEncipherment()); hash = (37 * hash) + DATA_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDataEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataEncipherment()); hash = (37 * hash) + KEY_AGREEMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getKeyAgreement()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyAgreement()); hash = (37 * hash) + CERT_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCertSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCertSign()); hash = (37 * hash) + CRL_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCrlSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCrlSign()); hash = (37 * hash) + ENCIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEncipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEncipherOnly()); hash = (37 * hash) + DECIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDecipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDecipherOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions 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.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions 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.security.privateca.v1.KeyUsage.KeyUsageOptions + 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.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -740,6 +814,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
      * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -747,38 +823,41 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
         com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
+                com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.class,
+                com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder.class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -804,13 +883,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() {
+      public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions
+          getDefaultInstanceForType() {
         return com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance();
       }
 
@@ -825,7 +905,8 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions build() {
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions buildPartial() {
-        com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions result = new com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions(this);
+        com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions result =
+            new com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions(this);
         result.digitalSignature_ = digitalSignature_;
         result.contentCommitment_ = contentCommitment_;
         result.keyEncipherment_ = keyEncipherment_;
@@ -843,46 +924,52 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions buildPart
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.KeyUsage.KeyUsageOptions) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)other);
+          return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other) {
-        if (other == com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions other) {
+        if (other
+            == com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance())
+          return this;
         if (other.getDigitalSignature() != false) {
           setDigitalSignature(other.getDigitalSignature());
         }
@@ -929,7 +1016,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -939,13 +1028,16 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean digitalSignature_ ;
+      private boolean digitalSignature_;
       /**
+       *
+       *
        * 
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; + * * @return The digitalSignature. */ @java.lang.Override @@ -953,43 +1045,52 @@ public boolean getDigitalSignature() { return digitalSignature_; } /** + * + * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; + * * @param value The digitalSignature to set. * @return This builder for chaining. */ public Builder setDigitalSignature(boolean value) { - + digitalSignature_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; + * * @return This builder for chaining. */ public Builder clearDigitalSignature() { - + digitalSignature_ = false; onChanged(); return this; } - private boolean contentCommitment_ ; + private boolean contentCommitment_; /** + * + * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; + * * @return The contentCommitment. */ @java.lang.Override @@ -997,44 +1098,53 @@ public boolean getContentCommitment() { return contentCommitment_; } /** + * + * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; + * * @param value The contentCommitment to set. * @return This builder for chaining. */ public Builder setContentCommitment(boolean value) { - + contentCommitment_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; + * * @return This builder for chaining. */ public Builder clearContentCommitment() { - + contentCommitment_ = false; onChanged(); return this; } - private boolean keyEncipherment_ ; + private boolean keyEncipherment_; /** + * + * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; + * * @return The keyEncipherment. */ @java.lang.Override @@ -1042,42 +1152,51 @@ public boolean getKeyEncipherment() { return keyEncipherment_; } /** + * + * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; + * * @param value The keyEncipherment to set. * @return This builder for chaining. */ public Builder setKeyEncipherment(boolean value) { - + keyEncipherment_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; + * * @return This builder for chaining. */ public Builder clearKeyEncipherment() { - + keyEncipherment_ = false; onChanged(); return this; } - private boolean dataEncipherment_ ; + private boolean dataEncipherment_; /** + * + * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; + * * @return The dataEncipherment. */ @java.lang.Override @@ -1085,42 +1204,51 @@ public boolean getDataEncipherment() { return dataEncipherment_; } /** + * + * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; + * * @param value The dataEncipherment to set. * @return This builder for chaining. */ public Builder setDataEncipherment(boolean value) { - + dataEncipherment_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; + * * @return This builder for chaining. */ public Builder clearDataEncipherment() { - + dataEncipherment_ = false; onChanged(); return this; } - private boolean keyAgreement_ ; + private boolean keyAgreement_; /** + * + * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; + * * @return The keyAgreement. */ @java.lang.Override @@ -1128,42 +1256,51 @@ public boolean getKeyAgreement() { return keyAgreement_; } /** + * + * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; + * * @param value The keyAgreement to set. * @return This builder for chaining. */ public Builder setKeyAgreement(boolean value) { - + keyAgreement_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; + * * @return This builder for chaining. */ public Builder clearKeyAgreement() { - + keyAgreement_ = false; onChanged(); return this; } - private boolean certSign_ ; + private boolean certSign_; /** + * + * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; + * * @return The certSign. */ @java.lang.Override @@ -1171,42 +1308,51 @@ public boolean getCertSign() { return certSign_; } /** + * + * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; + * * @param value The certSign to set. * @return This builder for chaining. */ public Builder setCertSign(boolean value) { - + certSign_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; + * * @return This builder for chaining. */ public Builder clearCertSign() { - + certSign_ = false; onChanged(); return this; } - private boolean crlSign_ ; + private boolean crlSign_; /** + * + * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; + * * @return The crlSign. */ @java.lang.Override @@ -1214,42 +1360,51 @@ public boolean getCrlSign() { return crlSign_; } /** + * + * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; + * * @param value The crlSign to set. * @return This builder for chaining. */ public Builder setCrlSign(boolean value) { - + crlSign_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; + * * @return This builder for chaining. */ public Builder clearCrlSign() { - + crlSign_ = false; onChanged(); return this; } - private boolean encipherOnly_ ; + private boolean encipherOnly_; /** + * + * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; + * * @return The encipherOnly. */ @java.lang.Override @@ -1257,42 +1412,51 @@ public boolean getEncipherOnly() { return encipherOnly_; } /** + * + * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; + * * @param value The encipherOnly to set. * @return This builder for chaining. */ public Builder setEncipherOnly(boolean value) { - + encipherOnly_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; + * * @return This builder for chaining. */ public Builder clearEncipherOnly() { - + encipherOnly_ = false; onChanged(); return this; } - private boolean decipherOnly_ ; + private boolean decipherOnly_; /** + * + * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; + * * @return The decipherOnly. */ @java.lang.Override @@ -1300,34 +1464,41 @@ public boolean getDecipherOnly() { return decipherOnly_; } /** + * + * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; + * * @param value The decipherOnly to set. * @return This builder for chaining. */ public Builder setDecipherOnly(boolean value) { - + decipherOnly_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; + * * @return This builder for chaining. */ public Builder clearDecipherOnly() { - + decipherOnly_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1340,30 +1511,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions) - private static final com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1375,83 +1548,104 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExtendedKeyUsageOptionsOrBuilder extends + public interface ExtendedKeyUsageOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; + * * @return The serverAuth. */ boolean getServerAuth(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; + * * @return The clientAuth. */ boolean getClientAuth(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; + * * @return The codeSigning. */ boolean getCodeSigning(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; + * * @return The emailProtection. */ boolean getEmailProtection(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; + * * @return The timeStamping. */ boolean getTimeStamping(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; + * * @return The ocspSigning. */ boolean getOcspSigning(); } /** + * + * *
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
    * certain common OIDs that could be specified as an extended key usage value.
@@ -1459,30 +1653,29 @@ public interface ExtendedKeyUsageOptionsOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions}
    */
-  public static final class ExtendedKeyUsageOptions extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ExtendedKeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)
       ExtendedKeyUsageOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ExtendedKeyUsageOptions.newBuilder() to construct.
     private ExtendedKeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ExtendedKeyUsageOptions() {
-    }
+
+    private ExtendedKeyUsageOptions() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ExtendedKeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ExtendedKeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1501,43 +1694,43 @@ private ExtendedKeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8: {
-
-              serverAuth_ = input.readBool();
-              break;
-            }
-            case 16: {
-
-              clientAuth_ = input.readBool();
-              break;
-            }
-            case 24: {
-
-              codeSigning_ = input.readBool();
-              break;
-            }
-            case 32: {
-
-              emailProtection_ = input.readBool();
-              break;
-            }
-            case 40: {
-
-              timeStamping_ = input.readBool();
-              break;
-            }
-            case 48: {
-
-              ocspSigning_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 8:
+              {
+                serverAuth_ = input.readBool();
+                break;
+              }
+            case 16:
+              {
+                clientAuth_ = input.readBool();
+                break;
+              }
+            case 24:
+              {
+                codeSigning_ = input.readBool();
+                break;
+              }
+            case 32:
+              {
+                emailProtection_ = input.readBool();
+                break;
+              }
+            case 40:
+              {
+                timeStamping_ = input.readBool();
+                break;
+              }
+            case 48:
+              {
+                ocspSigning_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1545,35 +1738,41 @@ private ExtendedKeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder.class);
+              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class,
+              com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
+                  .class);
     }
 
     public static final int SERVER_AUTH_FIELD_NUMBER = 1;
     private boolean serverAuth_;
     /**
+     *
+     *
      * 
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; + * * @return The serverAuth. */ @java.lang.Override @@ -1584,12 +1783,15 @@ public boolean getServerAuth() { public static final int CLIENT_AUTH_FIELD_NUMBER = 2; private boolean clientAuth_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; + * * @return The clientAuth. */ @java.lang.Override @@ -1600,12 +1802,15 @@ public boolean getClientAuth() { public static final int CODE_SIGNING_FIELD_NUMBER = 3; private boolean codeSigning_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; + * * @return The codeSigning. */ @java.lang.Override @@ -1616,12 +1821,15 @@ public boolean getCodeSigning() { public static final int EMAIL_PROTECTION_FIELD_NUMBER = 4; private boolean emailProtection_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; + * * @return The emailProtection. */ @java.lang.Override @@ -1632,12 +1840,15 @@ public boolean getEmailProtection() { public static final int TIME_STAMPING_FIELD_NUMBER = 5; private boolean timeStamping_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; + * * @return The timeStamping. */ @java.lang.Override @@ -1648,12 +1859,15 @@ public boolean getTimeStamping() { public static final int OCSP_SIGNING_FIELD_NUMBER = 6; private boolean ocspSigning_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; + * * @return The ocspSigning. */ @java.lang.Override @@ -1662,6 +1876,7 @@ public boolean getOcspSigning() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1673,8 +1888,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (serverAuth_ != false) { output.writeBool(1, serverAuth_); } @@ -1703,28 +1917,22 @@ public int getSerializedSize() { size = 0; if (serverAuth_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, serverAuth_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, serverAuth_); } if (clientAuth_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clientAuth_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientAuth_); } if (codeSigning_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, codeSigning_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, codeSigning_); } if (emailProtection_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, emailProtection_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, emailProtection_); } if (timeStamping_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, timeStamping_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, timeStamping_); } if (ocspSigning_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, ocspSigning_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, ocspSigning_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1734,25 +1942,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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other = (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) obj; - - if (getServerAuth() - != other.getServerAuth()) return false; - if (getClientAuth() - != other.getClientAuth()) return false; - if (getCodeSigning() - != other.getCodeSigning()) return false; - if (getEmailProtection() - != other.getEmailProtection()) return false; - if (getTimeStamping() - != other.getTimeStamping()) return false; - if (getOcspSigning() - != other.getOcspSigning()) return false; + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other = + (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) obj; + + if (getServerAuth() != other.getServerAuth()) return false; + if (getClientAuth() != other.getClientAuth()) return false; + if (getCodeSigning() != other.getCodeSigning()) return false; + if (getEmailProtection() != other.getEmailProtection()) return false; + if (getTimeStamping() != other.getTimeStamping()) return false; + if (getOcspSigning() != other.getOcspSigning()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1765,110 +1969,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVER_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getServerAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServerAuth()); hash = (37 * hash) + CLIENT_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientAuth()); hash = (37 * hash) + CODE_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCodeSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCodeSigning()); hash = (37 * hash) + EMAIL_PROTECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEmailProtection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailProtection()); hash = (37 * hash) + TIME_STAMPING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTimeStamping()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTimeStamping()); hash = (37 * hash) + OCSP_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOcspSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOcspSigning()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions 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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions 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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + 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.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1878,6 +2084,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
      * certain common OIDs that could be specified as an extended key usage value.
@@ -1885,38 +2093,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)
         com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder.class);
+                com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.class,
+                com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1936,19 +2148,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance();
+      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
+          getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions build() {
-        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result = buildPartial();
+        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1956,8 +2171,10 @@ public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions b
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions buildPartial() {
-        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result = new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(this);
+      public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
+          buildPartial() {
+        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions result =
+            new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(this);
         result.serverAuth_ = serverAuth_;
         result.clientAuth_ = clientAuth_;
         result.codeSigning_ = codeSigning_;
@@ -1972,46 +2189,54 @@ public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions b
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) {
-          return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)other);
+        if (other
+            instanceof com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) {
+          return mergeFrom(
+              (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other) {
-        if (other == com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions other) {
+        if (other
+            == com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
+                .getDefaultInstance()) return this;
         if (other.getServerAuth() != false) {
           setServerAuth(other.getServerAuth());
         }
@@ -2045,11 +2270,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parsedMessage = null;
+        com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2059,14 +2287,17 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean serverAuth_ ;
+      private boolean serverAuth_;
       /**
+       *
+       *
        * 
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; + * * @return The serverAuth. */ @java.lang.Override @@ -2074,45 +2305,54 @@ public boolean getServerAuth() { return serverAuth_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; + * * @param value The serverAuth to set. * @return This builder for chaining. */ public Builder setServerAuth(boolean value) { - + serverAuth_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; + * * @return This builder for chaining. */ public Builder clearServerAuth() { - + serverAuth_ = false; onChanged(); return this; } - private boolean clientAuth_ ; + private boolean clientAuth_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; + * * @return The clientAuth. */ @java.lang.Override @@ -2120,45 +2360,54 @@ public boolean getClientAuth() { return clientAuth_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; + * * @param value The clientAuth to set. * @return This builder for chaining. */ public Builder setClientAuth(boolean value) { - + clientAuth_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; + * * @return This builder for chaining. */ public Builder clearClientAuth() { - + clientAuth_ = false; onChanged(); return this; } - private boolean codeSigning_ ; + private boolean codeSigning_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; + * * @return The codeSigning. */ @java.lang.Override @@ -2166,45 +2415,54 @@ public boolean getCodeSigning() { return codeSigning_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; + * * @param value The codeSigning to set. * @return This builder for chaining. */ public Builder setCodeSigning(boolean value) { - + codeSigning_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; + * * @return This builder for chaining. */ public Builder clearCodeSigning() { - + codeSigning_ = false; onChanged(); return this; } - private boolean emailProtection_ ; + private boolean emailProtection_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; + * * @return The emailProtection. */ @java.lang.Override @@ -2212,45 +2470,54 @@ public boolean getEmailProtection() { return emailProtection_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; + * * @param value The emailProtection to set. * @return This builder for chaining. */ public Builder setEmailProtection(boolean value) { - + emailProtection_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; + * * @return This builder for chaining. */ public Builder clearEmailProtection() { - + emailProtection_ = false; onChanged(); return this; } - private boolean timeStamping_ ; + private boolean timeStamping_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; + * * @return The timeStamping. */ @java.lang.Override @@ -2258,45 +2525,54 @@ public boolean getTimeStamping() { return timeStamping_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; + * * @param value The timeStamping to set. * @return This builder for chaining. */ public Builder setTimeStamping(boolean value) { - + timeStamping_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; + * * @return This builder for chaining. */ public Builder clearTimeStamping() { - + timeStamping_ = false; onChanged(); return this; } - private boolean ocspSigning_ ; + private boolean ocspSigning_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; + * * @return The ocspSigning. */ @java.lang.Override @@ -2304,36 +2580,43 @@ public boolean getOcspSigning() { return ocspSigning_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; + * * @param value The ocspSigning to set. * @return This builder for chaining. */ public Builder setOcspSigning(boolean value) { - + ocspSigning_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; + * * @return This builder for chaining. */ public Builder clearOcspSigning() { - + ocspSigning_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2346,30 +2629,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions) - private static final com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtendedKeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtendedKeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendedKeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtendedKeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2381,20 +2667,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BASE_KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions baseKeyUsage_; /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * * @return Whether the baseKeyUsage field is set. */ @java.lang.Override @@ -2402,18 +2691,25 @@ public boolean hasBaseKeyUsage() { return baseKeyUsage_ != null; } /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * * @return The baseKeyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { - return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; + return baseKeyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() + : baseKeyUsage_; } /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
@@ -2421,18 +2717,24 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKe * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder + getBaseKeyUsageOrBuilder() { return getBaseKeyUsage(); } public static final int EXTENDED_KEY_USAGE_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return Whether the extendedKeyUsage field is set. */ @java.lang.Override @@ -2440,95 +2742,126 @@ public boolean hasExtendedKeyUsage() { return extendedKeyUsage_ != null; } /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return The extendedKeyUsage. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { - return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + getExtendedKeyUsage() { + return extendedKeyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance() + : extendedKeyUsage_; } /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder + getExtendedKeyUsageOrBuilder() { return getExtendedKeyUsage(); } public static final int UNKNOWN_EXTENDED_KEY_USAGES_FIELD_NUMBER = 3; private java.util.List unknownExtendedKeyUsages_; /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public java.util.List getUnknownExtendedKeyUsagesList() { + public java.util.List + getUnknownExtendedKeyUsagesList() { return unknownExtendedKeyUsages_; } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getUnknownExtendedKeyUsagesOrBuilderList() { return unknownExtendedKeyUsages_; } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override public int getUnknownExtendedKeyUsagesCount() { return unknownExtendedKeyUsages_.size(); } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index) { return unknownExtendedKeyUsages_.get(index); } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder + getUnknownExtendedKeyUsagesOrBuilder(int index) { return unknownExtendedKeyUsages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2540,8 +2873,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (baseKeyUsage_ != null) { output.writeMessage(1, getBaseKeyUsage()); } @@ -2561,16 +2893,15 @@ public int getSerializedSize() { size = 0; if (baseKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseKeyUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBaseKeyUsage()); } if (extendedKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExtendedKeyUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExtendedKeyUsage()); } for (int i = 0; i < unknownExtendedKeyUsages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, unknownExtendedKeyUsages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, unknownExtendedKeyUsages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2580,25 +2911,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.security.privateca.v1.KeyUsage)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.KeyUsage other = (com.google.cloud.security.privateca.v1.KeyUsage) obj; + com.google.cloud.security.privateca.v1.KeyUsage other = + (com.google.cloud.security.privateca.v1.KeyUsage) obj; if (hasBaseKeyUsage() != other.hasBaseKeyUsage()) return false; if (hasBaseKeyUsage()) { - if (!getBaseKeyUsage() - .equals(other.getBaseKeyUsage())) return false; + if (!getBaseKeyUsage().equals(other.getBaseKeyUsage())) return false; } if (hasExtendedKeyUsage() != other.hasExtendedKeyUsage()) return false; if (hasExtendedKeyUsage()) { - if (!getExtendedKeyUsage() - .equals(other.getExtendedKeyUsage())) return false; + if (!getExtendedKeyUsage().equals(other.getExtendedKeyUsage())) return false; } - if (!getUnknownExtendedKeyUsagesList() - .equals(other.getUnknownExtendedKeyUsagesList())) return false; + if (!getUnknownExtendedKeyUsagesList().equals(other.getUnknownExtendedKeyUsagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2627,97 +2957,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom(java.io.InputStream input) 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.security.privateca.v1.KeyUsage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.KeyUsage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.KeyUsage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.KeyUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1.KeyUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [KeyUsage][google.cloud.security.privateca.v1.KeyUsage] describes key usage values that may appear in an X.509
    * certificate.
@@ -2725,21 +3062,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.KeyUsage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.KeyUsage)
       com.google.cloud.security.privateca.v1.KeyUsageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.KeyUsage.class, com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
+              com.google.cloud.security.privateca.v1.KeyUsage.class,
+              com.google.cloud.security.privateca.v1.KeyUsage.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.KeyUsage.newBuilder()
@@ -2747,17 +3086,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getUnknownExtendedKeyUsagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2783,9 +3122,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
@@ -2804,7 +3143,8 @@ public com.google.cloud.security.privateca.v1.KeyUsage build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.KeyUsage buildPartial() {
-      com.google.cloud.security.privateca.v1.KeyUsage result = new com.google.cloud.security.privateca.v1.KeyUsage(this);
+      com.google.cloud.security.privateca.v1.KeyUsage result =
+          new com.google.cloud.security.privateca.v1.KeyUsage(this);
       int from_bitField0_ = bitField0_;
       if (baseKeyUsageBuilder_ == null) {
         result.baseKeyUsage_ = baseKeyUsage_;
@@ -2818,7 +3158,8 @@ public com.google.cloud.security.privateca.v1.KeyUsage buildPartial() {
       }
       if (unknownExtendedKeyUsagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+          unknownExtendedKeyUsages_ =
+              java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.unknownExtendedKeyUsages_ = unknownExtendedKeyUsages_;
@@ -2833,38 +3174,39 @@ public com.google.cloud.security.privateca.v1.KeyUsage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.KeyUsage) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.KeyUsage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2872,7 +3214,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage other) {
-      if (other == com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance())
+        return this;
       if (other.hasBaseKeyUsage()) {
         mergeBaseKeyUsage(other.getBaseKeyUsage());
       }
@@ -2897,9 +3240,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.KeyUsage other)
             unknownExtendedKeyUsagesBuilder_ = null;
             unknownExtendedKeyUsages_ = other.unknownExtendedKeyUsages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            unknownExtendedKeyUsagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getUnknownExtendedKeyUsagesFieldBuilder() : null;
+            unknownExtendedKeyUsagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getUnknownExtendedKeyUsagesFieldBuilder()
+                    : null;
           } else {
             unknownExtendedKeyUsagesBuilder_.addAllMessages(other.unknownExtendedKeyUsages_);
           }
@@ -2933,45 +3277,60 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions baseKeyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder> baseKeyUsageBuilder_;
+            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions,
+            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder,
+            com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder>
+        baseKeyUsageBuilder_;
     /**
+     *
+     *
      * 
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * * @return Whether the baseKeyUsage field is set. */ public boolean hasBaseKeyUsage() { return baseKeyUsageBuilder_ != null || baseKeyUsage_ != null; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * * @return The baseKeyUsage. */ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { if (baseKeyUsageBuilder_ == null) { - return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; + return baseKeyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() + : baseKeyUsage_; } else { return baseKeyUsageBuilder_.getMessage(); } } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public Builder setBaseKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { + public Builder setBaseKeyUsage( + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2985,6 +3344,8 @@ public Builder setBaseKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.K return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
@@ -3003,17 +3364,23 @@ public Builder setBaseKeyUsage( return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public Builder mergeBaseKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { + public Builder mergeBaseKeyUsage( + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (baseKeyUsage_ != null) { baseKeyUsage_ = - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder(baseKeyUsage_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.newBuilder( + baseKeyUsage_) + .mergeFrom(value) + .buildPartial(); } else { baseKeyUsage_ = value; } @@ -3025,6 +3392,8 @@ public Builder mergeBaseKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
@@ -3043,33 +3412,42 @@ public Builder clearBaseKeyUsage() { return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder getBaseKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder + getBaseKeyUsageBuilder() { + onChanged(); return getBaseKeyUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder + getBaseKeyUsageOrBuilder() { if (baseKeyUsageBuilder_ != null) { return baseKeyUsageBuilder_.getMessageOrBuilder(); } else { - return baseKeyUsage_ == null ? - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; + return baseKeyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.getDefaultInstance() + : baseKeyUsage_; } } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
@@ -3077,56 +3455,82 @@ public com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder> getBaseKeyUsageFieldBuilder() { if (baseKeyUsageBuilder_ == null) { - baseKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder>( - getBaseKeyUsage(), - getParentForChildren(), - isClean()); + baseKeyUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions, + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder>( + getBaseKeyUsage(), getParentForChildren(), isClean()); baseKeyUsage_ = null; } return baseKeyUsageBuilder_; } - private com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; + private com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + extendedKeyUsage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> extendedKeyUsageBuilder_; + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> + extendedKeyUsageBuilder_; /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return Whether the extendedKeyUsage field is set. */ public boolean hasExtendedKeyUsage() { return extendedKeyUsageBuilder_ != null || extendedKeyUsage_ != null; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return The extendedKeyUsage. */ - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + getExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { - return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; + return extendedKeyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance() + : extendedKeyUsage_; } else { return extendedKeyUsageBuilder_.getMessage(); } } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public Builder setExtendedKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder setExtendedKeyUsage( + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3140,14 +3544,19 @@ public Builder setExtendedKeyUsage(com.google.cloud.security.privateca.v1.KeyUsa return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ public Builder setExtendedKeyUsage( - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder builderForValue) { + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder + builderForValue) { if (extendedKeyUsageBuilder_ == null) { extendedKeyUsage_ = builderForValue.build(); onChanged(); @@ -3158,17 +3567,25 @@ public Builder setExtendedKeyUsage( return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public Builder mergeExtendedKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder mergeExtendedKeyUsage( + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (extendedKeyUsage_ != null) { extendedKeyUsage_ = - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder(extendedKeyUsage_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.newBuilder( + extendedKeyUsage_) + .mergeFrom(value) + .buildPartial(); } else { extendedKeyUsage_ = value; } @@ -3180,11 +3597,15 @@ public Builder mergeExtendedKeyUsage(com.google.cloud.security.privateca.v1.KeyU return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ public Builder clearExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { @@ -3198,74 +3619,103 @@ public Builder clearExtendedKeyUsage() { return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder getExtendedKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder + getExtendedKeyUsageBuilder() { + onChanged(); return getExtendedKeyUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder + getExtendedKeyUsageOrBuilder() { if (extendedKeyUsageBuilder_ != null) { return extendedKeyUsageBuilder_.getMessageOrBuilder(); } else { - return extendedKeyUsage_ == null ? - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; + return extendedKeyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance() + : extendedKeyUsage_; } } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> getExtendedKeyUsageFieldBuilder() { if (extendedKeyUsageBuilder_ == null) { - extendedKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder>( - getExtendedKeyUsage(), - getParentForChildren(), - isClean()); + extendedKeyUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions, + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder>( + getExtendedKeyUsage(), getParentForChildren(), isClean()); extendedKeyUsage_ = null; } return extendedKeyUsageBuilder_; } - private java.util.List unknownExtendedKeyUsages_ = - java.util.Collections.emptyList(); + private java.util.List + unknownExtendedKeyUsages_ = java.util.Collections.emptyList(); + private void ensureUnknownExtendedKeyUsagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - unknownExtendedKeyUsages_ = new java.util.ArrayList(unknownExtendedKeyUsages_); + unknownExtendedKeyUsages_ = + new java.util.ArrayList( + unknownExtendedKeyUsages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> unknownExtendedKeyUsagesBuilder_; + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + unknownExtendedKeyUsagesBuilder_; /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public java.util.List getUnknownExtendedKeyUsagesList() { + public java.util.List + getUnknownExtendedKeyUsagesList() { if (unknownExtendedKeyUsagesBuilder_ == null) { return java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_); } else { @@ -3273,12 +3723,15 @@ public java.util.List getUnknow } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public int getUnknownExtendedKeyUsagesCount() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3288,12 +3741,15 @@ public int getUnknownExtendedKeyUsagesCount() { } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3303,12 +3759,15 @@ public com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsag } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -3325,12 +3784,15 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -3344,14 +3806,18 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public Builder addUnknownExtendedKeyUsages(com.google.cloud.security.privateca.v1.ObjectId value) { + public Builder addUnknownExtendedKeyUsages( + com.google.cloud.security.privateca.v1.ObjectId value) { if (unknownExtendedKeyUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3365,12 +3831,15 @@ public Builder addUnknownExtendedKeyUsages(com.google.cloud.security.privateca.v return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId value) { @@ -3387,12 +3856,15 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addUnknownExtendedKeyUsages( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -3406,12 +3878,15 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -3425,19 +3900,21 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addAllUnknownExtendedKeyUsages( java.lang.Iterable values) { if (unknownExtendedKeyUsagesBuilder_ == null) { ensureUnknownExtendedKeyUsagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unknownExtendedKeyUsages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unknownExtendedKeyUsages_); onChanged(); } else { unknownExtendedKeyUsagesBuilder_.addAllMessages(values); @@ -3445,12 +3922,15 @@ public Builder addAllUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder clearUnknownExtendedKeyUsages() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3463,12 +3943,15 @@ public Builder clearUnknownExtendedKeyUsages() { return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder removeUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3481,42 +3964,52 @@ public Builder removeUnknownExtendedKeyUsages(int index) { return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder getUnknownExtendedKeyUsagesBuilder( - int index) { + public com.google.cloud.security.privateca.v1.ObjectId.Builder + getUnknownExtendedKeyUsagesBuilder(int index) { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder + getUnknownExtendedKeyUsagesOrBuilder(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { - return unknownExtendedKeyUsages_.get(index); } else { + return unknownExtendedKeyUsages_.get(index); + } else { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public java.util.List - getUnknownExtendedKeyUsagesOrBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesOrBuilderList() { if (unknownExtendedKeyUsagesBuilder_ != null) { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilderList(); } else { @@ -3524,48 +4017,64 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtend } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder() { - return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder + addUnknownExtendedKeyUsagesBuilder() { + return getUnknownExtendedKeyUsagesFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder( - int index) { - return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder + addUnknownExtendedKeyUsagesBuilder(int index) { + return getUnknownExtendedKeyUsagesFieldBuilder() + .addBuilder(index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - public java.util.List - getUnknownExtendedKeyUsagesBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesBuilderList() { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getUnknownExtendedKeyUsagesFieldBuilder() { if (unknownExtendedKeyUsagesBuilder_ == null) { - unknownExtendedKeyUsagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + unknownExtendedKeyUsagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( unknownExtendedKeyUsages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3574,9 +4083,9 @@ public com.google.cloud.security.privateca.v1.ObjectId.Builder addUnknownExtende } return unknownExtendedKeyUsagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3586,12 +4095,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.KeyUsage) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.KeyUsage) private static final com.google.cloud.security.privateca.v1.KeyUsage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.KeyUsage(); } @@ -3600,16 +4109,16 @@ public static com.google.cloud.security.privateca.v1.KeyUsage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3624,6 +4133,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.KeyUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java index 904abe14..ad250fea 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/KeyUsageOrBuilder.java @@ -1,111 +1,165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface KeyUsageOrBuilder extends +public interface KeyUsageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.KeyUsage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * * @return Whether the baseKeyUsage field is set. */ boolean hasBaseKeyUsage(); /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * * @return The baseKeyUsage. */ com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions getBaseKeyUsage(); /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* * .google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions base_key_usage = 1; */ - com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptionsOrBuilder + getBaseKeyUsageOrBuilder(); /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return Whether the extendedKeyUsage field is set. */ boolean hasExtendedKeyUsage(); /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return The extendedKeyUsage. */ com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage(); /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder + getExtendedKeyUsageOrBuilder(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - java.util.List - getUnknownExtendedKeyUsagesList(); + java.util.List getUnknownExtendedKeyUsagesList(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ com.google.cloud.security.privateca.v1.ObjectId getUnknownExtendedKeyUsages(int index); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ int getUnknownExtendedKeyUsagesCount(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ - java.util.List + java.util.List getUnknownExtendedKeyUsagesOrBuilderList(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * repeated .google.cloud.security.privateca.v1.ObjectId unknown_extended_key_usages = 3; + * */ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java index 49a7728a..f758ee83 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsRequest}
  */
-public final class ListCaPoolsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCaPoolsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCaPoolsRequest)
     ListCaPoolsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCaPoolsRequest.newBuilder() to construct.
   private ListCaPoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCaPoolsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,16 +47,15 @@ private ListCaPoolsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCaPoolsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCaPoolsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,42 +74,46 @@ private ListCaPoolsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pageToken_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            orderBy_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderBy_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,36 +121,43 @@ private ListCaPoolsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, com.google.cloud.security.privateca.v1.ListCaPoolsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class,
+            com.google.cloud.security.privateca.v1.ListCaPoolsRequest.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
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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 @@ -138,31 +166,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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 { @@ -173,6 +203,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
    * include in the response.
@@ -183,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +226,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +243,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. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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 { @@ -241,11 +277,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +293,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +326,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +342,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +373,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +385,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +414,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +433,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.security.privateca.v1.ListCaPoolsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCaPoolsRequest other = (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) 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.security.privateca.v1.ListCaPoolsRequest other = + (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,96 +473,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest 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.security.privateca.v1.ListCaPoolsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCaPoolsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCaPoolsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -533,21 +578,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCaPoolsRequest)
       com.google.cloud.security.privateca.v1.ListCaPoolsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class, com.google.cloud.security.privateca.v1.ListCaPoolsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCaPoolsRequest.class,
+              com.google.cloud.security.privateca.v1.ListCaPoolsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.ListCaPoolsRequest.newBuilder()
@@ -555,16 +602,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,9 +628,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -603,7 +649,8 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCaPoolsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCaPoolsRequest result = new com.google.cloud.security.privateca.v1.ListCaPoolsRequest(this);
+      com.google.cloud.security.privateca.v1.ListCaPoolsRequest result =
+          new com.google.cloud.security.privateca.v1.ListCaPoolsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -617,38 +664,39 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ListCaPoolsRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -656,7 +704,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCaPoolsRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -695,7 +744,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCaPoolsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,20 +757,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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; @@ -729,22 +783,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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 { @@ -752,67 +809,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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
      * [CaPools][google.cloud.security.privateca.v1.CaPool], 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. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
      * include in the response.
@@ -823,6 +895,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +903,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
      * include in the response.
@@ -840,16 +915,19 @@ 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. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
      * include in the response.
@@ -860,10 +938,11 @@ 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; @@ -871,19 +950,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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; @@ -892,21 +973,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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 { @@ -914,57 +996,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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. Pagination token, returned earlier via
      * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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; @@ -972,18 +1061,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1083,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1105,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1167,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1189,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1211,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,12 +1282,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCaPoolsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCaPoolsRequest) private static final com.google.cloud.security.privateca.v1.ListCaPoolsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCaPoolsRequest(); } @@ -1187,16 +1296,16 @@ public static com.google.cloud.security.privateca.v1.ListCaPoolsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCaPoolsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCaPoolsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCaPoolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCaPoolsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1211,6 +1320,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.ListCaPoolsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java index b9b440f1..4af67afb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCaPoolsRequestOrBuilder extends +public interface ListCaPoolsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCaPoolsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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
    * [CaPools][google.cloud.security.privateca.v1.CaPool], 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. Limit on the number of [CaPools][google.cloud.security.privateca.v1.CaPool] to
    * include in the response.
@@ -42,69 +69,85 @@ public interface ListCaPoolsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCaPoolsResponse.next_page_token][google.cloud.security.privateca.v1.ListCaPoolsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java index a235439a..a0e09f4b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsResponse}
  */
-public final class ListCaPoolsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCaPoolsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCaPoolsResponse)
     ListCaPoolsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCaPoolsResponse.newBuilder() to construct.
   private ListCaPoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCaPoolsResponse() {
     caPools_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,16 +46,15 @@ private ListCaPoolsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCaPoolsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCaPoolsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,37 +74,41 @@ private ListCaPoolsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              caPools_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                caPools_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              caPools_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry));
+              break;
             }
-            caPools_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              unreachable_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              nextPageToken_ = s;
+              break;
             }
-            unreachable_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                unreachable_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              unreachable_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,8 +116,7 @@ private ListCaPoolsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         caPools_ = java.util.Collections.unmodifiableList(caPools_);
@@ -108,22 +128,27 @@ private ListCaPoolsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class,
+            com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
   }
 
   public static final int CA_POOLS_FIELD_NUMBER = 1;
   private java.util.List caPools_;
   /**
+   *
+   *
    * 
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -135,6 +160,8 @@ public java.util.List getCaPoolsL return caPools_; } /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -142,11 +169,13 @@ public java.util.List getCaPoolsL * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCaPoolsOrBuilderList() { return caPools_; } /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -158,6 +187,8 @@ public int getCaPoolsCount() { return caPools_.size(); } /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -169,6 +200,8 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPools(int index) { return caPools_.get(index); } /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -176,14 +209,15 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPools(int index) { * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(int index) { return caPools_.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
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -191,6 +225,7 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +234,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -214,16 +250,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +269,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +312,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +340,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < caPools_.size(); i++) { output.writeMessage(1, caPools_.get(i)); } @@ -315,8 +360,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < caPools_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, caPools_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caPools_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +381,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.security.privateca.v1.ListCaPoolsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCaPoolsResponse other = (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) obj; + com.google.cloud.security.privateca.v1.ListCaPoolsResponse other = + (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) obj; - if (!getCaPoolsList() - .equals(other.getCaPoolsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCaPoolsList().equals(other.getCaPoolsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,96 +419,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse 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.security.privateca.v1.ListCaPoolsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCaPoolsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCaPoolsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCaPools][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools].
@@ -474,21 +524,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCaPoolsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCaPoolsResponse)
       com.google.cloud.security.privateca.v1.ListCaPoolsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class, com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCaPoolsResponse.class,
+              com.google.cloud.security.privateca.v1.ListCaPoolsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.ListCaPoolsResponse.newBuilder()
@@ -496,17 +548,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCaPoolsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +576,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -545,7 +597,8 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCaPoolsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCaPoolsResponse result = new com.google.cloud.security.privateca.v1.ListCaPoolsResponse(this);
+      com.google.cloud.security.privateca.v1.ListCaPoolsResponse result =
+          new com.google.cloud.security.privateca.v1.ListCaPoolsResponse(this);
       int from_bitField0_ = bitField0_;
       if (caPoolsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -570,38 +623,39 @@ public com.google.cloud.security.privateca.v1.ListCaPoolsResponse buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ListCaPoolsResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsResponse)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ListCaPoolsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -609,7 +663,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCaPoolsResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.ListCaPoolsResponse.getDefaultInstance())
+        return this;
       if (caPoolsBuilder_ == null) {
         if (!other.caPools_.isEmpty()) {
           if (caPools_.isEmpty()) {
@@ -628,9 +683,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCaPoolsRespo
             caPoolsBuilder_ = null;
             caPools_ = other.caPools_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            caPoolsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCaPoolsFieldBuilder() : null;
+            caPoolsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCaPoolsFieldBuilder()
+                    : null;
           } else {
             caPoolsBuilder_.addAllMessages(other.caPools_);
           }
@@ -669,7 +725,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCaPoolsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -678,21 +735,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List caPools_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureCaPoolsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         caPools_ = new java.util.ArrayList(caPools_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> caPoolsBuilder_;
+            com.google.cloud.security.privateca.v1.CaPool,
+            com.google.cloud.security.privateca.v1.CaPool.Builder,
+            com.google.cloud.security.privateca.v1.CaPoolOrBuilder>
+        caPoolsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -707,6 +771,8 @@ public java.util.List getCaPoolsL } } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -721,6 +787,8 @@ public int getCaPoolsCount() { } } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -735,14 +803,15 @@ public com.google.cloud.security.privateca.v1.CaPool getCaPools(int index) { } } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public Builder setCaPools( - int index, com.google.cloud.security.privateca.v1.CaPool value) { + public Builder setCaPools(int index, com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +825,8 @@ public Builder setCaPools( return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -774,6 +845,8 @@ public Builder setCaPools( return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -794,14 +867,15 @@ public Builder addCaPools(com.google.cloud.security.privateca.v1.CaPool value) { return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public Builder addCaPools( - int index, com.google.cloud.security.privateca.v1.CaPool value) { + public Builder addCaPools(int index, com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,6 +889,8 @@ public Builder addCaPools( return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -833,6 +909,8 @@ public Builder addCaPools( return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -851,6 +929,8 @@ public Builder addCaPools( return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -861,8 +941,7 @@ public Builder addAllCaPools( java.lang.Iterable values) { if (caPoolsBuilder_ == null) { ensureCaPoolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, caPools_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caPools_); onChanged(); } else { caPoolsBuilder_.addAllMessages(values); @@ -870,6 +949,8 @@ public Builder addAllCaPools( return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -887,6 +968,8 @@ public Builder clearCaPools() { return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -904,39 +987,44 @@ public Builder removeCaPools(int index) { return this; } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolsBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolsBuilder(int index) { return getCaPoolsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(int index) { if (caPoolsBuilder_ == null) { - return caPools_.get(index); } else { + return caPools_.get(index); + } else { return caPoolsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public java.util.List - getCaPoolsOrBuilderList() { + public java.util.List + getCaPoolsOrBuilderList() { if (caPoolsBuilder_ != null) { return caPoolsBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1032,8 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde } } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
@@ -951,42 +1041,48 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilde * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder() { - return getCaPoolsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); + return getCaPoolsFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder( - int index) { - return getCaPoolsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder(int index) { + return getCaPoolsFieldBuilder() + .addBuilder(index, com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance()); } /** + * + * *
      * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
      * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - public java.util.List - getCaPoolsBuilderList() { + public java.util.List + getCaPoolsBuilderList() { return getCaPoolsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder> getCaPoolsFieldBuilder() { if (caPoolsBuilder_ == null) { - caPoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( - caPools_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + caPoolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( + caPools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); caPools_ = null; } return caPoolsBuilder_; @@ -994,6 +1090,8 @@ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1001,13 +1099,13 @@ public com.google.cloud.security.privateca.v1.CaPool.Builder addCaPoolsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1114,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1023,15 +1123,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1138,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1046,20 +1147,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1067,15 +1170,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1083,57 +1189,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1257,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1350,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,12 +1383,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCaPoolsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCaPoolsResponse) private static final com.google.cloud.security.privateca.v1.ListCaPoolsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCaPoolsResponse(); } @@ -1269,16 +1397,16 @@ public static com.google.cloud.security.privateca.v1.ListCaPoolsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCaPoolsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCaPoolsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCaPoolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCaPoolsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,6 +1421,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.ListCaPoolsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java index ce441388..1da02859 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCaPoolsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCaPoolsResponseOrBuilder extends +public interface ListCaPoolsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCaPoolsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - java.util.List - getCaPoolsList(); + java.util.List getCaPoolsList(); /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -25,6 +44,8 @@ public interface ListCaPoolsResponseOrBuilder extends */ com.google.cloud.security.privateca.v1.CaPool getCaPools(int index); /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
@@ -33,25 +54,30 @@ public interface ListCaPoolsResponseOrBuilder extends */ int getCaPoolsCount(); /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - java.util.List + java.util.List getCaPoolsOrBuilderList(); /** + * + * *
    * The list of [CaPools][google.cloud.security.privateca.v1.CaPool].
    * 
* * repeated .google.cloud.security.privateca.v1.CaPool ca_pools = 1; */ - com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -59,10 +85,13 @@ com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -70,49 +99,59 @@ com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java index 8dc08176..d4d4dc05 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest}
  */
-public final class ListCertificateAuthoritiesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateAuthoritiesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)
     ListCertificateAuthoritiesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesRequest.newBuilder() to construct.
-  private ListCertificateAuthoritiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateAuthoritiesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,16 +48,15 @@ private ListCertificateAuthoritiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateAuthoritiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,42 +75,46 @@ private ListCertificateAuthoritiesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pageToken_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            orderBy_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderBy_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,36 +122,43 @@ private ListCertificateAuthoritiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class,
+            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 @@ -138,31 +167,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 { @@ -173,6 +204,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
    * include in the response.
@@ -183,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +227,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +244,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. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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 { @@ -241,11 +278,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +294,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +327,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +343,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +374,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +386,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +415,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +434,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.security.privateca.v1.ListCertificateAuthoritiesRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest other = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) 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.security.privateca.v1.ListCertificateAuthoritiesRequest other = + (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,96 +475,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest 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.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest 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.security.privateca.v1.ListCertificateAuthoritiesRequest + 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.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -533,38 +581,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)
       com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.class,
+              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,19 +633,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest build() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -603,7 +657,8 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(this);
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest result =
+          new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -617,46 +672,52 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -695,7 +756,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,20 +770,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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; @@ -729,22 +796,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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 { @@ -752,67 +822,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
      * include in the response.
@@ -823,6 +908,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +916,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
      * include in the response.
@@ -840,16 +928,19 @@ 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
      * include in the response.
@@ -860,10 +951,11 @@ 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; @@ -871,19 +963,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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; @@ -892,21 +986,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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 { @@ -914,57 +1009,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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; @@ -972,18 +1074,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1096,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1118,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1180,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1202,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1224,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,30 +1295,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,9 +1333,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java index c9a1371f..caca9737 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateAuthoritiesRequestOrBuilder extends +public interface ListCertificateAuthoritiesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateAuthoritiesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] to
    * include in the response.
@@ -42,69 +69,85 @@ public interface ListCertificateAuthoritiesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java index 8120f571..ab88a883 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse}
  */
-public final class ListCertificateAuthoritiesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateAuthoritiesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)
     ListCertificateAuthoritiesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesResponse.newBuilder() to construct.
-  private ListCertificateAuthoritiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateAuthoritiesResponse() {
     certificateAuthorities_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,16 +47,15 @@ private ListCertificateAuthoritiesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateAuthoritiesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,37 +75,44 @@ private ListCertificateAuthoritiesResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              certificateAuthorities_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                certificateAuthorities_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1.CertificateAuthority>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              certificateAuthorities_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateAuthority.parser(),
+                      extensionRegistry));
+              break;
             }
-            certificateAuthorities_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              unreachable_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              nextPageToken_ = s;
+              break;
             }
-            unreachable_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                unreachable_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              unreachable_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,8 +120,7 @@ private ListCertificateAuthoritiesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         certificateAuthorities_ = java.util.Collections.unmodifiableList(certificateAuthorities_);
@@ -108,82 +132,112 @@ private ListCertificateAuthoritiesResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class,
+            com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder
+                .class);
   }
 
   public static final int CERTIFICATE_AUTHORITIES_FIELD_NUMBER = 1;
-  private java.util.List certificateAuthorities_;
+  private java.util.List
+      certificateAuthorities_;
   /**
+   *
+   *
    * 
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public java.util.List getCertificateAuthoritiesList() { + public java.util.List + getCertificateAuthoritiesList() { return certificateAuthorities_; } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesOrBuilderList() { return certificateAuthorities_; } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override public int getCertificateAuthoritiesCount() { return certificateAuthorities_.size(); } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities(int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities( + int index) { return certificateAuthorities_.get(index); } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthoritiesOrBuilder(int index) { return certificateAuthorities_.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
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -191,6 +245,7 @@ public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getC
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +254,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -214,16 +270,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +289,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +332,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +360,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificateAuthorities_.size(); i++) { output.writeMessage(1, certificateAuthorities_.get(i)); } @@ -315,8 +380,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateAuthorities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificateAuthorities_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, certificateAuthorities_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +403,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.security.privateca.v1.ListCertificateAuthoritiesResponse)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other = + (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) obj; - if (!getCertificateAuthoritiesList() - .equals(other.getCertificateAuthoritiesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificateAuthoritiesList().equals(other.getCertificateAuthoritiesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,96 +443,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse 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.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse 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.security.privateca.v1.ListCertificateAuthoritiesResponse + 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.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -474,39 +549,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)
       com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.class,
+              com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCertificateAuthoritiesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,19 +603,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse build() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result = buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -544,8 +626,10 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(this);
+    public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse result =
+          new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(this);
       int from_bitField0_ = bitField0_;
       if (certificateAuthoritiesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -570,46 +654,52 @@ public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse
+              .getDefaultInstance()) return this;
       if (certificateAuthoritiesBuilder_ == null) {
         if (!other.certificateAuthorities_.isEmpty()) {
           if (certificateAuthorities_.isEmpty()) {
@@ -628,9 +718,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateA
             certificateAuthoritiesBuilder_ = null;
             certificateAuthorities_ = other.certificateAuthorities_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            certificateAuthoritiesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCertificateAuthoritiesFieldBuilder() : null;
+            certificateAuthoritiesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCertificateAuthoritiesFieldBuilder()
+                    : null;
           } else {
             certificateAuthoritiesBuilder_.addAllMessages(other.certificateAuthorities_);
           }
@@ -665,11 +756,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parsedMessage = null;
+      com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -678,28 +772,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List certificateAuthorities_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        certificateAuthorities_ = java.util.Collections.emptyList();
+
     private void ensureCertificateAuthoritiesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        certificateAuthorities_ = new java.util.ArrayList(certificateAuthorities_);
+        certificateAuthorities_ =
+            new java.util.ArrayList(
+                certificateAuthorities_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> certificateAuthoritiesBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateAuthority,
+            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder,
+            com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>
+        certificateAuthoritiesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public java.util.List getCertificateAuthoritiesList() { + public java.util.List + getCertificateAuthoritiesList() { if (certificateAuthoritiesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateAuthorities_); } else { @@ -707,11 +813,15 @@ public java.util.List * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]. *
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public int getCertificateAuthoritiesCount() { if (certificateAuthoritiesBuilder_ == null) { @@ -721,13 +831,18 @@ public int getCertificateAuthoritiesCount() { } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities(int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities( + int index) { if (certificateAuthoritiesBuilder_ == null) { return certificateAuthorities_.get(index); } else { @@ -735,11 +850,15 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificat } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder setCertificateAuthorities( int index, com.google.cloud.security.privateca.v1.CertificateAuthority value) { @@ -756,14 +875,19 @@ public Builder setCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder setCertificateAuthorities( - int index, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.set(index, builderForValue.build()); @@ -774,13 +898,18 @@ public Builder setCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public Builder addCertificateAuthorities(com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder addCertificateAuthorities( + com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthoritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,11 +923,15 @@ public Builder addCertificateAuthorities(com.google.cloud.security.privateca.v1. return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addCertificateAuthorities( int index, com.google.cloud.security.privateca.v1.CertificateAuthority value) { @@ -815,11 +948,15 @@ public Builder addCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addCertificateAuthorities( com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { @@ -833,14 +970,19 @@ public Builder addCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addCertificateAuthorities( - int index, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.add(index, builderForValue.build()); @@ -851,18 +993,22 @@ public Builder addCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addAllCertificateAuthorities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificateAuthorities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateAuthorities_); onChanged(); } else { certificateAuthoritiesBuilder_.addAllMessages(values); @@ -870,11 +1016,15 @@ public Builder addAllCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder clearCertificateAuthorities() { if (certificateAuthoritiesBuilder_ == null) { @@ -887,11 +1037,15 @@ public Builder clearCertificateAuthorities() { return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ public Builder removeCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { @@ -904,39 +1058,53 @@ public Builder removeCertificateAuthorities(int index) { return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder getCertificateAuthoritiesBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder + getCertificateAuthoritiesBuilder(int index) { return getCertificateAuthoritiesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthoritiesOrBuilder(int index) { if (certificateAuthoritiesBuilder_ == null) { - return certificateAuthorities_.get(index); } else { + return certificateAuthorities_.get(index); + } else { return certificateAuthoritiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public java.util.List - getCertificateAuthoritiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + getCertificateAuthoritiesOrBuilderList() { if (certificateAuthoritiesBuilder_ != null) { return certificateAuthoritiesBuilder_.getMessageOrBuilderList(); } else { @@ -944,45 +1112,67 @@ public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getC } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder() { - return getCertificateAuthoritiesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder + addCertificateAuthoritiesBuilder() { + return getCertificateAuthoritiesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder( - int index) { - return getCertificateAuthoritiesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder + addCertificateAuthoritiesBuilder(int index) { + return getCertificateAuthoritiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance()); } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - public java.util.List - getCertificateAuthoritiesBuilderList() { + public java.util.List + getCertificateAuthoritiesBuilderList() { return getCertificateAuthoritiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesFieldBuilder() { if (certificateAuthoritiesBuilder_ == null) { - certificateAuthoritiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( + certificateAuthoritiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( certificateAuthorities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,6 +1184,8 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder addCe private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1001,13 +1193,13 @@ public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder addCe
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1208,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1023,15 +1217,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1232,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1046,20 +1241,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1067,15 +1264,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1083,57 +1283,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1351,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1444,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,30 +1477,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,9 +1515,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java index b7e038cd..7250603c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateAuthoritiesResponseOrBuilder.java @@ -1,57 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateAuthoritiesResponseOrBuilder extends +public interface ListCertificateAuthoritiesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - java.util.List + java.util.List getCertificateAuthoritiesList(); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthorities(int index); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ int getCertificateAuthoritiesCount(); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - java.util.List + java.util.List getCertificateAuthoritiesOrBuilderList(); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateAuthority certificate_authorities = 1; + * */ - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthoritiesOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -59,10 +97,13 @@ com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertific
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -70,49 +111,59 @@ com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertific
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java index d4f024d3..9e94c903 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -11,15 +28,18 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest}
  */
-public final class ListCertificateRevocationListsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateRevocationListsRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)
     ListCertificateRevocationListsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateRevocationListsRequest.newBuilder() to construct.
-  private ListCertificateRevocationListsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateRevocationListsRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateRevocationListsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,16 +49,15 @@ private ListCertificateRevocationListsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateRevocationListsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateRevocationListsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,42 +76,46 @@ private ListCertificateRevocationListsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pageToken_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            orderBy_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderBy_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,36 +123,44 @@ private ListCertificateRevocationListsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class,
+            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string parent = 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 @@ -138,31 +169,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string parent = 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 { @@ -173,6 +206,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -183,6 +218,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +229,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +246,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. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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 { @@ -241,11 +280,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +296,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +329,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +345,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +376,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +417,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +436,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.security.privateca.v1.ListCertificateRevocationListsRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest other = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) 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.security.privateca.v1.ListCertificateRevocationListsRequest other = + (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,97 +476,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest 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.security.privateca.v1.ListCertificateRevocationListsRequest + 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.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -533,38 +588,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)
       com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.class,
+              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,19 +640,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest build() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -602,8 +663,10 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequ
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(this);
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest result =
+          new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -617,46 +680,52 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -691,11 +760,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,20 +779,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string parent = 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; @@ -729,22 +805,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string parent = 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 { @@ -752,67 +831,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -823,6 +917,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +925,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -840,16 +937,19 @@ 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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -860,10 +960,11 @@ 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; @@ -871,19 +972,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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; @@ -892,21 +995,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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 { @@ -914,57 +1018,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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; @@ -972,18 +1083,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1105,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1127,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1189,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1211,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1233,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,30 +1304,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,9 +1342,8 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java index e119593c..a841291f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateRevocationListsRequestOrBuilder extends +public interface ListCertificateRevocationListsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateRevocationListsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string parent = 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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList], in the format
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string parent = 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. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList] to include in the
@@ -42,69 +69,85 @@ public interface ListCertificateRevocationListsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java index e2df8c89..ff0d9922 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -11,15 +28,18 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse}
  */
-public final class ListCertificateRevocationListsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateRevocationListsResponse
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)
     ListCertificateRevocationListsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateRevocationListsResponse.newBuilder() to construct.
-  private ListCertificateRevocationListsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateRevocationListsResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateRevocationListsResponse() {
     certificateRevocationLists_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,16 +48,15 @@ private ListCertificateRevocationListsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateRevocationListsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateRevocationListsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,37 +76,44 @@ private ListCertificateRevocationListsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              certificateRevocationLists_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                certificateRevocationLists_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1.CertificateRevocationList>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              certificateRevocationLists_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(),
+                      extensionRegistry));
+              break;
             }
-            certificateRevocationLists_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              unreachable_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              nextPageToken_ = s;
+              break;
             }
-            unreachable_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                unreachable_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              unreachable_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,11 +121,11 @@ private ListCertificateRevocationListsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_);
+        certificateRevocationLists_ =
+            java.util.Collections.unmodifiableList(certificateRevocationLists_);
       }
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         unreachable_ = unreachable_.getUnmodifiableView();
@@ -108,82 +134,112 @@ private ListCertificateRevocationListsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class,
+            com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder
+                .class);
   }
 
   public static final int CERTIFICATE_REVOCATION_LISTS_FIELD_NUMBER = 1;
-  private java.util.List certificateRevocationLists_;
+  private java.util.List
+      certificateRevocationLists_;
   /**
+   *
+   *
    * 
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public java.util.List getCertificateRevocationListsList() { + public java.util.List + getCertificateRevocationListsList() { return certificateRevocationLists_; } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> getCertificateRevocationListsOrBuilderList() { return certificateRevocationLists_; } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override public int getCertificateRevocationListsCount() { return certificateRevocationLists_.size(); } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList + getCertificateRevocationLists(int index) { return certificateRevocationLists_.get(index); } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder + getCertificateRevocationListsOrBuilder(int index) { return certificateRevocationLists_.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
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -191,6 +247,7 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +256,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -214,16 +272,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +291,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +334,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +362,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificateRevocationLists_.size(); i++) { output.writeMessage(1, certificateRevocationLists_.get(i)); } @@ -315,8 +382,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateRevocationLists_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificateRevocationLists_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, certificateRevocationLists_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +405,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.security.privateca.v1.ListCertificateRevocationListsResponse)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other = + (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) obj; - if (!getCertificateRevocationListsList() - .equals(other.getCertificateRevocationListsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificateRevocationListsList().equals(other.getCertificateRevocationListsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,97 +444,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse 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.security.privateca.v1.ListCertificateRevocationListsResponse + 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.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists].
@@ -474,39 +556,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)
       com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.class,
+              com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCertificateRevocationListsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,19 +610,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse build() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result = buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -544,12 +633,15 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResp
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(this);
+    public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse result =
+          new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(this);
       int from_bitField0_ = bitField0_;
       if (certificateRevocationListsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_);
+          certificateRevocationLists_ =
+              java.util.Collections.unmodifiableList(certificateRevocationLists_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.certificateRevocationLists_ = certificateRevocationLists_;
@@ -570,46 +662,53 @@ public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResp
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)other);
+      if (other
+          instanceof
+          com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse
+              .getDefaultInstance()) return this;
       if (certificateRevocationListsBuilder_ == null) {
         if (!other.certificateRevocationLists_.isEmpty()) {
           if (certificateRevocationLists_.isEmpty()) {
@@ -628,9 +727,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateR
             certificateRevocationListsBuilder_ = null;
             certificateRevocationLists_ = other.certificateRevocationLists_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            certificateRevocationListsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCertificateRevocationListsFieldBuilder() : null;
+            certificateRevocationListsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCertificateRevocationListsFieldBuilder()
+                    : null;
           } else {
             certificateRevocationListsBuilder_.addAllMessages(other.certificateRevocationLists_);
           }
@@ -665,11 +765,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parsedMessage = null;
+      com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -678,28 +781,41 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List certificateRevocationLists_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        certificateRevocationLists_ = java.util.Collections.emptyList();
+
     private void ensureCertificateRevocationListsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        certificateRevocationLists_ = new java.util.ArrayList(certificateRevocationLists_);
+        certificateRevocationLists_ =
+            new java.util.ArrayList<
+                com.google.cloud.security.privateca.v1.CertificateRevocationList>(
+                certificateRevocationLists_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> certificateRevocationListsBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateRevocationList,
+            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder,
+            com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>
+        certificateRevocationListsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public java.util.List getCertificateRevocationListsList() { + public java.util.List + getCertificateRevocationListsList() { if (certificateRevocationListsBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateRevocationLists_); } else { @@ -707,11 +823,15 @@ public java.util.List * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList]. *
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public int getCertificateRevocationListsCount() { if (certificateRevocationListsBuilder_ == null) { @@ -721,13 +841,18 @@ public int getCertificateRevocationListsCount() { } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList + getCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { return certificateRevocationLists_.get(index); } else { @@ -735,11 +860,15 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList getCerti } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder setCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1.CertificateRevocationList value) { @@ -756,14 +885,19 @@ public Builder setCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder setCertificateRevocationLists( - int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.set(index, builderForValue.build()); @@ -774,13 +908,18 @@ public Builder setCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public Builder addCertificateRevocationLists(com.google.cloud.security.privateca.v1.CertificateRevocationList value) { + public Builder addCertificateRevocationLists( + com.google.cloud.security.privateca.v1.CertificateRevocationList value) { if (certificateRevocationListsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,11 +933,15 @@ public Builder addCertificateRevocationLists(com.google.cloud.security.privateca return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1.CertificateRevocationList value) { @@ -815,11 +958,15 @@ public Builder addCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addCertificateRevocationLists( com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { @@ -833,14 +980,19 @@ public Builder addCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addCertificateRevocationLists( - int index, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.add(index, builderForValue.build()); @@ -851,18 +1003,23 @@ public Builder addCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addAllCertificateRevocationLists( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1.CertificateRevocationList> + values) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificateRevocationLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateRevocationLists_); onChanged(); } else { certificateRevocationListsBuilder_.addAllMessages(values); @@ -870,11 +1027,15 @@ public Builder addAllCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder clearCertificateRevocationLists() { if (certificateRevocationListsBuilder_ == null) { @@ -887,11 +1048,15 @@ public Builder clearCertificateRevocationLists() { return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder removeCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { @@ -904,39 +1069,53 @@ public Builder removeCertificateRevocationLists(int index) { return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder getCertificateRevocationListsBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder + getCertificateRevocationListsBuilder(int index) { return getCertificateRevocationListsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder + getCertificateRevocationListsOrBuilder(int index) { if (certificateRevocationListsBuilder_ == null) { - return certificateRevocationLists_.get(index); } else { + return certificateRevocationLists_.get(index); + } else { return certificateRevocationListsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public java.util.List - getCertificateRevocationListsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + getCertificateRevocationListsOrBuilderList() { if (certificateRevocationListsBuilder_ != null) { return certificateRevocationListsBuilder_.getMessageOrBuilderList(); } else { @@ -944,45 +1123,69 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder() { - return getCertificateRevocationListsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder + addCertificateRevocationListsBuilder() { + return getCertificateRevocationListsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.CertificateRevocationList + .getDefaultInstance()); } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder( - int index) { - return getCertificateRevocationListsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder + addCertificateRevocationListsBuilder(int index) { + return getCertificateRevocationListsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.CertificateRevocationList + .getDefaultInstance()); } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public java.util.List - getCertificateRevocationListsBuilderList() { + public java.util.List + getCertificateRevocationListsBuilderList() { return getCertificateRevocationListsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1.CertificateRevocationList, + com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> getCertificateRevocationListsFieldBuilder() { if (certificateRevocationListsBuilder_ == null) { - certificateRevocationListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( + certificateRevocationListsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateRevocationList, + com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( certificateRevocationLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,6 +1197,8 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1001,13 +1206,13 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1221,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1023,15 +1230,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1245,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1046,20 +1254,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1067,15 +1277,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1083,57 +1296,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1364,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1457,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,30 +1490,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,9 +1528,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java index 5e6b7f8a..659f61a7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateRevocationListsResponseOrBuilder.java @@ -1,57 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateRevocationListsResponseOrBuilder extends +public interface ListCertificateRevocationListsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - java.util.List + java.util.List getCertificateRevocationListsList(); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists(int index); + com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationLists( + int index); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ int getCertificateRevocationListsCount(); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> getCertificateRevocationListsOrBuilderList(); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder + getCertificateRevocationListsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -59,10 +99,13 @@ com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCer
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -70,49 +113,59 @@ com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCer
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java index 3cbb6b03..086c9d73 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesRequest}
  */
-public final class ListCertificateTemplatesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateTemplatesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)
     ListCertificateTemplatesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateTemplatesRequest.newBuilder() to construct.
-  private ListCertificateTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateTemplatesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateTemplatesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,16 +48,15 @@ private ListCertificateTemplatesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateTemplatesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateTemplatesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,42 +75,46 @@ private ListCertificateTemplatesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pageToken_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            orderBy_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderBy_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,36 +122,43 @@ private ListCertificateTemplatesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class,
+            com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.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
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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 @@ -138,31 +167,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -173,6 +204,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -183,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +227,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +244,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. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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 { @@ -241,11 +278,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +294,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +327,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +343,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +374,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +386,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +415,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +434,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.security.privateca.v1.ListCertificateTemplatesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest other = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) 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.security.privateca.v1.ListCertificateTemplatesRequest other = + (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,96 +474,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest 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.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest 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.security.privateca.v1.ListCertificateTemplatesRequest + 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.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -533,38 +580,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)
       com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.class,
+              com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,19 +631,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest build() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -603,7 +655,8 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest bu
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest(this);
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest result =
+          new com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -617,46 +670,51 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest bu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -695,7 +753,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,20 +767,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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; @@ -729,22 +793,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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 { @@ -752,67 +819,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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. Limit on the number of
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -823,6 +905,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +913,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -840,16 +925,19 @@ 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. Limit on the number of
      * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -860,10 +948,11 @@ 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; @@ -871,19 +960,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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; @@ -892,21 +983,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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 { @@ -914,57 +1006,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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. Pagination token, returned earlier via
      * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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; @@ -972,18 +1071,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1093,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1115,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1177,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1199,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1221,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,30 +1292,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateTemplatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateTemplatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateTemplatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,9 +1329,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java index 71a6c166..f05faf3c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateTemplatesRequestOrBuilder extends +public interface ListCertificateTemplatesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateTemplatesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate], 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. Limit on the number of
    * [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate] to include in the response.
@@ -42,69 +69,85 @@ public interface ListCertificateTemplatesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateTemplatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java index 4e51316c..166d2424 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesResponse}
  */
-public final class ListCertificateTemplatesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateTemplatesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)
     ListCertificateTemplatesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateTemplatesResponse.newBuilder() to construct.
-  private ListCertificateTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateTemplatesResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateTemplatesResponse() {
     certificateTemplates_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,16 +47,15 @@ private ListCertificateTemplatesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateTemplatesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateTemplatesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,37 +75,44 @@ private ListCertificateTemplatesResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              certificateTemplates_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                certificateTemplates_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1.CertificateTemplate>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              certificateTemplates_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateTemplate.parser(),
+                      extensionRegistry));
+              break;
             }
-            certificateTemplates_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.CertificateTemplate.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              unreachable_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              nextPageToken_ = s;
+              break;
             }
-            unreachable_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                unreachable_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              unreachable_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,8 +120,7 @@ private ListCertificateTemplatesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         certificateTemplates_ = java.util.Collections.unmodifiableList(certificateTemplates_);
@@ -108,82 +132,111 @@ private ListCertificateTemplatesResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder.class);
+            com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class,
+            com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder.class);
   }
 
   public static final int CERTIFICATE_TEMPLATES_FIELD_NUMBER = 1;
-  private java.util.List certificateTemplates_;
+  private java.util.List
+      certificateTemplates_;
   /**
+   *
+   *
    * 
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ @java.lang.Override - public java.util.List getCertificateTemplatesList() { + public java.util.List + getCertificateTemplatesList() { return certificateTemplates_; } /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplatesOrBuilderList() { return certificateTemplates_; } /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ @java.lang.Override public int getCertificateTemplatesCount() { return certificateTemplates_.size(); } /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates(int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates( + int index) { return certificateTemplates_.get(index); } /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplatesOrBuilder(int index) { return certificateTemplates_.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
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -191,6 +244,7 @@ public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCe
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +253,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -214,16 +269,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +288,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +331,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +359,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificateTemplates_.size(); i++) { output.writeMessage(1, certificateTemplates_.get(i)); } @@ -315,8 +379,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateTemplates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificateTemplates_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificateTemplates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +401,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.security.privateca.v1.ListCertificateTemplatesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other = + (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) obj; - if (!getCertificateTemplatesList() - .equals(other.getCertificateTemplatesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificateTemplatesList().equals(other.getCertificateTemplatesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,96 +439,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse 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.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse 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.security.privateca.v1.ListCertificateTemplatesResponse + 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.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateTemplates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates].
@@ -474,39 +545,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificateTemplatesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)
       com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder.class);
+              com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.class,
+              com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCertificateTemplatesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,19 +599,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse build() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result = buildPartial();
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -545,7 +623,8 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse buildPartial() {
-      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(this);
+      com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse result =
+          new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(this);
       int from_bitField0_ = bitField0_;
       if (certificateTemplatesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -570,46 +649,52 @@ public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse b
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other) {
-      if (other == com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse
+              .getDefaultInstance()) return this;
       if (certificateTemplatesBuilder_ == null) {
         if (!other.certificateTemplates_.isEmpty()) {
           if (certificateTemplates_.isEmpty()) {
@@ -628,9 +713,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificateT
             certificateTemplatesBuilder_ = null;
             certificateTemplates_ = other.certificateTemplates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            certificateTemplatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCertificateTemplatesFieldBuilder() : null;
+            certificateTemplatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCertificateTemplatesFieldBuilder()
+                    : null;
           } else {
             certificateTemplatesBuilder_.addAllMessages(other.certificateTemplates_);
           }
@@ -669,7 +755,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -678,28 +766,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List certificateTemplates_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        certificateTemplates_ = java.util.Collections.emptyList();
+
     private void ensureCertificateTemplatesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        certificateTemplates_ = new java.util.ArrayList(certificateTemplates_);
+        certificateTemplates_ =
+            new java.util.ArrayList(
+                certificateTemplates_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> certificateTemplatesBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateTemplate,
+            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder,
+            com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>
+        certificateTemplatesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public java.util.List getCertificateTemplatesList() { + public java.util.List + getCertificateTemplatesList() { if (certificateTemplatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateTemplates_); } else { @@ -707,11 +807,15 @@ public java.util.List * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate]. *
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public int getCertificateTemplatesCount() { if (certificateTemplatesBuilder_ == null) { @@ -721,13 +825,18 @@ public int getCertificateTemplatesCount() { } } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates(int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates( + int index) { if (certificateTemplatesBuilder_ == null) { return certificateTemplates_.get(index); } else { @@ -735,11 +844,15 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificate } } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder setCertificateTemplates( int index, com.google.cloud.security.privateca.v1.CertificateTemplate value) { @@ -756,14 +869,19 @@ public Builder setCertificateTemplates( return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder setCertificateTemplates( - int index, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { if (certificateTemplatesBuilder_ == null) { ensureCertificateTemplatesIsMutable(); certificateTemplates_.set(index, builderForValue.build()); @@ -774,13 +892,18 @@ public Builder setCertificateTemplates( return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public Builder addCertificateTemplates(com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder addCertificateTemplates( + com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,11 +917,15 @@ public Builder addCertificateTemplates(com.google.cloud.security.privateca.v1.Ce return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder addCertificateTemplates( int index, com.google.cloud.security.privateca.v1.CertificateTemplate value) { @@ -815,11 +942,15 @@ public Builder addCertificateTemplates( return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder addCertificateTemplates( com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { @@ -833,14 +964,19 @@ public Builder addCertificateTemplates( return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder addCertificateTemplates( - int index, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { if (certificateTemplatesBuilder_ == null) { ensureCertificateTemplatesIsMutable(); certificateTemplates_.add(index, builderForValue.build()); @@ -851,18 +987,22 @@ public Builder addCertificateTemplates( return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder addAllCertificateTemplates( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (certificateTemplatesBuilder_ == null) { ensureCertificateTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificateTemplates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateTemplates_); onChanged(); } else { certificateTemplatesBuilder_.addAllMessages(values); @@ -870,11 +1010,15 @@ public Builder addAllCertificateTemplates( return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder clearCertificateTemplates() { if (certificateTemplatesBuilder_ == null) { @@ -887,11 +1031,15 @@ public Builder clearCertificateTemplates() { return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ public Builder removeCertificateTemplates(int index) { if (certificateTemplatesBuilder_ == null) { @@ -904,39 +1052,53 @@ public Builder removeCertificateTemplates(int index) { return this; } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder getCertificateTemplatesBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder + getCertificateTemplatesBuilder(int index) { return getCertificateTemplatesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplatesOrBuilder(int index) { if (certificateTemplatesBuilder_ == null) { - return certificateTemplates_.get(index); } else { + return certificateTemplates_.get(index); + } else { return certificateTemplatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public java.util.List - getCertificateTemplatesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + getCertificateTemplatesOrBuilderList() { if (certificateTemplatesBuilder_ != null) { return certificateTemplatesBuilder_.getMessageOrBuilderList(); } else { @@ -944,45 +1106,67 @@ public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCe } } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder addCertificateTemplatesBuilder() { - return getCertificateTemplatesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder + addCertificateTemplatesBuilder() { + return getCertificateTemplatesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder addCertificateTemplatesBuilder( - int index) { - return getCertificateTemplatesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder + addCertificateTemplatesBuilder(int index) { + return getCertificateTemplatesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance()); } /** + * + * *
      * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
      * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - public java.util.List - getCertificateTemplatesBuilderList() { + public java.util.List + getCertificateTemplatesBuilderList() { return getCertificateTemplatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplatesFieldBuilder() { if (certificateTemplatesBuilder_ == null) { - certificateTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( + certificateTemplatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( certificateTemplates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,6 +1178,8 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder addCer private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1001,13 +1187,13 @@ public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder addCer
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1202,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1023,15 +1211,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1226,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1046,20 +1235,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1067,15 +1258,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -1083,57 +1277,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1345,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1438,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,30 +1471,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateTemplatesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateTemplatesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,9 +1509,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificateTemplatesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java index 78c336ce..638295ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificateTemplatesResponseOrBuilder.java @@ -1,57 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificateTemplatesResponseOrBuilder extends +public interface ListCertificateTemplatesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificateTemplatesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - java.util.List + java.util.List getCertificateTemplatesList(); /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplates(int index); /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ int getCertificateTemplatesCount(); /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - java.util.List + java.util.List getCertificateTemplatesOrBuilderList(); /** + * + * *
    * The list of [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
    * 
* - * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * + * repeated .google.cloud.security.privateca.v1.CertificateTemplate certificate_templates = 1; + * */ - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplatesOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplatesOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -59,10 +97,13 @@ com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertifica
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateTemplatesRequest.next_page_token][] to retrieve
@@ -70,49 +111,59 @@ com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertifica
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java index 75dcbea3..bc111625 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesRequest} */ -public final class ListCertificatesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCertificatesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificatesRequest) ListCertificatesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCertificatesRequest.newBuilder() to construct. private ListCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCertificatesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListCertificatesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCertificatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCertificatesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListCertificatesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +120,43 @@ private ListCertificatesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, + com.google.cloud.security.privateca.v1.ListCertificatesRequest.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
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 @@ -137,31 +165,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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 { @@ -172,6 +202,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -182,6 +214,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -192,12 +225,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -206,30 +242,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. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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 { @@ -240,6 +276,8 @@ public java.lang.String getPageToken() { 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -247,6 +285,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -255,14 +294,15 @@ 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -270,16 +310,15 @@ 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 { @@ -290,6 +329,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -297,6 +338,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -305,14 +347,15 @@ 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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -320,16 +363,15 @@ 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 { @@ -338,6 +380,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +392,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -379,8 +421,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -399,23 +440,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.security.privateca.v1.ListCertificatesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificatesRequest other = (com.google.cloud.security.privateca.v1.ListCertificatesRequest) 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.security.privateca.v1.ListCertificatesRequest other = + (com.google.cloud.security.privateca.v1.ListCertificatesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -443,117 +480,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificatesRequest 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.security.privateca.v1.ListCertificatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificatesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificatesRequest) com.google.cloud.security.privateca.v1.ListCertificatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesRequest.class, + com.google.cloud.security.privateca.v1.ListCertificatesRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.ListCertificatesRequest.newBuilder() @@ -561,16 +608,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -588,13 +634,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesRequest + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance(); } @@ -609,7 +656,8 @@ public com.google.cloud.security.privateca.v1.ListCertificatesRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.ListCertificatesRequest buildPartial() { - com.google.cloud.security.privateca.v1.ListCertificatesRequest result = new com.google.cloud.security.privateca.v1.ListCertificatesRequest(this); + com.google.cloud.security.privateca.v1.ListCertificatesRequest result = + new com.google.cloud.security.privateca.v1.ListCertificatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -623,38 +671,39 @@ public com.google.cloud.security.privateca.v1.ListCertificatesRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.ListCertificatesRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesRequest)other); + return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesRequest) other); } else { super.mergeFrom(other); return this; @@ -662,7 +711,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificatesRequest other) { - if (other == com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.security.privateca.v1.ListCertificatesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -701,7 +752,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificatesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.ListCertificatesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -713,20 +766,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -735,22 +792,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string parent = 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 { @@ -758,67 +818,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * 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
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * string 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
      * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
      * `projects/*/locations/*/caPools/*`.
      * 
* - * 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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -829,6 +904,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -836,6 +912,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -846,16 +924,19 @@ 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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -866,10 +947,11 @@ 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; @@ -877,19 +959,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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; @@ -898,21 +982,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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 { @@ -920,57 +1005,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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; @@ -978,6 +1070,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -985,13 +1079,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; @@ -1000,6 +1094,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1007,15 +1103,14 @@ 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 { @@ -1023,6 +1118,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1030,20 +1127,22 @@ public java.lang.String getFilter() {
      * 
* * 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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1051,15 +1150,18 @@ public Builder setFilter(
      * 
* * 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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1067,16 +1169,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; @@ -1084,6 +1186,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1091,13 +1195,13 @@ public Builder setFilterBytes(
      * 
* * 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; @@ -1106,6 +1210,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1113,15 +1219,14 @@ 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 { @@ -1129,6 +1234,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1136,20 +1243,22 @@ public java.lang.String getOrderBy() {
      * 
* * 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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1157,15 +1266,18 @@ public Builder setOrderBy(
      * 
* * 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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1173,23 +1285,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); } @@ -1199,30 +1311,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificatesRequest) - private static final com.google.cloud.security.privateca.v1.ListCertificatesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificatesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificatesRequest(); } - public static com.google.cloud.security.privateca.v1.ListCertificatesRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificatesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1234,9 +1348,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java index 2e66486f..08628f74 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificatesRequestOrBuilder extends +public interface ListCertificatesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificatesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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
    * [Certificates][google.cloud.security.privateca.v1.Certificate], in the format
    * `projects/*/locations/*/caPools/*`.
    * 
* - * string parent = 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. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1.Certificate] to include in the
@@ -42,33 +69,41 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -76,10 +111,13 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -87,12 +125,14 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * 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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -100,10 +140,13 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -111,8 +154,8 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java index 61f529b4..ac25bcbc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Response message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesResponse} */ -public final class ListCertificatesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCertificatesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ListCertificatesResponse) ListCertificatesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCertificatesResponse.newBuilder() to construct. private ListCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCertificatesResponse() { certificates_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListCertificatesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCertificatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCertificatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,43 @@ private ListCertificatesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificates_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + certificates_.add( + input.readMessage( + com.google.cloud.security.privateca.v1.Certificate.parser(), + extensionRegistry)); + break; } - certificates_.add( - input.readMessage(com.google.cloud.security.privateca.v1.Certificate.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +117,7 @@ private ListCertificatesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); @@ -107,22 +129,27 @@ private ListCertificatesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, + com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private java.util.List certificates_; /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -134,6 +161,8 @@ public java.util.List getCer return certificates_; } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -141,11 +170,13 @@ public java.util.List getCer * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -157,6 +188,8 @@ public int getCertificatesCount() { return certificates_.size(); } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -168,6 +201,8 @@ public com.google.cloud.security.privateca.v1.Certificate getCertificates(int in return certificates_.get(index); } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -183,6 +218,8 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat 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
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -190,6 +227,7 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -198,14 +236,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -213,16 +252,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -233,34 +271,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -268,20 +314,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +342,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } @@ -314,8 +362,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -336,19 +383,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.security.privateca.v1.ListCertificatesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ListCertificatesResponse other = (com.google.cloud.security.privateca.v1.ListCertificatesResponse) obj; + com.google.cloud.security.privateca.v1.ListCertificatesResponse other = + (com.google.cloud.security.privateca.v1.ListCertificatesResponse) obj; - if (!getCertificatesList() - .equals(other.getCertificatesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificatesList().equals(other.getCertificatesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,117 +421,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.ListCertificatesResponse 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.security.privateca.v1.ListCertificatesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.ListCertificatesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.ListCertificatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.ListCertificatesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ListCertificatesResponse) com.google.cloud.security.privateca.v1.ListCertificatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1.ListCertificatesResponse.class, + com.google.cloud.security.privateca.v1.ListCertificatesResponse.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.ListCertificatesResponse.newBuilder() @@ -494,17 +549,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,13 +577,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesResponse + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance(); } @@ -543,7 +599,8 @@ public com.google.cloud.security.privateca.v1.ListCertificatesResponse build() { @java.lang.Override public com.google.cloud.security.privateca.v1.ListCertificatesResponse buildPartial() { - com.google.cloud.security.privateca.v1.ListCertificatesResponse result = new com.google.cloud.security.privateca.v1.ListCertificatesResponse(this); + com.google.cloud.security.privateca.v1.ListCertificatesResponse result = + new com.google.cloud.security.privateca.v1.ListCertificatesResponse(this); int from_bitField0_ = bitField0_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -568,46 +625,50 @@ public com.google.cloud.security.privateca.v1.ListCertificatesResponse buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.ListCertificatesResponse) { - return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesResponse)other); + return mergeFrom((com.google.cloud.security.privateca.v1.ListCertificatesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificatesResponse other) { - if (other == com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.ListCertificatesResponse other) { + if (other + == com.google.cloud.security.privateca.v1.ListCertificatesResponse.getDefaultInstance()) + return this; if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { @@ -626,9 +687,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.ListCertificates certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); - certificatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCertificatesFieldBuilder() : null; + certificatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificatesFieldBuilder() + : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } @@ -667,7 +729,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.ListCertificatesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.ListCertificatesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,28 +740,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List certificates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificates_ = new java.util.ArrayList(certificates_); + certificates_ = + new java.util.ArrayList( + certificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> certificatesBuilder_; + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder> + certificatesBuilder_; /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - public java.util.List getCertificatesList() { + public java.util.List + getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { @@ -705,6 +779,8 @@ public java.util.List getCer } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -719,6 +795,8 @@ public int getCertificatesCount() { } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -733,6 +811,8 @@ public com.google.cloud.security.privateca.v1.Certificate getCertificates(int in } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -754,6 +834,8 @@ public Builder setCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -772,6 +854,8 @@ public Builder setCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -792,6 +876,8 @@ public Builder addCertificates(com.google.cloud.security.privateca.v1.Certificat return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -813,6 +899,8 @@ public Builder addCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -831,6 +919,8 @@ public Builder addCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -849,6 +939,8 @@ public Builder addCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -859,8 +951,7 @@ public Builder addAllCertificates( java.lang.Iterable values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); @@ -868,6 +959,8 @@ public Builder addAllCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -885,6 +978,8 @@ public Builder clearCertificates() { return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -902,6 +997,8 @@ public Builder removeCertificates(int index) { return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -913,6 +1010,8 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificate return getCertificatesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -922,19 +1021,22 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificate public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBuilder( int index) { if (certificatesBuilder_ == null) { - return certificates_.get(index); } else { + return certificates_.get(index); + } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - public java.util.List - getCertificatesOrBuilderList() { + public java.util.List + getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { @@ -942,6 +1044,8 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -949,10 +1053,12 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificatesBuilder() { - return getCertificatesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
@@ -961,30 +1067,36 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate */ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificatesBuilder( int index) { - return getCertificatesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder() + .addBuilder( + index, com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance()); } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - public java.util.List - getCertificatesBuilderList() { + public java.util.List + getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { - certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder>( - certificates_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + certificatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder>( + certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; } return certificatesBuilder_; @@ -992,6 +1104,8 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -999,13 +1113,13 @@ public com.google.cloud.security.privateca.v1.Certificate.Builder addCertificate
      * 
* * 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; @@ -1014,6 +1128,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1021,15 +1137,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1037,6 +1152,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1044,20 +1161,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1065,15 +1184,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1081,57 +1203,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1139,80 +1271,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1222,28 +1364,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1253,30 +1397,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ListCertificatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ListCertificatesResponse) - private static final com.google.cloud.security.privateca.v1.ListCertificatesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.ListCertificatesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ListCertificatesResponse(); } - public static com.google.cloud.security.privateca.v1.ListCertificatesResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.ListCertificatesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1288,9 +1434,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.ListCertificatesResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.ListCertificatesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java index 1eec6f99..7b1ce1eb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ListCertificatesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface ListCertificatesResponseOrBuilder extends +public interface ListCertificatesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ListCertificatesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - java.util.List - getCertificatesList(); + java.util.List getCertificatesList(); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -25,6 +44,8 @@ public interface ListCertificatesResponseOrBuilder extends */ com.google.cloud.security.privateca.v1.Certificate getCertificates(int index); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
@@ -33,25 +54,30 @@ public interface ListCertificatesResponseOrBuilder extends */ int getCertificatesCount(); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - java.util.List + java.util.List getCertificatesOrBuilderList(); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1.Certificate certificates = 1; */ - com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBuilder( - int index); + com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -59,10 +85,13 @@ com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBui
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -70,49 +99,59 @@ com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificatesOrBui
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java index be074197..6be6cdd5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectId.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * An [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an object identifier (OID). These provide context
  * and describe types in ASN.1 messages.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.ObjectId}
  */
-public final class ObjectId extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ObjectId extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.ObjectId)
     ObjectIdOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ObjectId.newBuilder() to construct.
   private ObjectId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ObjectId() {
     objectIdPath_ = emptyIntList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ObjectId();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ObjectId(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,34 +72,36 @@ private ObjectId(
           case 0:
             done = true;
             break;
-          case 8: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              objectIdPath_ = newIntList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            objectIdPath_.addInt(input.readInt32());
-            break;
-          }
-          case 10: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
-              objectIdPath_ = newIntList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            while (input.getBytesUntilLimit() > 0) {
+          case 8:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                objectIdPath_ = newIntList();
+                mutable_bitField0_ |= 0x00000001;
+              }
               objectIdPath_.addInt(input.readInt32());
+              break;
             }
-            input.popLimit(limit);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+                objectIdPath_ = newIntList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              while (input.getBytesUntilLimit() > 0) {
+                objectIdPath_.addInt(input.readInt32());
+              }
+              input.popLimit(limit);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +109,7 @@ private ObjectId(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable(); // C
@@ -100,63 +118,76 @@ private ObjectId(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.ObjectId.class, com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
+            com.google.cloud.security.privateca.v1.ObjectId.class,
+            com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
   }
 
   public static final int OBJECT_ID_PATH_FIELD_NUMBER = 1;
   private com.google.protobuf.Internal.IntList objectIdPath_;
   /**
+   *
+   *
    * 
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the objectIdPath. */ @java.lang.Override - public java.util.List - getObjectIdPathList() { + public java.util.List getObjectIdPathList() { return objectIdPath_; } /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } + private int objectIdPathMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getObjectIdPathList().size() > 0) { output.writeUInt32NoTag(10); @@ -190,14 +220,13 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < objectIdPath_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(objectIdPath_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(objectIdPath_.getInt(i)); } size += dataSize; if (!getObjectIdPathList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } objectIdPathMemoizedSerializedSize = dataSize; } @@ -209,15 +238,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.security.privateca.v1.ObjectId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.ObjectId other = (com.google.cloud.security.privateca.v1.ObjectId) obj; + com.google.cloud.security.privateca.v1.ObjectId other = + (com.google.cloud.security.privateca.v1.ObjectId) obj; - if (!getObjectIdPathList() - .equals(other.getObjectIdPathList())) return false; + if (!getObjectIdPathList().equals(other.getObjectIdPathList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,97 +267,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom(java.io.InputStream input) 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.security.privateca.v1.ObjectId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.ObjectId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.ObjectId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ObjectId parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.ObjectId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1.ObjectId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an object identifier (OID). These provide context
    * and describe types in ASN.1 messages.
@@ -336,21 +372,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.ObjectId}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.ObjectId)
       com.google.cloud.security.privateca.v1.ObjectIdOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.ObjectId.class, com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
+              com.google.cloud.security.privateca.v1.ObjectId.class,
+              com.google.cloud.security.privateca.v1.ObjectId.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.ObjectId.newBuilder()
@@ -358,16 +396,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor;
     }
 
     @java.lang.Override
@@ -398,7 +435,8 @@ public com.google.cloud.security.privateca.v1.ObjectId build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.ObjectId buildPartial() {
-      com.google.cloud.security.privateca.v1.ObjectId result = new com.google.cloud.security.privateca.v1.ObjectId(this);
+      com.google.cloud.security.privateca.v1.ObjectId result =
+          new com.google.cloud.security.privateca.v1.ObjectId(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable();
@@ -413,38 +451,39 @@ public com.google.cloud.security.privateca.v1.ObjectId buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.ObjectId) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.ObjectId)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.ObjectId) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.ObjectId other) {
-      if (other == com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance())
+        return this;
       if (!other.objectIdPath_.isEmpty()) {
         if (objectIdPath_.isEmpty()) {
           objectIdPath_ = other.objectIdPath_;
@@ -491,48 +531,59 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Internal.IntList objectIdPath_ = emptyIntList();
+
     private void ensureObjectIdPathIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_ = mutableCopy(objectIdPath_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the objectIdPath. */ - public java.util.List - getObjectIdPathList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(objectIdPath_) : objectIdPath_; + public java.util.List getObjectIdPathList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(objectIdPath_) + : objectIdPath_; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ @@ -540,30 +591,35 @@ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The objectIdPath to set. * @return This builder for chaining. */ - public Builder setObjectIdPath( - int index, int value) { + public Builder setObjectIdPath(int index, int value) { ensureObjectIdPathIsMutable(); objectIdPath_.setInt(index, value); onChanged(); return this; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The objectIdPath to add. * @return This builder for chaining. */ @@ -574,30 +630,34 @@ public Builder addObjectIdPath(int value) { return this; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The objectIdPath to add. * @return This builder for chaining. */ - public Builder addAllObjectIdPath( - java.lang.Iterable values) { + public Builder addAllObjectIdPath(java.lang.Iterable values) { ensureObjectIdPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectIdPath_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectIdPath_); onChanged(); return this; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearObjectIdPath() { @@ -606,9 +666,9 @@ public Builder clearObjectIdPath() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +678,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.ObjectId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.ObjectId) private static final com.google.cloud.security.privateca.v1.ObjectId DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.ObjectId(); } @@ -632,16 +692,16 @@ public static com.google.cloud.security.privateca.v1.ObjectId getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,6 +716,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.ObjectId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java index ea9cda3e..d1720388 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/ObjectIdOrBuilder.java @@ -1,39 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface ObjectIdOrBuilder extends +public interface ObjectIdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.ObjectId) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the objectIdPath. */ java.util.List getObjectIdPathList(); /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of objectIdPath. */ int getObjectIdPathCount(); /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java index 32dc8657..d8c59c24 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.OperationMetadata.class, com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1.OperationMetadata.class, + com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -329,29 +387,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -485,8 +547,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -499,33 +560,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.OperationMetadata other = (com.google.cloud.security.privateca.v1.OperationMetadata) obj; + com.google.cloud.security.privateca.v1.OperationMetadata other = + (com.google.cloud.security.privateca.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,8 +607,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -562,117 +616,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.OperationMetadata 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.security.privateca.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.OperationMetadata) com.google.cloud.security.privateca.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.OperationMetadata.class, com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1.OperationMetadata.class, + com.google.cloud.security.privateca.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.OperationMetadata.newBuilder() @@ -680,16 +744,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +782,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +803,8 @@ public com.google.cloud.security.privateca.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.security.privateca.v1.OperationMetadata buildPartial() { - com.google.cloud.security.privateca.v1.OperationMetadata result = new com.google.cloud.security.privateca.v1.OperationMetadata(this); + com.google.cloud.security.privateca.v1.OperationMetadata result = + new com.google.cloud.security.privateca.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +828,39 @@ public com.google.cloud.security.privateca.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.security.privateca.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.security.privateca.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +868,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.OperationMetadata other) { - if (other == com.google.cloud.security.privateca.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.security.privateca.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -848,7 +914,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -860,39 +927,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +994,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1015,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1041,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1063,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1128,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1167,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1190,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1210,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1235,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1256,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1316,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1338,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1360,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1422,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1444,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1466,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1528,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1382,20 +1550,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1403,61 +1572,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1466,6 +1644,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1652,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1481,16 +1662,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1499,10 +1683,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1510,18 +1695,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1717,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1739,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.OperationMetadata) private static final com.google.cloud.security.privateca.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.OperationMetadata(); } @@ -1629,16 +1824,16 @@ public static com.google.cloud.security.privateca.v1.OperationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java index d60d5a41..ea977b3c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java new file mode 100644 index 00000000..140434ca --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaProto.java @@ -0,0 +1,906 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/service.proto + +package com.google.cloud.security.privateca.v1; + +public final class PrivateCaProto { + private PrivateCaProto() {} + + 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_security_privateca_v1_CreateCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/security/privateca/v1/ser" + + "vice.proto\022\"google.cloud.security.privat" + + "eca.v1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\0322google/cloud/security/privateca/v1/re" + + "sources.proto\032#google/longrunning/operat" + + "ions.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\237\002" + + "\n\030CreateCertificateRequest\0227\n\006parent\030\001 \001" + + "(\tB\'\340A\002\372A!\n\037privateca.googleapis.com/CaP" + + "ool\022\033\n\016certificate_id\030\002 \001(\tB\003\340A\001\022I\n\013cert" + + "ificate\030\003 \001(\0132/.google.cloud.security.pr" + + "ivateca.v1.CertificateB\003\340A\002\022\027\n\nrequest_i" + + "d\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001" + + "\022-\n issuing_certificate_authority_id\030\006 \001" + + "(\tB\003\340A\001\"S\n\025GetCertificateRequest\022:\n\004name" + + "\030\001 \001(\tB,\340A\002\372A&\n$privateca.googleapis.com" + + "/Certificate\"\257\001\n\027ListCertificatesRequest" + + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goog" + + "leapis.com/CaPool\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\"\217\001\n\030ListC" + + "ertificatesResponse\022E\n\014certificates\030\001 \003(" + + "\0132/.google.cloud.security.privateca.v1.C" + + "ertificate\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"\272\001\n\030RevokeCertificateRe" + + "quest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$privateca.g" + + "oogleapis.com/Certificate\022I\n\006reason\030\002 \001(" + + "\01624.google.cloud.security.privateca.v1.R" + + "evocationReasonB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" + + "B\003\340A\001\"\264\001\n\030UpdateCertificateRequest\022I\n\013ce" + + "rtificate\030\001 \001(\0132/.google.cloud.security." + + "privateca.v1.CertificateB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\374\001\n#Activat" + + "eCertificateAuthorityRequest\022C\n\004name\030\001 \001" + + "(\tB5\340A\002\372A/\n-privateca.googleapis.com/Cer" + + "tificateAuthority\022\037\n\022pem_ca_certificate\030" + + "\002 \001(\tB\003\340A\002\022V\n\022subordinate_config\030\003 \001(\01325" + + ".google.cloud.security.privateca.v1.Subo" + + "rdinateConfigB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + + "\340A\001\"\372\001\n!CreateCertificateAuthorityReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.goo" + + "gleapis.com/CaPool\022%\n\030certificate_author" + + "ity_id\030\002 \001(\tB\003\340A\002\022\\\n\025certificate_authori" + + "ty\030\003 \001(\01328.google.cloud.security.private" + + "ca.v1.CertificateAuthorityB\003\340A\002\022\027\n\nreque" + + "st_id\030\004 \001(\tB\003\340A\001\"\202\001\n\"DisableCertificateA" + + "uthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-p" + + "rivateca.googleapis.com/CertificateAutho" + + "rity\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\201\001\n!Enable" + + "CertificateAuthorityRequest\022C\n\004name\030\001 \001(" + + "\tB5\340A\002\372A/\n-privateca.googleapis.com/Cert" + + "ificateAuthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + + "\001\"j\n#FetchCertificateAuthorityCsrRequest" + + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.google" + + "apis.com/CertificateAuthority\"<\n$FetchCe" + + "rtificateAuthorityCsrResponse\022\024\n\007pem_csr" + + "\030\001 \001(\tB\003\340A\003\"e\n\036GetCertificateAuthorityRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.g" + + "oogleapis.com/CertificateAuthority\"\271\001\n!L" + + "istCertificateAuthoritiesRequest\0227\n\006pare" + + "nt\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.googleapis.c" + + "om/CaPool\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + + "e_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\"\255\001\n\"ListCertifica" + + "teAuthoritiesResponse\022Y\n\027certificate_aut" + + "horities\030\001 \003(\01328.google.cloud.security.p" + + "rivateca.v1.CertificateAuthority\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\203" + + "\001\n#UndeleteCertificateAuthorityRequest\022C" + + "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleap" + + "is.com/CertificateAuthority\022\027\n\nrequest_i" + + "d\030\002 \001(\tB\003\340A\001\"\312\001\n!DeleteCertificateAuthor" + + "ityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privat" + + "eca.googleapis.com/CertificateAuthority\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\'\n\032ignore_activ" + + "e_certificates\030\004 \001(\010B\003\340A\001\022\036\n\021skip_grace_" + + "period\030\005 \001(\010B\003\340A\001\"\320\001\n!UpdateCertificateA" + + "uthorityRequest\022\\\n\025certificate_authority" + + "\030\001 \001(\01328.google.cloud.security.privateca" + + ".v1.CertificateAuthorityB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\304\001\n\023CreateC" + + "aPoolRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" + + "cations.googleapis.com/Location\022\027\n\nca_po" + + "ol_id\030\002 \001(\tB\003\340A\002\022@\n\007ca_pool\030\003 \001(\0132*.goog" + + "le.cloud.security.privateca.v1.CaPoolB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\246\001\n\023UpdateCa" + + "PoolRequest\022@\n\007ca_pool\030\001 \001(\0132*.google.cl" + + "oud.security.privateca.v1.CaPoolB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"e\n\023" + + "DeleteCaPoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037privateca.googleapis.com/CaPool\022\027\n\nre" + + "quest_id\030\002 \001(\tB\003\340A\001\"h\n\023FetchCaCertsReque" + + "st\0228\n\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n\037privateca.g" + + "oogleapis.com/CaPool\022\027\n\nrequest_id\030\002 \001(\t" + + "B\003\340A\001\"\217\001\n\024FetchCaCertsResponse\022T\n\010ca_cer" + + "ts\030\001 \003(\0132B.google.cloud.security.private" + + "ca.v1.FetchCaCertsResponse.CertChain\032!\n\t" + + "CertChain\022\024\n\014certificates\030\001 \003(\t\"I\n\020GetCa" + + "PoolRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037priva" + + "teca.googleapis.com/CaPool\"\254\001\n\022ListCaPoo" + + "lsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A" + + "\001\"\201\001\n\023ListCaPoolsResponse\022<\n\010ca_pools\030\001 " + + "\003(\0132*.google.cloud.security.privateca.v1" + + ".CaPool\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"o\n#GetCertificateRevocatio" + + "nListRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2priv" + + "ateca.googleapis.com/CertificateRevocati" + + "onList\"\313\001\n%ListCertificateRevocationList" + + "sRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privat" + + "eca.googleapis.com/CertificateAuthority\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_b" + + "y\030\005 \001(\tB\003\340A\001\"\273\001\n&ListCertificateRevocati" + + "onListsResponse\022c\n\034certificate_revocatio" + + "n_lists\030\001 \003(\0132=.google.cloud.security.pr" + + "ivateca.v1.CertificateRevocationList\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"\340\001\n&UpdateCertificateRevocationListRe" + + "quest\022g\n\033certificate_revocation_list\030\001 \001" + + "(\0132=.google.cloud.security.privateca.v1." + + "CertificateRevocationListB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\370\001\n Create" + + "CertificateTemplateRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022$\n\027certificate_template_id\030\002 \001(\tB\003" + + "\340A\002\022Z\n\024certificate_template\030\003 \001(\01327.goog" + + "le.cloud.security.privateca.v1.Certifica" + + "teTemplateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\"\177\n DeleteCertificateTemplateRequest\022B\n\004" + + "name\030\001 \001(\tB4\340A\002\372A.\n,privateca.googleapis" + + ".com/CertificateTemplate\022\027\n\nrequest_id\030\002" + + " \001(\tB\003\340A\001\"c\n\035GetCertificateTemplateReque" + + "st\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,privateca.goog" + + "leapis.com/CertificateTemplate\"\271\001\n\037ListC" + + "ertificateTemplatesRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" + + "rder_by\030\005 \001(\tB\003\340A\001\"\250\001\n ListCertificateTe" + + "mplatesResponse\022V\n\025certificate_templates" + + "\030\001 \003(\01327.google.cloud.security.privateca" + + ".v1.CertificateTemplate\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\315\001\n Update" + + "CertificateTemplateRequest\022Z\n\024certificat" + + "e_template\030\001 \001(\01327.google.cloud.security" + + ".privateca.v1.CertificateTemplateB\003\340A\002\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\200\002" + + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + + "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\007 \001(\tB\003\340A\0032\372;\n\033CertificateAuthorit" + + "yService\022\367\001\n\021CreateCertificate\022<.google." + + "cloud.security.privateca.v1.CreateCertif" + + "icateRequest\032/.google.cloud.security.pri" + + "vateca.v1.Certificate\"s\202\323\344\223\002I\":/v1/{pare" + + "nt=projects/*/locations/*/caPools/*}/cer" + + "tificates:\013certificate\332A!parent,certific" + + "ate,certificate_id\022\307\001\n\016GetCertificate\0229." + + "google.cloud.security.privateca.v1.GetCe" + + "rtificateRequest\032/.google.cloud.security" + + ".privateca.v1.Certificate\"I\202\323\344\223\002<\022:/v1/{" + + "name=projects/*/locations/*/caPools/*/ce" + + "rtificates/*}\332A\004name\022\332\001\n\020ListCertificate" + + "s\022;.google.cloud.security.privateca.v1.L" + + "istCertificatesRequest\032<.google.cloud.se" + + "curity.privateca.v1.ListCertificatesResp" + + "onse\"K\202\323\344\223\002<\022:/v1/{parent=projects/*/loc" + + "ations/*/caPools/*}/certificates\332A\006paren" + + "t\022\327\001\n\021RevokeCertificate\022<.google.cloud.s" + + "ecurity.privateca.v1.RevokeCertificateRe" + + "quest\032/.google.cloud.security.privateca." + + "v1.Certificate\"S\202\323\344\223\002F\"A/v1/{name=projec" + + "ts/*/locations/*/caPools/*/certificates/" + + "*}:revoke:\001*\332A\004name\022\371\001\n\021UpdateCertificat" + + "e\022<.google.cloud.security.privateca.v1.U" + + "pdateCertificateRequest\032/.google.cloud.s" + + "ecurity.privateca.v1.Certificate\"u\202\323\344\223\002U" + + "2F/v1/{certificate.name=projects/*/locat" + + "ions/*/caPools/*/certificates/*}:\013certif" + + "icate\332A\027certificate,update_mask\022\224\002\n\034Acti" + + "vateCertificateAuthority\022G.google.cloud." + + "security.privateca.v1.ActivateCertificat" + + "eAuthorityRequest\032\035.google.longrunning.O" + + "peration\"\213\001\202\323\344\223\002R\"M/v1/{name=projects/*/" + + "locations/*/caPools/*/certificateAuthori" + + "ties/*}:activate:\001*\332A\004name\312A)\n\024Certifica" + + "teAuthority\022\021OperationMetadata\022\314\002\n\032Creat" + + "eCertificateAuthority\022E.google.cloud.sec" + + "urity.privateca.v1.CreateCertificateAuth" + + "orityRequest\032\035.google.longrunning.Operat" + + "ion\"\307\001\202\323\344\223\002]\"D/v1/{parent=projects/*/loc" + + "ations/*/caPools/*}/certificateAuthoriti" + + "es:\025certificate_authority\332A5parent,certi" + + "ficate_authority,certificate_authority_i" + + "d\312A)\n\024CertificateAuthority\022\021OperationMet" + + "adata\022\221\002\n\033DisableCertificateAuthority\022F." + + "google.cloud.security.privateca.v1.Disab" + + "leCertificateAuthorityRequest\032\035.google.l" + + "ongrunning.Operation\"\212\001\202\323\344\223\002Q\"L/v1/{name" + + "=projects/*/locations/*/caPools/*/certif" + + "icateAuthorities/*}:disable:\001*\332A\004name\312A)" + + "\n\024CertificateAuthority\022\021OperationMetadat" + + "a\022\216\002\n\032EnableCertificateAuthority\022E.googl" + + "e.cloud.security.privateca.v1.EnableCert" + + "ificateAuthorityRequest\032\035.google.longrun" + + "ning.Operation\"\211\001\202\323\344\223\002P\"K/v1/{name=proje" + + "cts/*/locations/*/caPools/*/certificateA" + + "uthorities/*}:enable:\001*\332A\004name\312A)\n\024Certi" + + "ficateAuthority\022\021OperationMetadata\022\214\002\n\034F" + + "etchCertificateAuthorityCsr\022G.google.clo" + + "ud.security.privateca.v1.FetchCertificat" + + "eAuthorityCsrRequest\032H.google.cloud.secu" + + "rity.privateca.v1.FetchCertificateAuthor" + + "ityCsrResponse\"Y\202\323\344\223\002L\022J/v1/{name=projec" + + "ts/*/locations/*/caPools/*/certificateAu" + + "thorities/*}:fetch\332A\004name\022\354\001\n\027GetCertifi" + + "cateAuthority\022B.google.cloud.security.pr" + + "ivateca.v1.GetCertificateAuthorityReques" + + "t\0328.google.cloud.security.privateca.v1.C" + + "ertificateAuthority\"S\202\323\344\223\002F\022D/v1/{name=p" + + "rojects/*/locations/*/caPools/*/certific" + + "ateAuthorities/*}\332A\004name\022\202\002\n\032ListCertifi" + + "cateAuthorities\022E.google.cloud.security." + + "privateca.v1.ListCertificateAuthoritiesR" + + "equest\032F.google.cloud.security.privateca" + + ".v1.ListCertificateAuthoritiesResponse\"U" + + "\202\323\344\223\002F\022D/v1/{parent=projects/*/locations" + + "/*/caPools/*}/certificateAuthorities\332A\006p" + + "arent\022\224\002\n\034UndeleteCertificateAuthority\022G" + + ".google.cloud.security.privateca.v1.Unde" + + "leteCertificateAuthorityRequest\032\035.google" + + ".longrunning.Operation\"\213\001\202\323\344\223\002R\"M/v1/{na" + + "me=projects/*/locations/*/caPools/*/cert" + + "ificateAuthorities/*}:undelete:\001*\332A\004name" + + "\312A)\n\024CertificateAuthority\022\021OperationMeta" + + "data\022\203\002\n\032DeleteCertificateAuthority\022E.go" + + "ogle.cloud.security.privateca.v1.DeleteC" + + "ertificateAuthorityRequest\032\035.google.long" + + "running.Operation\"\177\202\323\344\223\002F*D/v1/{name=pro" + + "jects/*/locations/*/caPools/*/certificat" + + "eAuthorities/*}\332A\004name\312A)\n\024CertificateAu" + + "thority\022\021OperationMetadata\022\316\002\n\032UpdateCer" + + "tificateAuthority\022E.google.cloud.securit" + + "y.privateca.v1.UpdateCertificateAuthorit" + + "yRequest\032\035.google.longrunning.Operation\"" + + "\311\001\202\323\344\223\002s2Z/v1/{certificate_authority.nam" + + "e=projects/*/locations/*/caPools/*/certi" + + "ficateAuthorities/*}:\025certificate_author" + + "ity\332A!certificate_authority,update_mask\312" + + "A)\n\024CertificateAuthority\022\021OperationMetad" + + "ata\022\336\001\n\014CreateCaPool\0227.google.cloud.secu" + + "rity.privateca.v1.CreateCaPoolRequest\032\035." + + "google.longrunning.Operation\"v\202\323\344\223\0026\"+/v" + + "1/{parent=projects/*/locations/*}/caPool" + + "s:\007ca_pool\332A\031parent,ca_pool,ca_pool_id\312A" + + "\033\n\006CaPool\022\021OperationMetadata\022\340\001\n\014UpdateC" + + "aPool\0227.google.cloud.security.privateca." + + "v1.UpdateCaPoolRequest\032\035.google.longrunn" + + "ing.Operation\"x\202\323\344\223\002>23/v1/{ca_pool.name" + + "=projects/*/locations/*/caPools/*}:\007ca_p" + + "ool\332A\023ca_pool,update_mask\312A\033\n\006CaPool\022\021Op" + + "erationMetadata\022\251\001\n\tGetCaPool\0224.google.c" + + "loud.security.privateca.v1.GetCaPoolRequ" + + "est\032*.google.cloud.security.privateca.v1" + + ".CaPool\":\202\323\344\223\002-\022+/v1/{name=projects/*/lo" + + "cations/*/caPools/*}\332A\004name\022\274\001\n\013ListCaPo" + + "ols\0226.google.cloud.security.privateca.v1" + + ".ListCaPoolsRequest\0327.google.cloud.secur" + + "ity.privateca.v1.ListCaPoolsResponse\"<\202\323" + + "\344\223\002-\022+/v1/{parent=projects/*/locations/*" + + "}/caPools\332A\006parent\022\317\001\n\014DeleteCaPool\0227.go" + + "ogle.cloud.security.privateca.v1.DeleteC" + + "aPoolRequest\032\035.google.longrunning.Operat" + + "ion\"g\202\323\344\223\002-*+/v1/{name=projects/*/locati" + + "ons/*/caPools/*}\332A\004name\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\022\323\001\n\014FetchCa" + + "Certs\0227.google.cloud.security.privateca." + + "v1.FetchCaCertsRequest\0328.google.cloud.se" + + "curity.privateca.v1.FetchCaCertsResponse" + + "\"P\202\323\344\223\002@\";/v1/{ca_pool=projects/*/locati" + + "ons/*/caPools/*}:fetchCaCerts:\001*\332A\007ca_po" + + "ol\022\230\002\n\034GetCertificateRevocationList\022G.go" + + "ogle.cloud.security.privateca.v1.GetCert" + + "ificateRevocationListRequest\032=.google.cl" + + "oud.security.privateca.v1.CertificateRev" + + "ocationList\"p\202\323\344\223\002c\022a/v1/{name=projects/" + + "*/locations/*/caPools/*/certificateAutho" + + "rities/*/certificateRevocationLists/*}\332A" + + "\004name\022\253\002\n\036ListCertificateRevocationLists" + + "\022I.google.cloud.security.privateca.v1.Li" + + "stCertificateRevocationListsRequest\032J.go" + + "ogle.cloud.security.privateca.v1.ListCer" + + "tificateRevocationListsResponse\"r\202\323\344\223\002c\022" + + "a/v1/{parent=projects/*/locations/*/caPo" + + "ols/*/certificateAuthorities/*}/certific" + + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + + "rtificateRevocationList\022J.google.cloud.s" + + "ecurity.privateca.v1.UpdateCertificateRe" + + "vocationListRequest\032\035.google.longrunning" + + ".Operation\"\376\001\202\323\344\223\002\234\0012}/v1/{certificate_r" + + "evocation_list.name=projects/*/locations" + + "/*/caPools/*/certificateAuthorities/*/ce" + + "rtificateRevocationLists/*}:\033certificate" + + "_revocation_list\332A\'certificate_revocatio" + + "n_list,update_mask\312A.\n\031CertificateRevoca" + + "tionList\022\021OperationMetadata\022\272\002\n\031CreateCe" + + "rtificateTemplate\022D.google.cloud.securit" + + "y.privateca.v1.CreateCertificateTemplate" + + "Request\032\035.google.longrunning.Operation\"\267" + + "\001\202\323\344\223\002P\"8/v1/{parent=projects/*/location" + + "s/*}/certificateTemplates:\024certificate_t" + + "emplate\332A3parent,certificate_template,ce" + + "rtificate_template_id\312A(\n\023CertificateTem" + + "plate\022\021OperationMetadata\022\232\002\n\031DeleteCerti" + + "ficateTemplate\022D.google.cloud.security.p" + + "rivateca.v1.DeleteCertificateTemplateReq" + + "uest\032\035.google.longrunning.Operation\"\227\001\202\323" + + "\344\223\002:*8/v1/{name=projects/*/locations/*/c" + + "ertificateTemplates/*}\332A\004name\312AM\n\025google" + + ".protobuf.Empty\0224google.cloud.security.p" + + "rivateca.v1.OperationMetadata\022\335\001\n\026GetCer" + + "tificateTemplate\022A.google.cloud.security" + + ".privateca.v1.GetCertificateTemplateRequ" + + "est\0327.google.cloud.security.privateca.v1" + + ".CertificateTemplate\"G\202\323\344\223\002:\0228/v1/{name=" + + "projects/*/locations/*/certificateTempla" + + "tes/*}\332A\004name\022\360\001\n\030ListCertificateTemplat" + + "es\022C.google.cloud.security.privateca.v1." + + "ListCertificateTemplatesRequest\032D.google" + + ".cloud.security.privateca.v1.ListCertifi" + + "cateTemplatesResponse\"I\202\323\344\223\002:\0228/v1/{pare" + + "nt=projects/*/locations/*}/certificateTe" + + "mplates\332A\006parent\022\274\002\n\031UpdateCertificateTe" + + "mplate\022D.google.cloud.security.privateca" + + ".v1.UpdateCertificateTemplateRequest\032\035.g" + + "oogle.longrunning.Operation\"\271\001\202\323\344\223\002e2M/v" + + "1/{certificate_template.name=projects/*/" + + "locations/*/certificateTemplates/*}:\024cer" + + "tificate_template\332A certificate_template" + + ",update_mask\312A(\n\023CertificateTemplate\022\021Op" + + "erationMetadata\032L\312A\030privateca.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\375\001\n&com.google.cloud.secur" + + "ity.privateca.v1B\016PrivateCaProtoP\001ZKgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "security/privateca/v1;privateca\370\001\001\252\002\"Goo" + + "gle.Cloud.Security.PrivateCA.V1\312\002\"Google" + + "\\Cloud\\Security\\PrivateCA\\V1\352\002&Google::C" + + "loud::Security::PrivateCA::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.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCertificateRequest_descriptor, + new java.lang.String[] { + "Parent", + "CertificateId", + "Certificate", + "RequestId", + "ValidateOnly", + "IssuingCertificateAuthorityId", + }); + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificatesResponse_descriptor, + new java.lang.String[] { + "Certificates", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor, + new java.lang.String[] { + "Name", "Reason", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor, + new java.lang.String[] { + "Certificate", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ActivateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DisableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_EnableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCertificateAuthorityCsrResponse_descriptor, + new java.lang.String[] { + "PemCsr", + }); + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateAuthoritiesResponse_descriptor, + new java.lang.String[] { + "CertificateAuthorities", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DeleteCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "IgnoreActiveCertificates", "SkipGracePeriod", + }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "CertificateAuthority", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCaPoolRequest_descriptor, + new java.lang.String[] { + "Parent", "CaPoolId", "CaPool", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor, + new java.lang.String[] { + "CaPool", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DeleteCaPoolRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCaCertsRequest_descriptor, + new java.lang.String[] { + "CaPool", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor, + new java.lang.String[] { + "CaCerts", + }); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor = + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_FetchCaCertsResponse_CertChain_descriptor, + new java.lang.String[] { + "Certificates", + }); + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCaPoolRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCaPoolsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCaPoolsResponse_descriptor, + new java.lang.String[] { + "CaPools", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateRevocationListRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateRevocationListsResponse_descriptor, + new java.lang.String[] { + "CertificateRevocationLists", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor, + new java.lang.String[] { + "CertificateRevocationList", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CreateCertificateTemplateRequest_descriptor, + new java.lang.String[] { + "Parent", "CertificateTemplateId", "CertificateTemplate", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_DeleteCertificateTemplateRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_GetCertificateTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ListCertificateTemplatesResponse_descriptor, + new java.lang.String[] { + "CertificateTemplates", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor, + new java.lang.String[] { + "CertificateTemplate", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_security_privateca_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java new file mode 100644 index 00000000..0a2942a2 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java @@ -0,0 +1,986 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1/resources.proto + +package com.google.cloud.security.privateca.v1; + +public final class PrivateCaResourcesProto { + private PrivateCaResourcesProto() {} + + 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_security_privateca_v1_CertificateAuthority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_Subject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/security/privateca/v1/res" + + "ources.proto\022\"google.cloud.security.priv" + + "ateca.v1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\036google/pro" + + "tobuf/duration.proto\032\037google/protobuf/ti" + + "mestamp.proto\032\026google/type/expr.proto\"\365\017" + + "\n\024CertificateAuthority\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022S\n\004type\030\002 \001(\0162=.google.cloud.security." + + "privateca.v1.CertificateAuthority.TypeB\006" + + "\340A\002\340A\005\022M\n\006config\030\003 \001(\01325.google.cloud.se" + + "curity.privateca.v1.CertificateConfigB\006\340" + + "A\002\340A\005\0223\n\010lifetime\030\004 \001(\0132\031.google.protobu" + + "f.DurationB\006\340A\002\340A\005\022a\n\010key_spec\030\005 \001(\0132G.g" + + "oogle.cloud.security.privateca.v1.Certif" + + "icateAuthority.KeyVersionSpecB\006\340A\002\340A\005\022V\n" + + "\022subordinate_config\030\006 \001(\01325.google.cloud" + + ".security.privateca.v1.SubordinateConfig" + + "B\003\340A\001\022B\n\004tier\030\007 \001(\0162/.google.cloud.secur" + + "ity.privateca.v1.CaPool.TierB\003\340A\003\022R\n\005sta" + + "te\030\010 \001(\0162>.google.cloud.security.private" + + "ca.v1.CertificateAuthority.StateB\003\340A\003\022 \n" + + "\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022d\n\033ca_ce" + + "rtificate_descriptions\030\n \003(\0132:.google.cl" + + "oud.security.privateca.v1.CertificateDes" + + "criptionB\003\340A\003\022\027\n\ngcs_bucket\030\013 \001(\tB\003\340A\005\022]" + + "\n\013access_urls\030\014 \001(\0132C.google.cloud.secur" + + "ity.privateca.v1.CertificateAuthority.Ac" + + "cessUrlsB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013delete_time\030\017 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013expire_time\030\020 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022Y\n\006labels\030" + + "\021 \003(\0132D.google.cloud.security.privateca." + + "v1.CertificateAuthority.LabelsEntryB\003\340A\001" + + "\032H\n\nAccessUrls\022!\n\031ca_certificate_access_" + + "url\030\001 \001(\t\022\027\n\017crl_access_urls\030\002 \003(\t\032\240\001\n\016K" + + "eyVersionSpec\022\037\n\025cloud_kms_key_version\030\001" + + " \001(\tH\000\022_\n\talgorithm\030\002 \001(\0162J.google.cloud" + + ".security.privateca.v1.CertificateAuthor" + + "ity.SignHashAlgorithmH\000B\014\n\nKeyVersion\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017\n\013SE" + + "LF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"p\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DIS" + + "ABLED\020\002\022\n\n\006STAGED\020\003\022\034\n\030AWAITING_USER_ACT" + + "IVATION\020\004\022\013\n\007DELETED\020\005\"\374\001\n\021SignHashAlgor" + + "ithm\022#\n\037SIGN_HASH_ALGORITHM_UNSPECIFIED\020" + + "\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022\027\n\023RSA_PSS_30" + + "72_SHA256\020\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\031\n\025" + + "RSA_PKCS1_2048_SHA256\020\006\022\031\n\025RSA_PKCS1_307" + + "2_SHA256\020\007\022\031\n\025RSA_PKCS1_4096_SHA256\020\010\022\022\n" + + "\016EC_P256_SHA256\020\004\022\022\n\016EC_P384_SHA384\020\005:\235\001" + + "\352A\231\001\n-privateca.googleapis.com/Certifica" + + "teAuthority\022hprojects/{project}/location" + + "s/{location}/caPools/{ca_pool}/certifica" + + "teAuthorities/{certificate_authority}\"\360\016" + + "\n\006CaPool\022\021\n\004name\030\001 \001(\tB\003\340A\003\022E\n\004tier\030\002 \001(" + + "\0162/.google.cloud.security.privateca.v1.C" + + "aPool.TierB\006\340A\002\340A\005\022W\n\017issuance_policy\030\003 " + + "\001(\01329.google.cloud.security.privateca.v1" + + ".CaPool.IssuancePolicyB\003\340A\001\022]\n\022publishin" + + "g_options\030\004 \001(\0132<.google.cloud.security." + + "privateca.v1.CaPool.PublishingOptionsB\003\340" + + "A\001\022K\n\006labels\030\005 \003(\01326.google.cloud.securi" + + "ty.privateca.v1.CaPool.LabelsEntryB\003\340A\001\032" + + "K\n\021PublishingOptions\022\034\n\017publish_ca_cert\030" + + "\001 \001(\010B\003\340A\001\022\030\n\013publish_crl\030\002 \001(\010B\003\340A\001\032\357\t\n" + + "\016IssuancePolicy\022h\n\021allowed_key_types\030\001 \003" + + "(\0132H.google.cloud.security.privateca.v1." + + "CaPool.IssuancePolicy.AllowedKeyTypeB\003\340A" + + "\001\0228\n\020maximum_lifetime\030\002 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\001\022l\n\026allowed_issuance_" + + "modes\030\003 \001(\0132G.google.cloud.security.priv" + + "ateca.v1.CaPool.IssuancePolicy.IssuanceM" + + "odesB\003\340A\001\022P\n\017baseline_values\030\004 \001(\01322.goo" + + "gle.cloud.security.privateca.v1.X509Para" + + "metersB\003\340A\001\022e\n\024identity_constraints\030\005 \001(" + + "\0132B.google.cloud.security.privateca.v1.C" + + "ertificateIdentityConstraintsB\003\340A\001\022h\n\026pa" + + "ssthrough_extensions\030\006 \001(\0132C.google.clou" + + "d.security.privateca.v1.CertificateExten" + + "sionConstraintsB\003\340A\001\032\305\004\n\016AllowedKeyType\022" + + "b\n\003rsa\030\001 \001(\0132S.google.cloud.security.pri" + + "vateca.v1.CaPool.IssuancePolicy.AllowedK" + + "eyType.RsaKeyTypeH\000\022l\n\016elliptic_curve\030\002 " + + "\001(\0132R.google.cloud.security.privateca.v1" + + ".CaPool.IssuancePolicy.AllowedKeyType.Ec" + + "KeyTypeH\000\032J\n\nRsaKeyType\022\035\n\020min_modulus_s" + + "ize\030\001 \001(\003B\003\340A\001\022\035\n\020max_modulus_size\030\002 \001(\003" + + "B\003\340A\001\032\210\002\n\tEcKeyType\022\211\001\n\023signature_algori" + + "thm\030\001 \001(\0162g.google.cloud.security.privat" + + "eca.v1.CaPool.IssuancePolicy.AllowedKeyT" + + "ype.EcKeyType.EcSignatureAlgorithmB\003\340A\001\"" + + "o\n\024EcSignatureAlgorithm\022&\n\"EC_SIGNATURE_" + + "ALGORITHM_UNSPECIFIED\020\000\022\016\n\nECDSA_P256\020\001\022" + + "\016\n\nECDSA_P384\020\002\022\017\n\013EDDSA_25519\020\003B\n\n\010key_" + + "type\032`\n\rIssuanceModes\022%\n\030allow_csr_based" + + "_issuance\030\001 \001(\010B\003\340A\001\022(\n\033allow_config_bas" + + "ed_issuance\030\002 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\004Tier\022\024\n" + + "\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n\n\006D" + + "EVOPS\020\002:_\352A\\\n\037privateca.googleapis.com/C" + + "aPool\0229projects/{project}/locations/{loc" + + "ation}/caPools/{ca_pool}\"\274\010\n\031Certificate" + + "RevocationList\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017seq" + + "uence_number\030\002 \001(\003B\003\340A\003\022s\n\024revoked_certi" + + "ficates\030\003 \003(\0132P.google.cloud.security.pr" + + "ivateca.v1.CertificateRevocationList.Rev" + + "okedCertificateB\003\340A\003\022\024\n\007pem_crl\030\004 \001(\tB\003\340" + + "A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003\022W\n\005state\030\006 \001" + + "(\0162C.google.cloud.security.privateca.v1." + + "CertificateRevocationList.StateB\003\340A\003\0224\n\013" + + "create_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022\030\n\013revision_id\030" + + "\t \001(\tB\003\340A\003\022^\n\006labels\030\n \003(\0132I.google.clou" + + "d.security.privateca.v1.CertificateRevoc" + + "ationList.LabelsEntryB\003\340A\001\032\300\001\n\022RevokedCe" + + "rtificate\022>\n\013certificate\030\001 \001(\tB)\372A&\n$pri" + + "vateca.googleapis.com/Certificate\022\031\n\021hex" + + "_serial_number\030\002 \001(\t\022O\n\021revocation_reaso" + + "n\030\003 \001(\01624.google.cloud.security.privatec" + + "a.v1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPE" + + "RSEDED\020\002:\334\001\352A\330\001\n2privateca.googleapis.co" + + "m/CertificateRevocationList\022\241\001projects/{" + + "project}/locations/{location}/caPools/{c" + + "a_pool}/certificateAuthorities/{certific" + + "ate_authority}/certificateRevocationList" + + "s/{certificate_revocation_list}\"\217\n\n\013Cert" + + "ificate\022:\n\004name\030\001 \001(\tB,\340A\003\372A&\n$privateca" + + ".googleapis.com/Certificate\022\026\n\007pem_csr\030\002" + + " \001(\tB\003\340A\005H\000\022L\n\006config\030\003 \001(\01325.google.clo" + + "ud.security.privateca.v1.CertificateConf" + + "igB\003\340A\005H\000\022[\n\034issuer_certificate_authorit" + + "y\030\004 \001(\tB5\340A\003\372A/\n-privateca.googleapis.co" + + "m/CertificateAuthority\0223\n\010lifetime\030\005 \001(\013" + + "2\031.google.protobuf.DurationB\006\340A\002\340A\005\022R\n\024c" + + "ertificate_template\030\006 \001(\tB4\340A\005\372A.\n,priva" + + "teca.googleapis.com/CertificateTemplate\022" + + "Q\n\014subject_mode\030\007 \001(\01626.google.cloud.sec" + + "urity.privateca.v1.SubjectRequestModeB\003\340" + + "A\005\022b\n\022revocation_details\030\010 \001(\0132A.google." + + "cloud.security.privateca.v1.Certificate." + + "RevocationDetailsB\003\340A\003\022\034\n\017pem_certificat" + + "e\030\t \001(\tB\003\340A\003\022`\n\027certificate_description\030" + + "\n \001(\0132:.google.cloud.security.privateca." + + "v1.CertificateDescriptionB\003\340A\003\022\"\n\025pem_ce" + + "rtificate_chain\030\013 \003(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\r \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022P\n\006labels\030\016 \003(\0132;.google." + + "cloud.security.privateca.v1.Certificate." + + "LabelsEntryB\003\340A\001\032\230\001\n\021RevocationDetails\022N" + + "\n\020revocation_state\030\001 \001(\01624.google.cloud." + + "security.privateca.v1.RevocationReason\0223" + + "\n\017revocation_time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\177\352A|\n$privateca.googl" + + "eapis.com/Certificate\022Tprojects/{project" + + "}/locations/{location}/caPools/{ca_pool}" + + "/certificates/{certificate}B\024\n\022certifica" + + "te_config\"\227\006\n\023CertificateTemplate\022B\n\004nam" + + "e\030\001 \001(\tB4\340A\003\372A.\n,privateca.googleapis.co" + + "m/CertificateTemplate\022R\n\021predefined_valu" + + "es\030\002 \001(\01322.google.cloud.security.private" + + "ca.v1.X509ParametersB\003\340A\001\022e\n\024identity_co" + + "nstraints\030\003 \001(\0132B.google.cloud.security." + + "privateca.v1.CertificateIdentityConstrai" + + "ntsB\003\340A\001\022h\n\026passthrough_extensions\030\004 \001(\013" + + "2C.google.cloud.security.privateca.v1.Ce" + + "rtificateExtensionConstraintsB\003\340A\001\022\030\n\013de" + + "scription\030\005 \001(\tB\003\340A\001\0224\n\013create_time\030\006 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022X\n\006labels\030\010 \003(\0132C.google.cloud." + + "security.privateca.v1.CertificateTemplat" + + "e.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n,privat" + + "eca.googleapis.com/CertificateTemplate\022S" + + "projects/{project}/locations/{location}/" + + "certificateTemplates/{certificate_templa" + + "te}\"\337\003\n\016X509Parameters\022D\n\tkey_usage\030\001 \001(" + + "\0132,.google.cloud.security.privateca.v1.K" + + "eyUsageB\003\340A\001\022U\n\nca_options\030\002 \001(\0132<.googl" + + "e.cloud.security.privateca.v1.X509Parame" + + "ters.CaOptionsB\003\340A\001\022E\n\npolicy_ids\030\003 \003(\0132" + + ",.google.cloud.security.privateca.v1.Obj" + + "ectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB\003\340A" + + "\001\022U\n\025additional_extensions\030\005 \003(\01321.googl" + + "e.cloud.security.privateca.v1.X509Extens" + + "ionB\003\340A\001\032s\n\tCaOptions\022\027\n\005is_ca\030\001 \001(\010B\003\340A" + + "\001H\000\210\001\001\022(\n\026max_issuer_path_length\030\002 \001(\005B\003" + + "\340A\001H\001\210\001\001B\010\n\006_is_caB\031\n\027_max_issuer_path_l" + + "ength\"\251\002\n\021SubordinateConfig\022V\n\025certifica" + + "te_authority\030\001 \001(\tB5\340A\002\372A/\n-privateca.go" + + "ogleapis.com/CertificateAuthorityH\000\022m\n\020p" + + "em_issuer_chain\030\002 \001(\0132L.google.cloud.sec" + + "urity.privateca.v1.SubordinateConfig.Sub" + + "ordinateConfigChainB\003\340A\002H\000\0327\n\026Subordinat" + + "eConfigChain\022\035\n\020pem_certificates\030\001 \003(\tB\003" + + "\340A\002B\024\n\022subordinate_config\"\235\001\n\tPublicKey\022" + + "\020\n\003key\030\001 \001(\014B\003\340A\002\022L\n\006format\030\002 \001(\01627.goog" + + "le.cloud.security.privateca.v1.PublicKey" + + ".KeyFormatB\003\340A\002\"0\n\tKeyFormat\022\032\n\026KEY_FORM" + + "AT_UNSPECIFIED\020\000\022\007\n\003PEM\020\001\"\264\003\n\021Certificat" + + "eConfig\022`\n\016subject_config\030\001 \001(\0132C.google" + + ".cloud.security.privateca.v1.Certificate" + + "Config.SubjectConfigB\003\340A\002\022L\n\013x509_config" + + "\030\002 \001(\01322.google.cloud.security.privateca" + + ".v1.X509ParametersB\003\340A\002\022F\n\npublic_key\030\003 " + + "\001(\0132-.google.cloud.security.privateca.v1" + + ".PublicKeyB\003\340A\001\032\246\001\n\rSubjectConfig\022A\n\007sub" + + "ject\030\001 \001(\0132+.google.cloud.security.priva" + + "teca.v1.SubjectB\003\340A\002\022R\n\020subject_alt_name" + + "\030\002 \001(\01323.google.cloud.security.privateca" + + ".v1.SubjectAltNamesB\003\340A\001\"\241\010\n\026Certificate" + + "Description\022j\n\023subject_description\030\001 \001(\013" + + "2M.google.cloud.security.privateca.v1.Ce" + + "rtificateDescription.SubjectDescription\022" + + "L\n\020x509_description\030\002 \001(\01322.google.cloud" + + ".security.privateca.v1.X509Parameters\022A\n" + + "\npublic_key\030\003 \001(\0132-.google.cloud.securit" + + "y.privateca.v1.PublicKey\022X\n\016subject_key_" + + "id\030\004 \001(\0132@.google.cloud.security.private" + + "ca.v1.CertificateDescription.KeyId\022Z\n\020au" + + "thority_key_id\030\005 \001(\0132@.google.cloud.secu" + + "rity.privateca.v1.CertificateDescription" + + ".KeyId\022\037\n\027crl_distribution_points\030\006 \003(\t\022" + + "$\n\034aia_issuing_certificate_urls\030\007 \003(\t\022k\n" + + "\020cert_fingerprint\030\010 \001(\0132Q.google.cloud.s" + + "ecurity.privateca.v1.CertificateDescript" + + "ion.CertificateFingerprint\032\322\002\n\022SubjectDe" + + "scription\022<\n\007subject\030\001 \001(\0132+.google.clou" + + "d.security.privateca.v1.Subject\022M\n\020subje" + + "ct_alt_name\030\002 \001(\01323.google.cloud.securit" + + "y.privateca.v1.SubjectAltNames\022\031\n\021hex_se" + + "rial_number\030\003 \001(\t\022+\n\010lifetime\030\004 \001(\0132\031.go" + + "ogle.protobuf.Duration\0223\n\017not_before_tim" + + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\0222\n\016n" + + "ot_after_time\030\006 \001(\0132\032.google.protobuf.Ti" + + "mestamp\032\034\n\005KeyId\022\023\n\006key_id\030\001 \001(\tB\003\340A\001\032-\n" + + "\026CertificateFingerprint\022\023\n\013sha256_hash\030\001" + + " \001(\t\"\'\n\010ObjectId\022\033\n\016object_id_path\030\001 \003(\005" + + "B\003\340A\002\"\200\001\n\rX509Extension\022D\n\tobject_id\030\001 \001" + + "(\0132,.google.cloud.security.privateca.v1." + + "ObjectIdB\003\340A\002\022\025\n\010critical\030\002 \001(\010B\003\340A\001\022\022\n\005" + + "value\030\003 \001(\014B\003\340A\002\"\242\005\n\010KeyUsage\022T\n\016base_ke" + + "y_usage\030\001 \001(\0132<.google.cloud.security.pr" + + "ivateca.v1.KeyUsage.KeyUsageOptions\022`\n\022e" + + "xtended_key_usage\030\002 \001(\0132D.google.cloud.s" + + "ecurity.privateca.v1.KeyUsage.ExtendedKe" + + "yUsageOptions\022Q\n\033unknown_extended_key_us" + + "ages\030\003 \003(\0132,.google.cloud.security.priva" + + "teca.v1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021" + + "digital_signature\030\001 \001(\010\022\032\n\022content_commi" + + "tment\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n" + + "\021data_encipherment\030\004 \001(\010\022\025\n\rkey_agreemen" + + "t\030\005 \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007" + + " \001(\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_" + + "only\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023" + + "\n\013server_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010" + + "\022\024\n\014code_signing\030\003 \001(\010\022\030\n\020email_protecti" + + "on\030\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_" + + "signing\030\006 \001(\010\"\270\001\n\007Subject\022\023\n\013common_name" + + "\030\001 \001(\t\022\024\n\014country_code\030\002 \001(\t\022\024\n\014organiza" + + "tion\030\003 \001(\t\022\033\n\023organizational_unit\030\004 \001(\t\022" + + "\020\n\010locality\030\005 \001(\t\022\020\n\010province\030\006 \001(\t\022\026\n\016s" + + "treet_address\030\007 \001(\t\022\023\n\013postal_code\030\010 \001(\t" + + "\"\251\001\n\017SubjectAltNames\022\021\n\tdns_names\030\001 \003(\t\022" + + "\014\n\004uris\030\002 \003(\t\022\027\n\017email_addresses\030\003 \003(\t\022\024" + + "\n\014ip_addresses\030\004 \003(\t\022F\n\013custom_sans\030\005 \003(" + + "\01321.google.cloud.security.privateca.v1.X" + + "509Extension\"\372\001\n\036CertificateIdentityCons" + + "traints\022.\n\016cel_expression\030\001 \001(\0132\021.google" + + ".type.ExprB\003\340A\001\022+\n\031allow_subject_passthr" + + "ough\030\002 \001(\010B\003\340A\002H\000\210\001\001\0225\n#allow_subject_al" + + "t_names_passthrough\030\003 \001(\010B\003\340A\002H\001\210\001\001B\034\n\032_" + + "allow_subject_passthroughB&\n$_allow_subj" + + "ect_alt_names_passthrough\"\236\003\n\037Certificat" + + "eExtensionConstraints\022|\n\020known_extension" + + "s\030\001 \003(\0162].google.cloud.security.privatec" + + "a.v1.CertificateExtensionConstraints.Kno" + + "wnCertificateExtensionB\003\340A\001\022P\n\025additiona" + + "l_extensions\030\002 \003(\0132,.google.cloud.securi" + + "ty.privateca.v1.ObjectIdB\003\340A\001\"\252\001\n\031KnownC" + + "ertificateExtension\022+\n\'KNOWN_CERTIFICATE" + + "_EXTENSION_UNSPECIFIED\020\000\022\022\n\016BASE_KEY_USA" + + "GE\020\001\022\026\n\022EXTENDED_KEY_USAGE\020\002\022\016\n\nCA_OPTIO" + + "NS\020\003\022\016\n\nPOLICY_IDS\020\004\022\024\n\020AIA_OCSP_SERVERS" + + "\020\005*\207\002\n\020RevocationReason\022!\n\035REVOCATION_RE" + + "ASON_UNSPECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$" + + "\n CERTIFICATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023" + + "AFFILIATION_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n" + + "\026CESSATION_OF_OPERATION\020\005\022\024\n\020CERTIFICATE" + + "_HOLD\020\006\022\027\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTR" + + "IBUTE_AUTHORITY_COMPROMISE\020\010*]\n\022SubjectR" + + "equestMode\022$\n SUBJECT_REQUEST_MODE_UNSPE" + + "CIFIED\020\000\022\013\n\007DEFAULT\020\001\022\024\n\020REFLECTED_SPIFF" + + "E\020\002B\206\002\n&com.google.cloud.security.privat" + + "eca.v1B\027PrivateCaResourcesProtoP\001ZKgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "ecurity/privateca/v1;privateca\370\001\001\252\002\"Goog" + + "le.Cloud.Security.PrivateCA.V1\312\002\"Google\\" + + "Cloud\\Security\\PrivateCA\\V1\352\002&Google::Cl" + + "oud::Security::PrivateCA::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.type.ExprProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor, + new java.lang.String[] { + "Name", + "Type", + "Config", + "Lifetime", + "KeySpec", + "SubordinateConfig", + "Tier", + "State", + "PemCaCertificates", + "CaCertificateDescriptions", + "GcsBucket", + "AccessUrls", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "Labels", + }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_AccessUrls_descriptor, + new java.lang.String[] { + "CaCertificateAccessUrl", "CrlAccessUrls", + }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_KeyVersionSpec_descriptor, + new java.lang.String[] { + "CloudKmsKeyVersion", "Algorithm", "KeyVersion", + }); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateAuthority_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor, + new java.lang.String[] { + "Name", "Tier", "IssuancePolicy", "PublishingOptions", "Labels", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_PublishingOptions_descriptor, + new java.lang.String[] { + "PublishCaCert", "PublishCrl", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor, + new java.lang.String[] { + "AllowedKeyTypes", + "MaximumLifetime", + "AllowedIssuanceModes", + "BaselineValues", + "IdentityConstraints", + "PassthroughExtensions", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor, + new java.lang.String[] { + "Rsa", "EllipticCurve", "KeyType", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_RsaKeyType_descriptor, + new java.lang.String[] { + "MinModulusSize", "MaxModulusSize", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_AllowedKeyType_EcKeyType_descriptor, + new java.lang.String[] { + "SignatureAlgorithm", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_IssuancePolicy_IssuanceModes_descriptor, + new java.lang.String[] { + "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", + }); + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CaPool_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CaPool_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor, + new java.lang.String[] { + "Name", + "SequenceNumber", + "RevokedCertificates", + "PemCrl", + "AccessUrl", + "State", + "CreateTime", + "UpdateTime", + "RevisionId", + "Labels", + }); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_RevokedCertificate_descriptor, + new java.lang.String[] { + "Certificate", "HexSerialNumber", "RevocationReason", + }); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateRevocationList_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1_Certificate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor, + new java.lang.String[] { + "Name", + "PemCsr", + "Config", + "IssuerCertificateAuthority", + "Lifetime", + "CertificateTemplate", + "SubjectMode", + "RevocationDetails", + "PemCertificate", + "CertificateDescription", + "PemCertificateChain", + "CreateTime", + "UpdateTime", + "Labels", + "CertificateConfig", + }); + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor = + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Certificate_RevocationDetails_descriptor, + new java.lang.String[] { + "RevocationState", "RevocationTime", + }); + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_Certificate_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Certificate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor, + new java.lang.String[] { + "Name", + "PredefinedValues", + "IdentityConstraints", + "PassthroughExtensions", + "Description", + "CreateTime", + "UpdateTime", + "Labels", + }); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateTemplate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor, + new java.lang.String[] { + "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", + }); + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor, + new java.lang.String[] { + "IsCa", "MaxIssuerPathLength", "IsCa", "MaxIssuerPathLength", + }); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor, + new java.lang.String[] { + "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", + }); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor = + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor, + new java.lang.String[] { + "PemCertificates", + }); + internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor, + new java.lang.String[] { + "Key", "Format", + }); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor, + new java.lang.String[] { + "SubjectConfig", "X509Config", "PublicKey", + }); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor, + new java.lang.String[] { + "Subject", "SubjectAltName", + }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor, + new java.lang.String[] { + "SubjectDescription", + "X509Description", + "PublicKey", + "SubjectKeyId", + "AuthorityKeyId", + "CrlDistributionPoints", + "AiaIssuingCertificateUrls", + "CertFingerprint", + }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_SubjectDescription_descriptor, + new java.lang.String[] { + "Subject", + "SubjectAltName", + "HexSerialNumber", + "Lifetime", + "NotBeforeTime", + "NotAfterTime", + }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_KeyId_descriptor, + new java.lang.String[] { + "KeyId", + }); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateDescription_CertificateFingerprint_descriptor, + new java.lang.String[] { + "Sha256Hash", + }); + internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1_ObjectId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_ObjectId_descriptor, + new java.lang.String[] { + "ObjectIdPath", + }); + internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor, + new java.lang.String[] { + "ObjectId", "Critical", "Value", + }); + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1_KeyUsage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor, + new java.lang.String[] { + "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", + }); + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_KeyUsage_KeyUsageOptions_descriptor, + new java.lang.String[] { + "DigitalSignature", + "ContentCommitment", + "KeyEncipherment", + "DataEncipherment", + "KeyAgreement", + "CertSign", + "CrlSign", + "EncipherOnly", + "DecipherOnly", + }); + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1_KeyUsage_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_KeyUsage_ExtendedKeyUsageOptions_descriptor, + new java.lang.String[] { + "ServerAuth", + "ClientAuth", + "CodeSigning", + "EmailProtection", + "TimeStamping", + "OcspSigning", + }); + internal_static_google_cloud_security_privateca_v1_Subject_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_Subject_descriptor, + new java.lang.String[] { + "CommonName", + "CountryCode", + "Organization", + "OrganizationalUnit", + "Locality", + "Province", + "StreetAddress", + "PostalCode", + }); + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor, + new java.lang.String[] { + "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", + }); + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateIdentityConstraints_descriptor, + new java.lang.String[] { + "CelExpression", + "AllowSubjectPassthrough", + "AllowSubjectAltNamesPassthrough", + "AllowSubjectPassthrough", + "AllowSubjectAltNamesPassthrough", + }); + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateExtensionConstraints_descriptor, + new java.lang.String[] { + "KnownExtensions", "AdditionalExtensions", + }); + 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.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java index 54bc6980..b859e49a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKey.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [PublicKey][google.cloud.security.privateca.v1.PublicKey] describes a public key.
  * 
* * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.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() { key_ = com.google.protobuf.ByteString.EMPTY; format_ = 0; @@ -26,16 +44,15 @@ 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; } + private PublicKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,24 +71,25 @@ private PublicKey( case 0: done = true; break; - case 10: { - - key_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: + { + key_ = input.readBytes(); + break; + } + case 16: + { + int rawValue = input.readEnum(); - format_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + format_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,27 +97,31 @@ private PublicKey( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.PublicKey.class, com.google.cloud.security.privateca.v1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1.PublicKey.class, + com.google.cloud.security.privateca.v1.PublicKey.Builder.class); } /** + * + * *
    * Types of public keys formats that are supported. Currently, only `PEM`
    * format is supported.
@@ -107,9 +129,10 @@ private PublicKey(
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1.PublicKey.KeyFormat}
    */
-  public enum KeyFormat
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum KeyFormat implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default unspecified value.
      * 
@@ -118,6 +141,8 @@ public enum KeyFormat */ KEY_FORMAT_UNSPECIFIED(0), /** + * + * *
      * The key is PEM-encoded as defined in [RFC
      * 7468](https://tools.ietf.org/html/rfc7468). It can be any of the
@@ -141,6 +166,8 @@ public enum KeyFormat
     ;
 
     /**
+     *
+     *
      * 
      * Default unspecified value.
      * 
@@ -149,6 +176,8 @@ public enum KeyFormat */ public static final int KEY_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The key is PEM-encoded as defined in [RFC
      * 7468](https://tools.ietf.org/html/rfc7468). It can be any of the
@@ -169,7 +198,6 @@ public enum KeyFormat
      */
     public static final int PEM_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -194,48 +222,47 @@ public static KeyFormat valueOf(int value) {
      */
     public static KeyFormat forNumber(int value) {
       switch (value) {
-        case 0: return KEY_FORMAT_UNSPECIFIED;
-        case 1: return PEM;
-        default: return null;
+        case 0:
+          return KEY_FORMAT_UNSPECIFIED;
+        case 1:
+          return PEM;
+        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<
-        KeyFormat> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public KeyFormat findValueByNumber(int number) {
-              return KeyFormat.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public KeyFormat findValueByNumber(int number) {
+            return KeyFormat.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.security.privateca.v1.PublicKey.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final KeyFormat[] VALUES = values();
 
-    public static KeyFormat valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static KeyFormat 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;
@@ -255,12 +282,15 @@ private KeyFormat(int value) {
   public static final int KEY_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString key_;
   /**
+   *
+   *
    * 
    * Required. A public key. The padding and encoding
    * must match with the `KeyFormat` value specified for the `format` field.
    * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The key. */ @java.lang.Override @@ -271,31 +301,47 @@ public com.google.protobuf.ByteString getKey() { public static final int FORMAT_FIELD_NUMBER = 2; private int format_; /** + * + * *
    * Required. The format of the public key.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
    * Required. The format of the public key.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The format. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); - return result == null ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = + com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); + return result == null + ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,12 +353,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!key_.isEmpty()) { output.writeBytes(1, key_); } - if (format_ != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED.getNumber()) { + if (format_ + != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(2, format_); } unknownFields.writeTo(output); @@ -325,12 +372,12 @@ public int getSerializedSize() { size = 0; if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, key_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); } - if (format_ != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, format_); + if (format_ + != com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.KEY_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -340,15 +387,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.security.privateca.v1.PublicKey)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.PublicKey other = (com.google.cloud.security.privateca.v1.PublicKey) obj; + com.google.cloud.security.privateca.v1.PublicKey other = + (com.google.cloud.security.privateca.v1.PublicKey) obj; - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; if (format_ != other.format_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -370,118 +417,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.PublicKey parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.PublicKey parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.PublicKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.PublicKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.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.security.privateca.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.security.privateca.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.security.privateca.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; } /** + * + * *
    * A [PublicKey][google.cloud.security.privateca.v1.PublicKey] describes a public key.
    * 
* * Protobuf type {@code google.cloud.security.privateca.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.security.privateca.v1.PublicKey) com.google.cloud.security.privateca.v1.PublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.PublicKey.class, com.google.cloud.security.privateca.v1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1.PublicKey.class, + com.google.cloud.security.privateca.v1.PublicKey.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.PublicKey.newBuilder() @@ -489,16 +545,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_PublicKey_descriptor; } @java.lang.Override @@ -531,7 +586,8 @@ public com.google.cloud.security.privateca.v1.PublicKey build() { @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey buildPartial() { - com.google.cloud.security.privateca.v1.PublicKey result = new com.google.cloud.security.privateca.v1.PublicKey(this); + com.google.cloud.security.privateca.v1.PublicKey result = + new com.google.cloud.security.privateca.v1.PublicKey(this); result.key_ = key_; result.format_ = format_; onBuilt(); @@ -542,38 +598,39 @@ public com.google.cloud.security.privateca.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.security.privateca.v1.PublicKey) { - return mergeFrom((com.google.cloud.security.privateca.v1.PublicKey)other); + return mergeFrom((com.google.cloud.security.privateca.v1.PublicKey) other); } else { super.mergeFrom(other); return this; @@ -581,7 +638,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1.PublicKey other) { - if (other == com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance()) return this; + if (other == com.google.cloud.security.privateca.v1.PublicKey.getDefaultInstance()) + return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } @@ -619,12 +677,15 @@ public Builder mergeFrom( private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. A public key. The padding and encoding
      * must match with the `KeyFormat` value specified for the `format` field.
      * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The key. */ @java.lang.Override @@ -632,35 +693,41 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** + * + * *
      * Required. A public key. The padding and encoding
      * must match with the `KeyFormat` value specified for the `format` field.
      * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Required. A public key. The padding and encoding
      * must match with the `KeyFormat` value specified for the `format` field.
      * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; @@ -668,51 +735,75 @@ public Builder clearKey() { private int format_ = 0; /** + * + * *
      * Required. The format of the public key.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
      * Required. The format of the public key.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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; } /** + * + * *
      * Required. The format of the public key.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The format. */ @java.lang.Override public com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); - return result == null ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.PublicKey.KeyFormat result = + com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.valueOf(format_); + return result == null + ? com.google.cloud.security.privateca.v1.PublicKey.KeyFormat.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The format of the public key.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The format to set. * @return This builder for chaining. */ @@ -720,28 +811,33 @@ public Builder setFormat(com.google.cloud.security.privateca.v1.PublicKey.KeyFor if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The format of the public key.
      * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 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); } @@ -751,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.PublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.PublicKey) private static final com.google.cloud.security.privateca.v1.PublicKey DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.PublicKey(); } @@ -765,16 +861,16 @@ public static com.google.cloud.security.privateca.v1.PublicKey getDefaultInstanc 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 { - return new PublicKey(input, extensionRegistry); - } - }; + 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 { + return new PublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,6 +885,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.PublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java index 3b275cbe..d15b35b3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PublicKeyOrBuilder.java @@ -1,38 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface PublicKeyOrBuilder extends +public interface PublicKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.PublicKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A public key. The padding and encoding
    * must match with the `KeyFormat` value specified for the `format` field.
    * 
* * bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The key. */ com.google.protobuf.ByteString getKey(); /** + * + * *
    * Required. The format of the public key.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
    * Required. The format of the public key.
    * 
* - * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The format. */ com.google.cloud.security.privateca.v1.PublicKey.KeyFormat getFormat(); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java index b8a1e309..58e49550 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevocationReason.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * A [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1.Certificate] has been revoked,
  * and the reason for revocation. These correspond to standard revocation
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.cloud.security.privateca.v1.RevocationReason}
  */
-public enum RevocationReason
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -26,6 +44,8 @@ public enum RevocationReason
    */
   REVOCATION_REASON_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1.Certificate] may have leaked.
    * 
@@ -34,6 +54,8 @@ public enum RevocationReason */ KEY_COMPROMISE(1), /** + * + * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -43,6 +65,8 @@ public enum RevocationReason
    */
   CERTIFICATE_AUTHORITY_COMPROMISE(2),
   /**
+   *
+   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1.Certificate] have changed.
    * 
@@ -51,6 +75,8 @@ public enum RevocationReason */ AFFILIATION_CHANGED(3), /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] has been superseded.
    * 
@@ -59,6 +85,8 @@ public enum RevocationReason */ SUPERSEDED(4), /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -68,6 +96,8 @@ public enum RevocationReason
    */
   CESSATION_OF_OPERATION(5),
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -77,6 +107,8 @@ public enum RevocationReason
    */
   CERTIFICATE_HOLD(6),
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -86,6 +118,8 @@ public enum RevocationReason
    */
   PRIVILEGE_WITHDRAWN(7),
   /**
+   *
+   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * may have been compromised.
@@ -98,6 +132,8 @@ public enum RevocationReason
   ;
 
   /**
+   *
+   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -107,6 +143,8 @@ public enum RevocationReason
    */
   public static final int REVOCATION_REASON_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1.Certificate] may have leaked.
    * 
@@ -115,6 +153,8 @@ public enum RevocationReason */ public static final int KEY_COMPROMISE_VALUE = 1; /** + * + * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -124,6 +164,8 @@ public enum RevocationReason
    */
   public static final int CERTIFICATE_AUTHORITY_COMPROMISE_VALUE = 2;
   /**
+   *
+   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1.Certificate] have changed.
    * 
@@ -132,6 +174,8 @@ public enum RevocationReason */ public static final int AFFILIATION_CHANGED_VALUE = 3; /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] has been superseded.
    * 
@@ -140,6 +184,8 @@ public enum RevocationReason */ public static final int SUPERSEDED_VALUE = 4; /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -149,6 +195,8 @@ public enum RevocationReason
    */
   public static final int CESSATION_OF_OPERATION_VALUE = 5;
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -158,6 +206,8 @@ public enum RevocationReason
    */
   public static final int CERTIFICATE_HOLD_VALUE = 6;
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -167,6 +217,8 @@ public enum RevocationReason
    */
   public static final int PRIVILEGE_WITHDRAWN_VALUE = 7;
   /**
+   *
+   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1.Certificate]
    * may have been compromised.
@@ -176,7 +228,6 @@ public enum RevocationReason
    */
   public static final int ATTRIBUTE_AUTHORITY_COMPROMISE_VALUE = 8;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -201,55 +252,63 @@ public static RevocationReason valueOf(int value) {
    */
   public static RevocationReason forNumber(int value) {
     switch (value) {
-      case 0: return REVOCATION_REASON_UNSPECIFIED;
-      case 1: return KEY_COMPROMISE;
-      case 2: return CERTIFICATE_AUTHORITY_COMPROMISE;
-      case 3: return AFFILIATION_CHANGED;
-      case 4: return SUPERSEDED;
-      case 5: return CESSATION_OF_OPERATION;
-      case 6: return CERTIFICATE_HOLD;
-      case 7: return PRIVILEGE_WITHDRAWN;
-      case 8: return ATTRIBUTE_AUTHORITY_COMPROMISE;
-      default: return null;
+      case 0:
+        return REVOCATION_REASON_UNSPECIFIED;
+      case 1:
+        return KEY_COMPROMISE;
+      case 2:
+        return CERTIFICATE_AUTHORITY_COMPROMISE;
+      case 3:
+        return AFFILIATION_CHANGED;
+      case 4:
+        return SUPERSEDED;
+      case 5:
+        return CESSATION_OF_OPERATION;
+      case 6:
+        return CERTIFICATE_HOLD;
+      case 7:
+        return PRIVILEGE_WITHDRAWN;
+      case 8:
+        return ATTRIBUTE_AUTHORITY_COMPROMISE;
+      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<
-      RevocationReason> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RevocationReason findValueByNumber(int number) {
-            return RevocationReason.forNumber(number);
-          }
-        };
 
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public RevocationReason findValueByNumber(int number) {
+          return RevocationReason.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor().getEnumTypes().get(0);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor()
+        .getEnumTypes()
+        .get(0);
   }
 
   private static final RevocationReason[] VALUES = values();
 
-  public static RevocationReason valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static RevocationReason 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;
@@ -265,4 +324,3 @@ private RevocationReason(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.RevocationReason)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
index 6e8f1cb8..3edecf60 100644
--- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
+++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1/service.proto
 
 package com.google.cloud.security.privateca.v1;
 
 /**
+ *
+ *
  * 
  * Request message for
  * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.RevokeCertificateRequest}
  */
-public final class RevokeCertificateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RevokeCertificateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.RevokeCertificateRequest)
     RevokeCertificateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RevokeCertificateRequest.newBuilder() to construct.
   private RevokeCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RevokeCertificateRequest() {
     name_ = "";
     reason_ = 0;
@@ -28,16 +46,15 @@ private RevokeCertificateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RevokeCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RevokeCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,31 +73,34 @@ private RevokeCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            reason_ = rawValue;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              reason_ = rawValue;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,36 +108,43 @@ private RevokeCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class,
+            com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 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 @@ -126,31 +153,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 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 { @@ -161,33 +190,50 @@ public java.lang.String getName() { public static final int REASON_FIELD_NUMBER = 2; private int reason_; /** + * + * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reason. */ - @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getReason() { + @java.lang.Override + public com.google.cloud.security.privateca.v1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); - return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.RevocationReason result = + com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); + return result == null + ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED + : result; } public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -203,6 +249,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -211,14 +258,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -234,16 +282,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,6 +299,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,12 +311,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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 (reason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + if (reason_ + != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { @@ -286,9 +335,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (reason_ != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reason_); + if (reason_ + != com.google.cloud.security.privateca.v1.RevocationReason.REVOCATION_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -301,18 +351,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.security.privateca.v1.RevokeCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.RevokeCertificateRequest other = (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) obj; + com.google.cloud.security.privateca.v1.RevokeCertificateRequest other = + (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (reason_ != other.reason_) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,96 +385,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest 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.security.privateca.v1.RevokeCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.RevokeCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.RevokeCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate].
@@ -433,21 +490,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.RevokeCertificateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.RevokeCertificateRequest)
       com.google.cloud.security.privateca.v1.RevokeCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.RevokeCertificateRequest.class,
+              com.google.cloud.security.privateca.v1.RevokeCertificateRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.RevokeCertificateRequest.newBuilder()
@@ -455,16 +514,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -478,13 +536,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.RevokeCertificateRequest getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1.RevokeCertificateRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance();
     }
 
@@ -499,7 +558,8 @@ public com.google.cloud.security.privateca.v1.RevokeCertificateRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.RevokeCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.RevokeCertificateRequest result = new com.google.cloud.security.privateca.v1.RevokeCertificateRequest(this);
+      com.google.cloud.security.privateca.v1.RevokeCertificateRequest result =
+          new com.google.cloud.security.privateca.v1.RevokeCertificateRequest(this);
       result.name_ = name_;
       result.reason_ = reason_;
       result.requestId_ = requestId_;
@@ -511,46 +571,50 @@ public com.google.cloud.security.privateca.v1.RevokeCertificateRequest buildPart
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.RevokeCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.RevokeCertificateRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.RevokeCertificateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.RevokeCertificateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.RevokeCertificateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.RevokeCertificateRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -581,7 +645,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.RevokeCertificateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.RevokeCertificateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -593,20 +659,24 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 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; @@ -615,22 +685,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string name = 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 { @@ -638,60 +711,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * 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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * string 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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
      * format
      * `projects/*/locations/*/caPools/*/certificates/*`.
      * 
* - * 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; @@ -699,51 +785,75 @@ public Builder setNameBytes( private int reason_ = 0; /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { - + reason_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reason. */ @java.lang.Override public com.google.cloud.security.privateca.v1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1.RevocationReason result = com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); - return result == null ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1.RevocationReason result = + com.google.cloud.security.privateca.v1.RevocationReason.valueOf(reason_); + return result == null + ? com.google.cloud.security.privateca.v1.RevocationReason.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The reason to set. * @return This builder for chaining. */ @@ -751,21 +861,26 @@ public Builder setReason(com.google.cloud.security.privateca.v1.RevocationReason if (value == null) { throw new NullPointerException(); } - + reason_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = 0; onChanged(); return this; @@ -773,6 +888,8 @@ public Builder clearReason() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -788,13 +905,13 @@ public Builder clearReason() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -803,6 +920,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -818,15 +937,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -834,6 +952,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -849,20 +969,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -878,15 +1000,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -902,23 +1027,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -928,30 +1053,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.RevokeCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.RevokeCertificateRequest) - private static final com.google.cloud.security.privateca.v1.RevokeCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.RevokeCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.RevokeCertificateRequest(); } - public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.RevokeCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokeCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokeCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokeCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,9 +1090,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.RevokeCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.RevokeCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java index 718edeb8..cfaa1e53 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/RevokeCertificateRequestOrBuilder.java @@ -1,56 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface RevokeCertificateRequestOrBuilder extends +public interface RevokeCertificateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.RevokeCertificateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 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 for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the
    * format
    * `projects/*/locations/*/caPools/*/certificates/*`.
    * 
* - * string name = 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 [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** + * + * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reason. */ com.google.cloud.security.privateca.v1.RevocationReason getReason(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -66,10 +103,13 @@ public interface RevokeCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -85,8 +125,8 @@ public interface RevokeCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java index 4c6cae37..ab739fa3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/Subject.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a distinguished name that, in turn,
  * describes the subject of the certificate.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.Subject}
  */
-public final class Subject extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Subject extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.Subject)
     SubjectOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Subject.newBuilder() to construct.
   private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Subject() {
     commonName_ = "";
     countryCode_ = "";
@@ -33,16 +51,15 @@ private Subject() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Subject();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Subject(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,61 +78,69 @@ private Subject(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            commonName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              commonName_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            countryCode_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              countryCode_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            organization_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              organization_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            organizationalUnit_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              organizationalUnit_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            locality_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              locality_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            province_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
+              province_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            streetAddress_ = s;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
+              streetAddress_ = s;
+              break;
+            }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            postalCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              postalCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,34 +148,39 @@ private Subject(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.Subject.class, com.google.cloud.security.privateca.v1.Subject.Builder.class);
+            com.google.cloud.security.privateca.v1.Subject.class,
+            com.google.cloud.security.privateca.v1.Subject.Builder.class);
   }
 
   public static final int COMMON_NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object commonName_;
   /**
+   *
+   *
    * 
    * The "common name" of the subject.
    * 
* * string common_name = 1; + * * @return The commonName. */ @java.lang.Override @@ -159,29 +189,29 @@ public java.lang.String getCommonName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; } } /** + * + * *
    * The "common name" of the subject.
    * 
* * string common_name = 1; + * * @return The bytes for commonName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommonNameBytes() { + public com.google.protobuf.ByteString getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); commonName_ = b; return b; } else { @@ -192,11 +222,14 @@ public java.lang.String getCommonName() { public static final int COUNTRY_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object countryCode_; /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 2; + * * @return The countryCode. */ @java.lang.Override @@ -205,29 +238,29 @@ public java.lang.String getCountryCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } } /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 2; + * * @return The bytes for countryCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { + public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); countryCode_ = b; return b; } else { @@ -238,11 +271,14 @@ public java.lang.String getCountryCode() { public static final int ORGANIZATION_FIELD_NUMBER = 3; private volatile java.lang.Object organization_; /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 3; + * * @return The organization. */ @java.lang.Override @@ -251,29 +287,29 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 3; + * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -284,11 +320,14 @@ public java.lang.String getOrganization() { public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER = 4; private volatile java.lang.Object organizationalUnit_; /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; + * * @return The organizationalUnit. */ @java.lang.Override @@ -297,29 +336,29 @@ public java.lang.String getOrganizationalUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; } } /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; + * * @return The bytes for organizationalUnit. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -330,11 +369,14 @@ public java.lang.String getOrganizationalUnit() { public static final int LOCALITY_FIELD_NUMBER = 5; private volatile java.lang.Object locality_; /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 5; + * * @return The locality. */ @java.lang.Override @@ -343,29 +385,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 5; + * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -376,11 +418,14 @@ public java.lang.String getLocality() { public static final int PROVINCE_FIELD_NUMBER = 6; private volatile java.lang.Object province_; /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; + * * @return The province. */ @java.lang.Override @@ -389,29 +434,29 @@ public java.lang.String getProvince() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } } /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; + * * @return The bytes for province. */ @java.lang.Override - public com.google.protobuf.ByteString - getProvinceBytes() { + public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); province_ = b; return b; } else { @@ -422,11 +467,14 @@ public java.lang.String getProvince() { public static final int STREET_ADDRESS_FIELD_NUMBER = 7; private volatile java.lang.Object streetAddress_; /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 7; + * * @return The streetAddress. */ @java.lang.Override @@ -435,29 +483,29 @@ public java.lang.String getStreetAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; } } /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 7; + * * @return The bytes for streetAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getStreetAddressBytes() { + public com.google.protobuf.ByteString getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -468,11 +516,14 @@ public java.lang.String getStreetAddress() { public static final int POSTAL_CODE_FIELD_NUMBER = 8; private volatile java.lang.Object postalCode_; /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; + * * @return The postalCode. */ @java.lang.Override @@ -481,29 +532,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; + * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -512,6 +563,7 @@ public java.lang.String getPostalCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -523,8 +575,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commonName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, commonName_); } @@ -590,29 +641,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.security.privateca.v1.Subject)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.Subject other = (com.google.cloud.security.privateca.v1.Subject) obj; - - if (!getCommonName() - .equals(other.getCommonName())) return false; - if (!getCountryCode() - .equals(other.getCountryCode())) return false; - if (!getOrganization() - .equals(other.getOrganization())) return false; - if (!getOrganizationalUnit() - .equals(other.getOrganizationalUnit())) return false; - if (!getLocality() - .equals(other.getLocality())) return false; - if (!getProvince() - .equals(other.getProvince())) return false; - if (!getStreetAddress() - .equals(other.getStreetAddress())) return false; - if (!getPostalCode() - .equals(other.getPostalCode())) return false; + com.google.cloud.security.privateca.v1.Subject other = + (com.google.cloud.security.privateca.v1.Subject) obj; + + if (!getCommonName().equals(other.getCommonName())) return false; + if (!getCountryCode().equals(other.getCountryCode())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; + if (!getOrganizationalUnit().equals(other.getOrganizationalUnit())) return false; + if (!getLocality().equals(other.getLocality())) return false; + if (!getProvince().equals(other.getProvince())) return false; + if (!getStreetAddress().equals(other.getStreetAddress())) return false; + if (!getPostalCode().equals(other.getPostalCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -645,97 +689,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.Subject parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.security.privateca.v1.Subject parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom(java.io.InputStream input) 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.security.privateca.v1.Subject parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.Subject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.Subject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.Subject parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.Subject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1.Subject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a distinguished name that, in turn,
    * describes the subject of the certificate.
@@ -743,21 +794,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.Subject}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.Subject)
       com.google.cloud.security.privateca.v1.SubjectOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_Subject_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.Subject.class, com.google.cloud.security.privateca.v1.Subject.Builder.class);
+              com.google.cloud.security.privateca.v1.Subject.class,
+              com.google.cloud.security.privateca.v1.Subject.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.Subject.newBuilder()
@@ -765,16 +818,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -798,9 +850,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_Subject_descriptor;
     }
 
     @java.lang.Override
@@ -819,7 +871,8 @@ public com.google.cloud.security.privateca.v1.Subject build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.Subject buildPartial() {
-      com.google.cloud.security.privateca.v1.Subject result = new com.google.cloud.security.privateca.v1.Subject(this);
+      com.google.cloud.security.privateca.v1.Subject result =
+          new com.google.cloud.security.privateca.v1.Subject(this);
       result.commonName_ = commonName_;
       result.countryCode_ = countryCode_;
       result.organization_ = organization_;
@@ -836,38 +889,39 @@ public com.google.cloud.security.privateca.v1.Subject buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.Subject) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.Subject)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.Subject) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -939,18 +993,20 @@ public Builder mergeFrom(
 
     private java.lang.Object commonName_ = "";
     /**
+     *
+     *
      * 
      * The "common name" of the subject.
      * 
* * string common_name = 1; + * * @return The commonName. */ public java.lang.String getCommonName() { java.lang.Object ref = commonName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; @@ -959,20 +1015,21 @@ public java.lang.String getCommonName() { } } /** + * + * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; + * * @return The bytes for commonName. */ - public com.google.protobuf.ByteString - getCommonNameBytes() { + public com.google.protobuf.ByteString getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); commonName_ = b; return b; } else { @@ -980,54 +1037,61 @@ public java.lang.String getCommonName() { } } /** + * + * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; + * * @param value The commonName to set. * @return This builder for chaining. */ - public Builder setCommonName( - java.lang.String value) { + public Builder setCommonName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + commonName_ = value; onChanged(); return this; } /** + * + * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; + * * @return This builder for chaining. */ public Builder clearCommonName() { - + commonName_ = getDefaultInstance().getCommonName(); onChanged(); return this; } /** + * + * *
      * The "common name" of the subject.
      * 
* * string common_name = 1; + * * @param value The bytes for commonName to set. * @return This builder for chaining. */ - public Builder setCommonNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commonName_ = value; onChanged(); return this; @@ -1035,18 +1099,20 @@ public Builder setCommonNameBytes( private java.lang.Object countryCode_ = ""; /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 2; + * * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; @@ -1055,20 +1121,21 @@ public java.lang.String getCountryCode() { } } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 2; + * * @return The bytes for countryCode. */ - public com.google.protobuf.ByteString - getCountryCodeBytes() { + public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); countryCode_ = b; return b; } else { @@ -1076,54 +1143,61 @@ public java.lang.String getCountryCode() { } } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 2; + * * @param value The countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCode( - java.lang.String value) { + public Builder setCountryCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + countryCode_ = value; onChanged(); return this; } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 2; + * * @return This builder for chaining. */ public Builder clearCountryCode() { - + countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 2; + * * @param value The bytes for countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + countryCode_ = value; onChanged(); return this; @@ -1131,18 +1205,20 @@ public Builder setCountryCodeBytes( private java.lang.Object organization_ = ""; /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 3; + * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -1151,20 +1227,21 @@ public java.lang.String getOrganization() { } } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 3; + * * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -1172,54 +1249,61 @@ public java.lang.String getOrganization() { } } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 3; + * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization( - java.lang.String value) { + public Builder setOrganization(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 3; + * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 3; + * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -1227,18 +1311,20 @@ public Builder setOrganizationBytes( private java.lang.Object organizationalUnit_ = ""; /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; + * * @return The organizationalUnit. */ public java.lang.String getOrganizationalUnit() { java.lang.Object ref = organizationalUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; @@ -1247,20 +1333,21 @@ public java.lang.String getOrganizationalUnit() { } } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; + * * @return The bytes for organizationalUnit. */ - public com.google.protobuf.ByteString - getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -1268,54 +1355,61 @@ public java.lang.String getOrganizationalUnit() { } } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; + * * @param value The organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnit( - java.lang.String value) { + public Builder setOrganizationalUnit(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organizationalUnit_ = value; onChanged(); return this; } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; + * * @return This builder for chaining. */ public Builder clearOrganizationalUnit() { - + organizationalUnit_ = getDefaultInstance().getOrganizationalUnit(); onChanged(); return this; } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 4; + * * @param value The bytes for organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnitBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organizationalUnit_ = value; onChanged(); return this; @@ -1323,18 +1417,20 @@ public Builder setOrganizationalUnitBytes( private java.lang.Object locality_ = ""; /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 5; + * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1343,20 +1439,21 @@ public java.lang.String getLocality() { } } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 5; + * * @return The bytes for locality. */ - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -1364,54 +1461,61 @@ public java.lang.String getLocality() { } } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 5; + * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality( - java.lang.String value) { + public Builder setLocality(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locality_ = value; onChanged(); return this; } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 5; + * * @return This builder for chaining. */ public Builder clearLocality() { - + locality_ = getDefaultInstance().getLocality(); onChanged(); return this; } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 5; + * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes( - com.google.protobuf.ByteString value) { + public Builder setLocalityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locality_ = value; onChanged(); return this; @@ -1419,18 +1523,20 @@ public Builder setLocalityBytes( private java.lang.Object province_ = ""; /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; + * * @return The province. */ public java.lang.String getProvince() { java.lang.Object ref = province_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; @@ -1439,20 +1545,21 @@ public java.lang.String getProvince() { } } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; + * * @return The bytes for province. */ - public com.google.protobuf.ByteString - getProvinceBytes() { + public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); province_ = b; return b; } else { @@ -1460,54 +1567,61 @@ public java.lang.String getProvince() { } } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; + * * @param value The province to set. * @return This builder for chaining. */ - public Builder setProvince( - java.lang.String value) { + public Builder setProvince(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + province_ = value; onChanged(); return this; } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; + * * @return This builder for chaining. */ public Builder clearProvince() { - + province_ = getDefaultInstance().getProvince(); onChanged(); return this; } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 6; + * * @param value The bytes for province to set. * @return This builder for chaining. */ - public Builder setProvinceBytes( - com.google.protobuf.ByteString value) { + public Builder setProvinceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + province_ = value; onChanged(); return this; @@ -1515,18 +1629,20 @@ public Builder setProvinceBytes( private java.lang.Object streetAddress_ = ""; /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 7; + * * @return The streetAddress. */ public java.lang.String getStreetAddress() { java.lang.Object ref = streetAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; @@ -1535,20 +1651,21 @@ public java.lang.String getStreetAddress() { } } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 7; + * * @return The bytes for streetAddress. */ - public com.google.protobuf.ByteString - getStreetAddressBytes() { + public com.google.protobuf.ByteString getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -1556,54 +1673,61 @@ public java.lang.String getStreetAddress() { } } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 7; + * * @param value The streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddress( - java.lang.String value) { + public Builder setStreetAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + streetAddress_ = value; onChanged(); return this; } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 7; + * * @return This builder for chaining. */ public Builder clearStreetAddress() { - + streetAddress_ = getDefaultInstance().getStreetAddress(); onChanged(); return this; } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 7; + * * @param value The bytes for streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streetAddress_ = value; onChanged(); return this; @@ -1611,18 +1735,20 @@ public Builder setStreetAddressBytes( private java.lang.Object postalCode_ = ""; /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; + * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1631,20 +1757,21 @@ public java.lang.String getPostalCode() { } } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; + * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1652,61 +1779,68 @@ public java.lang.String getPostalCode() { } } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; + * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode( - java.lang.String value) { + public Builder setPostalCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postalCode_ = value; onChanged(); return this; } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; + * * @return This builder for chaining. */ public Builder clearPostalCode() { - + postalCode_ = getDefaultInstance().getPostalCode(); onChanged(); return this; } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 8; + * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postalCode_ = 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); } @@ -1716,12 +1850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.Subject) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.Subject) private static final com.google.cloud.security.privateca.v1.Subject DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.Subject(); } @@ -1730,16 +1864,16 @@ public static com.google.cloud.security.privateca.v1.Subject getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subject(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subject(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1754,6 +1888,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.Subject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java index bbe45f8b..40132744 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNames.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] corresponds to a more modern way of listing what
  * the asserted identity is in a certificate (i.e., compared to the "common
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.SubjectAltNames}
  */
-public final class SubjectAltNames extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SubjectAltNames extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.SubjectAltNames)
     SubjectAltNamesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SubjectAltNames.newBuilder() to construct.
   private SubjectAltNames(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SubjectAltNames() {
     dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -31,16 +49,15 @@ private SubjectAltNames() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SubjectAltNames();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SubjectAltNames(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,58 +77,66 @@ private SubjectAltNames(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              dnsNames_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                dnsNames_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              dnsNames_.add(s);
+              break;
             }
-            dnsNames_.add(s);
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              uris_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                uris_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              uris_.add(s);
+              break;
             }
-            uris_.add(s);
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              emailAddresses_.add(s);
+              break;
             }
-            emailAddresses_.add(s);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              ipAddresses_.add(s);
+              break;
             }
-            ipAddresses_.add(s);
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              customSans_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                customSans_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              customSans_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.X509Extension.parser(),
+                      extensionRegistry));
+              break;
             }
-            customSans_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.X509Extension.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -119,8 +144,7 @@ private SubjectAltNames(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -141,50 +165,61 @@ private SubjectAltNames(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.SubjectAltNames.class, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
+            com.google.cloud.security.privateca.v1.SubjectAltNames.class,
+            com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
   }
 
   public static final int DNS_NAMES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList dnsNames_;
   /**
+   *
+   *
    * 
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList - getDnsNamesList() { + public com.google.protobuf.ProtocolStringList getDnsNamesList() { return dnsNames_; } /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -192,50 +227,60 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString - getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } public static final int URIS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList uris_; /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -243,50 +288,60 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList emailAddresses_; /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList - getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList getEmailAddressesList() { return emailAddresses_; } /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -294,50 +349,60 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString - getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } public static final int IP_ADDRESSES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ipAddresses_; /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_; } /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -345,22 +410,26 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int CUSTOM_SANS_FIELD_NUMBER = 5; private java.util.List customSans_; /** + * + * *
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -374,6 +443,8 @@ public java.util.List getC
     return customSans_;
   }
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -383,11 +454,13 @@ public java.util.List getC
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCustomSansOrBuilderList() {
     return customSans_;
   }
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -401,6 +474,8 @@ public int getCustomSansCount() {
     return customSans_.size();
   }
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -414,6 +489,8 @@ public com.google.cloud.security.privateca.v1.X509Extension getCustomSans(int in
     return customSans_.get(index);
   }
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -429,6 +506,7 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -440,8 +518,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < dnsNames_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsNames_.getRaw(i));
     }
@@ -499,8 +576,7 @@ public int getSerializedSize() {
       size += 1 * getIpAddressesList().size();
     }
     for (int i = 0; i < customSans_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, customSans_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customSans_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -510,23 +586,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.security.privateca.v1.SubjectAltNames)) {
       return super.equals(obj);
     }
-    com.google.cloud.security.privateca.v1.SubjectAltNames other = (com.google.cloud.security.privateca.v1.SubjectAltNames) obj;
-
-    if (!getDnsNamesList()
-        .equals(other.getDnsNamesList())) return false;
-    if (!getUrisList()
-        .equals(other.getUrisList())) return false;
-    if (!getEmailAddressesList()
-        .equals(other.getEmailAddressesList())) return false;
-    if (!getIpAddressesList()
-        .equals(other.getIpAddressesList())) return false;
-    if (!getCustomSansList()
-        .equals(other.getCustomSansList())) return false;
+    com.google.cloud.security.privateca.v1.SubjectAltNames other =
+        (com.google.cloud.security.privateca.v1.SubjectAltNames) obj;
+
+    if (!getDnsNamesList().equals(other.getDnsNamesList())) return false;
+    if (!getUrisList().equals(other.getUrisList())) return false;
+    if (!getEmailAddressesList().equals(other.getEmailAddressesList())) return false;
+    if (!getIpAddressesList().equals(other.getIpAddressesList())) return false;
+    if (!getCustomSansList().equals(other.getCustomSansList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -564,96 +636,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.security.privateca.v1.SubjectAltNames 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.security.privateca.v1.SubjectAltNames parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.security.privateca.v1.SubjectAltNames parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.security.privateca.v1.SubjectAltNames parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.security.privateca.v1.SubjectAltNames prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.security.privateca.v1.SubjectAltNames prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] corresponds to a more modern way of listing what
    * the asserted identity is in a certificate (i.e., compared to the "common
@@ -662,21 +742,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.SubjectAltNames}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.SubjectAltNames)
       com.google.cloud.security.privateca.v1.SubjectAltNamesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.SubjectAltNames.class, com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
+              com.google.cloud.security.privateca.v1.SubjectAltNames.class,
+              com.google.cloud.security.privateca.v1.SubjectAltNames.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.SubjectAltNames.newBuilder()
@@ -684,17 +766,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCustomSansFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -716,9 +798,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
@@ -737,7 +819,8 @@ public com.google.cloud.security.privateca.v1.SubjectAltNames build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.SubjectAltNames buildPartial() {
-      com.google.cloud.security.privateca.v1.SubjectAltNames result = new com.google.cloud.security.privateca.v1.SubjectAltNames(this);
+      com.google.cloud.security.privateca.v1.SubjectAltNames result =
+          new com.google.cloud.security.privateca.v1.SubjectAltNames(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -776,38 +859,39 @@ public com.google.cloud.security.privateca.v1.SubjectAltNames buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.SubjectAltNames) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.SubjectAltNames)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.SubjectAltNames) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -815,7 +899,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubjectAltNames other) {
-      if (other == com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.SubjectAltNames.getDefaultInstance())
+        return this;
       if (!other.dnsNames_.isEmpty()) {
         if (dnsNames_.isEmpty()) {
           dnsNames_ = other.dnsNames_;
@@ -874,9 +959,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubjectAltNames
             customSansBuilder_ = null;
             customSans_ = other.customSans_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            customSansBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCustomSansFieldBuilder() : null;
+            customSansBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCustomSansFieldBuilder()
+                    : null;
           } else {
             customSansBuilder_.addAllMessages(other.customSans_);
           }
@@ -901,7 +987,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.SubjectAltNames) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.SubjectAltNames) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -910,44 +997,55 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList dnsNames_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureDnsNamesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = new com.google.protobuf.LazyStringArrayList(dnsNames_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList - getDnsNamesList() { + public com.google.protobuf.ProtocolStringList getDnsNamesList() { return dnsNames_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -955,80 +1053,90 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString - getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param index The index to set the value at. * @param value The dnsNames to set. * @return This builder for chaining. */ - public Builder setDnsNames( - int index, java.lang.String value) { + public Builder setDnsNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param value The dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNames( - java.lang.String value) { + public Builder addDnsNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param values The dnsNames to add. * @return This builder for chaining. */ - public Builder addAllDnsNames( - java.lang.Iterable values) { + public Builder addAllDnsNames(java.lang.Iterable values) { ensureDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsNames_); onChanged(); return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @return This builder for chaining. */ public Builder clearDnsNames() { @@ -1038,62 +1146,74 @@ public Builder clearDnsNames() { return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param value The bytes of the dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addDnsNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -1101,80 +1221,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { + public Builder setUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { + public Builder addUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @return This builder for chaining. */ public Builder clearUris() { @@ -1184,62 +1314,74 @@ public Builder clearUris() { return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList emailAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList emailAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { emailAddresses_ = new com.google.protobuf.LazyStringArrayList(emailAddresses_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList - getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList getEmailAddressesList() { return emailAddresses_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -1247,80 +1389,90 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString - getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param index The index to set the value at. * @param value The emailAddresses to set. * @return This builder for chaining. */ - public Builder setEmailAddresses( - int index, java.lang.String value) { + public Builder setEmailAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param value The emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddresses( - java.lang.String value) { + public Builder addEmailAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param values The emailAddresses to add. * @return This builder for chaining. */ - public Builder addAllEmailAddresses( - java.lang.Iterable values) { + public Builder addAllEmailAddresses(java.lang.Iterable values) { ensureEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, emailAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @return This builder for chaining. */ public Builder clearEmailAddresses() { @@ -1330,62 +1482,74 @@ public Builder clearEmailAddresses() { return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param value The bytes of the emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addEmailAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ipAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1393,80 +1557,90 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses( - int index, java.lang.String value) { + public Builder setIpAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses( - java.lang.String value) { + public Builder addIpAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses( - java.lang.Iterable values) { + public Builder addAllIpAddresses(java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); onChanged(); return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1476,20 +1650,22 @@ public Builder clearIpAddresses() { return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); @@ -1497,18 +1673,26 @@ public Builder addIpAddressesBytes( } private java.util.List customSans_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomSansIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - customSans_ = new java.util.ArrayList(customSans_); + customSans_ = + new java.util.ArrayList( + customSans_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> customSansBuilder_; + com.google.cloud.security.privateca.v1.X509Extension, + com.google.cloud.security.privateca.v1.X509Extension.Builder, + com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> + customSansBuilder_; /** + * + * *
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1517,7 +1701,8 @@ private void ensureCustomSansIsMutable() {
      *
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
-    public java.util.List getCustomSansList() {
+    public java.util.List
+        getCustomSansList() {
       if (customSansBuilder_ == null) {
         return java.util.Collections.unmodifiableList(customSans_);
       } else {
@@ -1525,6 +1710,8 @@ public java.util.List getC
       }
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1541,6 +1728,8 @@ public int getCustomSansCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1557,6 +1746,8 @@ public com.google.cloud.security.privateca.v1.X509Extension getCustomSans(int in
       }
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1580,6 +1771,8 @@ public Builder setCustomSans(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1600,6 +1793,8 @@ public Builder setCustomSans(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1622,6 +1817,8 @@ public Builder addCustomSans(com.google.cloud.security.privateca.v1.X509Extensio
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1645,6 +1842,8 @@ public Builder addCustomSans(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1665,6 +1864,8 @@ public Builder addCustomSans(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1685,6 +1886,8 @@ public Builder addCustomSans(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1697,8 +1900,7 @@ public Builder addAllCustomSans(
         java.lang.Iterable values) {
       if (customSansBuilder_ == null) {
         ensureCustomSansIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, customSans_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customSans_);
         onChanged();
       } else {
         customSansBuilder_.addAllMessages(values);
@@ -1706,6 +1908,8 @@ public Builder addAllCustomSans(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1725,6 +1929,8 @@ public Builder clearCustomSans() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1744,6 +1950,8 @@ public Builder removeCustomSans(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1757,6 +1965,8 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder getCustomSan
       return getCustomSansFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1768,11 +1978,14 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder getCustomSan
     public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSansOrBuilder(
         int index) {
       if (customSansBuilder_ == null) {
-        return customSans_.get(index);  } else {
+        return customSans_.get(index);
+      } else {
         return customSansBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1781,8 +1994,8 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
      *
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
-    public java.util.List 
-         getCustomSansOrBuilderList() {
+    public java.util.List
+        getCustomSansOrBuilderList() {
       if (customSansBuilder_ != null) {
         return customSansBuilder_.getMessageOrBuilderList();
       } else {
@@ -1790,6 +2003,8 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
       }
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1799,10 +2014,12 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSa
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
     public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSansBuilder() {
-      return getCustomSansFieldBuilder().addBuilder(
-          com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
+      return getCustomSansFieldBuilder()
+          .addBuilder(com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1813,10 +2030,13 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSan
      */
     public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSansBuilder(
         int index) {
-      return getCustomSansFieldBuilder().addBuilder(
-          index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
+      return getCustomSansFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Contains additional subject alternative name values.
      * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -1825,27 +2045,30 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder addCustomSan
      *
      * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      */
-    public java.util.List 
-         getCustomSansBuilderList() {
+    public java.util.List
+        getCustomSansBuilderList() {
       return getCustomSansFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> 
+            com.google.cloud.security.privateca.v1.X509Extension,
+            com.google.cloud.security.privateca.v1.X509Extension.Builder,
+            com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>
         getCustomSansFieldBuilder() {
       if (customSansBuilder_ == null) {
-        customSansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>(
-                customSans_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        customSansBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.security.privateca.v1.X509Extension,
+                com.google.cloud.security.privateca.v1.X509Extension.Builder,
+                com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>(
+                customSans_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
         customSans_ = null;
       }
       return customSansBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1855,12 +2078,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.SubjectAltNames)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.SubjectAltNames)
   private static final com.google.cloud.security.privateca.v1.SubjectAltNames DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.SubjectAltNames();
   }
@@ -1869,16 +2092,16 @@ public static com.google.cloud.security.privateca.v1.SubjectAltNames getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SubjectAltNames parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SubjectAltNames(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SubjectAltNames parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SubjectAltNames(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1893,6 +2116,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.security.privateca.v1.SubjectAltNames getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
index 89611b40..41d02a75 100644
--- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
+++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectAltNamesOrBuilder.java
@@ -1,177 +1,235 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1/resources.proto
 
 package com.google.cloud.security.privateca.v1;
 
-public interface SubjectAltNamesOrBuilder extends
+public interface SubjectAltNamesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.SubjectAltNames)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return A list containing the dnsNames. */ - java.util.List - getDnsNamesList(); + java.util.List getDnsNamesList(); /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return The count of dnsNames. */ int getDnsNamesCount(); /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the element to return. * @return The dnsNames at the given index. */ java.lang.String getDnsNames(int index); /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - com.google.protobuf.ByteString - getDnsNamesBytes(int index); + com.google.protobuf.ByteString getDnsNamesBytes(int index); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return A list containing the emailAddresses. */ - java.util.List - getEmailAddressesList(); + java.util.List getEmailAddressesList(); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return The count of emailAddresses. */ int getEmailAddressesCount(); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ java.lang.String getEmailAddresses(int index); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - com.google.protobuf.ByteString - getEmailAddressesBytes(int index); + com.google.protobuf.ByteString getEmailAddressesBytes(int index); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return A list containing the ipAddresses. */ - java.util.List - getIpAddressesList(); + java.util.List getIpAddressesList(); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString - getIpAddressesBytes(int index); + com.google.protobuf.ByteString getIpAddressesBytes(int index); /** + * + * *
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -180,9 +238,10 @@ public interface SubjectAltNamesOrBuilder extends
    *
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
-  java.util.List 
-      getCustomSansList();
+  java.util.List getCustomSansList();
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -193,6 +252,8 @@ public interface SubjectAltNamesOrBuilder extends
    */
   com.google.cloud.security.privateca.v1.X509Extension getCustomSans(int index);
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -203,6 +264,8 @@ public interface SubjectAltNamesOrBuilder extends
    */
   int getCustomSansCount();
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -211,9 +274,11 @@ public interface SubjectAltNamesOrBuilder extends
    *
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
-  java.util.List 
+  java.util.List
       getCustomSansOrBuilderList();
   /**
+   *
+   *
    * 
    * Contains additional subject alternative name values.
    * For each custom_san, the `value` field must contain an ASN.1 encoded
@@ -222,6 +287,5 @@ public interface SubjectAltNamesOrBuilder extends
    *
    * repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    */
-  com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSansOrBuilder(
-      int index);
+  com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getCustomSansOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
index 4b40ac98..b76f9ad3 100644
--- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
+++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectOrBuilder.java
@@ -1,169 +1,225 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1/resources.proto
 
 package com.google.cloud.security.privateca.v1;
 
-public interface SubjectOrBuilder extends
+public interface SubjectOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.Subject)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The "common name" of the subject.
    * 
* * string common_name = 1; + * * @return The commonName. */ java.lang.String getCommonName(); /** + * + * *
    * The "common name" of the subject.
    * 
* * string common_name = 1; + * * @return The bytes for commonName. */ - com.google.protobuf.ByteString - getCommonNameBytes(); + com.google.protobuf.ByteString getCommonNameBytes(); /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 2; + * * @return The countryCode. */ java.lang.String getCountryCode(); /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 2; + * * @return The bytes for countryCode. */ - com.google.protobuf.ByteString - getCountryCodeBytes(); + com.google.protobuf.ByteString getCountryCodeBytes(); /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 3; + * * @return The organization. */ java.lang.String getOrganization(); /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 3; + * * @return The bytes for organization. */ - com.google.protobuf.ByteString - getOrganizationBytes(); + com.google.protobuf.ByteString getOrganizationBytes(); /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; + * * @return The organizationalUnit. */ java.lang.String getOrganizationalUnit(); /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 4; + * * @return The bytes for organizationalUnit. */ - com.google.protobuf.ByteString - getOrganizationalUnitBytes(); + com.google.protobuf.ByteString getOrganizationalUnitBytes(); /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 5; + * * @return The locality. */ java.lang.String getLocality(); /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 5; + * * @return The bytes for locality. */ - com.google.protobuf.ByteString - getLocalityBytes(); + com.google.protobuf.ByteString getLocalityBytes(); /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; + * * @return The province. */ java.lang.String getProvince(); /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 6; + * * @return The bytes for province. */ - com.google.protobuf.ByteString - getProvinceBytes(); + com.google.protobuf.ByteString getProvinceBytes(); /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 7; + * * @return The streetAddress. */ java.lang.String getStreetAddress(); /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 7; + * * @return The bytes for streetAddress. */ - com.google.protobuf.ByteString - getStreetAddressBytes(); + com.google.protobuf.ByteString getStreetAddressBytes(); /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; + * * @return The postalCode. */ java.lang.String getPostalCode(); /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 8; + * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString - getPostalCodeBytes(); + com.google.protobuf.ByteString getPostalCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java index 25f3c503..96a5b799 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubjectRequestMode.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Describes the way in which a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and/or
  * [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be resolved.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.security.privateca.v1.SubjectRequestMode}
  */
-public enum SubjectRequestMode
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum SubjectRequestMode implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Not specified.
    * 
@@ -22,6 +40,8 @@ public enum SubjectRequestMode */ SUBJECT_REQUEST_MODE_UNSPECIFIED(0), /** + * + * *
    * The default mode used in most cases. Indicates that the certificate's
    * [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are specified in the certificate
@@ -33,6 +53,8 @@ public enum SubjectRequestMode
    */
   DEFAULT(1),
   /**
+   *
+   *
    * 
    * A mode reserved for special cases. Indicates that the certificate should
    * have one or more SPIFFE [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set by the service based
@@ -49,6 +71,8 @@ public enum SubjectRequestMode
   ;
 
   /**
+   *
+   *
    * 
    * Not specified.
    * 
@@ -57,6 +81,8 @@ public enum SubjectRequestMode */ public static final int SUBJECT_REQUEST_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The default mode used in most cases. Indicates that the certificate's
    * [Subject][google.cloud.security.privateca.v1.Subject] and/or [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] are specified in the certificate
@@ -68,6 +94,8 @@ public enum SubjectRequestMode
    */
   public static final int DEFAULT_VALUE = 1;
   /**
+   *
+   *
    * 
    * A mode reserved for special cases. Indicates that the certificate should
    * have one or more SPIFFE [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] set by the service based
@@ -81,7 +109,6 @@ public enum SubjectRequestMode
    */
   public static final int REFLECTED_SPIFFE_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -106,40 +133,45 @@ public static SubjectRequestMode valueOf(int value) {
    */
   public static SubjectRequestMode forNumber(int value) {
     switch (value) {
-      case 0: return SUBJECT_REQUEST_MODE_UNSPECIFIED;
-      case 1: return DEFAULT;
-      case 2: return REFLECTED_SPIFFE;
-      default: return null;
+      case 0:
+        return SUBJECT_REQUEST_MODE_UNSPECIFIED;
+      case 1:
+        return DEFAULT;
+      case 2:
+        return REFLECTED_SPIFFE;
+      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<
-      SubjectRequestMode> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public SubjectRequestMode findValueByNumber(int number) {
-            return SubjectRequestMode.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap
+      internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public SubjectRequestMode findValueByNumber(int number) {
+              return SubjectRequestMode.forNumber(number);
+            }
+          };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor().getEnumTypes().get(1);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.getDescriptor()
+        .getEnumTypes()
+        .get(1);
   }
 
   private static final SubjectRequestMode[] VALUES = values();
@@ -147,8 +179,7 @@ public SubjectRequestMode findValueByNumber(int number) {
   public static SubjectRequestMode 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;
@@ -164,4 +195,3 @@ private SubjectRequestMode(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1.SubjectRequestMode)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
index 647a2f5a..4b6bec9b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
+++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfig.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1/resources.proto
 
 package com.google.cloud.security.privateca.v1;
 
 /**
+ *
+ *
  * 
  * Describes a subordinate CA's issuers. This is either a resource name to a
  * known issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig}
  */
-public final class SubordinateConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SubordinateConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.SubordinateConfig)
     SubordinateConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SubordinateConfig.newBuilder() to construct.
   private SubordinateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SubordinateConfig() {
-  }
+
+  private SubordinateConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SubordinateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SubordinateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,33 +69,47 @@ private SubordinateConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            subordinateConfigCase_ = 1;
-            subordinateConfig_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder subBuilder = null;
-            if (subordinateConfigCase_ == 2) {
-              subBuilder = ((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_).toBuilder();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              subordinateConfigCase_ = 1;
+              subordinateConfig_ = s;
+              break;
             }
-            subordinateConfig_ =
-                input.readMessage(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_);
-              subordinateConfig_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain
+                      .Builder
+                  subBuilder = null;
+              if (subordinateConfigCase_ == 2) {
+                subBuilder =
+                    ((com.google.cloud.security.privateca.v1.SubordinateConfig
+                                .SubordinateConfigChain)
+                            subordinateConfig_)
+                        .toBuilder();
+              }
+              subordinateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.SubordinateConfig
+                          .SubordinateConfigChain.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.security.privateca.v1.SubordinateConfig
+                            .SubordinateConfigChain)
+                        subordinateConfig_);
+                subordinateConfig_ = subBuilder.buildPartial();
+              }
+              subordinateConfigCase_ = 2;
+              break;
             }
-            subordinateConfigCase_ = 2;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,104 +117,120 @@ private SubordinateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.SubordinateConfig.class, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1.SubordinateConfig.class,
+            com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
   }
 
-  public interface SubordinateConfigChainOrBuilder extends
+  public interface SubordinateConfigChainOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the pemCertificates. */ - java.util.List - getPemCertificatesList(); + java.util.List getPemCertificatesList(); /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of pemCertificates. */ int getPemCertificatesCount(); /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ java.lang.String getPemCertificates(int index); /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - com.google.protobuf.ByteString - getPemCertificatesBytes(int index); + com.google.protobuf.ByteString getPemCertificatesBytes(int index); } /** + * + * *
    * This message describes a subordinate CA's issuer certificate chain. This
    * wrapper exists for compatibility reasons.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code + * google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} */ - public static final class SubordinateConfigChain extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SubordinateConfigChain extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) SubordinateConfigChainOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubordinateConfigChain.newBuilder() to construct. private SubordinateConfigChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SubordinateConfigChain() { pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubordinateConfigChain(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubordinateConfigChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -204,22 +250,23 @@ private SubordinateConfigChain( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pemCertificates_.add(s); + break; } - pemCertificates_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,8 +274,7 @@ private SubordinateConfigChain( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -237,50 +283,62 @@ private SubordinateConfigChain( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder.class); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.class, + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .Builder.class); } public static final int PEM_CERTIFICATES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList pemCertificates_; /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { return pemCertificates_; } /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -288,20 +346,23 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,8 +374,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pemCertificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCertificates_.getRaw(i)); } @@ -343,15 +403,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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other = (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) obj; + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other = + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) obj; - if (!getPemCertificatesList() - .equals(other.getPemCertificatesList())) return false; + if (!getPemCertificatesList().equals(other.getPemCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,88 +434,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain 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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + 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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -463,45 +538,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * This message describes a subordinate CA's issuer certificate chain. This
      * wrapper exists for compatibility reasons.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code + * google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder.class); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .class, + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -511,19 +594,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain build() { - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = buildPartial(); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + build() { + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -531,8 +618,11 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfi } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain buildPartial() { - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain(this); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + buildPartial() { + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain result = + new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain( + this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -547,46 +637,56 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) { - return mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain)other); + if (other + instanceof + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) { + return mergeFrom( + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other) { - if (other == com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain other) { + if (other + == com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance()) return this; if (!other.pemCertificates_.isEmpty()) { if (pemCertificates_.isEmpty()) { pemCertificates_ = other.pemCertificates_; @@ -612,11 +712,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain parsedMessage = null; + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,44 +728,58 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pemCertificates_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePemCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCertificates_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { return pemCertificates_.getUnmodifiableView(); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -670,80 +787,95 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The pemCertificates to set. * @return This builder for chaining. */ - public Builder setPemCertificates( - int index, java.lang.String value) { + public Builder setPemCertificates(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.set(index, value); onChanged(); return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificates( - java.lang.String value) { + public Builder addPemCertificates(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The pemCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCertificates( - java.lang.Iterable values) { + public Builder addAllPemCertificates(java.lang.Iterable values) { ensurePemCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pemCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificates_); onChanged(); return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearPemCertificates() { @@ -753,25 +885,29 @@ public Builder clearPemCertificates() { return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificatesBytes( - com.google.protobuf.ByteString value) { + public Builder addPemCertificatesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -784,30 +920,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) - private static final com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.SubordinateConfig + .SubordinateConfigChain + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain(); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfigChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfigChain(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfigChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfigChain(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,21 +959,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int subordinateConfigCase_ = 0; private java.lang.Object subordinateConfig_; + public enum SubordinateConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CERTIFICATE_AUTHORITY(1), PEM_ISSUER_CHAIN(2), SUBORDINATECONFIG_NOT_SET(0); private final int value; + private SubordinateConfigCase(int value) { this.value = value; } @@ -849,25 +992,30 @@ public static SubordinateConfigCase valueOf(int value) { public static SubordinateConfigCase forNumber(int value) { switch (value) { - case 1: return CERTIFICATE_AUTHORITY; - case 2: return PEM_ISSUER_CHAIN; - case 0: return SUBORDINATECONFIG_NOT_SET; - default: return null; + case 1: + return CERTIFICATE_AUTHORITY; + case 2: + return PEM_ISSUER_CHAIN; + case 0: + return SUBORDINATECONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SubordinateConfigCase - getSubordinateConfigCase() { - return SubordinateConfigCase.forNumber( - subordinateConfigCase_); + public SubordinateConfigCase getSubordinateConfigCase() { + return SubordinateConfigCase.forNumber(subordinateConfigCase_); } public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1; /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -875,13 +1023,18 @@ public int getNumber() {
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -889,7 +1042,10 @@ public boolean hasCertificateAuthority() {
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The certificateAuthority. */ public java.lang.String getCertificateAuthority() { @@ -900,8 +1056,7 @@ public java.lang.String getCertificateAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -910,6 +1065,8 @@ public java.lang.String getCertificateAuthority() { } } /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -917,19 +1074,20 @@ public java.lang.String getCertificateAuthority() {
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for certificateAuthority. */ - public com.google.protobuf.ByteString - getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -941,12 +1099,17 @@ public java.lang.String getCertificateAuthority() { public static final int PEM_ISSUER_CHAIN_FIELD_NUMBER = 2; /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -954,38 +1117,54 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + getPemIssuerChain() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder + getPemIssuerChainOrBuilder() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -997,13 +1176,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 (subordinateConfigCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - output.writeMessage(2, (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); + output.writeMessage( + 2, + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_); } unknownFields.writeTo(output); } @@ -1018,8 +1199,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1029,22 +1213,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.security.privateca.v1.SubordinateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.SubordinateConfig other = (com.google.cloud.security.privateca.v1.SubordinateConfig) obj; + com.google.cloud.security.privateca.v1.SubordinateConfig other = + (com.google.cloud.security.privateca.v1.SubordinateConfig) obj; if (!getSubordinateConfigCase().equals(other.getSubordinateConfigCase())) return false; switch (subordinateConfigCase_) { case 1: - if (!getCertificateAuthority() - .equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; break; case 2: - if (!getPemIssuerChain() - .equals(other.getPemIssuerChain())) return false; + if (!getPemIssuerChain().equals(other.getPemIssuerChain())) return false; break; case 0: default: @@ -1078,96 +1261,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.SubordinateConfig 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.security.privateca.v1.SubordinateConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.SubordinateConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.SubordinateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.SubordinateConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.SubordinateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a subordinate CA's issuers. This is either a resource name to a
    * known issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -1175,21 +1366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.SubordinateConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.SubordinateConfig)
       com.google.cloud.security.privateca.v1.SubordinateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.SubordinateConfig.class, com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1.SubordinateConfig.class,
+              com.google.cloud.security.privateca.v1.SubordinateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.SubordinateConfig.newBuilder()
@@ -1197,16 +1390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1216,9 +1408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1237,7 +1429,8 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.SubordinateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1.SubordinateConfig result = new com.google.cloud.security.privateca.v1.SubordinateConfig(this);
+      com.google.cloud.security.privateca.v1.SubordinateConfig result =
+          new com.google.cloud.security.privateca.v1.SubordinateConfig(this);
       if (subordinateConfigCase_ == 1) {
         result.subordinateConfig_ = subordinateConfig_;
       }
@@ -1257,38 +1450,39 @@ public com.google.cloud.security.privateca.v1.SubordinateConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.SubordinateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.SubordinateConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1296,21 +1490,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.SubordinateConfig other) {
-      if (other == com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.SubordinateConfig.getDefaultInstance())
+        return this;
       switch (other.getSubordinateConfigCase()) {
-        case CERTIFICATE_AUTHORITY: {
-          subordinateConfigCase_ = 1;
-          subordinateConfig_ = other.subordinateConfig_;
-          onChanged();
-          break;
-        }
-        case PEM_ISSUER_CHAIN: {
-          mergePemIssuerChain(other.getPemIssuerChain());
-          break;
-        }
-        case SUBORDINATECONFIG_NOT_SET: {
-          break;
-        }
+        case CERTIFICATE_AUTHORITY:
+          {
+            subordinateConfigCase_ = 1;
+            subordinateConfig_ = other.subordinateConfig_;
+            onChanged();
+            break;
+          }
+        case PEM_ISSUER_CHAIN:
+          {
+            mergePemIssuerChain(other.getPemIssuerChain());
+            break;
+          }
+        case SUBORDINATECONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1331,7 +1529,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.SubordinateConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.SubordinateConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1340,12 +1539,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int subordinateConfigCase_ = 0;
     private java.lang.Object subordinateConfig_;
-    public SubordinateConfigCase
-        getSubordinateConfigCase() {
-      return SubordinateConfigCase.forNumber(
-          subordinateConfigCase_);
+
+    public SubordinateConfigCase getSubordinateConfigCase() {
+      return SubordinateConfigCase.forNumber(subordinateConfigCase_);
     }
 
     public Builder clearSubordinateConfig() {
@@ -1355,8 +1554,9 @@ public Builder clearSubordinateConfig() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1364,7 +1564,10 @@ public Builder clearSubordinateConfig() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -1372,6 +1575,8 @@ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1379,7 +1584,10 @@ public boolean hasCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The certificateAuthority. */ @java.lang.Override @@ -1389,8 +1597,7 @@ public java.lang.String getCertificateAuthority() { ref = subordinateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -1401,6 +1608,8 @@ public java.lang.String getCertificateAuthority() { } } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1408,20 +1617,21 @@ public java.lang.String getCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for certificateAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -1431,6 +1641,8 @@ public java.lang.String getCertificateAuthority() { } } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1438,21 +1650,25 @@ public java.lang.String getCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthority( - java.lang.String value) { + public Builder setCertificateAuthority(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - subordinateConfigCase_ = 1; + throw new NullPointerException(); + } + subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); return this; } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1460,7 +1676,10 @@ public Builder setCertificateAuthority(
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCertificateAuthority() { @@ -1472,6 +1691,8 @@ public Builder clearCertificateAuthority() { return this; } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
      * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -1479,16 +1700,18 @@ public Builder clearCertificateAuthority() {
      * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); @@ -1496,14 +1719,23 @@ public Builder setCertificateAuthorityBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder> pemIssuerChainBuilder_; + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfig + .SubordinateConfigChainOrBuilder> + pemIssuerChainBuilder_; /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -1511,37 +1743,51 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + getPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } else { if (subordinateConfigCase_ == 2) { return pemIssuerChainBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPemIssuerChain(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { + public Builder setPemIssuerChain( + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { if (pemIssuerChainBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1555,15 +1801,20 @@ public Builder setPemIssuerChain(com.google.cloud.security.privateca.v1.Subordin return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPemIssuerChain( - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder builderForValue) { + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder + builderForValue) { if (pemIssuerChainBuilder_ == null) { subordinateConfig_ = builderForValue.build(); onChanged(); @@ -1574,19 +1825,32 @@ public Builder setPemIssuerChain( return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergePemIssuerChain(com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { + public Builder mergePemIssuerChain( + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain value) { if (pemIssuerChainBuilder_ == null) { - if (subordinateConfigCase_ == 2 && - subordinateConfig_ != com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) { - subordinateConfig_ = com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.newBuilder((com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_) - .mergeFrom(value).buildPartial(); + if (subordinateConfigCase_ == 2 + && subordinateConfig_ + != com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance()) { + subordinateConfig_ = + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .newBuilder( + (com.google.cloud.security.privateca.v1.SubordinateConfig + .SubordinateConfigChain) + subordinateConfig_) + .mergeFrom(value) + .buildPartial(); } else { subordinateConfig_ = value; } @@ -1602,12 +1866,16 @@ public Builder mergePemIssuerChain(com.google.cloud.security.privateca.v1.Subord return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { @@ -1626,64 +1894,92 @@ public Builder clearPemIssuerChain() { return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder getPemIssuerChainBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder + getPemIssuerChainBuilder() { return getPemIssuerChainFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder + getPemIssuerChainOrBuilder() { if ((subordinateConfigCase_ == 2) && (pemIssuerChainBuilder_ != null)) { return pemIssuerChainBuilder_.getMessageOrBuilder(); } else { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder> + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, + com.google.cloud.security.privateca.v1.SubordinateConfig + .SubordinateConfigChainOrBuilder> getPemIssuerChainFieldBuilder() { if (pemIssuerChainBuilder_ == null) { if (!(subordinateConfigCase_ == 2)) { - subordinateConfig_ = com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + subordinateConfig_ = + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } - pemIssuerChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder>( - (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_, + pemIssuerChainBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain, + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + .Builder, + com.google.cloud.security.privateca.v1.SubordinateConfig + .SubordinateConfigChainOrBuilder>( + (com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_, getParentForChildren(), isClean()); subordinateConfig_ = null; } subordinateConfigCase_ = 2; - onChanged();; + onChanged(); + ; return pemIssuerChainBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1693,12 +1989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.SubordinateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.SubordinateConfig) private static final com.google.cloud.security.privateca.v1.SubordinateConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.SubordinateConfig(); } @@ -1707,16 +2003,16 @@ public static com.google.cloud.security.privateca.v1.SubordinateConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1731,6 +2027,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.SubordinateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java index 682140ca..bdb43a70 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/SubordinateConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface SubordinateConfigOrBuilder extends +public interface SubordinateConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.SubordinateConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -15,11 +33,16 @@ public interface SubordinateConfigOrBuilder extends
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -27,11 +50,16 @@ public interface SubordinateConfigOrBuilder extends
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The certificateAuthority. */ java.lang.String getCertificateAuthority(); /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a
    * subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information
@@ -39,41 +67,60 @@ public interface SubordinateConfigOrBuilder extends
    * `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for certificateAuthority. */ - com.google.protobuf.ByteString - getCertificateAuthorityBytes(); + com.google.protobuf.ByteString getCertificateAuthorityBytes(); /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pemIssuerChain field is set. */ boolean hasPemIssuerChain(); /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pemIssuerChain. */ - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain(); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain + getPemIssuerChain(); /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder(); + com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChainOrBuilder + getPemIssuerChainOrBuilder(); - public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigCase getSubordinateConfigCase(); + public com.google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigCase + getSubordinateConfigCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java index d1c3e05e..5b738996 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority].
@@ -11,15 +28,18 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest}
  */
-public final class UndeleteCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeleteCertificateAuthorityRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)
     UndeleteCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeleteCertificateAuthorityRequest.newBuilder() to construct.
-  private UndeleteCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UndeleteCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeleteCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +47,15 @@ private UndeleteCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeleteCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UndeleteCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +74,27 @@ private UndeleteCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +102,43 @@ private UndeleteCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +147,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +183,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +200,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +209,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +233,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +292,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.security.privateca.v1.UndeleteCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,97 +323,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest 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.security.privateca.v1.UndeleteCertificateAuthorityRequest + 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.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority].
@@ -387,38 +435,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,19 +481,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UndeleteCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -450,8 +504,10 @@ public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityReques
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,46 +518,52 @@ public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityReques
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -525,11 +587,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +606,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +631,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +656,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
      * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +727,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +744,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +759,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +776,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +791,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +808,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +839,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +866,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +892,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeleteCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeleteCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +930,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java index 0e3bc2ce..62f10b34 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UndeleteCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UndeleteCertificateAuthorityRequestOrBuilder extends +public interface UndeleteCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UndeleteCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the
    * format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface UndeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface UndeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java index 5a12366f..e9e9ed9d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UpdateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCaPoolRequest}
  */
-public final class UpdateCaPoolRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateCaPoolRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCaPoolRequest)
     UpdateCaPoolRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateCaPoolRequest.newBuilder() to construct.
   private UpdateCaPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateCaPoolRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateCaPoolRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateCaPoolRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +71,51 @@ private UpdateCaPoolRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
-            if (caPool_ != null) {
-              subBuilder = caPool_.toBuilder();
-            }
-            caPool_ = input.readMessage(com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(caPool_);
-              caPool_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.CaPool.Builder subBuilder = null;
+              if (caPool_ != null) {
+                subBuilder = caPool_.toBuilder();
+              }
+              caPool_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CaPool.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(caPool_);
+                caPool_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,34 +123,41 @@ private UpdateCaPoolRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class,
+            com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
   }
 
   public static final int CA_POOL_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.CaPool caPool_;
   /**
+   *
+   *
    * 
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the caPool field is set. */ @java.lang.Override @@ -135,23 +165,34 @@ public boolean hasCaPool() { return caPool_ != null; } /** + * + * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The caPool. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPool getCaPool() { - return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; + return caPool_ == null + ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() + : caPool_; } /** + * + * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { @@ -161,11 +202,15 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -173,11 +218,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -185,11 +234,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -199,6 +251,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -214,6 +268,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -222,14 +277,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -245,16 +301,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -263,6 +318,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (caPool_ != null) { output.writeMessage(1, getCaPool()); } @@ -295,12 +350,10 @@ public int getSerializedSize() { size = 0; if (caPool_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCaPool()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCaPool()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,25 +366,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.security.privateca.v1.UpdateCaPoolRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCaPoolRequest other = (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest other = + (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) obj; if (hasCaPool() != other.hasCaPool()) return false; if (hasCaPool()) { - if (!getCaPool() - .equals(other.getCaPool())) return false; + if (!getCaPool().equals(other.getCaPool())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -359,96 +410,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest 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.security.privateca.v1.UpdateCaPoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.UpdateCaPoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool].
@@ -456,21 +515,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCaPoolRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCaPoolRequest)
       com.google.cloud.security.privateca.v1.UpdateCaPoolRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class, com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.class,
+              com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.newBuilder()
@@ -478,16 +539,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -509,9 +569,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCaPoolRequest_descriptor;
     }
 
     @java.lang.Override
@@ -530,7 +590,8 @@ public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCaPoolRequest result = new com.google.cloud.security.privateca.v1.UpdateCaPoolRequest(this);
+      com.google.cloud.security.privateca.v1.UpdateCaPoolRequest result =
+          new com.google.cloud.security.privateca.v1.UpdateCaPoolRequest(this);
       if (caPoolBuilder_ == null) {
         result.caPool_ = caPool_;
       } else {
@@ -550,38 +611,39 @@ public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCaPoolRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,7 +651,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCaPoolRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.UpdateCaPoolRequest.getDefaultInstance())
+        return this;
       if (other.hasCaPool()) {
         mergeCaPool(other.getCaPool());
       }
@@ -619,7 +682,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.UpdateCaPoolRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,39 +695,58 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CaPool caPool_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> caPoolBuilder_;
+            com.google.cloud.security.privateca.v1.CaPool,
+            com.google.cloud.security.privateca.v1.CaPool.Builder,
+            com.google.cloud.security.privateca.v1.CaPoolOrBuilder>
+        caPoolBuilder_;
     /**
+     *
+     *
      * 
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the caPool field is set. */ public boolean hasCaPool() { return caPoolBuilder_ != null || caPool_ != null; } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The caPool. */ public com.google.cloud.security.privateca.v1.CaPool getCaPool() { if (caPoolBuilder_ == null) { - return caPool_ == null ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; + return caPool_ == null + ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() + : caPool_; } else { return caPoolBuilder_.getMessage(); } } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { @@ -679,11 +762,15 @@ public Builder setCaPool(com.google.cloud.security.privateca.v1.CaPool value) { return this; } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCaPool( com.google.cloud.security.privateca.v1.CaPool.Builder builderForValue) { @@ -697,17 +784,23 @@ public Builder setCaPool( return this; } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) { if (caPoolBuilder_ == null) { if (caPool_ != null) { caPool_ = - com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CaPool.newBuilder(caPool_) + .mergeFrom(value) + .buildPartial(); } else { caPool_ = value; } @@ -719,11 +812,15 @@ public Builder mergeCaPool(com.google.cloud.security.privateca.v1.CaPool value) return this; } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCaPool() { if (caPoolBuilder_ == null) { @@ -737,48 +834,64 @@ public Builder clearCaPool() { return this; } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.CaPool.Builder getCaPoolBuilder() { - + onChanged(); return getCaPoolFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder() { if (caPoolBuilder_ != null) { return caPoolBuilder_.getMessageOrBuilder(); } else { - return caPool_ == null ? - com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() : caPool_; + return caPool_ == null + ? com.google.cloud.security.privateca.v1.CaPool.getDefaultInstance() + : caPool_; } } /** + * + * *
      * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder> + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder> getCaPoolFieldBuilder() { if (caPoolBuilder_ == null) { - caPoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CaPool, com.google.cloud.security.privateca.v1.CaPool.Builder, com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( - getCaPool(), - getParentForChildren(), - isClean()); + caPoolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CaPool, + com.google.cloud.security.privateca.v1.CaPool.Builder, + com.google.cloud.security.privateca.v1.CaPoolOrBuilder>( + getCaPool(), getParentForChildren(), isClean()); caPool_ = null; } return caPoolBuilder_; @@ -786,39 +899,55 @@ public com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder 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. A 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. A 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. A 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) { @@ -834,14 +963,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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(); @@ -852,17 +983,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -874,11 +1008,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -892,48 +1029,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -941,6 +1091,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -956,13 +1108,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -971,6 +1123,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -986,15 +1140,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1002,6 +1155,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1017,20 +1172,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1046,15 +1203,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1070,23 +1230,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1096,12 +1256,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCaPoolRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCaPoolRequest) private static final com.google.cloud.security.privateca.v1.UpdateCaPoolRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCaPoolRequest(); } @@ -1110,16 +1270,16 @@ public static com.google.cloud.security.privateca.v1.UpdateCaPoolRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCaPoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCaPoolRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCaPoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCaPoolRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,6 +1294,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.UpdateCaPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java index ed0c9bbd..73ce5c79 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCaPoolRequestOrBuilder.java @@ -1,67 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCaPoolRequestOrBuilder extends +public interface UpdateCaPoolRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCaPoolRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the caPool field is set. */ boolean hasCaPool(); /** + * + * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The caPool. */ com.google.cloud.security.privateca.v1.CaPool getCaPool(); /** + * + * *
    * Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CaPool ca_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.CaPoolOrBuilder getCaPoolOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +120,13 @@ public interface UpdateCaPoolRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +142,8 @@ public interface UpdateCaPoolRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java index 2730ad3d..4c7f9c13 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest}
  */
-public final class UpdateCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)
     UpdateCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateCertificateAuthorityRequest.newBuilder() to construct.
-  private UpdateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateCertificateAuthorityRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +72,52 @@ private UpdateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
-            if (certificateAuthority_ != null) {
-              subBuilder = certificateAuthority_.toBuilder();
-            }
-            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateAuthority.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateAuthority_);
-              certificateAuthority_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.CertificateAuthority.Builder subBuilder = null;
+              if (certificateAuthority_ != null) {
+                subBuilder = certificateAuthority_.toBuilder();
+              }
+              certificateAuthority_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateAuthority.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateAuthority_);
+                certificateAuthority_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,34 +125,41 @@ private UpdateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder.class);
   }
 
   public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_;
   /**
+   *
+   *
    * 
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -135,37 +167,53 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -173,11 +221,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -185,11 +237,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -199,6 +254,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -214,6 +271,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -222,14 +280,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -245,16 +304,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -263,6 +321,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +333,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificateAuthority_ != null) { output.writeMessage(1, getCertificateAuthority()); } @@ -295,12 +353,11 @@ public int getSerializedSize() { size = 0; if (certificateAuthority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificateAuthority()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateAuthority()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,25 +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.security.privateca.v1.UpdateCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) obj; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority() - .equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority().equals(other.getCertificateAuthority())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -359,96 +415,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest 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.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest 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.security.privateca.v1.UpdateCertificateAuthorityRequest + 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.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -456,38 +521,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -509,19 +577,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -530,7 +601,8 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(this);
+      com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(this);
       if (certificateAuthorityBuilder_ == null) {
         result.certificateAuthority_ = certificateAuthority_;
       } else {
@@ -550,46 +622,52 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (other.hasCertificateAuthority()) {
         mergeCertificateAuthority(other.getCertificateAuthority());
       }
@@ -619,7 +697,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,41 +711,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CertificateAuthority certificateAuthority_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateAuthority,
+            com.google.cloud.security.privateca.v1.CertificateAuthority.Builder,
+            com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>
+        certificateAuthorityBuilder_;
     /**
+     *
+     *
      * 
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ public com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder setCertificateAuthority( + com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,11 +779,15 @@ public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1.Ce return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1.CertificateAuthority.Builder builderForValue) { @@ -697,17 +801,25 @@ public Builder setCertificateAuthority( return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1.CertificateAuthority value) { + public Builder mergeCertificateAuthority( + com.google.cloud.security.privateca.v1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateAuthority.newBuilder( + certificateAuthority_) + .mergeFrom(value) + .buildPartial(); } else { certificateAuthority_ = value; } @@ -719,11 +831,15 @@ public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1. return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -737,48 +853,66 @@ public Builder clearCertificateAuthority() { return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateAuthority.Builder + getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null ? - com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateAuthority, com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), - getParentForChildren(), - isClean()); + certificateAuthorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateAuthority, + com.google.cloud.security.privateca.v1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), getParentForChildren(), isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -786,39 +920,55 @@ public com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getC 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. A 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. A 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. A 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) { @@ -834,14 +984,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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(); @@ -852,17 +1004,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -874,11 +1029,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -892,48 +1050,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -941,6 +1112,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -956,13 +1129,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -971,6 +1144,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -986,15 +1161,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1002,6 +1176,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1017,20 +1193,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1046,15 +1224,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1070,23 +1251,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1096,30 +1277,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,9 +1315,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java index 4860da35..0828ce24 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateAuthorityRequestOrBuilder.java @@ -1,67 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateAuthorityRequestOrBuilder extends +public interface UpdateCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1.CertificateAuthority getCertificateAuthority(); /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +121,13 @@ public interface UpdateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +143,8 @@ public interface UpdateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java index 17cfcfc4..a512836a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRequest} */ -public final class UpdateCertificateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateRequest) UpdateCertificateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCertificateRequest.newBuilder() to construct. private UpdateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateCertificateRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,52 @@ private UpdateCertificateRequest( case 0: done = true; break; - case 10: { - com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = input.readMessage(com.google.cloud.security.privateca.v1.Certificate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.security.privateca.v1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); + } + certificate_ = + input.readMessage( + com.google.cloud.security.privateca.v1.Certificate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +123,41 @@ private UpdateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.Certificate certificate_; /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ @java.lang.Override @@ -134,23 +165,34 @@ public boolean hasCertificate() { return certificate_ != null; } /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.Certificate getCertificate() { - return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() + : certificate_; } /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { @@ -160,11 +202,15 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -172,11 +218,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -184,11 +234,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -198,6 +251,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -213,6 +268,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -221,14 +277,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -244,16 +301,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -262,6 +318,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificate_ != null) { output.writeMessage(1, getCertificate()); } @@ -294,12 +350,10 @@ public int getSerializedSize() { size = 0; if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificate()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -312,25 +366,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.security.privateca.v1.UpdateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateRequest other = + (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) obj; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate() - .equals(other.getCertificate())) return false; + if (!getCertificate().equals(other.getCertificate())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,117 +410,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest 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.security.privateca.v1.UpdateCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateRequest) com.google.cloud.security.privateca.v1.UpdateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.class, + com.google.cloud.security.privateca.v1.UpdateCertificateRequest.Builder.class); } // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateRequest.newBuilder() @@ -476,16 +538,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,13 +568,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateRequest + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance(); } @@ -528,7 +590,8 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRequest build() { @java.lang.Override public com.google.cloud.security.privateca.v1.UpdateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1.UpdateCertificateRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateRequest(this); + com.google.cloud.security.privateca.v1.UpdateCertificateRequest result = + new com.google.cloud.security.privateca.v1.UpdateCertificateRequest(this); if (certificateBuilder_ == null) { result.certificate_ = certificate_; } else { @@ -548,46 +611,50 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateRequest)other); + return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateRequest other) { - if (other == com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.UpdateCertificateRequest other) { + if (other + == com.google.cloud.security.privateca.v1.UpdateCertificateRequest.getDefaultInstance()) + return this; if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } @@ -617,7 +684,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.UpdateCertificateRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,39 +698,58 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> certificateBuilder_; + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder> + certificateBuilder_; /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ public com.google.cloud.security.privateca.v1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() + : certificate_; } else { return certificateBuilder_.getMessage(); } } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { @@ -677,11 +765,15 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1.Certificate return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate( com.google.cloud.security.privateca.v1.Certificate.Builder builderForValue) { @@ -695,17 +787,23 @@ public Builder setCertificate( return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.Certificate.newBuilder(certificate_) + .mergeFrom(value) + .buildPartial(); } else { certificate_ = value; } @@ -717,11 +815,15 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1.Certifica return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -735,48 +837,64 @@ public Builder clearCertificate() { return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null ? - com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1.Certificate.getDefaultInstance() + : certificate_; } } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.Certificate, com.google.cloud.security.privateca.v1.Certificate.Builder, com.google.cloud.security.privateca.v1.CertificateOrBuilder>( - getCertificate(), - getParentForChildren(), - isClean()); + certificateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.Certificate, + com.google.cloud.security.privateca.v1.Certificate.Builder, + com.google.cloud.security.privateca.v1.CertificateOrBuilder>( + getCertificate(), getParentForChildren(), isClean()); certificate_ = null; } return certificateBuilder_; @@ -784,39 +902,55 @@ public com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificat 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. A 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. A 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. A 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) { @@ -832,14 +966,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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,17 +986,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -872,11 +1011,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -890,48 +1032,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -939,6 +1094,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -954,13 +1111,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -969,6 +1126,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -984,15 +1143,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1000,6 +1158,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1015,20 +1175,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1044,15 +1206,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1068,23 +1233,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1094,30 +1259,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.UpdateCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,9 +1296,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java index c65735d1..343ccc99 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRequestOrBuilder.java @@ -1,67 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateRequestOrBuilder extends +public interface UpdateCertificateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ boolean hasCertificate(); /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ com.google.cloud.security.privateca.v1.Certificate getCertificate(); /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.CertificateOrBuilder getCertificateOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +120,13 @@ public interface UpdateCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +142,8 @@ public interface UpdateCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java index 5566870b..9ee21c40 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList].
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest}
  */
-public final class UpdateCertificateRevocationListRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateCertificateRevocationListRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)
     UpdateCertificateRevocationListRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateCertificateRevocationListRequest.newBuilder() to construct.
-  private UpdateCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateRevocationListRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateCertificateRevocationListRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateCertificateRevocationListRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateCertificateRevocationListRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +73,53 @@ private UpdateCertificateRevocationListRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder subBuilder = null;
-            if (certificateRevocationList_ != null) {
-              subBuilder = certificateRevocationList_.toBuilder();
-            }
-            certificateRevocationList_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateRevocationList_);
-              certificateRevocationList_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder subBuilder =
+                  null;
+              if (certificateRevocationList_ != null) {
+                subBuilder = certificateRevocationList_.toBuilder();
+              }
+              certificateRevocationList_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateRevocationList.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateRevocationList_);
+                certificateRevocationList_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,34 +127,43 @@ private UpdateCertificateRevocationListRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class,
+            com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder
+                .class);
   }
 
   public static final int CERTIFICATE_REVOCATION_LIST_FIELD_NUMBER = 1;
-  private com.google.cloud.security.privateca.v1.CertificateRevocationList certificateRevocationList_;
+  private com.google.cloud.security.privateca.v1.CertificateRevocationList
+      certificateRevocationList_;
   /**
+   *
+   *
    * 
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateRevocationList field is set. */ @java.lang.Override @@ -135,37 +171,54 @@ public boolean hasCertificateRevocationList() { return certificateRevocationList_ != null; } /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateRevocationList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList() { - return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; + public com.google.cloud.security.privateca.v1.CertificateRevocationList + getCertificateRevocationList() { + return certificateRevocationList_ == null + ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() + : certificateRevocationList_; } /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder + getCertificateRevocationListOrBuilder() { return getCertificateRevocationList(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -173,11 +226,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -185,11 +242,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -199,6 +259,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -214,6 +276,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -222,14 +285,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -245,16 +309,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -263,6 +326,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +338,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificateRevocationList_ != null) { output.writeMessage(1, getCertificateRevocationList()); } @@ -295,12 +358,12 @@ public int getSerializedSize() { size = 0; if (certificateRevocationList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificateRevocationList()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getCertificateRevocationList()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,25 +376,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.security.privateca.v1.UpdateCertificateRevocationListRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other = + (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) obj; if (hasCertificateRevocationList() != other.hasCertificateRevocationList()) return false; if (hasCertificateRevocationList()) { - if (!getCertificateRevocationList() - .equals(other.getCertificateRevocationList())) return false; + if (!getCertificateRevocationList().equals(other.getCertificateRevocationList())) + 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,97 +421,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest 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.security.privateca.v1.UpdateCertificateRevocationListRequest + 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.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList].
@@ -456,38 +533,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)
       com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.class,
+              com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -509,19 +589,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateRevocationListRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest build() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -529,8 +612,10 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(this);
+    public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest result =
+          new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(this);
       if (certificateRevocationListBuilder_ == null) {
         result.certificateRevocationList_ = certificateRevocationList_;
       } else {
@@ -550,46 +635,53 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)other);
+      if (other
+          instanceof
+          com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest
+              .getDefaultInstance()) return this;
       if (other.hasCertificateRevocationList()) {
         mergeCertificateRevocationList(other.getCertificateRevocationList());
       }
@@ -615,11 +707,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -629,43 +724,65 @@ public Builder mergeFrom(
       return this;
     }
 
-    private com.google.cloud.security.privateca.v1.CertificateRevocationList certificateRevocationList_;
+    private com.google.cloud.security.privateca.v1.CertificateRevocationList
+        certificateRevocationList_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> certificateRevocationListBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateRevocationList,
+            com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder,
+            com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>
+        certificateRevocationListBuilder_;
     /**
+     *
+     *
      * 
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateRevocationList field is set. */ public boolean hasCertificateRevocationList() { return certificateRevocationListBuilder_ != null || certificateRevocationList_ != null; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateRevocationList. */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList() { + public com.google.cloud.security.privateca.v1.CertificateRevocationList + getCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { - return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; + return certificateRevocationList_ == null + ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() + : certificateRevocationList_; } else { return certificateRevocationListBuilder_.getMessage(); } } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateRevocationList(com.google.cloud.security.privateca.v1.CertificateRevocationList value) { + public Builder setCertificateRevocationList( + com.google.cloud.security.privateca.v1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,11 +796,15 @@ public Builder setCertificateRevocationList(com.google.cloud.security.privateca. return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateRevocationList( com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder builderForValue) { @@ -697,17 +818,25 @@ public Builder setCertificateRevocationList( return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateRevocationList(com.google.cloud.security.privateca.v1.CertificateRevocationList value) { + public Builder mergeCertificateRevocationList( + com.google.cloud.security.privateca.v1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (certificateRevocationList_ != null) { certificateRevocationList_ = - com.google.cloud.security.privateca.v1.CertificateRevocationList.newBuilder(certificateRevocationList_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateRevocationList.newBuilder( + certificateRevocationList_) + .mergeFrom(value) + .buildPartial(); } else { certificateRevocationList_ = value; } @@ -719,11 +848,15 @@ public Builder mergeCertificateRevocationList(com.google.cloud.security.privatec return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { @@ -737,48 +870,66 @@ public Builder clearCertificateRevocationList() { return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder getCertificateRevocationListBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder + getCertificateRevocationListBuilder() { + onChanged(); return getCertificateRevocationListFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder + getCertificateRevocationListOrBuilder() { if (certificateRevocationListBuilder_ != null) { return certificateRevocationListBuilder_.getMessageOrBuilder(); } else { - return certificateRevocationList_ == null ? - com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; + return certificateRevocationList_ == null + ? com.google.cloud.security.privateca.v1.CertificateRevocationList.getDefaultInstance() + : certificateRevocationList_; } } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1.CertificateRevocationList, + com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder> getCertificateRevocationListFieldBuilder() { if (certificateRevocationListBuilder_ == null) { - certificateRevocationListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateRevocationList, com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( - getCertificateRevocationList(), - getParentForChildren(), - isClean()); + certificateRevocationListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateRevocationList, + com.google.cloud.security.privateca.v1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder>( + getCertificateRevocationList(), getParentForChildren(), isClean()); certificateRevocationList_ = null; } return certificateRevocationListBuilder_; @@ -786,39 +937,55 @@ public com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder 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. A 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. A 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. A 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) { @@ -834,14 +1001,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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(); @@ -852,17 +1021,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -874,11 +1046,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -892,48 +1067,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -941,6 +1129,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -956,13 +1146,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -971,6 +1161,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -986,15 +1178,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1002,6 +1193,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1017,20 +1210,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1046,15 +1241,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1070,23 +1268,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1096,30 +1294,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,9 +1332,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java index bc562a08..992b7c1e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateRevocationListRequestOrBuilder.java @@ -1,67 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateRevocationListRequestOrBuilder extends +public interface UpdateCertificateRevocationListRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateRevocationList field is set. */ boolean hasCertificateRevocationList(); /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateRevocationList. */ com.google.cloud.security.privateca.v1.CertificateRevocationList getCertificateRevocationList(); /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateRevocationListOrBuilder + getCertificateRevocationListOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +121,13 @@ public interface UpdateCertificateRevocationListRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +143,8 @@ public interface UpdateCertificateRevocationListRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java index 266c3c7a..500bc071 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate].
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest}
  */
-public final class UpdateCertificateTemplateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateCertificateTemplateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)
     UpdateCertificateTemplateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateCertificateTemplateRequest.newBuilder() to construct.
-  private UpdateCertificateTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateTemplateRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateCertificateTemplateRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateCertificateTemplateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateCertificateTemplateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +72,52 @@ private UpdateCertificateTemplateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
-            if (certificateTemplate_ != null) {
-              subBuilder = certificateTemplate_.toBuilder();
-            }
-            certificateTemplate_ = input.readMessage(com.google.cloud.security.privateca.v1.CertificateTemplate.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateTemplate_);
-              certificateTemplate_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.CertificateTemplate.Builder subBuilder = null;
+              if (certificateTemplate_ != null) {
+                subBuilder = certificateTemplate_.toBuilder();
+              }
+              certificateTemplate_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.CertificateTemplate.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateTemplate_);
+                certificateTemplate_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,34 +125,41 @@ private UpdateCertificateTemplateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class,
+            com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder.class);
   }
 
   public static final int CERTIFICATE_TEMPLATE_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_;
   /**
+   *
+   *
    * 
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateTemplate field is set. */ @java.lang.Override @@ -135,37 +167,53 @@ public boolean hasCertificateTemplate() { return certificateTemplate_ != null; } /** + * + * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateTemplate. */ @java.lang.Override public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { - return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; + return certificateTemplate_ == null + ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() + : certificateTemplate_; } /** + * + * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplateOrBuilder() { return getCertificateTemplate(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -173,11 +221,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -185,11 +237,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -199,6 +254,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -214,6 +271,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -222,14 +280,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -245,16 +304,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -263,6 +321,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +333,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificateTemplate_ != null) { output.writeMessage(1, getCertificateTemplate()); } @@ -295,12 +353,10 @@ public int getSerializedSize() { size = 0; if (certificateTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificateTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateTemplate()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,25 +369,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.security.privateca.v1.UpdateCertificateTemplateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other = (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) obj; + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other = + (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) obj; if (hasCertificateTemplate() != other.hasCertificateTemplate()) return false; if (hasCertificateTemplate()) { - if (!getCertificateTemplate() - .equals(other.getCertificateTemplate())) return false; + if (!getCertificateTemplate().equals(other.getCertificateTemplate())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -359,96 +413,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest 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.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest 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.security.privateca.v1.UpdateCertificateTemplateRequest + 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.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateTemplate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate].
@@ -456,38 +519,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)
       com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class, com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.class,
+              com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -509,19 +575,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1_UpdateCertificateTemplateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest build() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -530,7 +599,8 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result = new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(this);
+      com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest result =
+          new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(this);
       if (certificateTemplateBuilder_ == null) {
         result.certificateTemplate_ = certificateTemplate_;
       } else {
@@ -550,46 +620,52 @@ public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest b
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest
+              .getDefaultInstance()) return this;
       if (other.hasCertificateTemplate()) {
         mergeCertificateTemplate(other.getCertificateTemplate());
       }
@@ -619,7 +695,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,41 +709,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.CertificateTemplate certificateTemplate_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> certificateTemplateBuilder_;
+            com.google.cloud.security.privateca.v1.CertificateTemplate,
+            com.google.cloud.security.privateca.v1.CertificateTemplate.Builder,
+            com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>
+        certificateTemplateBuilder_;
     /**
+     *
+     *
      * 
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateTemplate field is set. */ public boolean hasCertificateTemplate() { return certificateTemplateBuilder_ != null || certificateTemplate_ != null; } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateTemplate. */ public com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate() { if (certificateTemplateBuilder_ == null) { - return certificateTemplate_ == null ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; + return certificateTemplate_ == null + ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() + : certificateTemplate_; } else { return certificateTemplateBuilder_.getMessage(); } } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder setCertificateTemplate( + com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,11 +777,15 @@ public Builder setCertificateTemplate(com.google.cloud.security.privateca.v1.Cer return this; } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateTemplate( com.google.cloud.security.privateca.v1.CertificateTemplate.Builder builderForValue) { @@ -697,17 +799,25 @@ public Builder setCertificateTemplate( return this; } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateTemplate(com.google.cloud.security.privateca.v1.CertificateTemplate value) { + public Builder mergeCertificateTemplate( + com.google.cloud.security.privateca.v1.CertificateTemplate value) { if (certificateTemplateBuilder_ == null) { if (certificateTemplate_ != null) { certificateTemplate_ = - com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder(certificateTemplate_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.CertificateTemplate.newBuilder( + certificateTemplate_) + .mergeFrom(value) + .buildPartial(); } else { certificateTemplate_ = value; } @@ -719,11 +829,15 @@ public Builder mergeCertificateTemplate(com.google.cloud.security.privateca.v1.C return this; } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateTemplate() { if (certificateTemplateBuilder_ == null) { @@ -737,48 +851,66 @@ public Builder clearCertificateTemplate() { return this; } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder getCertificateTemplateBuilder() { - + public com.google.cloud.security.privateca.v1.CertificateTemplate.Builder + getCertificateTemplateBuilder() { + onChanged(); return getCertificateTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder() { + public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplateOrBuilder() { if (certificateTemplateBuilder_ != null) { return certificateTemplateBuilder_.getMessageOrBuilder(); } else { - return certificateTemplate_ == null ? - com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() : certificateTemplate_; + return certificateTemplate_ == null + ? com.google.cloud.security.privateca.v1.CertificateTemplate.getDefaultInstance() + : certificateTemplate_; } } /** + * + * *
      * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder> getCertificateTemplateFieldBuilder() { if (certificateTemplateBuilder_ == null) { - certificateTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.CertificateTemplate, com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( - getCertificateTemplate(), - getParentForChildren(), - isClean()); + certificateTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateTemplate, + com.google.cloud.security.privateca.v1.CertificateTemplate.Builder, + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder>( + getCertificateTemplate(), getParentForChildren(), isClean()); certificateTemplate_ = null; } return certificateTemplateBuilder_; @@ -786,39 +918,55 @@ public com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCe 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. A 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. A 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. A 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) { @@ -834,14 +982,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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(); @@ -852,17 +1002,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -874,11 +1027,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -892,48 +1048,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -941,6 +1110,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -956,13 +1127,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -971,6 +1142,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -986,15 +1159,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1002,6 +1174,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1017,20 +1191,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1046,15 +1222,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1070,23 +1249,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1096,30 +1275,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) - private static final com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest(); } - public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateTemplateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateTemplateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,9 +1313,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java index 079428f5..972c9e7a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/UpdateCertificateTemplateRequestOrBuilder.java @@ -1,67 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/service.proto package com.google.cloud.security.privateca.v1; -public interface UpdateCertificateTemplateRequestOrBuilder extends +public interface UpdateCertificateTemplateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.UpdateCertificateTemplateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateTemplate field is set. */ boolean hasCertificateTemplate(); /** + * + * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateTemplate. */ com.google.cloud.security.privateca.v1.CertificateTemplate getCertificateTemplate(); /** + * + * *
    * Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.CertificateTemplate certificate_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder getCertificateTemplateOrBuilder(); + com.google.cloud.security.privateca.v1.CertificateTemplateOrBuilder + getCertificateTemplateOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +121,13 @@ public interface UpdateCertificateTemplateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +143,8 @@ public interface UpdateCertificateTemplateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java index aed6610a..7a40a5c4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Extension.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * An [X509Extension][google.cloud.security.privateca.v1.X509Extension] specifies an X.509 extension, which may be used in
  * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.X509Extension}
  */
-public final class X509Extension extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class X509Extension extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.X509Extension)
     X509ExtensionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use X509Extension.newBuilder() to construct.
   private X509Extension(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private X509Extension() {
     value_ = 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 X509Extension();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private X509Extension(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,36 +71,39 @@ private X509Extension(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.ObjectId.Builder subBuilder = null;
-            if (objectId_ != null) {
-              subBuilder = objectId_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.ObjectId.Builder subBuilder = null;
+              if (objectId_ != null) {
+                subBuilder = objectId_.toBuilder();
+              }
+              objectId_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(objectId_);
+                objectId_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            objectId_ = input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(objectId_);
-              objectId_ = subBuilder.buildPartial();
+          case 16:
+            {
+              critical_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 16: {
-
-            critical_ = input.readBool();
-            break;
-          }
-          case 26: {
-
-            value_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              value_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,34 +111,41 @@ private X509Extension(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.X509Extension.class, com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
+            com.google.cloud.security.privateca.v1.X509Extension.class,
+            com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
   }
 
   public static final int OBJECT_ID_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1.ObjectId objectId_;
   /**
+   *
+   *
    * 
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the objectId field is set. */ @java.lang.Override @@ -126,23 +153,34 @@ public boolean hasObjectId() { return objectId_ != null; } /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The objectId. */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getObjectId() { - return objectId_ == null ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() : objectId_; + return objectId_ == null + ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() + : objectId_; } /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder() { @@ -152,6 +190,8 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBui public static final int CRITICAL_FIELD_NUMBER = 2; private boolean critical_; /** + * + * *
    * Optional. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -159,6 +199,7 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBui
    * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The critical. */ @java.lang.Override @@ -169,11 +210,14 @@ public boolean getCritical() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** + * + * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -182,6 +226,7 @@ public com.google.protobuf.ByteString getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +238,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (objectId_ != null) { output.writeMessage(1, getObjectId()); } @@ -214,16 +258,13 @@ public int getSerializedSize() { size = 0; if (objectId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObjectId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObjectId()); } if (critical_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, critical_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, critical_); } if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, value_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +274,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.security.privateca.v1.X509Extension)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.X509Extension other = (com.google.cloud.security.privateca.v1.X509Extension) obj; + com.google.cloud.security.privateca.v1.X509Extension other = + (com.google.cloud.security.privateca.v1.X509Extension) obj; if (hasObjectId() != other.hasObjectId()) return false; if (hasObjectId()) { - if (!getObjectId() - .equals(other.getObjectId())) return false; + if (!getObjectId().equals(other.getObjectId())) return false; } - if (getCritical() - != other.getCritical()) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (getCritical() != other.getCritical()) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,8 +304,7 @@ public int hashCode() { hash = (53 * hash) + getObjectId().hashCode(); } hash = (37 * hash) + CRITICAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCritical()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCritical()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -275,96 +313,103 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.X509Extension 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.security.privateca.v1.X509Extension parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Extension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Extension parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.X509Extension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Extension parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Extension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1.X509Extension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [X509Extension][google.cloud.security.privateca.v1.X509Extension] specifies an X.509 extension, which may be used in
    * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -372,21 +417,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.X509Extension}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.X509Extension)
       com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_X509Extension_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.X509Extension.class, com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
+              com.google.cloud.security.privateca.v1.X509Extension.class,
+              com.google.cloud.security.privateca.v1.X509Extension.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.X509Extension.newBuilder()
@@ -394,16 +441,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -421,9 +467,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_X509Extension_descriptor;
     }
 
     @java.lang.Override
@@ -442,7 +488,8 @@ public com.google.cloud.security.privateca.v1.X509Extension build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.X509Extension buildPartial() {
-      com.google.cloud.security.privateca.v1.X509Extension result = new com.google.cloud.security.privateca.v1.X509Extension(this);
+      com.google.cloud.security.privateca.v1.X509Extension result =
+          new com.google.cloud.security.privateca.v1.X509Extension(this);
       if (objectIdBuilder_ == null) {
         result.objectId_ = objectId_;
       } else {
@@ -458,38 +505,39 @@ public com.google.cloud.security.privateca.v1.X509Extension buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.X509Extension) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.X509Extension)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.X509Extension) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -497,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Extension other) {
-      if (other == com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance())
+        return this;
       if (other.hasObjectId()) {
         mergeObjectId(other.getObjectId());
       }
@@ -526,7 +575,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.X509Extension) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.X509Extension) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -538,39 +588,58 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1.ObjectId objectId_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> objectIdBuilder_;
+            com.google.cloud.security.privateca.v1.ObjectId,
+            com.google.cloud.security.privateca.v1.ObjectId.Builder,
+            com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>
+        objectIdBuilder_;
     /**
+     *
+     *
      * 
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the objectId field is set. */ public boolean hasObjectId() { return objectIdBuilder_ != null || objectId_ != null; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The objectId. */ public com.google.cloud.security.privateca.v1.ObjectId getObjectId() { if (objectIdBuilder_ == null) { - return objectId_ == null ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() : objectId_; + return objectId_ == null + ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() + : objectId_; } else { return objectIdBuilder_.getMessage(); } } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setObjectId(com.google.cloud.security.privateca.v1.ObjectId value) { if (objectIdBuilder_ == null) { @@ -586,11 +655,15 @@ public Builder setObjectId(com.google.cloud.security.privateca.v1.ObjectId value return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setObjectId( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -604,17 +677,23 @@ public Builder setObjectId( return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeObjectId(com.google.cloud.security.privateca.v1.ObjectId value) { if (objectIdBuilder_ == null) { if (objectId_ != null) { objectId_ = - com.google.cloud.security.privateca.v1.ObjectId.newBuilder(objectId_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.ObjectId.newBuilder(objectId_) + .mergeFrom(value) + .buildPartial(); } else { objectId_ = value; } @@ -626,11 +705,15 @@ public Builder mergeObjectId(com.google.cloud.security.privateca.v1.ObjectId val return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearObjectId() { if (objectIdBuilder_ == null) { @@ -644,55 +727,73 @@ public Builder clearObjectId() { return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.ObjectId.Builder getObjectIdBuilder() { - + onChanged(); return getObjectIdFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder() { if (objectIdBuilder_ != null) { return objectIdBuilder_.getMessageOrBuilder(); } else { - return objectId_ == null ? - com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() : objectId_; + return objectId_ == null + ? com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance() + : objectId_; } } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getObjectIdFieldBuilder() { if (objectIdBuilder_ == null) { - objectIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( - getObjectId(), - getParentForChildren(), - isClean()); + objectIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + getObjectId(), getParentForChildren(), isClean()); objectId_ = null; } return objectIdBuilder_; } - private boolean critical_ ; + private boolean critical_; /** + * + * *
      * Optional. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -700,6 +801,7 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBui
      * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The critical. */ @java.lang.Override @@ -707,6 +809,8 @@ public boolean getCritical() { return critical_; } /** + * + * *
      * Optional. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -714,16 +818,19 @@ public boolean getCritical() {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The critical to set. * @return This builder for chaining. */ public Builder setCritical(boolean value) { - + critical_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -731,10 +838,11 @@ public Builder setCritical(boolean value) {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCritical() { - + critical_ = false; onChanged(); return this; @@ -742,11 +850,14 @@ public Builder clearCritical() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -754,40 +865,46 @@ public com.google.protobuf.ByteString getValue() { return value_; } /** + * + * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } + @java.lang.Override - 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 +914,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.X509Extension) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.X509Extension) private static final com.google.cloud.security.privateca.v1.X509Extension DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.X509Extension(); } @@ -811,16 +928,16 @@ public static com.google.cloud.security.privateca.v1.X509Extension getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509Extension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509Extension(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509Extension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509Extension(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.X509Extension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java index b0774af2..2c869385 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ExtensionOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface X509ExtensionOrBuilder extends +public interface X509ExtensionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.X509Extension) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the objectId field is set. */ boolean hasObjectId(); /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The objectId. */ com.google.cloud.security.privateca.v1.ObjectId getObjectId(); /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getObjectIdOrBuilder(); /** + * + * *
    * Optional. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -42,16 +74,20 @@ public interface X509ExtensionOrBuilder extends
    * 
* * bool critical = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The critical. */ boolean getCritical(); /** + * + * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ com.google.protobuf.ByteString getValue(); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java index b500a6a4..291e10cf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509Parameters.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; /** + * + * *
  * An [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an
  * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters}
  */
-public final class X509Parameters extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class X509Parameters extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.X509Parameters)
     X509ParametersOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use X509Parameters.newBuilder() to construct.
   private X509Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private X509Parameters() {
     policyIds_ = java.util.Collections.emptyList();
     aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -29,16 +47,15 @@ private X509Parameters() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new X509Parameters();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private X509Parameters(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,66 +75,82 @@ private X509Parameters(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1.KeyUsage.Builder subBuilder = null;
-            if (keyUsage_ != null) {
-              subBuilder = keyUsage_.toBuilder();
-            }
-            keyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1.KeyUsage.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(keyUsage_);
-              keyUsage_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1.KeyUsage.Builder subBuilder = null;
+              if (keyUsage_ != null) {
+                subBuilder = keyUsage_.toBuilder();
+              }
+              keyUsage_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.KeyUsage.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(keyUsage_);
+                keyUsage_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder subBuilder = null;
-            if (caOptions_ != null) {
-              subBuilder = caOptions_.toBuilder();
-            }
-            caOptions_ = input.readMessage(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(caOptions_);
-              caOptions_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder subBuilder =
+                  null;
+              if (caOptions_ != null) {
+                subBuilder = caOptions_.toBuilder();
+              }
+              caOptions_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(caOptions_);
+                caOptions_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              policyIds_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            policyIds_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                policyIds_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              policyIds_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.ObjectId.parser(), extensionRegistry));
+              break;
             }
-            aiaOcspServers_.add(s);
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              additionalExtensions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              aiaOcspServers_.add(s);
+              break;
             }
-            additionalExtensions_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1.X509Extension.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                additionalExtensions_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              additionalExtensions_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1.X509Extension.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,8 +158,7 @@ private X509Parameters(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         policyIds_ = java.util.Collections.unmodifiableList(policyIds_);
@@ -141,45 +173,57 @@ private X509Parameters(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1.X509Parameters.class, com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
+            com.google.cloud.security.privateca.v1.X509Parameters.class,
+            com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
   }
 
-  public interface CaOptionsOrBuilder extends
+  public interface CaOptionsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.X509Parameters.CaOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the isCa field is set. */ boolean hasIsCa(); /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isCa. */ boolean getIsCa(); /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -189,11 +233,15 @@ public interface CaOptionsOrBuilder extends
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxIssuerPathLength field is set. */ boolean hasMaxIssuerPathLength(); /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -203,42 +251,45 @@ public interface CaOptionsOrBuilder extends
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxIssuerPathLength. */ int getMaxIssuerPathLength(); } /** + * + * *
    * Describes values that are relevant in a CA certificate.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters.CaOptions} */ - public static final class CaOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CaOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.X509Parameters.CaOptions) CaOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CaOptions.newBuilder() to construct. private CaOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CaOptions() { - } + + private CaOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CaOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CaOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -258,23 +309,25 @@ private CaOptions( case 0: done = true; break; - case 8: { - bitField0_ |= 0x00000001; - isCa_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - maxIssuerPathLength_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + bitField0_ |= 0x00000001; + isCa_ = input.readBool(); + break; + } + case 16: + { + bitField0_ |= 0x00000002; + maxIssuerPathLength_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -282,36 +335,41 @@ private CaOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); } private int bitField0_; public static final int IS_CA_FIELD_NUMBER = 1; private boolean isCa_; /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the isCa field is set. */ @java.lang.Override @@ -319,12 +377,15 @@ public boolean hasIsCa() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isCa. */ @java.lang.Override @@ -335,6 +396,8 @@ public boolean getIsCa() { public static final int MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER = 2; private int maxIssuerPathLength_; /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -344,7 +407,9 @@ public boolean getIsCa() {
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxIssuerPathLength field is set. */ @java.lang.Override @@ -352,6 +417,8 @@ public boolean hasMaxIssuerPathLength() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -361,7 +428,9 @@ public boolean hasMaxIssuerPathLength() {
      * CA certificate.
      * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxIssuerPathLength. */ @java.lang.Override @@ -370,6 +439,7 @@ public int getMaxIssuerPathLength() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,8 +451,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, isCa_); } @@ -399,12 +468,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isCa_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isCa_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxIssuerPathLength_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxIssuerPathLength_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -414,22 +481,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.security.privateca.v1.X509Parameters.CaOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other = (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) obj; + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other = + (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) obj; if (hasIsCa() != other.hasIsCa()) return false; if (hasIsCa()) { - if (getIsCa() - != other.getIsCa()) return false; + if (getIsCa() != other.getIsCa()) return false; } if (hasMaxIssuerPathLength() != other.hasMaxIssuerPathLength()) return false; if (hasMaxIssuerPathLength()) { - if (getMaxIssuerPathLength() - != other.getMaxIssuerPathLength()) return false; + if (getMaxIssuerPathLength() != other.getMaxIssuerPathLength()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -444,8 +510,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasIsCa()) { hash = (37 * hash) + IS_CA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCa()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCa()); } if (hasMaxIssuerPathLength()) { hash = (37 * hash) + MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER; @@ -457,87 +522,95 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions 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.security.privateca.v1.X509Parameters.CaOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions 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.security.privateca.v1.X509Parameters.CaOptions + 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.security.privateca.v1.X509Parameters.CaOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -547,44 +620,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes values that are relevant in a CA certificate.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters.CaOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.X509Parameters.CaOptions) com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.class, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -596,13 +674,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_X509Parameters_CaOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance(); } @@ -617,7 +696,8 @@ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions build() { @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions buildPartial() { - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions result = new com.google.cloud.security.privateca.v1.X509Parameters.CaOptions(this); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions result = + new com.google.cloud.security.privateca.v1.X509Parameters.CaOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -637,46 +717,52 @@ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1.X509Parameters.CaOptions) { - return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters.CaOptions)other); + return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other) { - if (other == com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions other) { + if (other + == com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance()) + return this; if (other.hasIsCa()) { setIsCa(other.getIsCa()); } @@ -702,7 +788,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1.X509Parameters.CaOptions) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,16 +799,20 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private boolean isCa_ ; + private boolean isCa_; /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the isCa field is set. */ @java.lang.Override @@ -728,12 +820,15 @@ public boolean hasIsCa() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isCa. */ @java.lang.Override @@ -741,12 +836,15 @@ public boolean getIsCa() { return isCa_; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The isCa to set. * @return This builder for chaining. */ @@ -757,12 +855,15 @@ public Builder setIsCa(boolean value) { return this; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* * optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIsCa() { @@ -772,8 +873,10 @@ public Builder clearIsCa() { return this; } - private int maxIssuerPathLength_ ; + private int maxIssuerPathLength_; /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -783,7 +886,9 @@ public Builder clearIsCa() {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxIssuerPathLength field is set. */ @java.lang.Override @@ -791,6 +896,8 @@ public boolean hasMaxIssuerPathLength() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -800,7 +907,9 @@ public boolean hasMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxIssuerPathLength. */ @java.lang.Override @@ -808,6 +917,8 @@ public int getMaxIssuerPathLength() { return maxIssuerPathLength_; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -817,7 +928,9 @@ public int getMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The maxIssuerPathLength to set. * @return This builder for chaining. */ @@ -828,6 +941,8 @@ public Builder setMaxIssuerPathLength(int value) { return this; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -837,7 +952,9 @@ public Builder setMaxIssuerPathLength(int value) {
        * CA certificate.
        * 
* - * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMaxIssuerPathLength() { @@ -846,6 +963,7 @@ public Builder clearMaxIssuerPathLength() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -858,30 +976,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.X509Parameters.CaOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.X509Parameters.CaOptions) - private static final com.google.cloud.security.privateca.v1.X509Parameters.CaOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1.X509Parameters.CaOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.X509Parameters.CaOptions(); } - public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1.X509Parameters.CaOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CaOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -893,20 +1013,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.KeyUsage keyUsage_; /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the keyUsage field is set. */ @java.lang.Override @@ -914,23 +1039,34 @@ public boolean hasKeyUsage() { return keyUsage_ != null; } /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The keyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1.KeyUsage getKeyUsage() { - return keyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() : keyUsage_; + return keyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() + : keyUsage_; } /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBuilder() { @@ -940,12 +1076,17 @@ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBui public static final int CA_OPTIONS_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters.CaOptions caOptions_; /** + * + * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the caOptions field is set. */ @java.lang.Override @@ -953,99 +1094,132 @@ public boolean hasCaOptions() { return caOptions_ != null; } /** + * + * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The caOptions. */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOptions() { - return caOptions_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() : caOptions_; + return caOptions_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() + : caOptions_; } /** + * + * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder + getCaOptionsOrBuilder() { return getCaOptions(); } public static final int POLICY_IDS_FIELD_NUMBER = 3; private java.util.List policyIds_; /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getPolicyIdsList() { return policyIds_; } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPolicyIdsOrBuilderList() { return policyIds_; } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getPolicyIdsCount() { return policyIds_.size(); } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index) { return policyIds_.get(index); } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(int index) { return policyIds_.get(index); } public static final int AIA_OCSP_SERVERS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList aiaOcspServers_; /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1053,13 +1227,15 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBu
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList - getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { return aiaOcspServers_; } /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1067,12 +1243,15 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBu
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1080,6 +1259,7 @@ public int getAiaOcspServersCount() {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -1087,6 +1267,8 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1094,75 +1276,98 @@ public java.lang.String getAiaOcspServers(int index) {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString - getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 5; - private java.util.List additionalExtensions_; + private java.util.List + additionalExtensions_; /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAdditionalExtensionsList() { + public java.util.List + getAdditionalExtensionsList() { return additionalExtensions_; } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getAdditionalExtensionsOrBuilderList() { return additionalExtensions_; } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAdditionalExtensionsCount() { return additionalExtensions_.size(); } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensions(int index) { return additionalExtensions_.get(index); } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder + getAdditionalExtensionsOrBuilder(int index) { return additionalExtensions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1174,8 +1379,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (keyUsage_ != null) { output.writeMessage(1, getKeyUsage()); } @@ -1201,16 +1405,13 @@ public int getSerializedSize() { size = 0; if (keyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKeyUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyUsage()); } if (caOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCaOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCaOptions()); } for (int i = 0; i < policyIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, policyIds_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyIds_.get(i)); } { int dataSize = 0; @@ -1221,8 +1422,8 @@ public int getSerializedSize() { size += 1 * getAiaOcspServersList().size(); } for (int i = 0; i < additionalExtensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, additionalExtensions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, additionalExtensions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1232,29 +1433,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.security.privateca.v1.X509Parameters)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1.X509Parameters other = (com.google.cloud.security.privateca.v1.X509Parameters) obj; + com.google.cloud.security.privateca.v1.X509Parameters other = + (com.google.cloud.security.privateca.v1.X509Parameters) obj; if (hasKeyUsage() != other.hasKeyUsage()) return false; if (hasKeyUsage()) { - if (!getKeyUsage() - .equals(other.getKeyUsage())) return false; + if (!getKeyUsage().equals(other.getKeyUsage())) return false; } if (hasCaOptions() != other.hasCaOptions()) return false; if (hasCaOptions()) { - if (!getCaOptions() - .equals(other.getCaOptions())) return false; - } - if (!getPolicyIdsList() - .equals(other.getPolicyIdsList())) return false; - if (!getAiaOcspServersList() - .equals(other.getAiaOcspServersList())) return false; - if (!getAdditionalExtensionsList() - .equals(other.getAdditionalExtensionsList())) return false; + if (!getCaOptions().equals(other.getCaOptions())) return false; + } + if (!getPolicyIdsList().equals(other.getPolicyIdsList())) return false; + if (!getAiaOcspServersList().equals(other.getAiaOcspServersList())) return false; + if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1292,96 +1489,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1.X509Parameters 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.security.privateca.v1.X509Parameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1.X509Parameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1.X509Parameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1.X509Parameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1.X509Parameters prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1.X509Parameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an
    * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -1390,21 +1595,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1.X509Parameters}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.X509Parameters)
       com.google.cloud.security.privateca.v1.X509ParametersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_X509Parameters_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1.X509Parameters.class, com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
+              com.google.cloud.security.privateca.v1.X509Parameters.class,
+              com.google.cloud.security.privateca.v1.X509Parameters.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1.X509Parameters.newBuilder()
@@ -1412,18 +1619,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPolicyIdsFieldBuilder();
         getAdditionalExtensionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1457,9 +1664,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1_X509Parameters_descriptor;
     }
 
     @java.lang.Override
@@ -1478,7 +1685,8 @@ public com.google.cloud.security.privateca.v1.X509Parameters build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1.X509Parameters buildPartial() {
-      com.google.cloud.security.privateca.v1.X509Parameters result = new com.google.cloud.security.privateca.v1.X509Parameters(this);
+      com.google.cloud.security.privateca.v1.X509Parameters result =
+          new com.google.cloud.security.privateca.v1.X509Parameters(this);
       int from_bitField0_ = bitField0_;
       if (keyUsageBuilder_ == null) {
         result.keyUsage_ = keyUsage_;
@@ -1521,38 +1729,39 @@ public com.google.cloud.security.privateca.v1.X509Parameters buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1.X509Parameters) {
-        return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1.X509Parameters) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1560,7 +1769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters other) {
-      if (other == com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance())
+        return this;
       if (other.hasKeyUsage()) {
         mergeKeyUsage(other.getKeyUsage());
       }
@@ -1585,9 +1795,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters o
             policyIdsBuilder_ = null;
             policyIds_ = other.policyIds_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            policyIdsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPolicyIdsFieldBuilder() : null;
+            policyIdsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPolicyIdsFieldBuilder()
+                    : null;
           } else {
             policyIdsBuilder_.addAllMessages(other.policyIds_);
           }
@@ -1621,9 +1832,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.X509Parameters o
             additionalExtensionsBuilder_ = null;
             additionalExtensions_ = other.additionalExtensions_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            additionalExtensionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAdditionalExtensionsFieldBuilder() : null;
+            additionalExtensionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAdditionalExtensionsFieldBuilder()
+                    : null;
           } else {
             additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
           }
@@ -1648,7 +1860,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1.X509Parameters) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1.X509Parameters) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1657,43 +1870,63 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1.KeyUsage keyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1.KeyUsage, com.google.cloud.security.privateca.v1.KeyUsage.Builder, com.google.cloud.security.privateca.v1.KeyUsageOrBuilder> keyUsageBuilder_;
+            com.google.cloud.security.privateca.v1.KeyUsage,
+            com.google.cloud.security.privateca.v1.KeyUsage.Builder,
+            com.google.cloud.security.privateca.v1.KeyUsageOrBuilder>
+        keyUsageBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the keyUsage field is set. */ public boolean hasKeyUsage() { return keyUsageBuilder_ != null || keyUsage_ != null; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The keyUsage. */ public com.google.cloud.security.privateca.v1.KeyUsage getKeyUsage() { if (keyUsageBuilder_ == null) { - return keyUsage_ == null ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() : keyUsage_; + return keyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() + : keyUsage_; } else { return keyUsageBuilder_.getMessage(); } } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage value) { if (keyUsageBuilder_ == null) { @@ -1709,11 +1942,15 @@ public Builder setKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage value return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKeyUsage( com.google.cloud.security.privateca.v1.KeyUsage.Builder builderForValue) { @@ -1727,17 +1964,23 @@ public Builder setKeyUsage( return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage value) { if (keyUsageBuilder_ == null) { if (keyUsage_ != null) { keyUsage_ = - com.google.cloud.security.privateca.v1.KeyUsage.newBuilder(keyUsage_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.KeyUsage.newBuilder(keyUsage_) + .mergeFrom(value) + .buildPartial(); } else { keyUsage_ = value; } @@ -1749,11 +1992,15 @@ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1.KeyUsage val return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKeyUsage() { if (keyUsageBuilder_ == null) { @@ -1767,48 +2014,64 @@ public Builder clearKeyUsage() { return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.KeyUsage.Builder getKeyUsageBuilder() { - + onChanged(); return getKeyUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBuilder() { if (keyUsageBuilder_ != null) { return keyUsageBuilder_.getMessageOrBuilder(); } else { - return keyUsage_ == null ? - com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() : keyUsage_; + return keyUsage_ == null + ? com.google.cloud.security.privateca.v1.KeyUsage.getDefaultInstance() + : keyUsage_; } } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage, com.google.cloud.security.privateca.v1.KeyUsage.Builder, com.google.cloud.security.privateca.v1.KeyUsageOrBuilder> + com.google.cloud.security.privateca.v1.KeyUsage, + com.google.cloud.security.privateca.v1.KeyUsage.Builder, + com.google.cloud.security.privateca.v1.KeyUsageOrBuilder> getKeyUsageFieldBuilder() { if (keyUsageBuilder_ == null) { - keyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.KeyUsage, com.google.cloud.security.privateca.v1.KeyUsage.Builder, com.google.cloud.security.privateca.v1.KeyUsageOrBuilder>( - getKeyUsage(), - getParentForChildren(), - isClean()); + keyUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.KeyUsage, + com.google.cloud.security.privateca.v1.KeyUsage.Builder, + com.google.cloud.security.privateca.v1.KeyUsageOrBuilder>( + getKeyUsage(), getParentForChildren(), isClean()); keyUsage_ = null; } return keyUsageBuilder_; @@ -1816,44 +2079,64 @@ public com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBui private com.google.cloud.security.privateca.v1.X509Parameters.CaOptions caOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> caOptionsBuilder_; + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> + caOptionsBuilder_; /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the caOptions field is set. */ public boolean hasCaOptions() { return caOptionsBuilder_ != null || caOptions_ != null; } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The caOptions. */ public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOptions() { if (caOptionsBuilder_ == null) { - return caOptions_ == null ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() : caOptions_; + return caOptions_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() + : caOptions_; } else { return caOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCaOptions(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { + public Builder setCaOptions( + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { if (caOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1867,12 +2150,16 @@ public Builder setCaOptions(com.google.cloud.security.privateca.v1.X509Parameter return this; } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCaOptions( com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder builderForValue) { @@ -1886,18 +2173,25 @@ public Builder setCaOptions( return this; } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCaOptions(com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { + public Builder mergeCaOptions( + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions value) { if (caOptionsBuilder_ == null) { if (caOptions_ != null) { caOptions_ = - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder(caOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.newBuilder(caOptions_) + .mergeFrom(value) + .buildPartial(); } else { caOptions_ = value; } @@ -1909,12 +2203,16 @@ public Builder mergeCaOptions(com.google.cloud.security.privateca.v1.X509Paramet return this; } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCaOptions() { if (caOptionsBuilder_ == null) { @@ -1928,75 +2226,102 @@ public Builder clearCaOptions() { return this; } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder getCaOptionsBuilder() { - + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder + getCaOptionsBuilder() { + onChanged(); return getCaOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder + getCaOptionsOrBuilder() { if (caOptionsBuilder_ != null) { return caOptionsBuilder_.getMessageOrBuilder(); } else { - return caOptions_ == null ? - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() : caOptions_; + return caOptions_ == null + ? com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.getDefaultInstance() + : caOptions_; } } /** + * + * *
      * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
      * certificate.
      * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder> getCaOptionsFieldBuilder() { if (caOptionsBuilder_ == null) { - caOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder>( - getCaOptions(), - getParentForChildren(), - isClean()); + caOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptions.Builder, + com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder>( + getCaOptions(), getParentForChildren(), isClean()); caOptions_ = null; } return caOptionsBuilder_; } private java.util.List policyIds_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePolicyIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policyIds_ = new java.util.ArrayList(policyIds_); + policyIds_ = + new java.util.ArrayList(policyIds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> policyIdsBuilder_; + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + policyIdsBuilder_; /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getPolicyIdsList() { if (policyIdsBuilder_ == null) { @@ -2006,12 +2331,16 @@ public java.util.List getPolicy } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPolicyIdsCount() { if (policyIdsBuilder_ == null) { @@ -2021,12 +2350,16 @@ public int getPolicyIdsCount() { } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2036,15 +2369,18 @@ public com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index) { } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPolicyIds( - int index, com.google.cloud.security.privateca.v1.ObjectId value) { + public Builder setPolicyIds(int index, com.google.cloud.security.privateca.v1.ObjectId value) { if (policyIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2058,12 +2394,16 @@ public Builder setPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPolicyIds( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -2077,12 +2417,16 @@ public Builder setPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds(com.google.cloud.security.privateca.v1.ObjectId value) { if (policyIdsBuilder_ == null) { @@ -2098,15 +2442,18 @@ public Builder addPolicyIds(com.google.cloud.security.privateca.v1.ObjectId valu return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addPolicyIds( - int index, com.google.cloud.security.privateca.v1.ObjectId value) { + public Builder addPolicyIds(int index, com.google.cloud.security.privateca.v1.ObjectId value) { if (policyIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2120,12 +2467,16 @@ public Builder addPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds( com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -2139,12 +2490,16 @@ public Builder addPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds( int index, com.google.cloud.security.privateca.v1.ObjectId.Builder builderForValue) { @@ -2158,19 +2513,22 @@ public Builder addPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllPolicyIds( java.lang.Iterable values) { if (policyIdsBuilder_ == null) { ensurePolicyIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policyIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyIds_); onChanged(); } else { policyIdsBuilder_.addAllMessages(values); @@ -2178,12 +2536,16 @@ public Builder addAllPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPolicyIds() { if (policyIdsBuilder_ == null) { @@ -2196,12 +2558,16 @@ public Builder clearPolicyIds() { return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removePolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2214,42 +2580,54 @@ public Builder removePolicyIds(int index) { return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder getPolicyIdsBuilder( - int index) { + public com.google.cloud.security.privateca.v1.ObjectId.Builder getPolicyIdsBuilder(int index) { return getPolicyIdsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder( int index) { if (policyIdsBuilder_ == null) { - return policyIds_.get(index); } else { + return policyIds_.get(index); + } else { return policyIdsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPolicyIdsOrBuilderList() { + public java.util.List + getPolicyIdsOrBuilderList() { if (policyIdsBuilder_ != null) { return policyIdsBuilder_.getMessageOrBuilderList(); } else { @@ -2257,65 +2635,83 @@ public com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBu } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.ObjectId.Builder addPolicyIdsBuilder() { - return getPolicyIdsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + return getPolicyIdsFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.ObjectId.Builder addPolicyIdsBuilder( - int index) { - return getPolicyIdsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.ObjectId.Builder addPolicyIdsBuilder(int index) { + return getPolicyIdsFieldBuilder() + .addBuilder(index, com.google.cloud.security.privateca.v1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPolicyIdsBuilderList() { + public java.util.List + getPolicyIdsBuilderList() { return getPolicyIdsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> getPolicyIdsFieldBuilder() { if (policyIdsBuilder_ == null) { - policyIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.ObjectId, com.google.cloud.security.privateca.v1.ObjectId.Builder, com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( - policyIds_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + policyIdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.ObjectId, + com.google.cloud.security.privateca.v1.ObjectId.Builder, + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder>( + policyIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policyIds_ = null; } return policyIdsBuilder_; } - private com.google.protobuf.LazyStringList aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList aiaOcspServers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAiaOcspServersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList(aiaOcspServers_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2323,13 +2719,15 @@ private void ensureAiaOcspServersIsMutable() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList - getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { return aiaOcspServers_.getUnmodifiableView(); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2337,12 +2735,15 @@ private void ensureAiaOcspServersIsMutable() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2350,6 +2751,7 @@ public int getAiaOcspServersCount() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -2357,6 +2759,8 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2364,14 +2768,16 @@ public java.lang.String getAiaOcspServers(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString - getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2379,21 +2785,23 @@ public java.lang.String getAiaOcspServers(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The aiaOcspServers to set. * @return This builder for chaining. */ - public Builder setAiaOcspServers( - int index, java.lang.String value) { + public Builder setAiaOcspServers(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2401,20 +2809,22 @@ public Builder setAiaOcspServers(
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServers( - java.lang.String value) { + public Builder addAiaOcspServers(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2422,18 +2832,19 @@ public Builder addAiaOcspServers(
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAllAiaOcspServers( - java.lang.Iterable values) { + public Builder addAllAiaOcspServers(java.lang.Iterable values) { ensureAiaOcspServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aiaOcspServers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaOcspServers_); onChanged(); return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2441,6 +2852,7 @@ public Builder addAllAiaOcspServers(
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAiaOcspServers() { @@ -2450,6 +2862,8 @@ public Builder clearAiaOcspServers() { return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2457,41 +2871,52 @@ public Builder clearAiaOcspServers() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServersBytes( - com.google.protobuf.ByteString value) { + public Builder addAiaOcspServersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } - private java.util.List additionalExtensions_ = - java.util.Collections.emptyList(); + private java.util.List + additionalExtensions_ = java.util.Collections.emptyList(); + private void ensureAdditionalExtensionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - additionalExtensions_ = new java.util.ArrayList(additionalExtensions_); + additionalExtensions_ = + new java.util.ArrayList( + additionalExtensions_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> additionalExtensionsBuilder_; + com.google.cloud.security.privateca.v1.X509Extension, + com.google.cloud.security.privateca.v1.X509Extension.Builder, + com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> + additionalExtensionsBuilder_; /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAdditionalExtensionsList() { + public java.util.List + getAdditionalExtensionsList() { if (additionalExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalExtensions_); } else { @@ -2499,11 +2924,15 @@ public java.util.List getA } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAdditionalExtensionsCount() { if (additionalExtensionsBuilder_ == null) { @@ -2513,11 +2942,15 @@ public int getAdditionalExtensionsCount() { } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -2527,11 +2960,15 @@ public com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensi } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension value) { @@ -2548,11 +2985,15 @@ public Builder setAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension.Builder builderForValue) { @@ -2566,13 +3007,18 @@ public Builder setAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.X509Extension value) { + public Builder addAdditionalExtensions( + com.google.cloud.security.privateca.v1.X509Extension value) { if (additionalExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2586,11 +3032,15 @@ public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1.X5 return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension value) { @@ -2607,11 +3057,15 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( com.google.cloud.security.privateca.v1.X509Extension.Builder builderForValue) { @@ -2625,11 +3079,15 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1.X509Extension.Builder builderForValue) { @@ -2643,18 +3101,21 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAdditionalExtensions( java.lang.Iterable values) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_); onChanged(); } else { additionalExtensionsBuilder_.addAllMessages(values); @@ -2662,11 +3123,15 @@ public Builder addAllAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAdditionalExtensions() { if (additionalExtensionsBuilder_ == null) { @@ -2679,11 +3144,15 @@ public Builder clearAdditionalExtensions() { return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -2696,39 +3165,52 @@ public Builder removeAdditionalExtensions(int index) { return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Extension.Builder getAdditionalExtensionsBuilder( - int index) { + public com.google.cloud.security.privateca.v1.X509Extension.Builder + getAdditionalExtensionsBuilder(int index) { return getAdditionalExtensionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder + getAdditionalExtensionsOrBuilder(int index) { if (additionalExtensionsBuilder_ == null) { - return additionalExtensions_.get(index); } else { + return additionalExtensions_.get(index); + } else { return additionalExtensionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdditionalExtensionsOrBuilderList() { + public java.util.List + getAdditionalExtensionsOrBuilderList() { if (additionalExtensionsBuilder_ != null) { return additionalExtensionsBuilder_.getMessageOrBuilderList(); } else { @@ -2736,45 +3218,65 @@ public com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAddition } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Extension.Builder addAdditionalExtensionsBuilder() { - return getAdditionalExtensionsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.X509Extension.Builder + addAdditionalExtensionsBuilder() { + return getAdditionalExtensionsFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1.X509Extension.Builder addAdditionalExtensionsBuilder( - int index) { - return getAdditionalExtensionsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1.X509Extension.Builder + addAdditionalExtensionsBuilder(int index) { + return getAdditionalExtensionsFieldBuilder() + .addBuilder( + index, com.google.cloud.security.privateca.v1.X509Extension.getDefaultInstance()); } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdditionalExtensionsBuilderList() { + public java.util.List + getAdditionalExtensionsBuilderList() { return getAdditionalExtensionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> + com.google.cloud.security.privateca.v1.X509Extension, + com.google.cloud.security.privateca.v1.X509Extension.Builder, + com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> getAdditionalExtensionsFieldBuilder() { if (additionalExtensionsBuilder_ == null) { - additionalExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1.X509Extension, com.google.cloud.security.privateca.v1.X509Extension.Builder, com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>( + additionalExtensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1.X509Extension, + com.google.cloud.security.privateca.v1.X509Extension.Builder, + com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder>( additionalExtensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2783,9 +3285,9 @@ public com.google.cloud.security.privateca.v1.X509Extension.Builder addAdditiona } return additionalExtensionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2795,12 +3297,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1.X509Parameters) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.X509Parameters) private static final com.google.cloud.security.privateca.v1.X509Parameters DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.X509Parameters(); } @@ -2809,16 +3311,16 @@ public static com.google.cloud.security.privateca.v1.X509Parameters getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509Parameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509Parameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509Parameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509Parameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2833,6 +3335,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1.X509Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java rename to proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java index aa7aff03..7445acd2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/X509ParametersOrBuilder.java @@ -1,119 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1/resources.proto package com.google.cloud.security.privateca.v1; -public interface X509ParametersOrBuilder extends +public interface X509ParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.X509Parameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the keyUsage field is set. */ boolean hasKeyUsage(); /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The keyUsage. */ com.google.cloud.security.privateca.v1.KeyUsage getKeyUsage(); /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.KeyUsageOrBuilder getKeyUsageOrBuilder(); /** + * + * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the caOptions field is set. */ boolean hasCaOptions(); /** + * + * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The caOptions. */ com.google.cloud.security.privateca.v1.X509Parameters.CaOptions getCaOptions(); /** + * + * *
    * Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA
    * certificate.
    * 
* - * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getPolicyIdsList(); + java.util.List getPolicyIdsList(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.ObjectId getPolicyIds(int index); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPolicyIdsCount(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getPolicyIdsOrBuilderList(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder( - int index); + com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(int index); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -121,11 +185,13 @@ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the aiaOcspServers. */ - java.util.List - getAiaOcspServersList(); + java.util.List getAiaOcspServersList(); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -133,10 +199,13 @@ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of aiaOcspServers. */ int getAiaOcspServersCount(); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -144,11 +213,14 @@ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ java.lang.String getAiaOcspServers(int index); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -156,52 +228,72 @@ com.google.cloud.security.privateca.v1.ObjectIdOrBuilder getPolicyIdsOrBuilder(
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - com.google.protobuf.ByteString - getAiaOcspServersBytes(int index); + com.google.protobuf.ByteString getAiaOcspServersBytes(int index); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAdditionalExtensionsList(); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.X509Extension getAdditionalExtensions(int index); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAdditionalExtensionsCount(); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAdditionalExtensionsOrBuilderList(); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto b/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto rename to proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto b/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto rename to proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java index 787d85ee..951bf15f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
@@ -11,15 +28,18 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest}
  */
-public final class ActivateCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ActivateCertificateAuthorityRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)
     ActivateCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ActivateCertificateAuthorityRequest.newBuilder() to construct.
-  private ActivateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ActivateCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ActivateCertificateAuthorityRequest() {
     name_ = "";
     pemCaCertificate_ = "";
@@ -28,16 +48,15 @@ private ActivateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ActivateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ActivateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,44 +75,52 @@ private ActivateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pemCaCertificate_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder = null;
-            if (subordinateConfig_ != null) {
-              subBuilder = subordinateConfig_.toBuilder();
+              name_ = s;
+              break;
             }
-            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subordinateConfig_);
-              subordinateConfig_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              pemCaCertificate_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder =
+                  null;
+              if (subordinateConfig_ != null) {
+                subBuilder = subordinateConfig_.toBuilder();
+              }
+              subordinateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subordinateConfig_);
+                subordinateConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,35 +128,43 @@ private ActivateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -138,30 +173,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -172,12 +209,15 @@ public java.lang.String getName() { public static final int PEM_CA_CERTIFICATE_FIELD_NUMBER = 2; private volatile java.lang.Object pemCaCertificate_; /** + * + * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pemCaCertificate. */ @java.lang.Override @@ -186,30 +226,30 @@ public java.lang.String getPemCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; } } /** + * + * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for pemCaCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCaCertificateBytes() { + public com.google.protobuf.ByteString getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -220,12 +260,17 @@ public java.lang.String getPemCaCertificate() { public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -233,34 +278,48 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -276,6 +335,7 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder ge
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -284,14 +344,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -307,16 +368,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -325,6 +385,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +397,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -366,8 +426,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pemCaCertificate_); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubordinateConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -380,24 +439,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.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPemCaCertificate() - .equals(other.getPemCaCertificate())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPemCaCertificate().equals(other.getPemCaCertificate())) return false; if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig() - .equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,136 +482,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest 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.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + 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.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -573,19 +649,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -593,8 +672,10 @@ public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest result = + new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(this); result.name_ = name_; result.pemCaCertificate_ = pemCaCertificate_; if (subordinateConfigBuilder_ == null) { @@ -611,46 +692,54 @@ public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -681,11 +770,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,19 +789,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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; @@ -718,21 +814,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -740,57 +839,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -798,19 +910,21 @@ public Builder setNameBytes( private java.lang.Object pemCaCertificate_ = ""; /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pemCaCertificate. */ public java.lang.String getPemCaCertificate() { java.lang.Object ref = pemCaCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCaCertificate_ = s; return s; @@ -819,21 +933,22 @@ public java.lang.String getPemCaCertificate() { } } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for pemCaCertificate. */ - public com.google.protobuf.ByteString - getPemCaCertificateBytes() { + public com.google.protobuf.ByteString getPemCaCertificateBytes() { java.lang.Object ref = pemCaCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCaCertificate_ = b; return b; } else { @@ -841,57 +956,64 @@ public java.lang.String getPemCaCertificate() { } } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificate( - java.lang.String value) { + public Builder setPemCaCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCaCertificate_ = value; onChanged(); return this; } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPemCaCertificate() { - + pemCaCertificate_ = getDefaultInstance().getPemCaCertificate(); onChanged(); return this; } /** + * + * *
      * Required. The signed CA certificate issued from
      * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
      * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for pemCaCertificate to set. * @return This builder for chaining. */ - public Builder setPemCaCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCaCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCaCertificate_ = value; onChanged(); return this; @@ -899,44 +1021,64 @@ public Builder setPemCaCertificateBytes( private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> + subordinateConfigBuilder_; /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder setSubordinateConfig( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -950,12 +1092,16 @@ public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1beta1. return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder builderForValue) { @@ -969,18 +1115,26 @@ public Builder setSubordinateConfig( return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder mergeSubordinateConfig( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder( + subordinateConfig_) + .mergeFrom(value) + .buildPartial(); } else { subordinateConfig_ = value; } @@ -992,12 +1146,16 @@ public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -1011,51 +1169,69 @@ public Builder clearSubordinateConfig() { return this; } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder + getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null ? - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } } /** + * + * *
      * Required. Must include information about the issuer of 'pem_ca_certificate', and any
      * further issuers until the self-signed CA.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), - getParentForChildren(), - isClean()); + subordinateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), getParentForChildren(), isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -1063,6 +1239,8 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder ge private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1078,13 +1256,13 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder ge
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1093,6 +1271,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1108,15 +1288,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1124,6 +1303,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1139,20 +1320,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1168,15 +1351,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1192,23 +1378,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1218,30 +1404,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .ActivateCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActivateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActivateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActivateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,9 +1443,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java index 638ca246..ee7618bf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ActivateCertificateAuthorityRequestOrBuilder.java @@ -1,87 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ActivateCertificateAuthorityRequestOrBuilder extends +public interface ActivateCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pemCaCertificate. */ java.lang.String getPemCaCertificate(); /** + * + * *
    * Required. The signed CA certificate issued from
    * [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.pem_csr].
    * 
* * string pem_ca_certificate = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for pemCaCertificate. */ - com.google.protobuf.ByteString - getPemCaCertificateBytes(); + com.google.protobuf.ByteString getPemCaCertificateBytes(); /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig(); /** + * + * *
    * Required. Must include information about the issuer of 'pem_ca_certificate', and any
    * further issuers until the self-signed CA.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -97,10 +144,13 @@ public interface ActivateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -116,8 +166,8 @@ public interface ActivateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java index 3efed0a7..88438ae7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Certificate.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] corresponds to a signed X.509 certificate issued by a
  * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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() {
     name_ = "";
     pemCertificate_ = "";
@@ -28,16 +46,15 @@ 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;
   }
+
   private Certificate(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,132 +74,162 @@ private Certificate(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            certificateConfigCase_ = 2;
-            certificateConfig_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder = null;
-            if (certificateConfigCase_ == 3) {
-              subBuilder = ((com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_).toBuilder();
-            }
-            certificateConfig_ =
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_);
-              certificateConfig_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
-            certificateConfigCase_ = 3;
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (lifetime_ != null) {
-              subBuilder = lifetime_.toBuilder();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              certificateConfigCase_ = 2;
+              certificateConfig_ = s;
+              break;
             }
-            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lifetime_);
-              lifetime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder =
+                  null;
+              if (certificateConfigCase_ == 3) {
+                subBuilder =
+                    ((com.google.cloud.security.privateca.v1beta1.CertificateConfig)
+                            certificateConfig_)
+                        .toBuilder();
+              }
+              certificateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.security.privateca.v1beta1.CertificateConfig)
+                        certificateConfig_);
+                certificateConfig_ = subBuilder.buildPartial();
+              }
+              certificateConfigCase_ = 3;
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (lifetime_ != null) {
+                subBuilder = lifetime_.toBuilder();
+              }
+              lifetime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lifetime_);
+                lifetime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 42: {
-            com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder subBuilder = null;
-            if (revocationDetails_ != null) {
-              subBuilder = revocationDetails_.toBuilder();
-            }
-            revocationDetails_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(revocationDetails_);
-              revocationDetails_ = subBuilder.buildPartial();
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder
+                  subBuilder = null;
+              if (revocationDetails_ != null) {
+                subBuilder = revocationDetails_.toBuilder();
+              }
+              revocationDetails_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(revocationDetails_);
+                revocationDetails_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pemCertificate_ = s;
-            break;
-          }
-          case 58: {
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder subBuilder = null;
-            if (certificateDescription_ != null) {
-              subBuilder = certificateDescription_.toBuilder();
-            }
-            certificateDescription_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateDescription_);
-              certificateDescription_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              pemCertificate_ = s;
+              break;
             }
-            pemCertificateChain_.add(s);
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 58:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder
+                  subBuilder = null;
+              if (certificateDescription_ != null) {
+                subBuilder = certificateDescription_.toBuilder();
+              }
+              certificateDescription_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateDescription_);
+                certificateDescription_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pemCertificateChain_.add(s);
+              break;
             }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 90:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -190,8 +237,7 @@ private Certificate(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCertificateChain_ = pemCertificateChain_.getUnmodifiableView();
@@ -200,73 +246,90 @@ private Certificate(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_Certificate_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 11:
         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.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.Certificate.class, com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.Certificate.class,
+            com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
   }
 
-  public interface RevocationDetailsOrBuilder extends
+  public interface RevocationDetailsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * * @return The enum numeric value on the wire for revocationState. */ int getRevocationStateValue(); /** + * + * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * * @return The revocationState. */ com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState(); /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return Whether the revocationTime field is set. */ boolean hasRevocationTime(); /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return The revocationTime. */ com.google.protobuf.Timestamp getRevocationTime(); /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
@@ -276,37 +339,39 @@ public interface RevocationDetailsOrBuilder extends com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder(); } /** + * + * *
    * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails} */ - public static final class RevocationDetails extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RevocationDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) RevocationDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevocationDetails.newBuilder() to construct. private RevocationDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RevocationDetails() { revocationState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RevocationDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RevocationDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -325,32 +390,35 @@ private RevocationDetails( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - revocationState_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (revocationTime_ != null) { - subBuilder = revocationTime_.toBuilder(); + revocationState_ = rawValue; + break; } - revocationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(revocationTime_); - revocationTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (revocationTime_ != null) { + subBuilder = revocationTime_.toBuilder(); + } + revocationTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(revocationTime_); + revocationTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -358,61 +426,78 @@ private RevocationDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder.class); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder + .class); } public static final int REVOCATION_STATE_FIELD_NUMBER = 1; private int revocationState_; /** + * + * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override public int getRevocationStateValue() { + @java.lang.Override + public int getRevocationStateValue() { return revocationState_; } /** + * + * *
      * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * * @return The revocationState. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); - return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = + com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED + : result; } public static final int REVOCATION_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp revocationTime_; /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return Whether the revocationTime field is set. */ @java.lang.Override @@ -420,18 +505,25 @@ public boolean hasRevocationTime() { return revocationTime_ != null; } /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return The revocationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevocationTime() { - return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; + return revocationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revocationTime_; } /** + * + * *
      * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
@@ -444,6 +536,7 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -455,9 +548,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (revocationState_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (revocationState_ + != com.google.cloud.security.privateca.v1beta1.RevocationReason + .REVOCATION_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(1, revocationState_); } if (revocationTime_ != null) { @@ -472,13 +567,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (revocationState_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, revocationState_); + if (revocationState_ + != com.google.cloud.security.privateca.v1beta1.RevocationReason + .REVOCATION_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, revocationState_); } if (revocationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRevocationTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRevocationTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -488,18 +584,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.security.privateca.v1beta1.Certificate.RevocationDetails)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other = (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) obj; + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other = + (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) obj; if (revocationState_ != other.revocationState_) return false; if (hasRevocationTime() != other.hasRevocationTime()) return false; if (hasRevocationTime()) { - if (!getRevocationTime() - .equals(other.getRevocationTime())) return false; + if (!getRevocationTime().equals(other.getRevocationTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -523,88 +620,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails 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.security.privateca.v1beta1.Certificate.RevocationDetails + 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.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -614,44 +724,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes fields that are relavent to the revocation of a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder.class); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.class, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -667,19 +783,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails build() { - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -687,8 +806,10 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails buildPartial() { - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(this); + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + buildPartial() { + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails result = + new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(this); result.revocationState_ = revocationState_; if (revocationTimeBuilder_ == null) { result.revocationTime_ = revocationTime_; @@ -703,46 +824,54 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.Certificate.RevocationDetails) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails)other); + if (other + instanceof com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other) { - if (other == com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails other) { + if (other + == com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + .getDefaultInstance()) return this; if (other.revocationState_ != 0) { setRevocationStateValue(other.getRevocationStateValue()); } @@ -764,11 +893,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -780,73 +912,98 @@ public Builder mergeFrom( private int revocationState_ = 0; /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * + * * @return The enum numeric value on the wire for revocationState. */ - @java.lang.Override public int getRevocationStateValue() { + @java.lang.Override + public int getRevocationStateValue() { return revocationState_; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * + * * @param value The enum numeric value on the wire for revocationState to set. * @return This builder for chaining. */ public Builder setRevocationStateValue(int value) { - + revocationState_ = value; onChanged(); return this; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * + * * @return The revocationState. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); - return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = + com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationState_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED + : result; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * + * * @param value The revocationState to set. * @return This builder for chaining. */ - public Builder setRevocationState(com.google.cloud.security.privateca.v1beta1.RevocationReason value) { + public Builder setRevocationState( + com.google.cloud.security.privateca.v1beta1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Indicates why a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_state = 1; + * + * * @return This builder for chaining. */ public Builder clearRevocationState() { - + revocationState_ = 0; onChanged(); return this; @@ -854,34 +1011,47 @@ public Builder clearRevocationState() { private com.google.protobuf.Timestamp revocationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revocationTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revocationTimeBuilder_; /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return Whether the revocationTime field is set. */ public boolean hasRevocationTime() { return revocationTimeBuilder_ != null || revocationTime_ != null; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; + * * @return The revocationTime. */ public com.google.protobuf.Timestamp getRevocationTime() { if (revocationTimeBuilder_ == null) { - return revocationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; + return revocationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revocationTime_; } else { return revocationTimeBuilder_.getMessage(); } } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -902,14 +1072,15 @@ public Builder setRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* * .google.protobuf.Timestamp revocation_time = 2; */ - public Builder setRevocationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevocationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (revocationTimeBuilder_ == null) { revocationTime_ = builderForValue.build(); onChanged(); @@ -920,6 +1091,8 @@ public Builder setRevocationTime( return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -930,7 +1103,9 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { if (revocationTimeBuilder_ == null) { if (revocationTime_ != null) { revocationTime_ = - com.google.protobuf.Timestamp.newBuilder(revocationTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(revocationTime_) + .mergeFrom(value) + .buildPartial(); } else { revocationTime_ = value; } @@ -942,6 +1117,8 @@ public Builder mergeRevocationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -960,6 +1137,8 @@ public Builder clearRevocationTime() { return this; } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -967,11 +1146,13 @@ public Builder clearRevocationTime() { * .google.protobuf.Timestamp revocation_time = 2; */ public com.google.protobuf.Timestamp.Builder getRevocationTimeBuilder() { - + onChanged(); return getRevocationTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -982,11 +1163,14 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { if (revocationTimeBuilder_ != null) { return revocationTimeBuilder_.getMessageOrBuilder(); } else { - return revocationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : revocationTime_; + return revocationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revocationTime_; } } /** + * + * *
        * The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
@@ -994,18 +1178,22 @@ public com.google.protobuf.TimestampOrBuilder getRevocationTimeOrBuilder() { * .google.protobuf.Timestamp revocation_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getRevocationTimeFieldBuilder() { if (revocationTimeBuilder_ == null) { - revocationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRevocationTime(), - getParentForChildren(), - isClean()); + revocationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevocationTime(), getParentForChildren(), isClean()); revocationTime_ = null; } return revocationTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1018,30 +1206,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails) - private static final com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails(); } - public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevocationDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevocationDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevocationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevocationDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,21 +1244,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int certificateConfigCase_ = 0; private java.lang.Object certificateConfig_; + public enum CertificateConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PEM_CSR(2), CONFIG(3), CERTIFICATECONFIG_NOT_SET(0); private final int value; + private CertificateConfigCase(int value) { this.value = value; } @@ -1083,32 +1277,38 @@ public static CertificateConfigCase valueOf(int value) { public static CertificateConfigCase forNumber(int value) { switch (value) { - case 2: return PEM_CSR; - case 3: return CONFIG; - case 0: return CERTIFICATECONFIG_NOT_SET; - default: return null; + case 2: + return PEM_CSR; + case 3: + return CONFIG; + case 0: + return CERTIFICATECONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public CertificateConfigCase - getCertificateConfigCase() { - return CertificateConfigCase.forNumber( - certificateConfigCase_); + public CertificateConfigCase getCertificateConfigCase() { + return CertificateConfigCase.forNumber(certificateConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1117,30 +1317,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * 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 { @@ -1150,22 +1350,28 @@ public java.lang.String getName() { public static final int PEM_CSR_FIELD_NUMBER = 2; /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return Whether the pemCsr field is set. */ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pemCsr. */ public java.lang.String getPemCsr() { @@ -1176,8 +1382,7 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -1186,23 +1391,24 @@ public java.lang.String getPemCsr() { } } /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -1214,12 +1420,17 @@ public java.lang.String getPemCsr() { public static final int CONFIG_FIELD_NUMBER = 3; /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -1227,33 +1438,43 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); } /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder + getConfigOrBuilder() { if (certificateConfigCase_ == 3) { - return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; + return (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_; } return com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); } @@ -1261,6 +1482,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder ge public static final int LIFETIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration lifetime_; /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1268,7 +1491,10 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder ge
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -1276,6 +1502,8 @@ public boolean hasLifetime() { return lifetime_ != null; } /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1283,7 +1511,10 @@ public boolean hasLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ @java.lang.Override @@ -1291,6 +1522,8 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -1298,7 +1531,9 @@ public com.google.protobuf.Duration getLifetime() {
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { @@ -1306,14 +1541,20 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { } public static final int REVOCATION_DETAILS_FIELD_NUMBER = 5; - private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocationDetails_; + private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + revocationDetails_; /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revocationDetails field is set. */ @java.lang.Override @@ -1321,39 +1562,56 @@ public boolean hasRevocationDetails() { return revocationDetails_ != null; } /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revocationDetails. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getRevocationDetails() { - return revocationDetails_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + getRevocationDetails() { + return revocationDetails_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + .getDefaultInstance() + : revocationDetails_; } /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder + getRevocationDetailsOrBuilder() { return getRevocationDetails(); } public static final int PEM_CERTIFICATE_FIELD_NUMBER = 6; private volatile java.lang.Object pemCertificate_; /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCertificate. */ @java.lang.Override @@ -1362,29 +1620,29 @@ public java.lang.String getPemCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; } } /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCertificateBytes() { + public com.google.protobuf.ByteString getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -1393,13 +1651,19 @@ public java.lang.String getPemCertificate() { } public static final int CERTIFICATE_DESCRIPTION_FIELD_NUMBER = 7; - private com.google.cloud.security.privateca.v1beta1.CertificateDescription certificateDescription_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription + certificateDescription_; /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the certificateDescription field is set. */ @java.lang.Override @@ -1407,63 +1671,87 @@ public boolean hasCertificateDescription() { return certificateDescription_ != null; } /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The certificateDescription. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCertificateDescription() { - return certificateDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() : certificateDescription_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + getCertificateDescription() { + return certificateDescription_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() + : certificateDescription_; } /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder + getCertificateDescriptionOrBuilder() { return getCertificateDescription(); } public static final int PEM_CERTIFICATE_CHAIN_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList pemCertificateChain_; /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList - getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { return pemCertificateChain_; } /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1471,28 +1759,35 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString - getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1500,11 +1795,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1512,11 +1811,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1526,11 +1828,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1538,11 +1844,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1550,11 +1860,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1562,24 +1875,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1588,28 +1900,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1617,11 +1931,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1629,16 +1944,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1646,12 +1961,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1659,6 +1973,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1670,8 +1985,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1679,7 +1993,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateConfig_); } if (certificateConfigCase_ == 3) { - output.writeMessage(3, (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); + output.writeMessage( + 3, (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); } if (lifetime_ != null) { output.writeMessage(4, getLifetime()); @@ -1702,12 +2017,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(10, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); unknownFields.writeTo(output); } @@ -1724,23 +2035,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateConfig_); } if (certificateConfigCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLifetime()); } if (revocationDetails_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRevocationDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRevocationDetails()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pemCertificate_); } if (certificateDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCertificateDescription()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCertificateDescription()); } { int dataSize = 0; @@ -1751,22 +2062,20 @@ public int getSerializedSize() { size += 1 * getPemCertificateChainList().size(); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUpdateTime()); - } - 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(11, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + 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(11, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1776,55 +2085,45 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.Certificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.Certificate other = (com.google.cloud.security.privateca.v1beta1.Certificate) obj; + com.google.cloud.security.privateca.v1beta1.Certificate other = + (com.google.cloud.security.privateca.v1beta1.Certificate) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime() - .equals(other.getLifetime())) return false; + if (!getLifetime().equals(other.getLifetime())) return false; } if (hasRevocationDetails() != other.hasRevocationDetails()) return false; if (hasRevocationDetails()) { - if (!getRevocationDetails() - .equals(other.getRevocationDetails())) return false; + if (!getRevocationDetails().equals(other.getRevocationDetails())) return false; } - if (!getPemCertificate() - .equals(other.getPemCertificate())) return false; + if (!getPemCertificate().equals(other.getPemCertificate())) return false; if (hasCertificateDescription() != other.hasCertificateDescription()) return false; if (hasCertificateDescription()) { - if (!getCertificateDescription() - .equals(other.getCertificateDescription())) return false; + if (!getCertificateDescription().equals(other.getCertificateDescription())) return false; } - if (!getPemCertificateChainList() - .equals(other.getPemCertificateChainList())) return false; + if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getCertificateConfigCase().equals(other.getCertificateConfigCase())) return false; switch (certificateConfigCase_) { case 2: - if (!getPemCsr() - .equals(other.getPemCsr())) return false; + if (!getPemCsr().equals(other.getPemCsr())) return false; break; case 3: - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; break; case 0: default: @@ -1890,96 +2189,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.Certificate 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.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Certificate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Certificate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate] corresponds to a signed X.509 certificate issued by a
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1987,43 +2294,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate)
       com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 11:
           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 11:
           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.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.Certificate.class, com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.Certificate.class,
+              com.google.cloud.security.privateca.v1beta1.Certificate.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder()
@@ -2031,16 +2338,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2087,9 +2393,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor;
     }
 
     @java.lang.Override
@@ -2108,7 +2414,8 @@ public com.google.cloud.security.privateca.v1beta1.Certificate build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.Certificate buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.Certificate result = new com.google.cloud.security.privateca.v1beta1.Certificate(this);
+      com.google.cloud.security.privateca.v1beta1.Certificate result =
+          new com.google.cloud.security.privateca.v1beta1.Certificate(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (certificateConfigCase_ == 2) {
@@ -2163,38 +2470,39 @@ public com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.Certificate) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Certificate)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Certificate) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2202,7 +2510,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2236,22 +2545,24 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       switch (other.getCertificateConfigCase()) {
-        case PEM_CSR: {
-          certificateConfigCase_ = 2;
-          certificateConfig_ = other.certificateConfig_;
-          onChanged();
-          break;
-        }
-        case CONFIG: {
-          mergeConfig(other.getConfig());
-          break;
-        }
-        case CERTIFICATECONFIG_NOT_SET: {
-          break;
-        }
+        case PEM_CSR:
+          {
+            certificateConfigCase_ = 2;
+            certificateConfig_ = other.certificateConfig_;
+            onChanged();
+            break;
+          }
+        case CONFIG:
+          {
+            mergeConfig(other.getConfig());
+            break;
+          }
+        case CERTIFICATECONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2272,7 +2583,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.Certificate) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.Certificate) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2281,12 +2593,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int certificateConfigCase_ = 0;
     private java.lang.Object certificateConfig_;
-    public CertificateConfigCase
-        getCertificateConfigCase() {
-      return CertificateConfigCase.forNumber(
-          certificateConfigCase_);
+
+    public CertificateConfigCase getCertificateConfigCase() {
+      return CertificateConfigCase.forNumber(certificateConfigCase_);
     }
 
     public Builder clearCertificateConfig() {
@@ -2300,19 +2612,21 @@ public Builder clearCertificateConfig() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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; @@ -2321,21 +2635,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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 { @@ -2343,68 +2658,78 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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 path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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 path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * 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; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return Whether the pemCsr field is set. */ @java.lang.Override @@ -2412,11 +2737,14 @@ public boolean hasPemCsr() { return certificateConfigCase_ == 2; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pemCsr. */ @java.lang.Override @@ -2426,8 +2754,7 @@ public java.lang.String getPemCsr() { ref = certificateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (certificateConfigCase_ == 2) { certificateConfig_ = s; @@ -2438,24 +2765,25 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = ""; if (certificateConfigCase_ == 2) { ref = certificateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (certificateConfigCase_ == 2) { certificateConfig_ = b; } @@ -2465,30 +2793,35 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr( - java.lang.String value) { + public Builder setPemCsr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - certificateConfigCase_ = 2; + throw new NullPointerException(); + } + certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearPemCsr() { @@ -2500,20 +2833,22 @@ public Builder clearPemCsr() { return this; } /** + * + * *
      * Immutable. A pem-encoded X.509 certificate signing request (CSR).
      * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); certificateConfigCase_ = 2; certificateConfig_ = value; onChanged(); @@ -2521,14 +2856,22 @@ public Builder setPemCsrBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> configBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> + configBuilder_; /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -2536,12 +2879,17 @@ public boolean hasConfig() { return certificateConfigCase_ == 3; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ @java.lang.Override @@ -2559,12 +2907,16 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() } } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { @@ -2580,12 +2932,16 @@ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.Certificate return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig( com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder builderForValue) { @@ -2599,19 +2955,30 @@ public Builder setConfig( return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { + public Builder mergeConfig( + com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { - if (certificateConfigCase_ == 3 && - certificateConfig_ != com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance()) { - certificateConfig_ = com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder((com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_) - .mergeFrom(value).buildPartial(); + if (certificateConfigCase_ == 3 + && certificateConfig_ + != com.google.cloud.security.privateca.v1beta1.CertificateConfig + .getDefaultInstance()) { + certificateConfig_ = + com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder( + (com.google.cloud.security.privateca.v1beta1.CertificateConfig) + certificateConfig_) + .mergeFrom(value) + .buildPartial(); } else { certificateConfig_ = value; } @@ -2627,12 +2994,16 @@ public Builder mergeConfig(com.google.cloud.security.privateca.v1beta1.Certifica return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -2651,26 +3022,36 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder getConfigBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder + getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder + getConfigOrBuilder() { if ((certificateConfigCase_ == 3) && (configBuilder_ != null)) { return configBuilder_.getMessageOrBuilder(); } else { @@ -2681,36 +3062,52 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder ge } } /** + * + * *
      * Immutable. A description of the certificate and key that does not require X.509 or
      * ASN.1.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { if (!(certificateConfigCase_ == 3)) { - certificateConfig_ = com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); + certificateConfig_ = + com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance(); } - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( (com.google.cloud.security.privateca.v1beta1.CertificateConfig) certificateConfig_, getParentForChildren(), isClean()); certificateConfig_ = null; } certificateConfigCase_ = 3; - onChanged();; + onChanged(); + ; return configBuilder_; } private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2718,13 +3115,18 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder ge
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2732,7 +3134,10 @@ public boolean hasLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -2743,6 +3148,8 @@ public com.google.protobuf.Duration getLifetime() { } } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2750,7 +3157,9 @@ public com.google.protobuf.Duration getLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -2766,6 +3175,8 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2773,10 +3184,11 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -2787,6 +3199,8 @@ public Builder setLifetime( return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2794,13 +3208,15 @@ public Builder setLifetime(
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -2812,6 +3228,8 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2819,7 +3237,9 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -2833,6 +3253,8 @@ public Builder clearLifetime() { return this; } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2840,14 +3262,18 @@ public Builder clearLifetime() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2855,17 +3281,20 @@ public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** + * + * *
      * Required. Immutable. The desired lifetime of a certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
@@ -2873,62 +3302,90 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * past the life of any certificate authority in the issuing chain.
      * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getLifetime(), - getParentForChildren(), - isClean()); + lifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLifetime(), getParentForChildren(), isClean()); lifetime_ = null; } return lifetimeBuilder_; } - private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocationDetails_; + private com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + revocationDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> revocationDetailsBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> + revocationDetailsBuilder_; /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revocationDetails field is set. */ public boolean hasRevocationDetails() { return revocationDetailsBuilder_ != null || revocationDetails_ != null; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revocationDetails. */ - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getRevocationDetails() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + getRevocationDetails() { if (revocationDetailsBuilder_ == null) { - return revocationDetails_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; + return revocationDetails_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + .getDefaultInstance() + : revocationDetails_; } else { return revocationDetailsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRevocationDetails(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { + public Builder setRevocationDetails( + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2942,15 +3399,20 @@ public Builder setRevocationDetails(com.google.cloud.security.privateca.v1beta1. return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevocationDetails( - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder + builderForValue) { if (revocationDetailsBuilder_ == null) { revocationDetails_ = builderForValue.build(); onChanged(); @@ -2961,18 +3423,26 @@ public Builder setRevocationDetails( return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeRevocationDetails(com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { + public Builder mergeRevocationDetails( + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails value) { if (revocationDetailsBuilder_ == null) { if (revocationDetails_ != null) { revocationDetails_ = - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder(revocationDetails_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.newBuilder( + revocationDetails_) + .mergeFrom(value) + .buildPartial(); } else { revocationDetails_ = value; } @@ -2984,12 +3454,16 @@ public Builder mergeRevocationDetails(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevocationDetails() { if (revocationDetailsBuilder_ == null) { @@ -3003,51 +3477,70 @@ public Builder clearRevocationDetails() { return this; } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder getRevocationDetailsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder + getRevocationDetailsBuilder() { + onChanged(); return getRevocationDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder + getRevocationDetailsOrBuilder() { if (revocationDetailsBuilder_ != null) { return revocationDetailsBuilder_.getMessageOrBuilder(); } else { - return revocationDetails_ == null ? - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.getDefaultInstance() : revocationDetails_; + return revocationDetails_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails + .getDefaultInstance() + : revocationDetails_; } } /** + * + * *
      * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
      * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder> getRevocationDetailsFieldBuilder() { if (revocationDetailsBuilder_ == null) { - revocationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder>( - getRevocationDetails(), - getParentForChildren(), - isClean()); + revocationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails.Builder, + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder>( + getRevocationDetails(), getParentForChildren(), isClean()); revocationDetails_ = null; } return revocationDetailsBuilder_; @@ -3055,18 +3548,20 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails private java.lang.Object pemCertificate_ = ""; /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCertificate. */ public java.lang.String getPemCertificate() { java.lang.Object ref = pemCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCertificate_ = s; return s; @@ -3075,20 +3570,21 @@ public java.lang.String getPemCertificate() { } } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCertificate. */ - public com.google.protobuf.ByteString - getPemCertificateBytes() { + public com.google.protobuf.ByteString getPemCertificateBytes() { java.lang.Object ref = pemCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCertificate_ = b; return b; } else { @@ -3096,96 +3592,126 @@ public java.lang.String getPemCertificate() { } } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificate( - java.lang.String value) { + public Builder setPemCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCertificate_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPemCertificate() { - + pemCertificate_ = getDefaultInstance().getPemCertificate(); onChanged(); return this; } /** + * + * *
      * Output only. The pem-encoded, signed X.509 certificate.
      * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for pemCertificate to set. * @return This builder for chaining. */ - public Builder setPemCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCertificate_ = value; onChanged(); return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateDescription certificateDescription_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription + certificateDescription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> certificateDescriptionBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + certificateDescriptionBuilder_; /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the certificateDescription field is set. */ public boolean hasCertificateDescription() { return certificateDescriptionBuilder_ != null || certificateDescription_ != null; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The certificateDescription. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCertificateDescription() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + getCertificateDescription() { if (certificateDescriptionBuilder_ == null) { - return certificateDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() : certificateDescription_; + return certificateDescription_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription + .getDefaultInstance() + : certificateDescription_; } else { return certificateDescriptionBuilder_.getMessage(); } } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCertificateDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { + public Builder setCertificateDescription( + com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3199,14 +3725,19 @@ public Builder setCertificateDescription(com.google.cloud.security.privateca.v1b return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCertificateDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + builderForValue) { if (certificateDescriptionBuilder_ == null) { certificateDescription_ = builderForValue.build(); onChanged(); @@ -3217,17 +3748,25 @@ public Builder setCertificateDescription( return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCertificateDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { + public Builder mergeCertificateDescription( + com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { if (certificateDescriptionBuilder_ == null) { if (certificateDescription_ != null) { certificateDescription_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder(certificateDescription_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder( + certificateDescription_) + .mergeFrom(value) + .buildPartial(); } else { certificateDescription_ = value; } @@ -3239,11 +3778,15 @@ public Builder mergeCertificateDescription(com.google.cloud.security.privateca.v return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCertificateDescription() { if (certificateDescriptionBuilder_ == null) { @@ -3257,92 +3800,124 @@ public Builder clearCertificateDescription() { return this; } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder getCertificateDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + getCertificateDescriptionBuilder() { + onChanged(); return getCertificateDescriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder + getCertificateDescriptionOrBuilder() { if (certificateDescriptionBuilder_ != null) { return certificateDescriptionBuilder_.getMessageOrBuilder(); } else { - return certificateDescription_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance() : certificateDescription_; + return certificateDescription_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription + .getDefaultInstance() + : certificateDescription_; } } /** + * + * *
      * Output only. A structured description of the issued X.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> getCertificateDescriptionFieldBuilder() { if (certificateDescriptionBuilder_ == null) { - certificateDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( - getCertificateDescription(), - getParentForChildren(), - isClean()); + certificateDescriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( + getCertificateDescription(), getParentForChildren(), isClean()); certificateDescription_ = null; } return certificateDescriptionBuilder_; } - private com.google.protobuf.LazyStringList pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pemCertificateChain_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePemCertificateChainIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificateChain_ = new com.google.protobuf.LazyStringArrayList(pemCertificateChain_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCertificateChain. */ - public com.google.protobuf.ProtocolStringList - getPemCertificateChainList() { + public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { return pemCertificateChain_.getUnmodifiableView(); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCertificateChain. */ public int getPemCertificateChainCount() { return pemCertificateChain_.size(); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -3350,85 +3925,100 @@ public java.lang.String getPemCertificateChain(int index) { return pemCertificateChain_.get(index); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - public com.google.protobuf.ByteString - getPemCertificateChainBytes(int index) { + public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { return pemCertificateChain_.getByteString(index); } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. */ - public Builder setPemCertificateChain( - int index, java.lang.String value) { + public Builder setPemCertificateChain(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChain( - java.lang.String value) { + public Builder addPemCertificateChain(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificateChainIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addAllPemCertificateChain( - java.lang.Iterable values) { + public Builder addAllPemCertificateChain(java.lang.Iterable values) { ensurePemCertificateChainIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pemCertificateChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificateChain_); onChanged(); return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPemCertificateChain() { @@ -3438,21 +4028,24 @@ public Builder clearPemCertificateChain() { return this; } /** + * + * *
      * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
      * in issuer-to-root order according to RFC 5246.
      * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ - public Builder addPemCertificateChainBytes( - com.google.protobuf.ByteString value) { + public Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificateChainIsMutable(); pemCertificateChain_.add(value); onChanged(); @@ -3461,39 +4054,58 @@ public Builder addPemCertificateChainBytes( 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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3509,14 +4121,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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(); @@ -3527,17 +4142,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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; } @@ -3549,11 +4168,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3567,48 +4190,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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 [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -3616,39 +4255,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3664,14 +4322,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3682,17 +4343,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3704,11 +4369,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3722,69 +4391,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3796,28 +4480,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3825,11 +4511,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3837,16 +4524,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3854,12 +4542,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -3867,69 +4554,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3939,12 +4623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.Certificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Certificate) private static final com.google.cloud.security.privateca.v1beta1.Certificate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Certificate(); } @@ -3953,16 +4637,16 @@ public static com.google.cloud.security.privateca.v1beta1.Certificate getDefault 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 { - return new Certificate(input, extensionRegistry); - } - }; + 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 { + return new Certificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3977,6 +4661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java index 7ec4a263..d5aa1b41 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthority.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] represents an individual Certificate Authority.
  * A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority}
  */
-public final class CertificateAuthority extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateAuthority extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority)
     CertificateAuthorityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateAuthority.newBuilder() to construct.
   private CertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateAuthority() {
     name_ = "";
     type_ = 0;
@@ -32,16 +50,15 @@ private CertificateAuthority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateAuthority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateAuthority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,204 +78,260 @@ private CertificateAuthority(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
-
-            type_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            tier_ = rawValue;
-            break;
-          }
-          case 34: {
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (lifetime_ != null) {
-              subBuilder = lifetime_.toBuilder();
-            }
-            lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lifetime_);
-              lifetime_ = subBuilder.buildPartial();
+              type_ = rawValue;
+              break;
             }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder subBuilder = null;
-            if (keySpec_ != null) {
-              subBuilder = keySpec_.toBuilder();
-            }
-            keySpec_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(keySpec_);
-              keySpec_ = subBuilder.buildPartial();
+              tier_ = rawValue;
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder subBuilder =
+                  null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder subBuilder = null;
-            if (certificatePolicy_ != null) {
-              subBuilder = certificatePolicy_.toBuilder();
-            }
-            certificatePolicy_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificatePolicy_);
-              certificatePolicy_ = subBuilder.buildPartial();
+              break;
             }
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (lifetime_ != null) {
+                subBuilder = lifetime_.toBuilder();
+              }
+              lifetime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lifetime_);
+                lifetime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 66: {
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder subBuilder = null;
-            if (issuingOptions_ != null) {
-              subBuilder = issuingOptions_.toBuilder();
-            }
-            issuingOptions_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(issuingOptions_);
-              issuingOptions_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec
+                      .Builder
+                  subBuilder = null;
+              if (keySpec_ != null) {
+                subBuilder = keySpec_.toBuilder();
+              }
+              keySpec_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority
+                          .KeyVersionSpec.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(keySpec_);
+                keySpec_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            pemCaCertificates_.add(s);
-            break;
-          }
-          case 80: {
-            int rawValue = input.readEnum();
+          case 58:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority
+                      .CertificateAuthorityPolicy.Builder
+                  subBuilder = null;
+              if (certificatePolicy_ != null) {
+                subBuilder = certificatePolicy_.toBuilder();
+              }
+              certificatePolicy_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority
+                          .CertificateAuthorityPolicy.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificatePolicy_);
+                certificatePolicy_ = subBuilder.buildPartial();
+              }
 
-            state_ = rawValue;
-            break;
-          }
-          case 98: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              caCertificateDescriptions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            caCertificateDescriptions_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(), extensionRegistry));
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 66:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions
+                      .Builder
+                  subBuilder = null;
+              if (issuingOptions_ != null) {
+                subBuilder = issuingOptions_.toBuilder();
+              }
+              issuingOptions_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority
+                          .IssuingOptions.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(issuingOptions_);
+                issuingOptions_ = subBuilder.buildPartial();
+              }
 
-            gcsBucket_ = s;
-            break;
-          }
-          case 114: {
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder subBuilder = null;
-            if (accessUrls_ != null) {
-              subBuilder = accessUrls_.toBuilder();
+              break;
             }
-            accessUrls_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(accessUrls_);
-              accessUrls_ = subBuilder.buildPartial();
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              pemCaCertificates_.add(s);
+              break;
             }
+          case 80:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 122: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 98:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                caCertificateDescriptions_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1beta1.CertificateDescription>();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              caCertificateDescriptions_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 130: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              gcsBucket_ = s;
+              break;
             }
+          case 114:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder
+                  subBuilder = null;
+              if (accessUrls_ != null) {
+                subBuilder = accessUrls_.toBuilder();
+              }
+              accessUrls_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(accessUrls_);
+                accessUrls_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 138: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (deleteTime_ != null) {
-              subBuilder = deleteTime_.toBuilder();
+              break;
             }
-            deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(deleteTime_);
-              deleteTime_ = subBuilder.buildPartial();
+          case 122:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 130:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 146: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000004;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 154: {
-            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder = null;
-            if (subordinateConfig_ != null) {
-              subBuilder = subordinateConfig_.toBuilder();
+          case 138:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (deleteTime_ != null) {
+                subBuilder = deleteTime_.toBuilder();
+              }
+              deleteTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(deleteTime_);
+                deleteTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            subordinateConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subordinateConfig_);
-              subordinateConfig_ = subBuilder.buildPartial();
+          case 146:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000004;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 154:
+            {
+              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder subBuilder =
+                  null;
+              if (subordinateConfig_ != null) {
+                subBuilder = subordinateConfig_.toBuilder();
+              }
+              subordinateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.SubordinateConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subordinateConfig_);
+                subordinateConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -266,54 +339,59 @@ private CertificateAuthority(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         pemCaCertificates_ = pemCaCertificates_.getUnmodifiableView();
       }
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+        caCertificateDescriptions_ =
+            java.util.Collections.unmodifiableList(caCertificateDescriptions_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_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 18:
         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.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class,
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating its issuing chain.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -322,6 +400,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Self-signed CA.
      * 
@@ -330,6 +410,8 @@ public enum Type */ SELF_SIGNED(1), /** + * + * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * or an unmanaged CA.
@@ -342,6 +424,8 @@ public enum Type
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -350,6 +434,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Self-signed CA.
      * 
@@ -358,6 +444,8 @@ public enum Type */ public static final int SELF_SIGNED_VALUE = 1; /** + * + * *
      * Subordinate CA. Could be issued by a Private CA [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * or an unmanaged CA.
@@ -367,7 +455,6 @@ public enum Type
      */
     public static final int SUBORDINATE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -392,49 +479,51 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return SELF_SIGNED;
-        case 2: return SUBORDINATE;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return SELF_SIGNED;
+        case 2:
+          return SUBORDINATE;
+        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<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Type findValueByNumber(int number) {
-              return Type.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Type findValueByNumber(int number) {
+            return Type.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -452,6 +541,8 @@ private Type(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The tier of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating its supported
    * functionality and/or billing SKU.
@@ -459,9 +550,10 @@ private Type(int value) {
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier}
    */
-  public enum Tier
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -470,6 +562,8 @@ public enum Tier */ TIER_UNSPECIFIED(0), /** + * + * *
      * Enterprise tier.
      * 
@@ -478,6 +572,8 @@ public enum Tier */ ENTERPRISE(1), /** + * + * *
      * DevOps tier.
      * 
@@ -489,6 +585,8 @@ public enum Tier ; /** + * + * *
      * Not specified.
      * 
@@ -497,6 +595,8 @@ public enum Tier */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Enterprise tier.
      * 
@@ -505,6 +605,8 @@ public enum Tier */ public static final int ENTERPRISE_VALUE = 1; /** + * + * *
      * DevOps tier.
      * 
@@ -513,7 +615,6 @@ public enum Tier */ public static final int DEVOPS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -538,49 +639,51 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: return TIER_UNSPECIFIED; - case 1: return ENTERPRISE; - case 2: return DEVOPS; - default: return null; + case 0: + return TIER_UNSPECIFIED; + case 1: + return ENTERPRISE; + case 2: + return DEVOPS; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor() + .getEnumTypes() + .get(1); } private static final Tier[] VALUES = values(); - public static Tier valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -598,15 +701,18 @@ private Tier(int value) { } /** + * + * *
    * The state of a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], indicating if it can be used.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -615,6 +721,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA.
@@ -624,6 +732,8 @@ public enum State
      */
     ENABLED(1),
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * 
@@ -632,6 +742,8 @@ public enum State */ DISABLED(2), /** + * + * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -640,6 +752,8 @@ public enum State */ PENDING_ACTIVATION(3), /** + * + * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -651,6 +765,8 @@ public enum State ; /** + * + * *
      * Not specified.
      * 
@@ -659,6 +775,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Certificates can be issued from this CA. CRLs will be generated for this
      * CA.
@@ -668,6 +786,8 @@ public enum State
      */
     public static final int ENABLED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Certificates cannot be issued from this CA. CRLs will still be generated.
      * 
@@ -676,6 +796,8 @@ public enum State */ public static final int DISABLED_VALUE = 2; /** + * + * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -684,6 +806,8 @@ public enum State */ public static final int PENDING_ACTIVATION_VALUE = 3; /** + * + * *
      * Certificates cannot be issued from this CA. CRLs will not be generated.
      * 
@@ -692,7 +816,6 @@ public enum State */ public static final int PENDING_DELETION_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -717,51 +840,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ENABLED; - case 2: return DISABLED; - case 3: return PENDING_ACTIVATION; - case 4: return PENDING_DELETION; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + case 3: + return PENDING_ACTIVATION; + case 4: + return PENDING_DELETION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor() + .getEnumTypes() + .get(2); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -779,6 +906,8 @@ private State(int value) { } /** + * + * *
    * The algorithm of a Cloud KMS CryptoKeyVersion of a
    * [CryptoKey][google.cloud.kms.v1.CryptoKey] with the
@@ -791,11 +920,13 @@ private State(int value) {
    * https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
    * 
* - * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm} + * Protobuf enum {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm} */ - public enum SignHashAlgorithm - implements com.google.protobuf.ProtocolMessageEnum { + public enum SignHashAlgorithm implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -804,6 +935,8 @@ public enum SignHashAlgorithm */ SIGN_HASH_ALGORITHM_UNSPECIFIED(0), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -812,6 +945,8 @@ public enum SignHashAlgorithm */ RSA_PSS_2048_SHA256(1), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -820,6 +955,8 @@ public enum SignHashAlgorithm */ RSA_PSS_3072_SHA256(2), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -828,6 +965,8 @@ public enum SignHashAlgorithm */ RSA_PSS_4096_SHA256(3), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -836,6 +975,8 @@ public enum SignHashAlgorithm */ RSA_PKCS1_2048_SHA256(6), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -844,6 +985,8 @@ public enum SignHashAlgorithm */ RSA_PKCS1_3072_SHA256(7), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -852,6 +995,8 @@ public enum SignHashAlgorithm */ RSA_PKCS1_4096_SHA256(8), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -860,6 +1005,8 @@ public enum SignHashAlgorithm */ EC_P256_SHA256(4), /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -871,6 +1018,8 @@ public enum SignHashAlgorithm ; /** + * + * *
      * Not specified.
      * 
@@ -879,6 +1028,8 @@ public enum SignHashAlgorithm */ public static final int SIGN_HASH_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256
      * 
@@ -887,6 +1038,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256
      * 
@@ -895,6 +1048,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256
      * 
@@ -903,6 +1058,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256
      * 
@@ -911,6 +1068,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PKCS1_2048_SHA256_VALUE = 6; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256
      * 
@@ -919,6 +1078,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PKCS1_3072_SHA256_VALUE = 7; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256
      * 
@@ -927,6 +1088,8 @@ public enum SignHashAlgorithm */ public static final int RSA_PKCS1_4096_SHA256_VALUE = 8; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256
      * 
@@ -935,6 +1098,8 @@ public enum SignHashAlgorithm */ public static final int EC_P256_SHA256_VALUE = 4; /** + * + * *
      * maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384
      * 
@@ -943,7 +1108,6 @@ public enum SignHashAlgorithm */ public static final int EC_P384_SHA384_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -968,16 +1132,26 @@ public static SignHashAlgorithm valueOf(int value) { */ public static SignHashAlgorithm forNumber(int value) { switch (value) { - case 0: return SIGN_HASH_ALGORITHM_UNSPECIFIED; - case 1: return RSA_PSS_2048_SHA256; - case 2: return RSA_PSS_3072_SHA256; - case 3: return RSA_PSS_4096_SHA256; - case 6: return RSA_PKCS1_2048_SHA256; - case 7: return RSA_PKCS1_3072_SHA256; - case 8: return RSA_PKCS1_4096_SHA256; - case 4: return EC_P256_SHA256; - case 5: return EC_P384_SHA384; - default: return null; + case 0: + return SIGN_HASH_ALGORITHM_UNSPECIFIED; + case 1: + return RSA_PSS_2048_SHA256; + case 2: + return RSA_PSS_3072_SHA256; + case 3: + return RSA_PSS_4096_SHA256; + case 6: + return RSA_PKCS1_2048_SHA256; + case 7: + return RSA_PKCS1_3072_SHA256; + case 8: + return RSA_PKCS1_4096_SHA256; + case 4: + return EC_P256_SHA256; + case 5: + return EC_P384_SHA384; + default: + return null; } } @@ -985,29 +1159,31 @@ public static SignHashAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignHashAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignHashAlgorithm findValueByNumber(int number) { - return SignHashAlgorithm.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignHashAlgorithm findValueByNumber(int number) { + return SignHashAlgorithm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor().getEnumTypes().get(3); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDescriptor() + .getEnumTypes() + .get(3); } private static final SignHashAlgorithm[] VALUES = values(); @@ -1015,8 +1191,7 @@ public SignHashAlgorithm findValueByNumber(int number) { public static SignHashAlgorithm 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; @@ -1033,22 +1208,28 @@ private SignHashAlgorithm(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm) } - public interface IssuingOptionsOrBuilder extends + public interface IssuingOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. When true, includes a URL to the issuing CA certificate in the
      * "authority information access" X.509 extension.
      * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The includeCaCertUrl. */ boolean getIncludeCaCertUrl(); /** + * + * *
      * Required. When true, includes a URL to the CRL corresponding to certificates
      * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1057,41 +1238,44 @@ public interface IssuingOptionsOrBuilder extends
      * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The includeCrlAccessUrl. */ boolean getIncludeCrlAccessUrl(); } /** + * + * *
    * Options that affect all certificates issued by a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} */ - public static final class IssuingOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IssuingOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) IssuingOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IssuingOptions.newBuilder() to construct. private IssuingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IssuingOptions() { - } + + private IssuingOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IssuingOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IssuingOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1110,23 +1294,23 @@ private IssuingOptions( case 0: done = true; break; - case 8: { - - includeCaCertUrl_ = input.readBool(); - break; - } - case 16: { - - includeCrlAccessUrl_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + includeCaCertUrl_ = input.readBool(); + break; + } + case 16: + { + includeCrlAccessUrl_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1134,35 +1318,41 @@ private IssuingOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .Builder.class); } public static final int INCLUDE_CA_CERT_URL_FIELD_NUMBER = 1; private boolean includeCaCertUrl_; /** + * + * *
      * Required. When true, includes a URL to the issuing CA certificate in the
      * "authority information access" X.509 extension.
      * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The includeCaCertUrl. */ @java.lang.Override @@ -1173,6 +1363,8 @@ public boolean getIncludeCaCertUrl() { public static final int INCLUDE_CRL_ACCESS_URL_FIELD_NUMBER = 2; private boolean includeCrlAccessUrl_; /** + * + * *
      * Required. When true, includes a URL to the CRL corresponding to certificates
      * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1181,6 +1373,7 @@ public boolean getIncludeCaCertUrl() {
      * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The includeCrlAccessUrl. */ @java.lang.Override @@ -1189,6 +1382,7 @@ public boolean getIncludeCrlAccessUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1200,8 +1394,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeCaCertUrl_ != false) { output.writeBool(1, includeCaCertUrl_); } @@ -1218,12 +1411,10 @@ public int getSerializedSize() { size = 0; if (includeCaCertUrl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, includeCaCertUrl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, includeCaCertUrl_); } if (includeCrlAccessUrl_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, includeCrlAccessUrl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeCrlAccessUrl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1233,17 +1424,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) obj; - if (getIncludeCaCertUrl() - != other.getIncludeCaCertUrl()) return false; - if (getIncludeCrlAccessUrl() - != other.getIncludeCrlAccessUrl()) return false; + if (getIncludeCaCertUrl() != other.getIncludeCaCertUrl()) return false; + if (getIncludeCrlAccessUrl() != other.getIncludeCrlAccessUrl()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1256,98 +1448,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INCLUDE_CA_CERT_URL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeCaCertUrl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCaCertUrl()); hash = (37 * hash) + INCLUDE_CRL_ACCESS_URL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeCrlAccessUrl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCrlAccessUrl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions 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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + 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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1357,44 +1560,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options that affect all certificates issued by a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1406,19 +1617,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1426,8 +1641,11 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingO } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions( + this); result.includeCaCertUrl_ = includeCaCertUrl_; result.includeCrlAccessUrl_ = includeCrlAccessUrl_; onBuilt(); @@ -1438,46 +1656,56 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingO public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .getDefaultInstance()) return this; if (other.getIncludeCaCertUrl() != false) { setIncludeCaCertUrl(other.getIncludeCaCertUrl()); } @@ -1499,11 +1727,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1513,14 +1744,17 @@ public Builder mergeFrom( return this; } - private boolean includeCaCertUrl_ ; + private boolean includeCaCertUrl_; /** + * + * *
        * Required. When true, includes a URL to the issuing CA certificate in the
        * "authority information access" X.509 extension.
        * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The includeCaCertUrl. */ @java.lang.Override @@ -1528,39 +1762,47 @@ public boolean getIncludeCaCertUrl() { return includeCaCertUrl_; } /** + * + * *
        * Required. When true, includes a URL to the issuing CA certificate in the
        * "authority information access" X.509 extension.
        * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The includeCaCertUrl to set. * @return This builder for chaining. */ public Builder setIncludeCaCertUrl(boolean value) { - + includeCaCertUrl_ = value; onChanged(); return this; } /** + * + * *
        * Required. When true, includes a URL to the issuing CA certificate in the
        * "authority information access" X.509 extension.
        * 
* * bool include_ca_cert_url = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIncludeCaCertUrl() { - + includeCaCertUrl_ = false; onChanged(); return this; } - private boolean includeCrlAccessUrl_ ; + private boolean includeCrlAccessUrl_; /** + * + * *
        * Required. When true, includes a URL to the CRL corresponding to certificates
        * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1569,6 +1811,7 @@ public Builder clearIncludeCaCertUrl() {
        * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The includeCrlAccessUrl. */ @java.lang.Override @@ -1576,6 +1819,8 @@ public boolean getIncludeCrlAccessUrl() { return includeCrlAccessUrl_; } /** + * + * *
        * Required. When true, includes a URL to the CRL corresponding to certificates
        * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1584,16 +1829,19 @@ public boolean getIncludeCrlAccessUrl() {
        * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The includeCrlAccessUrl to set. * @return This builder for chaining. */ public Builder setIncludeCrlAccessUrl(boolean value) { - + includeCrlAccessUrl_ = value; onChanged(); return this; } /** + * + * *
        * Required. When true, includes a URL to the CRL corresponding to certificates
        * issued from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
@@ -1602,14 +1850,16 @@ public Builder setIncludeCrlAccessUrl(boolean value) {
        * 
* * bool include_crl_access_url = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIncludeCrlAccessUrl() { - + includeCrlAccessUrl_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1622,30 +1872,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .IssuingOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuingOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuingOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuingOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1657,80 +1911,116 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CertificateAuthorityPolicyOrBuilder extends + public interface CertificateAuthorityPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedConfigList field is set. */ boolean hasAllowedConfigList(); /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedConfigList. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getAllowedConfigList(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .AllowedConfigList + getAllowedConfigList(); /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder getAllowedConfigListOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .AllowedConfigListOrBuilder + getAllowedConfigListOrBuilder(); /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the overwriteConfigValues field is set. */ boolean hasOverwriteConfigValues(); /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The overwriteConfigValues. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getOverwriteConfigValues(); /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getOverwriteConfigValuesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getOverwriteConfigValuesOrBuilder(); /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1738,11 +2028,15 @@ public interface CertificateAuthorityPolicyOrBuilder extends
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAllowedLocationsAndOrganizationsList(); /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1750,10 +2044,15 @@ public interface CertificateAuthorityPolicyOrBuilder extends
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations(int index); + com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations( + int index); /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1761,10 +2060,14 @@ public interface CertificateAuthorityPolicyOrBuilder extends
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAllowedLocationsAndOrganizationsCount(); /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1772,11 +2075,15 @@ public interface CertificateAuthorityPolicyOrBuilder extends
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAllowedLocationsAndOrganizationsOrBuilderList(); /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1784,12 +2091,16 @@ public interface CertificateAuthorityPolicyOrBuilder extends
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocationsAndOrganizationsOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder + getAllowedLocationsAndOrganizationsOrBuilder(int index); /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1797,12 +2108,15 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedCommonNames. */ - java.util.List - getAllowedCommonNamesList(); + java.util.List getAllowedCommonNamesList(); /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1810,11 +2124,15 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedCommonNames. */ int getAllowedCommonNamesCount(); /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1822,12 +2140,16 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedCommonNames at the given index. */ java.lang.String getAllowedCommonNames(int index); /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1835,14 +2157,17 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedCommonNames at the given index. */ - com.google.protobuf.ByteString - getAllowedCommonNamesBytes(int index); + com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index); /** + * + * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1851,11 +2176,16 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * field.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedSans field is set. */ boolean hasAllowedSans(); /** + * + * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1864,11 +2194,18 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * field.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedSans. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getAllowedSans(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .AllowedSubjectAltNames + getAllowedSans(); /** + * + * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -1877,11 +2214,17 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * field.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder getAllowedSansOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .AllowedSubjectAltNamesOrBuilder + getAllowedSansOrBuilder(); /** + * + * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -1889,11 +2232,16 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * truncated.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumLifetime field is set. */ boolean hasMaximumLifetime(); /** + * + * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -1901,11 +2249,16 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * truncated.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumLifetime. */ com.google.protobuf.Duration getMaximumLifetime(); /** + * + * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -1913,60 +2266,87 @@ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocations
      * truncated.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder(); /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedIssuanceModes field is set. */ boolean hasAllowedIssuanceModes(); /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedIssuanceModes. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getAllowedIssuanceModes(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .IssuanceModes + getAllowedIssuanceModes(); /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .IssuanceModesOrBuilder + getAllowedIssuanceModesOrBuilder(); - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.ConfigPolicyCase getConfigPolicyCase(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.ConfigPolicyCase + getConfigPolicyCase(); } /** + * + * *
    * The issuing policy for a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] will not be successfully issued from this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] if they violate the policy.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} */ - public static final class CertificateAuthorityPolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CertificateAuthorityPolicy + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) CertificateAuthorityPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertificateAuthorityPolicy.newBuilder() to construct. private CertificateAuthorityPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CertificateAuthorityPolicy() { allowedLocationsAndOrganizations_ = java.util.Collections.emptyList(); allowedCommonNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1974,16 +2354,15 @@ private CertificateAuthorityPolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CertificateAuthorityPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CertificateAuthorityPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2003,98 +2382,142 @@ private CertificateAuthorityPolicy( case 0: done = true; break; - case 10: { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder subBuilder = null; - if (configPolicyCase_ == 1) { - subBuilder = ((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_).toBuilder(); - } - configPolicy_ = - input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_); - configPolicy_ = subBuilder.buildPartial(); - } - configPolicyCase_ = 1; - break; - } - case 18: { - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder subBuilder = null; - if (configPolicyCase_ == 2) { - subBuilder = ((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_).toBuilder(); - } - configPolicy_ = - input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); - configPolicy_ = subBuilder.buildPartial(); - } - configPolicyCase_ = 2; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder + subBuilder = null; + if (configPolicyCase_ == 1) { + subBuilder = + ((com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_) + .toBuilder(); + } + configPolicy_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_); + configPolicy_ = subBuilder.buildPartial(); + } + configPolicyCase_ = 1; + break; } - allowedLocationsAndOrganizations_.add( - input.readMessage(com.google.cloud.security.privateca.v1beta1.Subject.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - allowedCommonNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + subBuilder = null; + if (configPolicyCase_ == 2) { + subBuilder = + ((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) + configPolicy_) + .toBuilder(); + } + configPolicy_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) + configPolicy_); + configPolicy_ = subBuilder.buildPartial(); + } + configPolicyCase_ = 2; + break; } - allowedCommonNames_.add(s); - break; - } - case 42: { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder subBuilder = null; - if (allowedSans_ != null) { - subBuilder = allowedSans_.toBuilder(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedLocationsAndOrganizations_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.Subject>(); + mutable_bitField0_ |= 0x00000001; + } + allowedLocationsAndOrganizations_.add( + input.readMessage( + com.google.cloud.security.privateca.v1beta1.Subject.parser(), + extensionRegistry)); + break; } - allowedSans_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedSans_); - allowedSans_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedCommonNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + allowedCommonNames_.add(s); + break; } + case 42: + { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder + subBuilder = null; + if (allowedSans_ != null) { + subBuilder = allowedSans_.toBuilder(); + } + allowedSans_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowedSans_); + allowedSans_ = subBuilder.buildPartial(); + } - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maximumLifetime_ != null) { - subBuilder = maximumLifetime_.toBuilder(); - } - maximumLifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maximumLifetime_); - maximumLifetime_ = subBuilder.buildPartial(); + break; } + case 50: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maximumLifetime_ != null) { + subBuilder = maximumLifetime_.toBuilder(); + } + maximumLifetime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maximumLifetime_); + maximumLifetime_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder subBuilder = null; - if (allowedIssuanceModes_ != null) { - subBuilder = allowedIssuanceModes_.toBuilder(); - } - allowedIssuanceModes_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedIssuanceModes_); - allowedIssuanceModes_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder + subBuilder = null; + if (allowedIssuanceModes_ != null) { + subBuilder = allowedIssuanceModes_.toBuilder(); + } + allowedIssuanceModes_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowedIssuanceModes_); + allowedIssuanceModes_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2102,11 +2525,11 @@ private CertificateAuthorityPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizations_ = + java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { allowedCommonNames_ = allowedCommonNames_.getUnmodifiableView(); @@ -2115,24 +2538,32 @@ private CertificateAuthorityPolicy( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.Builder.class); } - public interface AllowedConfigListOrBuilder extends + public interface AllowedConfigListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2140,11 +2571,15 @@ public interface AllowedConfigListOrBuilder extends
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getAllowedConfigValuesList(); /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2152,10 +2587,15 @@ public interface AllowedConfigListOrBuilder extends
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues(int index); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues( + int index); /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2163,10 +2603,14 @@ public interface AllowedConfigListOrBuilder extends
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getAllowedConfigValuesCount(); /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2174,11 +2618,16 @@ public interface AllowedConfigListOrBuilder extends
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getAllowedConfigValuesOrBuilderList(); /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2186,39 +2635,42 @@ public interface AllowedConfigListOrBuilder extends
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getAllowedConfigValuesOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getAllowedConfigValuesOrBuilder(int index); } /** - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} */ - public static final class AllowedConfigList extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AllowedConfigList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) AllowedConfigListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedConfigList.newBuilder() to construct. private AllowedConfigList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllowedConfigList() { allowedConfigValues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllowedConfigList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllowedConfigList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2238,22 +2690,28 @@ private AllowedConfigList( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedConfigValues_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedConfigValues_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper>(); + mutable_bitField0_ |= 0x00000001; + } + allowedConfigValues_.add( + input.readMessage( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .parser(), + extensionRegistry)); + break; } - allowedConfigValues_.add( - input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2261,8 +2719,8 @@ private AllowedConfigList( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedConfigValues_ = java.util.Collections.unmodifiableList(allowedConfigValues_); @@ -2271,22 +2729,30 @@ private AllowedConfigList( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder.class); } public static final int ALLOWED_CONFIG_VALUES_FIELD_NUMBER = 1; - private java.util.List allowedConfigValues_; + private java.util.List + allowedConfigValues_; /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2294,13 +2760,18 @@ private AllowedConfigList(
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getAllowedConfigValuesList() { + public java.util.List + getAllowedConfigValuesList() { return allowedConfigValues_; } /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2308,14 +2779,19 @@ public java.util.List
        *
-       * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED];
+       * 
+       * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED];
+       * 
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List<
+              ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>
           getAllowedConfigValuesOrBuilderList() {
         return allowedConfigValues_;
       }
       /**
+       *
+       *
        * 
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2323,13 +2799,17 @@ public java.util.List
        *
-       * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED];
+       * 
+       * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED];
+       * 
        */
       @java.lang.Override
       public int getAllowedConfigValuesCount() {
         return allowedConfigValues_.size();
       }
       /**
+       *
+       *
        * 
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2337,13 +2817,18 @@ public int getAllowedConfigValuesCount() {
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + getAllowedConfigValues(int index) { return allowedConfigValues_.get(index); } /** + * + * *
        * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2351,15 +2836,18 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllo
        * allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getAllowedConfigValuesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getAllowedConfigValuesOrBuilder(int index) { return allowedConfigValues_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2371,8 +2859,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedConfigValues_.size(); i++) { output.writeMessage(1, allowedConfigValues_.get(i)); } @@ -2386,8 +2873,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < allowedConfigValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, allowedConfigValues_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, allowedConfigValues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2397,15 +2885,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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .AllowedConfigList + other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + obj; - if (!getAllowedConfigValuesList() - .equals(other.getAllowedConfigValuesList())) return false; + if (!getAllowedConfigValuesList().equals(other.getAllowedConfigValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2426,88 +2921,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList 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.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2517,41 +3041,49 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAllowedConfigValuesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2565,19 +3097,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2585,8 +3124,14 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList(this); int from_bitField0_ = bitField0_; if (allowedConfigValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2605,46 +3150,60 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) return this; if (allowedConfigValuesBuilder_ == null) { if (!other.allowedConfigValues_.isEmpty()) { if (allowedConfigValues_.isEmpty()) { @@ -2663,9 +3222,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate allowedConfigValuesBuilder_ = null; allowedConfigValues_ = other.allowedConfigValues_; bitField0_ = (bitField0_ & ~0x00000001); - allowedConfigValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedConfigValuesFieldBuilder() : null; + allowedConfigValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedConfigValuesFieldBuilder() + : null; } else { allowedConfigValuesBuilder_.addAllMessages(other.allowedConfigValues_); } @@ -2686,11 +3246,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2699,21 +3264,31 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List allowedConfigValues_ = - java.util.Collections.emptyList(); + private java.util.List + allowedConfigValues_ = java.util.Collections.emptyList(); + private void ensureAllowedConfigValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedConfigValues_ = new java.util.ArrayList(allowedConfigValues_); + allowedConfigValues_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper>( + allowedConfigValues_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> allowedConfigValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + allowedConfigValuesBuilder_; /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2721,9 +3296,12 @@ private void ensureAllowedConfigValuesIsMutable() {
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getAllowedConfigValuesList() { + public java.util.List + getAllowedConfigValuesList() { if (allowedConfigValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedConfigValues_); } else { @@ -2731,6 +3309,8 @@ public java.util.List * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a @@ -2738,7 +3318,9 @@ public java.util.List * - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getAllowedConfigValuesCount() { if (allowedConfigValuesBuilder_ == null) { @@ -2748,6 +3330,8 @@ public int getAllowedConfigValuesCount() { } } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2755,9 +3339,12 @@ public int getAllowedConfigValuesCount() {
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllowedConfigValues(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + getAllowedConfigValues(int index) { if (allowedConfigValuesBuilder_ == null) { return allowedConfigValues_.get(index); } else { @@ -2765,6 +3352,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllo } } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2772,7 +3361,9 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getAllo
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAllowedConfigValues( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { @@ -2789,6 +3380,8 @@ public Builder setAllowedConfigValues( return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2796,10 +3389,14 @@ public Builder setAllowedConfigValues(
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAllowedConfigValues( - int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + builderForValue) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); allowedConfigValues_.set(index, builderForValue.build()); @@ -2810,6 +3407,8 @@ public Builder setAllowedConfigValues( return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2817,9 +3416,12 @@ public Builder setAllowedConfigValues(
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllowedConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder addAllowedConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (allowedConfigValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2833,6 +3435,8 @@ public Builder addAllowedConfigValues(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2840,7 +3444,9 @@ public Builder addAllowedConfigValues(com.google.cloud.security.privateca.v1beta
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllowedConfigValues( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { @@ -2857,6 +3463,8 @@ public Builder addAllowedConfigValues( return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2864,10 +3472,13 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllowedConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + builderForValue) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); allowedConfigValues_.add(builderForValue.build()); @@ -2878,6 +3489,8 @@ public Builder addAllowedConfigValues( return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2885,10 +3498,14 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllowedConfigValues( - int index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + builderForValue) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); allowedConfigValues_.add(index, builderForValue.build()); @@ -2899,6 +3516,8 @@ public Builder addAllowedConfigValues( return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2906,14 +3525,17 @@ public Builder addAllowedConfigValues(
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllAllowedConfigValues( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper> + values) { if (allowedConfigValuesBuilder_ == null) { ensureAllowedConfigValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedConfigValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConfigValues_); onChanged(); } else { allowedConfigValuesBuilder_.addAllMessages(values); @@ -2921,6 +3543,8 @@ public Builder addAllAllowedConfigValues( return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2928,7 +3552,9 @@ public Builder addAllAllowedConfigValues(
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAllowedConfigValues() { if (allowedConfigValuesBuilder_ == null) { @@ -2941,6 +3567,8 @@ public Builder clearAllowedConfigValues() { return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2948,7 +3576,9 @@ public Builder clearAllowedConfigValues() {
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeAllowedConfigValues(int index) { if (allowedConfigValuesBuilder_ == null) { @@ -2961,6 +3591,8 @@ public Builder removeAllowedConfigValues(int index) { return this; } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2968,13 +3600,17 @@ public Builder removeAllowedConfigValues(int index) {
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder getAllowedConfigValuesBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + getAllowedConfigValuesBuilder(int index) { return getAllowedConfigValuesFieldBuilder().getBuilder(index); } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2982,16 +3618,21 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getAllowedConfigValuesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getAllowedConfigValuesOrBuilder(int index) { if (allowedConfigValuesBuilder_ == null) { - return allowedConfigValues_.get(index); } else { + return allowedConfigValues_.get(index); + } else { return allowedConfigValuesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -2999,10 +3640,14 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilde
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getAllowedConfigValuesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + getAllowedConfigValuesOrBuilderList() { if (allowedConfigValuesBuilder_ != null) { return allowedConfigValuesBuilder_.getMessageOrBuilderList(); } else { @@ -3010,6 +3655,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilde } } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3017,13 +3664,20 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilde
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder addAllowedConfigValuesBuilder() { - return getAllowedConfigValuesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + addAllowedConfigValuesBuilder() { + return getAllowedConfigValuesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance()); } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3031,14 +3685,21 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder addAllowedConfigValuesBuilder( - int index) { - return getAllowedConfigValuesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + addAllowedConfigValuesBuilder(int index) { + return getAllowedConfigValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance()); } /** + * + * *
          * Required. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
          * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper]. If a
@@ -3046,18 +3707,27 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder
          * allowed for that field.
          * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper allowed_config_values = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getAllowedConfigValuesBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder> + getAllowedConfigValuesBuilderList() { return getAllowedConfigValuesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getAllowedConfigValuesFieldBuilder() { if (allowedConfigValuesBuilder_ == null) { - allowedConfigValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( + allowedConfigValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( allowedConfigValues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3066,6 +3736,7 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder } return allowedConfigValuesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3078,30 +3749,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedConfigList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedConfigList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedConfigList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedConfigList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3113,17 +3790,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AllowedSubjectAltNamesOrBuilder extends + public interface AllowedSubjectAltNamesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3134,12 +3815,15 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedDnsNames. */ - java.util.List - getAllowedDnsNamesList(); + java.util.List getAllowedDnsNamesList(); /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3150,11 +3834,15 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedDnsNames. */ int getAllowedDnsNamesCount(); /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3165,12 +3853,16 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedDnsNames at the given index. */ java.lang.String getAllowedDnsNames(int index); /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3181,14 +3873,17 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedDnsNames at the given index. */ - com.google.protobuf.ByteString - getAllowedDnsNamesBytes(int index); + com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index); /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3196,11 +3891,13 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedUris. */ - java.util.List - getAllowedUrisList(); + java.util.List getAllowedUrisList(); /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3208,10 +3905,13 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedUris. */ int getAllowedUrisCount(); /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3219,11 +3919,14 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedUris at the given index. */ java.lang.String getAllowedUris(int index); /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3231,58 +3934,78 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedUris at the given index. */ - com.google.protobuf.ByteString - getAllowedUrisBytes(int index); + com.google.protobuf.ByteString getAllowedUrisBytes(int index); /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedEmailAddresses. */ - java.util.List - getAllowedEmailAddressesList(); + java.util.List getAllowedEmailAddressesList(); /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedEmailAddresses. */ int getAllowedEmailAddressesCount(); /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedEmailAddresses at the given index. */ java.lang.String getAllowedEmailAddresses(int index); /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedEmailAddresses at the given index. */ - com.google.protobuf.ByteString - getAllowedEmailAddressesBytes(int index); + com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index); /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3291,11 +4014,13 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedIps. */ - java.util.List - getAllowedIpsList(); + java.util.List getAllowedIpsList(); /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3304,10 +4029,13 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedIps. */ int getAllowedIpsCount(); /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3316,11 +4044,14 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedIps at the given index. */ java.lang.String getAllowedIps(int index); /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3329,51 +4060,62 @@ public interface AllowedSubjectAltNamesOrBuilder extends
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedIps at the given index. */ - com.google.protobuf.ByteString - getAllowedIpsBytes(int index); + com.google.protobuf.ByteString getAllowedIpsBytes(int index); /** + * + * *
        * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
        * wildcard certificates.
        * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowGlobbingDnsWildcards. */ boolean getAllowGlobbingDnsWildcards(); /** + * + * *
        * Optional. Specifies if to allow custom X509Extension values.
        * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowCustomSans. */ boolean getAllowCustomSans(); } /** + * + * *
      * [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] specifies the allowed values for
      * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} */ - public static final class AllowedSubjectAltNames extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AllowedSubjectAltNames extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) AllowedSubjectAltNamesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AllowedSubjectAltNames.newBuilder() to construct. private AllowedSubjectAltNames(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AllowedSubjectAltNames() { allowedDnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowedUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -3383,16 +4125,15 @@ private AllowedSubjectAltNames() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AllowedSubjectAltNames(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AllowedSubjectAltNames( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3412,59 +4153,63 @@ private AllowedSubjectAltNames( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedDnsNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedDnsNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allowedDnsNames_.add(s); + break; } - allowedDnsNames_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - allowedUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + allowedUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + allowedUris_.add(s); + break; } - allowedUris_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - allowedEmailAddresses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + allowedEmailAddresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + allowedEmailAddresses_.add(s); + break; } - allowedEmailAddresses_.add(s); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - allowedIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + allowedIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + allowedIps_.add(s); + break; } - allowedIps_.add(s); - break; - } - case 40: { - - allowGlobbingDnsWildcards_ = input.readBool(); - break; - } - case 48: { - - allowCustomSans_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + allowGlobbingDnsWildcards_ = input.readBool(); + break; + } + case 48: + { + allowCustomSans_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3472,8 +4217,8 @@ private AllowedSubjectAltNames( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedDnsNames_ = allowedDnsNames_.getUnmodifiableView(); @@ -3491,22 +4236,29 @@ private AllowedSubjectAltNames( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); } public static final int ALLOWED_DNS_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList allowedDnsNames_; /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3517,14 +4269,17 @@ private AllowedSubjectAltNames(
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedDnsNames. */ - public com.google.protobuf.ProtocolStringList - getAllowedDnsNamesList() { + public com.google.protobuf.ProtocolStringList getAllowedDnsNamesList() { return allowedDnsNames_; } /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3535,13 +4290,17 @@ private AllowedSubjectAltNames(
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedDnsNames. */ public int getAllowedDnsNamesCount() { return allowedDnsNames_.size(); } /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3552,7 +4311,9 @@ public int getAllowedDnsNamesCount() {
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedDnsNames at the given index. */ @@ -3560,6 +4321,8 @@ public java.lang.String getAllowedDnsNames(int index) { return allowedDnsNames_.get(index); } /** + * + * *
        * Optional. Contains valid, fully-qualified host names. Glob patterns are also
        * supported. To allow an explicit wildcard certificate, escape with
@@ -3570,18 +4333,21 @@ public java.lang.String getAllowedDnsNames(int index) {
        * `foo.bar.com`.
        * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedDnsNames at the given index. */ - public com.google.protobuf.ByteString - getAllowedDnsNamesBytes(int index) { + public com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index) { return allowedDnsNames_.getByteString(index); } public static final int ALLOWED_URIS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList allowedUris_; /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3589,13 +4355,15 @@ public java.lang.String getAllowedDnsNames(int index) {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedUris. */ - public com.google.protobuf.ProtocolStringList - getAllowedUrisList() { + public com.google.protobuf.ProtocolStringList getAllowedUrisList() { return allowedUris_; } /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3603,12 +4371,15 @@ public java.lang.String getAllowedDnsNames(int index) {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedUris. */ public int getAllowedUrisCount() { return allowedUris_.size(); } /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3616,6 +4387,7 @@ public int getAllowedUrisCount() {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedUris at the given index. */ @@ -3623,6 +4395,8 @@ public java.lang.String getAllowedUris(int index) { return allowedUris_.get(index); } /** + * + * *
        * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
        * match across path seperators (i.e. '/') use the double star glob
@@ -3630,48 +4404,62 @@ public java.lang.String getAllowedUris(int index) {
        * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedUris at the given index. */ - public com.google.protobuf.ByteString - getAllowedUrisBytes(int index) { + public com.google.protobuf.ByteString getAllowedUrisBytes(int index) { return allowedUris_.getByteString(index); } public static final int ALLOWED_EMAIL_ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList allowedEmailAddresses_; /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedEmailAddresses. */ - public com.google.protobuf.ProtocolStringList - getAllowedEmailAddressesList() { + public com.google.protobuf.ProtocolStringList getAllowedEmailAddressesList() { return allowedEmailAddresses_; } /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedEmailAddresses. */ public int getAllowedEmailAddressesCount() { return allowedEmailAddresses_.size(); } /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedEmailAddresses at the given index. */ @@ -3679,23 +4467,29 @@ public java.lang.String getAllowedEmailAddresses(int index) { return allowedEmailAddresses_.get(index); } /** + * + * *
        * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
        * supported.
        * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedEmailAddresses at the given index. */ - public com.google.protobuf.ByteString - getAllowedEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index) { return allowedEmailAddresses_.getByteString(index); } public static final int ALLOWED_IPS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedIps_; /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3704,13 +4498,15 @@ public java.lang.String getAllowedEmailAddresses(int index) {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedIps. */ - public com.google.protobuf.ProtocolStringList - getAllowedIpsList() { + public com.google.protobuf.ProtocolStringList getAllowedIpsList() { return allowedIps_; } /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3719,12 +4515,15 @@ public java.lang.String getAllowedEmailAddresses(int index) {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedIps. */ public int getAllowedIpsCount() { return allowedIps_.size(); } /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3733,6 +4532,7 @@ public int getAllowedIpsCount() {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedIps at the given index. */ @@ -3740,6 +4540,8 @@ public java.lang.String getAllowedIps(int index) { return allowedIps_.get(index); } /** + * + * *
        * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
        * addresses and subnet ranges. Subnet ranges are specified using the
@@ -3748,23 +4550,27 @@ public java.lang.String getAllowedIps(int index) {
        * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedIps at the given index. */ - public com.google.protobuf.ByteString - getAllowedIpsBytes(int index) { + public com.google.protobuf.ByteString getAllowedIpsBytes(int index) { return allowedIps_.getByteString(index); } public static final int ALLOW_GLOBBING_DNS_WILDCARDS_FIELD_NUMBER = 5; private boolean allowGlobbingDnsWildcards_; /** + * + * *
        * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
        * wildcard certificates.
        * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowGlobbingDnsWildcards. */ @java.lang.Override @@ -3775,11 +4581,14 @@ public boolean getAllowGlobbingDnsWildcards() { public static final int ALLOW_CUSTOM_SANS_FIELD_NUMBER = 6; private boolean allowCustomSans_; /** + * + * *
        * Optional. Specifies if to allow custom X509Extension values.
        * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowCustomSans. */ @java.lang.Override @@ -3788,6 +4597,7 @@ public boolean getAllowCustomSans() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3799,8 +4609,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedDnsNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedDnsNames_.getRaw(i)); } @@ -3808,7 +4617,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allowedUris_.getRaw(i)); } for (int i = 0; i < allowedEmailAddresses_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allowedEmailAddresses_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, allowedEmailAddresses_.getRaw(i)); } for (int i = 0; i < allowedIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedIps_.getRaw(i)); @@ -3861,12 +4671,11 @@ public int getSerializedSize() { size += 1 * getAllowedIpsList().size(); } if (allowGlobbingDnsWildcards_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowGlobbingDnsWildcards_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowGlobbingDnsWildcards_); } if (allowCustomSans_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, allowCustomSans_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowCustomSans_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3876,25 +4685,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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) obj; - - if (!getAllowedDnsNamesList() - .equals(other.getAllowedDnsNamesList())) return false; - if (!getAllowedUrisList() - .equals(other.getAllowedUrisList())) return false; - if (!getAllowedEmailAddressesList() - .equals(other.getAllowedEmailAddressesList())) return false; - if (!getAllowedIpsList() - .equals(other.getAllowedIpsList())) return false; - if (getAllowGlobbingDnsWildcards() - != other.getAllowGlobbingDnsWildcards()) return false; - if (getAllowCustomSans() - != other.getAllowCustomSans()) return false; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .AllowedSubjectAltNames + other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames) + obj; + + if (!getAllowedDnsNamesList().equals(other.getAllowedDnsNamesList())) return false; + if (!getAllowedUrisList().equals(other.getAllowedUrisList())) return false; + if (!getAllowedEmailAddressesList().equals(other.getAllowedEmailAddressesList())) + return false; + if (!getAllowedIpsList().equals(other.getAllowedIpsList())) return false; + if (getAllowGlobbingDnsWildcards() != other.getAllowGlobbingDnsWildcards()) return false; + if (getAllowCustomSans() != other.getAllowCustomSans()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3923,98 +4735,126 @@ public int hashCode() { hash = (53 * hash) + getAllowedIpsList().hashCode(); } hash = (37 * hash) + ALLOW_GLOBBING_DNS_WILDCARDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowGlobbingDnsWildcards()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowGlobbingDnsWildcards()); hash = (37 * hash) + ALLOW_CUSTOM_SANS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowCustomSans()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCustomSans()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames 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.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4024,46 +4864,55 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] specifies the allowed values for
        * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] when issuing
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4083,19 +4932,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4103,8 +4959,14 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowedDnsNames_ = allowedDnsNames_.getUnmodifiableView(); @@ -4136,46 +4998,61 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance()) + return this; if (!other.allowedDnsNames_.isEmpty()) { if (allowedDnsNames_.isEmpty()) { allowedDnsNames_ = other.allowedDnsNames_; @@ -4237,11 +5114,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4250,16 +5132,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList allowedDnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedDnsNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedDnsNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allowedDnsNames_ = new com.google.protobuf.LazyStringArrayList(allowedDnsNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4270,14 +5157,17 @@ private void ensureAllowedDnsNamesIsMutable() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedDnsNames. */ - public com.google.protobuf.ProtocolStringList - getAllowedDnsNamesList() { + public com.google.protobuf.ProtocolStringList getAllowedDnsNamesList() { return allowedDnsNames_.getUnmodifiableView(); } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4288,13 +5178,17 @@ private void ensureAllowedDnsNamesIsMutable() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedDnsNames. */ public int getAllowedDnsNamesCount() { return allowedDnsNames_.size(); } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4305,7 +5199,9 @@ public int getAllowedDnsNamesCount() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedDnsNames at the given index. */ @@ -4313,6 +5209,8 @@ public java.lang.String getAllowedDnsNames(int index) { return allowedDnsNames_.get(index); } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4323,15 +5221,18 @@ public java.lang.String getAllowedDnsNames(int index) {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedDnsNames at the given index. */ - public com.google.protobuf.ByteString - getAllowedDnsNamesBytes(int index) { + public com.google.protobuf.ByteString getAllowedDnsNamesBytes(int index) { return allowedDnsNames_.getByteString(index); } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4342,22 +5243,25 @@ public java.lang.String getAllowedDnsNames(int index) {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedDnsNames to set. * @return This builder for chaining. */ - public Builder setAllowedDnsNames( - int index, java.lang.String value) { + public Builder setAllowedDnsNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedDnsNamesIsMutable(); allowedDnsNames_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4368,21 +5272,24 @@ public Builder setAllowedDnsNames(
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedDnsNames to add. * @return This builder for chaining. */ - public Builder addAllowedDnsNames( - java.lang.String value) { + public Builder addAllowedDnsNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedDnsNamesIsMutable(); allowedDnsNames_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4393,19 +5300,21 @@ public Builder addAllowedDnsNames(
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedDnsNames to add. * @return This builder for chaining. */ - public Builder addAllAllowedDnsNames( - java.lang.Iterable values) { + public Builder addAllAllowedDnsNames(java.lang.Iterable values) { ensureAllowedDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedDnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedDnsNames_); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4416,7 +5325,9 @@ public Builder addAllAllowedDnsNames(
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedDnsNames() { @@ -4426,6 +5337,8 @@ public Builder clearAllowedDnsNames() { return this; } /** + * + * *
          * Optional. Contains valid, fully-qualified host names. Glob patterns are also
          * supported. To allow an explicit wildcard certificate, escape with
@@ -4436,30 +5349,35 @@ public Builder clearAllowedDnsNames() {
          * `foo.bar.com`.
          * 
* - * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_dns_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedDnsNames to add. * @return This builder for chaining. */ - public Builder addAllowedDnsNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedDnsNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedDnsNamesIsMutable(); allowedDnsNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { allowedUris_ = new com.google.protobuf.LazyStringArrayList(allowedUris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4467,13 +5385,15 @@ private void ensureAllowedUrisIsMutable() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedUris. */ - public com.google.protobuf.ProtocolStringList - getAllowedUrisList() { + public com.google.protobuf.ProtocolStringList getAllowedUrisList() { return allowedUris_.getUnmodifiableView(); } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4481,12 +5401,15 @@ private void ensureAllowedUrisIsMutable() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedUris. */ public int getAllowedUrisCount() { return allowedUris_.size(); } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4494,6 +5417,7 @@ public int getAllowedUrisCount() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedUris at the given index. */ @@ -4501,6 +5425,8 @@ public java.lang.String getAllowedUris(int index) { return allowedUris_.get(index); } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4508,14 +5434,16 @@ public java.lang.String getAllowedUris(int index) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedUris at the given index. */ - public com.google.protobuf.ByteString - getAllowedUrisBytes(int index) { + public com.google.protobuf.ByteString getAllowedUrisBytes(int index) { return allowedUris_.getByteString(index); } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4523,21 +5451,23 @@ public java.lang.String getAllowedUris(int index) {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The allowedUris to set. * @return This builder for chaining. */ - public Builder setAllowedUris( - int index, java.lang.String value) { + public Builder setAllowedUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedUrisIsMutable(); + throw new NullPointerException(); + } + ensureAllowedUrisIsMutable(); allowedUris_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4545,20 +5475,22 @@ public Builder setAllowedUris(
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowedUris to add. * @return This builder for chaining. */ - public Builder addAllowedUris( - java.lang.String value) { + public Builder addAllowedUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedUrisIsMutable(); + throw new NullPointerException(); + } + ensureAllowedUrisIsMutable(); allowedUris_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4566,18 +5498,19 @@ public Builder addAllowedUris(
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The allowedUris to add. * @return This builder for chaining. */ - public Builder addAllAllowedUris( - java.lang.Iterable values) { + public Builder addAllAllowedUris(java.lang.Iterable values) { ensureAllowedUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedUris_); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4585,6 +5518,7 @@ public Builder addAllAllowedUris(
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowedUris() { @@ -4594,6 +5528,8 @@ public Builder clearAllowedUris() { return this; } /** + * + * *
          * Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
          * match across path seperators (i.e. '/') use the double star glob
@@ -4601,60 +5537,77 @@ public Builder clearAllowedUris() {
          * 
* * repeated string allowed_uris = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the allowedUris to add. * @return This builder for chaining. */ - public Builder addAllowedUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedUrisIsMutable(); allowedUris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedEmailAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedEmailAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - allowedEmailAddresses_ = new com.google.protobuf.LazyStringArrayList(allowedEmailAddresses_); + allowedEmailAddresses_ = + new com.google.protobuf.LazyStringArrayList(allowedEmailAddresses_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedEmailAddresses. */ - public com.google.protobuf.ProtocolStringList - getAllowedEmailAddressesList() { + public com.google.protobuf.ProtocolStringList getAllowedEmailAddressesList() { return allowedEmailAddresses_.getUnmodifiableView(); } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedEmailAddresses. */ public int getAllowedEmailAddressesCount() { return allowedEmailAddresses_.size(); } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedEmailAddresses at the given index. */ @@ -4662,85 +5615,105 @@ public java.lang.String getAllowedEmailAddresses(int index) { return allowedEmailAddresses_.get(index); } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedEmailAddresses at the given index. */ - public com.google.protobuf.ByteString - getAllowedEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString getAllowedEmailAddressesBytes(int index) { return allowedEmailAddresses_.getByteString(index); } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedEmailAddresses to set. * @return This builder for chaining. */ - public Builder setAllowedEmailAddresses( - int index, java.lang.String value) { + public Builder setAllowedEmailAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedEmailAddressesIsMutable(); allowedEmailAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedEmailAddresses to add. * @return This builder for chaining. */ - public Builder addAllowedEmailAddresses( - java.lang.String value) { + public Builder addAllowedEmailAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedEmailAddressesIsMutable(); allowedEmailAddresses_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedEmailAddresses to add. * @return This builder for chaining. */ - public Builder addAllAllowedEmailAddresses( - java.lang.Iterable values) { + public Builder addAllAllowedEmailAddresses(java.lang.Iterable values) { ensureAllowedEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedEmailAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedEmailAddresses_); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedEmailAddresses() { @@ -4750,35 +5723,43 @@ public Builder clearAllowedEmailAddresses() { return this; } /** + * + * *
          * Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
          * supported.
          * 
* - * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_email_addresses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedEmailAddresses to add. * @return This builder for chaining. */ - public Builder addAllowedEmailAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedEmailAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedEmailAddressesIsMutable(); allowedEmailAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList allowedIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedIpsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { allowedIps_ = new com.google.protobuf.LazyStringArrayList(allowedIps_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4787,13 +5768,15 @@ private void ensureAllowedIpsIsMutable() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedIps. */ - public com.google.protobuf.ProtocolStringList - getAllowedIpsList() { + public com.google.protobuf.ProtocolStringList getAllowedIpsList() { return allowedIps_.getUnmodifiableView(); } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4802,12 +5785,15 @@ private void ensureAllowedIpsIsMutable() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedIps. */ public int getAllowedIpsCount() { return allowedIps_.size(); } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4816,6 +5802,7 @@ public int getAllowedIpsCount() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedIps at the given index. */ @@ -4823,6 +5810,8 @@ public java.lang.String getAllowedIps(int index) { return allowedIps_.get(index); } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4831,14 +5820,16 @@ public java.lang.String getAllowedIps(int index) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedIps at the given index. */ - public com.google.protobuf.ByteString - getAllowedIpsBytes(int index) { + public com.google.protobuf.ByteString getAllowedIpsBytes(int index) { return allowedIps_.getByteString(index); } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4847,21 +5838,23 @@ public java.lang.String getAllowedIps(int index) {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The allowedIps to set. * @return This builder for chaining. */ - public Builder setAllowedIps( - int index, java.lang.String value) { + public Builder setAllowedIps(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedIpsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedIpsIsMutable(); allowedIps_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4870,20 +5863,22 @@ public Builder setAllowedIps(
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowedIps to add. * @return This builder for chaining. */ - public Builder addAllowedIps( - java.lang.String value) { + public Builder addAllowedIps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedIpsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedIpsIsMutable(); allowedIps_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4892,18 +5887,19 @@ public Builder addAllowedIps(
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The allowedIps to add. * @return This builder for chaining. */ - public Builder addAllAllowedIps( - java.lang.Iterable values) { + public Builder addAllAllowedIps(java.lang.Iterable values) { ensureAllowedIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedIps_); onChanged(); return this; } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4912,6 +5908,7 @@ public Builder addAllAllowedIps(
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowedIps() { @@ -4921,6 +5918,8 @@ public Builder clearAllowedIps() { return this; } /** + * + * *
          * Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291 IPv6
          * addresses and subnet ranges. Subnet ranges are specified using the
@@ -4929,29 +5928,33 @@ public Builder clearAllowedIps() {
          * 
* * repeated string allowed_ips = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the allowedIps to add. * @return This builder for chaining. */ - public Builder addAllowedIpsBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedIpsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedIpsIsMutable(); allowedIps_.add(value); onChanged(); return this; } - private boolean allowGlobbingDnsWildcards_ ; + private boolean allowGlobbingDnsWildcards_; /** + * + * *
          * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
          * wildcard certificates.
          * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowGlobbingDnsWildcards. */ @java.lang.Override @@ -4959,44 +5962,55 @@ public boolean getAllowGlobbingDnsWildcards() { return allowGlobbingDnsWildcards_; } /** + * + * *
          * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
          * wildcard certificates.
          * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowGlobbingDnsWildcards to set. * @return This builder for chaining. */ public Builder setAllowGlobbingDnsWildcards(boolean value) { - + allowGlobbingDnsWildcards_ = value; onChanged(); return this; } /** + * + * *
          * Optional. Specifies if glob patterns used for [allowed_dns_names][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.allowed_dns_names] allows
          * wildcard certificates.
          * 
* - * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * bool allow_globbing_dns_wildcards = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowGlobbingDnsWildcards() { - + allowGlobbingDnsWildcards_ = false; onChanged(); return this; } - private boolean allowCustomSans_ ; + private boolean allowCustomSans_; /** + * + * *
          * Optional. Specifies if to allow custom X509Extension values.
          * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowCustomSans. */ @java.lang.Override @@ -5004,34 +6018,41 @@ public boolean getAllowCustomSans() { return allowCustomSans_; } /** + * + * *
          * Optional. Specifies if to allow custom X509Extension values.
          * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowCustomSans to set. * @return This builder for chaining. */ public Builder setAllowCustomSans(boolean value) { - + allowCustomSans_ = value; onChanged(); return this; } /** + * + * *
          * Optional. Specifies if to allow custom X509Extension values.
          * 
* * bool allow_custom_sans = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowCustomSans() { - + allowCustomSans_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5044,30 +6065,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedSubjectAltNames parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllowedSubjectAltNames(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedSubjectAltNames parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowedSubjectAltNames(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5079,71 +6106,82 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IssuanceModesOrBuilder extends + public interface IssuanceModesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The allowCsrBasedIssuance. */ boolean getAllowCsrBasedIssuance(); /** + * + * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowConfigBasedIssuance. */ boolean getAllowConfigBasedIssuance(); } /** + * + * *
      * [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] specifies the allowed ways in which
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] may be requested from this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} */ - public static final class IssuanceModes extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IssuanceModes extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) IssuanceModesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IssuanceModes.newBuilder() to construct. private IssuanceModes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IssuanceModes() { - } + + private IssuanceModes() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IssuanceModes(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IssuanceModes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5162,23 +6200,23 @@ private IssuanceModes( case 0: done = true; break; - case 8: { - - allowCsrBasedIssuance_ = input.readBool(); - break; - } - case 16: { - - allowConfigBasedIssuance_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + allowCsrBasedIssuance_ = input.readBool(); + break; + } + case 16: + { + allowConfigBasedIssuance_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5186,35 +6224,43 @@ private IssuanceModes( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder.class); } public static final int ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER = 1; private boolean allowCsrBasedIssuance_; /** + * + * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a CSR.
        * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -5225,12 +6271,16 @@ public boolean getAllowCsrBasedIssuance() { public static final int ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER = 2; private boolean allowConfigBasedIssuance_; /** + * + * *
        * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
        * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
        * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -5239,6 +6289,7 @@ public boolean getAllowConfigBasedIssuance() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5250,8 +6301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (allowCsrBasedIssuance_ != false) { output.writeBool(1, allowCsrBasedIssuance_); } @@ -5268,12 +6318,11 @@ public int getSerializedSize() { size = 0; if (allowCsrBasedIssuance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, allowCsrBasedIssuance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowCsrBasedIssuance_); } if (allowConfigBasedIssuance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowConfigBasedIssuance_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowConfigBasedIssuance_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5283,17 +6332,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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .IssuanceModes + other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes) + obj; - if (getAllowCsrBasedIssuance() - != other.getAllowCsrBasedIssuance()) return false; - if (getAllowConfigBasedIssuance() - != other.getAllowConfigBasedIssuance()) return false; + if (getAllowCsrBasedIssuance() != other.getAllowCsrBasedIssuance()) return false; + if (getAllowConfigBasedIssuance() != other.getAllowConfigBasedIssuance()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5306,98 +6361,126 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_CSR_BASED_ISSUANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowCsrBasedIssuance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCsrBasedIssuance()); hash = (37 * hash) + ALLOW_CONFIG_BASED_ISSUANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowConfigBasedIssuance()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowConfigBasedIssuance()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes 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.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5407,46 +6490,55 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] specifies the allowed ways in which
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] may be requested from this
        * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
        * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -5458,19 +6550,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5478,8 +6577,14 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes(this); result.allowCsrBasedIssuance_ = allowCsrBasedIssuance_; result.allowConfigBasedIssuance_ = allowConfigBasedIssuance_; onBuilt(); @@ -5490,46 +6595,60 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance()) return this; if (other.getAllowCsrBasedIssuance() != false) { setAllowCsrBasedIssuance(other.getAllowCsrBasedIssuance()); } @@ -5551,11 +6670,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5565,14 +6689,17 @@ public Builder mergeFrom( return this; } - private boolean allowCsrBasedIssuance_ ; + private boolean allowCsrBasedIssuance_; /** + * + * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The allowCsrBasedIssuance. */ @java.lang.Override @@ -5580,45 +6707,55 @@ public boolean getAllowCsrBasedIssuance() { return allowCsrBasedIssuance_; } /** + * + * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The allowCsrBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowCsrBasedIssuance(boolean value) { - + allowCsrBasedIssuance_ = value; onChanged(); return this; } /** + * + * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a CSR.
          * 
* * bool allow_csr_based_issuance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAllowCsrBasedIssuance() { - + allowCsrBasedIssuance_ = false; onChanged(); return this; } - private boolean allowConfigBasedIssuance_ ; + private boolean allowConfigBasedIssuance_; /** + * + * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The allowConfigBasedIssuance. */ @java.lang.Override @@ -5626,36 +6763,45 @@ public boolean getAllowConfigBasedIssuance() { return allowConfigBasedIssuance_; } /** + * + * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The allowConfigBasedIssuance to set. * @return This builder for chaining. */ public Builder setAllowConfigBasedIssuance(boolean value) { - + allowConfigBasedIssuance_ = value; onChanged(); return this; } /** + * + * *
          * Required. When true, allows callers to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate] by
          * specifying a [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig].
          * 
* - * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool allow_config_based_issuance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAllowConfigBasedIssuance() { - + allowConfigBasedIssuance_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5668,30 +6814,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IssuanceModes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IssuanceModes(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssuanceModes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IssuanceModes(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5703,21 +6855,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int configPolicyCase_ = 0; private java.lang.Object configPolicy_; + public enum ConfigPolicyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALLOWED_CONFIG_LIST(1), OVERWRITE_CONFIG_VALUES(2), CONFIGPOLICY_NOT_SET(0); private final int value; + private ConfigPolicyCase(int value) { this.value = value; } @@ -5733,31 +6889,39 @@ public static ConfigPolicyCase valueOf(int value) { public static ConfigPolicyCase forNumber(int value) { switch (value) { - case 1: return ALLOWED_CONFIG_LIST; - case 2: return OVERWRITE_CONFIG_VALUES; - case 0: return CONFIGPOLICY_NOT_SET; - default: return null; + case 1: + return ALLOWED_CONFIG_LIST; + case 2: + return OVERWRITE_CONFIG_VALUES; + case 0: + return CONFIGPOLICY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigPolicyCase - getConfigPolicyCase() { - return ConfigPolicyCase.forNumber( - configPolicyCase_); + public ConfigPolicyCase getConfigPolicyCase() { + return ConfigPolicyCase.forNumber(configPolicyCase_); } public static final int ALLOWED_CONFIG_LIST_FIELD_NUMBER = 1; /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedConfigList field is set. */ @java.lang.Override @@ -5765,46 +6929,70 @@ public boolean hasAllowedConfigList() { return configPolicyCase_ == 1; } /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedConfigList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getAllowedConfigList() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + getAllowedConfigList() { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder getAllowedConfigListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigListOrBuilder + getAllowedConfigListOrBuilder() { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } public static final int OVERWRITE_CONFIG_VALUES_FIELD_NUMBER = 2; /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the overwriteConfigValues field is set. */ @java.lang.Override @@ -5812,42 +7000,56 @@ public boolean hasOverwriteConfigValues() { return configPolicyCase_ == 2; } /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The overwriteConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getOverwriteConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + getOverwriteConfigValues() { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } /** + * + * *
      * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * will use the provided configuration values, overwriting any requested
      * configuration values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getOverwriteConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getOverwriteConfigValuesOrBuilder() { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); } public static final int ALLOWED_LOCATIONS_AND_ORGANIZATIONS_FIELD_NUMBER = 3; - private java.util.List allowedLocationsAndOrganizations_; + private java.util.List + allowedLocationsAndOrganizations_; /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5855,13 +7057,18 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilde
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAllowedLocationsAndOrganizationsList() { + public java.util.List + getAllowedLocationsAndOrganizationsList() { return allowedLocationsAndOrganizations_; } /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5869,14 +7076,18 @@ public java.util.List getAl
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getAllowedLocationsAndOrganizationsOrBuilderList() { return allowedLocationsAndOrganizations_; } /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5884,13 +7095,17 @@ public java.util.List getAl
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAllowedLocationsAndOrganizationsCount() { return allowedLocationsAndOrganizations_.size(); } /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5898,13 +7113,18 @@ public int getAllowedLocationsAndOrganizationsCount() {
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations(int index) { + public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations( + int index) { return allowedLocationsAndOrganizations_.get(index); } /** + * + * *
      * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5912,17 +7132,21 @@ public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAn
      * field, any value will be allowed for that field.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocationsAndOrganizationsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder + getAllowedLocationsAndOrganizationsOrBuilder(int index) { return allowedLocationsAndOrganizations_.get(index); } public static final int ALLOWED_COMMON_NAMES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedCommonNames_; /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5930,14 +7154,17 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLo
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedCommonNames. */ - public com.google.protobuf.ProtocolStringList - getAllowedCommonNamesList() { + public com.google.protobuf.ProtocolStringList getAllowedCommonNamesList() { return allowedCommonNames_; } /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5945,13 +7172,17 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLo
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedCommonNames. */ public int getAllowedCommonNamesCount() { return allowedCommonNames_.size(); } /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5959,7 +7190,9 @@ public int getAllowedCommonNamesCount() {
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedCommonNames at the given index. */ @@ -5967,6 +7200,8 @@ public java.lang.String getAllowedCommonNames(int index) { return allowedCommonNames_.get(index); } /** + * + * *
      * Optional. If any value is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5974,18 +7209,23 @@ public java.lang.String getAllowedCommonNames(int index) {
      * will be allowed for this fied. Glob patterns are also supported.
      * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedCommonNames at the given index. */ - public com.google.protobuf.ByteString - getAllowedCommonNamesBytes(int index) { + public com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index) { return allowedCommonNames_.getByteString(index); } public static final int ALLOWED_SANS_FIELD_NUMBER = 5; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowedSans_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + allowedSans_; /** + * + * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -5994,7 +7234,10 @@ public java.lang.String getAllowedCommonNames(int index) {
      * field.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedSans field is set. */ @java.lang.Override @@ -6002,6 +7245,8 @@ public boolean hasAllowedSans() { return allowedSans_ != null; } /** + * + * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -6010,14 +7255,24 @@ public boolean hasAllowedSans() {
      * field.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedSans. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getAllowedSans() { - return allowedSans_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() : allowedSans_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + getAllowedSans() { + return allowedSans_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() + : allowedSans_; } /** + * + * *
      * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -6026,16 +7281,22 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific
      * field.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder getAllowedSansOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder + getAllowedSansOrBuilder() { return getAllowedSans(); } public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 6; private com.google.protobuf.Duration maximumLifetime_; /** + * + * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -6043,7 +7304,10 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific
      * truncated.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumLifetime field is set. */ @java.lang.Override @@ -6051,6 +7315,8 @@ public boolean hasMaximumLifetime() { return maximumLifetime_ != null; } /** + * + * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -6058,14 +7324,21 @@ public boolean hasMaximumLifetime() {
      * truncated.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumLifetime. */ @java.lang.Override public com.google.protobuf.Duration getMaximumLifetime() { - return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; } /** + * + * *
      * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
      * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -6073,7 +7346,9 @@ public com.google.protobuf.Duration getMaximumLifetime() {
      * truncated.
      * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { @@ -6081,14 +7356,21 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { } public static final int ALLOWED_ISSUANCE_MODES_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + allowedIssuanceModes_; /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedIssuanceModes field is set. */ @java.lang.Override @@ -6096,32 +7378,49 @@ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModes_ != null; } /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedIssuanceModes. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getAllowedIssuanceModes() { - return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + getAllowedIssuanceModes() { + return allowedIssuanceModes_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() + : allowedIssuanceModes_; } /** + * + * *
      * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
      * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModesOrBuilder + getAllowedIssuanceModesOrBuilder() { return getAllowedIssuanceModes(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6133,19 +7432,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configPolicyCase_ == 1) { - output.writeMessage(1, (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_); + output.writeMessage( + 1, + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_); } if (configPolicyCase_ == 2) { - output.writeMessage(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); + output.writeMessage( + 2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); } for (int i = 0; i < allowedLocationsAndOrganizations_.size(); i++) { output.writeMessage(3, allowedLocationsAndOrganizations_.get(i)); } for (int i = 0; i < allowedCommonNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedCommonNames_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, allowedCommonNames_.getRaw(i)); } if (allowedSans_ != null) { output.writeMessage(5, getAllowedSans()); @@ -6166,16 +7470,23 @@ public int getSerializedSize() { size = 0; if (configPolicyCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_); } if (configPolicyCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_); } for (int i = 0; i < allowedLocationsAndOrganizations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, allowedLocationsAndOrganizations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, allowedLocationsAndOrganizations_.get(i)); } { int dataSize = 0; @@ -6186,16 +7497,14 @@ public int getSerializedSize() { size += 1 * getAllowedCommonNamesList().size(); } if (allowedSans_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAllowedSans()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAllowedSans()); } if (maximumLifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMaximumLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaximumLifetime()); } if (allowedIssuanceModes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAllowedIssuanceModes()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAllowedIssuanceModes()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6205,41 +7514,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy) + obj; if (!getAllowedLocationsAndOrganizationsList() .equals(other.getAllowedLocationsAndOrganizationsList())) return false; - if (!getAllowedCommonNamesList() - .equals(other.getAllowedCommonNamesList())) return false; + if (!getAllowedCommonNamesList().equals(other.getAllowedCommonNamesList())) return false; if (hasAllowedSans() != other.hasAllowedSans()) return false; if (hasAllowedSans()) { - if (!getAllowedSans() - .equals(other.getAllowedSans())) return false; + if (!getAllowedSans().equals(other.getAllowedSans())) return false; } if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; if (hasMaximumLifetime()) { - if (!getMaximumLifetime() - .equals(other.getMaximumLifetime())) return false; + if (!getMaximumLifetime().equals(other.getMaximumLifetime())) return false; } if (hasAllowedIssuanceModes() != other.hasAllowedIssuanceModes()) return false; if (hasAllowedIssuanceModes()) { - if (!getAllowedIssuanceModes() - .equals(other.getAllowedIssuanceModes())) return false; + if (!getAllowedIssuanceModes().equals(other.getAllowedIssuanceModes())) return false; } if (!getConfigPolicyCase().equals(other.getConfigPolicyCase())) return false; switch (configPolicyCase_) { case 1: - if (!getAllowedConfigList() - .equals(other.getAllowedConfigList())) return false; + if (!getAllowedConfigList().equals(other.getAllowedConfigList())) return false; break; case 2: - if (!getOverwriteConfigValues() - .equals(other.getOverwriteConfigValues())) return false; + if (!getOverwriteConfigValues().equals(other.getOverwriteConfigValues())) return false; break; case 0: default: @@ -6292,88 +7602,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy 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.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + 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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6383,47 +7719,57 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The issuing policy for a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] will not be successfully issued from this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] if they violate the policy.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAllowedLocationsAndOrganizationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -6459,19 +7805,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6479,8 +7831,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy(this); int from_bitField0_ = bitField0_; if (configPolicyCase_ == 1) { if (allowedConfigListBuilder_ == null) { @@ -6498,12 +7855,14 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific } if (allowedLocationsAndOrganizationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizations_ = + java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); bitField0_ = (bitField0_ & ~0x00000001); } result.allowedLocationsAndOrganizations_ = allowedLocationsAndOrganizations_; } else { - result.allowedLocationsAndOrganizations_ = allowedLocationsAndOrganizationsBuilder_.build(); + result.allowedLocationsAndOrganizations_ = + allowedLocationsAndOrganizationsBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { allowedCommonNames_ = allowedCommonNames_.getUnmodifiableView(); @@ -6534,46 +7893,60 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.getDefaultInstance()) return this; if (allowedLocationsAndOrganizationsBuilder_ == null) { if (!other.allowedLocationsAndOrganizations_.isEmpty()) { if (allowedLocationsAndOrganizations_.isEmpty()) { @@ -6592,11 +7965,13 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate allowedLocationsAndOrganizationsBuilder_ = null; allowedLocationsAndOrganizations_ = other.allowedLocationsAndOrganizations_; bitField0_ = (bitField0_ & ~0x00000001); - allowedLocationsAndOrganizationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAllowedLocationsAndOrganizationsFieldBuilder() : null; + allowedLocationsAndOrganizationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAllowedLocationsAndOrganizationsFieldBuilder() + : null; } else { - allowedLocationsAndOrganizationsBuilder_.addAllMessages(other.allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizationsBuilder_.addAllMessages( + other.allowedLocationsAndOrganizations_); } } } @@ -6616,21 +7991,24 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate if (other.hasMaximumLifetime()) { mergeMaximumLifetime(other.getMaximumLifetime()); } - if (other.hasAllowedIssuanceModes()) { - mergeAllowedIssuanceModes(other.getAllowedIssuanceModes()); - } - switch (other.getConfigPolicyCase()) { - case ALLOWED_CONFIG_LIST: { - mergeAllowedConfigList(other.getAllowedConfigList()); - break; - } - case OVERWRITE_CONFIG_VALUES: { - mergeOverwriteConfigValues(other.getOverwriteConfigValues()); - break; - } - case CONFIGPOLICY_NOT_SET: { - break; - } + if (other.hasAllowedIssuanceModes()) { + mergeAllowedIssuanceModes(other.getAllowedIssuanceModes()); + } + switch (other.getConfigPolicyCase()) { + case ALLOWED_CONFIG_LIST: + { + mergeAllowedConfigList(other.getAllowedConfigList()); + break; + } + case OVERWRITE_CONFIG_VALUES: + { + mergeOverwriteConfigValues(other.getOverwriteConfigValues()); + break; + } + case CONFIGPOLICY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -6647,11 +8025,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6660,12 +8042,12 @@ public Builder mergeFrom( } return this; } + private int configPolicyCase_ = 0; private java.lang.Object configPolicy_; - public ConfigPolicyCase - getConfigPolicyCase() { - return ConfigPolicyCase.forNumber( - configPolicyCase_); + + public ConfigPolicyCase getConfigPolicyCase() { + return ConfigPolicyCase.forNumber(configPolicyCase_); } public Builder clearConfigPolicy() { @@ -6678,14 +8060,25 @@ public Builder clearConfigPolicy() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder> allowedConfigListBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigListOrBuilder> + allowedConfigListBuilder_; /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedConfigList field is set. */ @java.lang.Override @@ -6693,37 +8086,55 @@ public boolean hasAllowedConfigList() { return configPolicyCase_ == 1; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedConfigList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList getAllowedConfigList() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + getAllowedConfigList() { if (allowedConfigListBuilder_ == null) { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } else { if (configPolicyCase_ == 1) { return allowedConfigListBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAllowedConfigList(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList value) { + public Builder setAllowedConfigList( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + value) { if (allowedConfigListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6737,15 +8148,21 @@ public Builder setAllowedConfigList(com.google.cloud.security.privateca.v1beta1. return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedConfigList( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder + builderForValue) { if (allowedConfigListBuilder_ == null) { configPolicy_ = builderForValue.build(); onChanged(); @@ -6756,19 +8173,34 @@ public Builder setAllowedConfigList( return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAllowedConfigList(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList value) { + public Builder mergeAllowedConfigList( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList + value) { if (allowedConfigListBuilder_ == null) { - if (configPolicyCase_ == 1 && - configPolicy_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) { - configPolicy_ = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.newBuilder((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_) - .mergeFrom(value).buildPartial(); + if (configPolicyCase_ == 1 + && configPolicy_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance()) { + configPolicy_ = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.newBuilder( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_) + .mergeFrom(value) + .buildPartial(); } else { configPolicy_ = value; } @@ -6784,12 +8216,16 @@ public Builder mergeAllowedConfigList(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllowedConfigList() { if (allowedConfigListBuilder_ == null) { @@ -6808,72 +8244,115 @@ public Builder clearAllowedConfigList() { return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder getAllowedConfigListBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder + getAllowedConfigListBuilder() { return getAllowedConfigListFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder getAllowedConfigListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigListOrBuilder + getAllowedConfigListOrBuilder() { if ((configPolicyCase_ == 1) && (allowedConfigListBuilder_ != null)) { return allowedConfigListBuilder_.getMessageOrBuilder(); } else { if (configPolicyCase_ == 1) { - return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * must match at least one listed [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] in the list.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList allowed_config_list = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigListOrBuilder> getAllowedConfigListFieldBuilder() { if (allowedConfigListBuilder_ == null) { if (!(configPolicyCase_ == 1)) { - configPolicy_ = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); + configPolicy_ = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.getDefaultInstance(); } - allowedConfigListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListOrBuilder>( - (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList) configPolicy_, + allowedConfigListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigListOrBuilder>( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedConfigList) + configPolicy_, getParentForChildren(), isClean()); configPolicy_ = null; } configPolicyCase_ = 1; - onChanged();; + onChanged(); + ; return allowedConfigListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> overwriteConfigValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + overwriteConfigValuesBuilder_; /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the overwriteConfigValues field is set. */ @java.lang.Override @@ -6881,39 +8360,53 @@ public boolean hasOverwriteConfigValues() { return configPolicyCase_ == 2; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The overwriteConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getOverwriteConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + getOverwriteConfigValues() { if (overwriteConfigValuesBuilder_ == null) { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) + configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance(); } else { if (configPolicyCase_ == 2) { return overwriteConfigValuesBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance(); } } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setOverwriteConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder setOverwriteConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (overwriteConfigValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6927,16 +8420,21 @@ public Builder setOverwriteConfigValues(com.google.cloud.security.privateca.v1be return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOverwriteConfigValues( - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + builderForValue) { if (overwriteConfigValuesBuilder_ == null) { configPolicy_ = builderForValue.build(); onChanged(); @@ -6947,20 +8445,31 @@ public Builder setOverwriteConfigValues( return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeOverwriteConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder mergeOverwriteConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (overwriteConfigValuesBuilder_ == null) { - if (configPolicyCase_ == 2 && - configPolicy_ != com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()) { - configPolicy_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_) - .mergeFrom(value).buildPartial(); + if (configPolicyCase_ == 2 + && configPolicy_ + != com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance()) { + configPolicy_ = + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder( + (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) + configPolicy_) + .mergeFrom(value) + .buildPartial(); } else { configPolicy_ = value; } @@ -6976,13 +8485,17 @@ public Builder mergeOverwriteConfigValues(com.google.cloud.security.privateca.v1 return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOverwriteConfigValues() { if (overwriteConfigValuesBuilder_ == null) { @@ -7001,78 +8514,110 @@ public Builder clearOverwriteConfigValues() { return this; } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder getOverwriteConfigValuesBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + getOverwriteConfigValuesBuilder() { return getOverwriteConfigValuesFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getOverwriteConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getOverwriteConfigValuesOrBuilder() { if ((configPolicyCase_ == 2) && (overwriteConfigValuesBuilder_ != null)) { return overwriteConfigValuesBuilder_.getMessageOrBuilder(); } else { if (configPolicyCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) + configPolicy_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance(); } } /** + * + * *
        * Optional. All [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
        * will use the provided configuration values, overwriting any requested
        * configuration values.
        * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper overwrite_config_values = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getOverwriteConfigValuesFieldBuilder() { if (overwriteConfigValuesBuilder_ == null) { if (!(configPolicyCase_ == 2)) { - configPolicy_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance(); + configPolicy_ = + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + .getDefaultInstance(); } - overwriteConfigValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( + overwriteConfigValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) configPolicy_, getParentForChildren(), isClean()); configPolicy_ = null; } configPolicyCase_ = 2; - onChanged();; + onChanged(); + ; return overwriteConfigValuesBuilder_; } - private java.util.List allowedLocationsAndOrganizations_ = - java.util.Collections.emptyList(); + private java.util.List + allowedLocationsAndOrganizations_ = java.util.Collections.emptyList(); + private void ensureAllowedLocationsAndOrganizationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedLocationsAndOrganizations_ = new java.util.ArrayList(allowedLocationsAndOrganizations_); + allowedLocationsAndOrganizations_ = + new java.util.ArrayList( + allowedLocationsAndOrganizations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> allowedLocationsAndOrganizationsBuilder_; + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + allowedLocationsAndOrganizationsBuilder_; /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7080,9 +8625,12 @@ private void ensureAllowedLocationsAndOrganizationsIsMutable() {
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAllowedLocationsAndOrganizationsList() { + public java.util.List + getAllowedLocationsAndOrganizationsList() { if (allowedLocationsAndOrganizationsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedLocationsAndOrganizations_); } else { @@ -7090,6 +8638,8 @@ public java.util.List getAl } } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7097,7 +8647,9 @@ public java.util.List getAl
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAllowedLocationsAndOrganizationsCount() { if (allowedLocationsAndOrganizationsBuilder_ == null) { @@ -7107,6 +8659,8 @@ public int getAllowedLocationsAndOrganizationsCount() { } } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7114,9 +8668,12 @@ public int getAllowedLocationsAndOrganizationsCount() {
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAndOrganizations(int index) { + public com.google.cloud.security.privateca.v1beta1.Subject + getAllowedLocationsAndOrganizations(int index) { if (allowedLocationsAndOrganizationsBuilder_ == null) { return allowedLocationsAndOrganizations_.get(index); } else { @@ -7124,6 +8681,8 @@ public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAn } } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7131,7 +8690,9 @@ public com.google.cloud.security.privateca.v1beta1.Subject getAllowedLocationsAn
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject value) { @@ -7148,6 +8709,8 @@ public Builder setAllowedLocationsAndOrganizations( return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7155,7 +8718,9 @@ public Builder setAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -7169,6 +8734,8 @@ public Builder setAllowedLocationsAndOrganizations( return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7176,9 +8743,12 @@ public Builder setAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAllowedLocationsAndOrganizations(com.google.cloud.security.privateca.v1beta1.Subject value) { + public Builder addAllowedLocationsAndOrganizations( + com.google.cloud.security.privateca.v1beta1.Subject value) { if (allowedLocationsAndOrganizationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7192,6 +8762,8 @@ public Builder addAllowedLocationsAndOrganizations(com.google.cloud.security.pri return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7199,7 +8771,9 @@ public Builder addAllowedLocationsAndOrganizations(com.google.cloud.security.pri
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject value) { @@ -7216,6 +8790,8 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7223,7 +8799,9 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllowedLocationsAndOrganizations( com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -7237,6 +8815,8 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7244,7 +8824,9 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllowedLocationsAndOrganizations( int index, com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -7258,6 +8840,8 @@ public Builder addAllowedLocationsAndOrganizations( return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7265,10 +8849,13 @@ public Builder addAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAllowedLocationsAndOrganizations( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (allowedLocationsAndOrganizationsBuilder_ == null) { ensureAllowedLocationsAndOrganizationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -7280,6 +8867,8 @@ public Builder addAllAllowedLocationsAndOrganizations( return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7287,7 +8876,9 @@ public Builder addAllAllowedLocationsAndOrganizations(
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllowedLocationsAndOrganizations() { if (allowedLocationsAndOrganizationsBuilder_ == null) { @@ -7300,6 +8891,8 @@ public Builder clearAllowedLocationsAndOrganizations() { return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7307,7 +8900,9 @@ public Builder clearAllowedLocationsAndOrganizations() {
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAllowedLocationsAndOrganizations(int index) { if (allowedLocationsAndOrganizationsBuilder_ == null) { @@ -7320,6 +8915,8 @@ public Builder removeAllowedLocationsAndOrganizations(int index) { return this; } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7327,13 +8924,17 @@ public Builder removeAllowedLocationsAndOrganizations(int index) {
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.Subject.Builder getAllowedLocationsAndOrganizationsBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.Subject.Builder + getAllowedLocationsAndOrganizationsBuilder(int index) { return getAllowedLocationsAndOrganizationsFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7341,16 +8942,21 @@ public com.google.cloud.security.privateca.v1beta1.Subject.Builder getAllowedLoc
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLocationsAndOrganizationsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder + getAllowedLocationsAndOrganizationsOrBuilder(int index) { if (allowedLocationsAndOrganizationsBuilder_ == null) { - return allowedLocationsAndOrganizations_.get(index); } else { + return allowedLocationsAndOrganizations_.get(index); + } else { return allowedLocationsAndOrganizationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7358,10 +8964,12 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLo
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAllowedLocationsAndOrganizationsOrBuilderList() { + public java.util.List + getAllowedLocationsAndOrganizationsOrBuilderList() { if (allowedLocationsAndOrganizationsBuilder_ != null) { return allowedLocationsAndOrganizationsBuilder_.getMessageOrBuilderList(); } else { @@ -7369,6 +8977,8 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLo } } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7376,13 +8986,18 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getAllowedLo
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLocationsAndOrganizationsBuilder() { - return getAllowedLocationsAndOrganizationsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.Subject.Builder + addAllowedLocationsAndOrganizationsBuilder() { + return getAllowedLocationsAndOrganizationsFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7390,14 +9005,19 @@ public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLoc
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLocationsAndOrganizationsBuilder( - int index) { - return getAllowedLocationsAndOrganizationsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.Subject.Builder + addAllowedLocationsAndOrganizationsBuilder(int index) { + return getAllowedLocationsAndOrganizationsFieldBuilder() + .addBuilder( + index, com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()); } /** + * + * *
        * Optional. If any [Subject][google.cloud.security.privateca.v1beta1.Subject] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7405,18 +9025,26 @@ public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLoc
        * field, any value will be allowed for that field.
        * 
* - * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.Subject allowed_locations_and_organizations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAllowedLocationsAndOrganizationsBuilderList() { + public java.util.List + getAllowedLocationsAndOrganizationsBuilderList() { return getAllowedLocationsAndOrganizationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> getAllowedLocationsAndOrganizationsFieldBuilder() { if (allowedLocationsAndOrganizationsBuilder_ == null) { - allowedLocationsAndOrganizationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( + allowedLocationsAndOrganizationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( allowedLocationsAndOrganizations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -7426,14 +9054,18 @@ public com.google.cloud.security.privateca.v1beta1.Subject.Builder addAllowedLoc return allowedLocationsAndOrganizationsBuilder_; } - private com.google.protobuf.LazyStringList allowedCommonNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedCommonNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedCommonNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { allowedCommonNames_ = new com.google.protobuf.LazyStringArrayList(allowedCommonNames_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7441,14 +9073,17 @@ private void ensureAllowedCommonNamesIsMutable() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedCommonNames. */ - public com.google.protobuf.ProtocolStringList - getAllowedCommonNamesList() { + public com.google.protobuf.ProtocolStringList getAllowedCommonNamesList() { return allowedCommonNames_.getUnmodifiableView(); } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7456,13 +9091,17 @@ private void ensureAllowedCommonNamesIsMutable() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedCommonNames. */ public int getAllowedCommonNamesCount() { return allowedCommonNames_.size(); } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7470,7 +9109,9 @@ public int getAllowedCommonNamesCount() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedCommonNames at the given index. */ @@ -7478,6 +9119,8 @@ public java.lang.String getAllowedCommonNames(int index) { return allowedCommonNames_.get(index); } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7485,15 +9128,18 @@ public java.lang.String getAllowedCommonNames(int index) {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedCommonNames at the given index. */ - public com.google.protobuf.ByteString - getAllowedCommonNamesBytes(int index) { + public com.google.protobuf.ByteString getAllowedCommonNamesBytes(int index) { return allowedCommonNames_.getByteString(index); } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7501,22 +9147,25 @@ public java.lang.String getAllowedCommonNames(int index) {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedCommonNames to set. * @return This builder for chaining. */ - public Builder setAllowedCommonNames( - int index, java.lang.String value) { + public Builder setAllowedCommonNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedCommonNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedCommonNamesIsMutable(); allowedCommonNames_.set(index, value); onChanged(); return this; } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7524,21 +9173,24 @@ public Builder setAllowedCommonNames(
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedCommonNames to add. * @return This builder for chaining. */ - public Builder addAllowedCommonNames( - java.lang.String value) { + public Builder addAllowedCommonNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedCommonNamesIsMutable(); + throw new NullPointerException(); + } + ensureAllowedCommonNamesIsMutable(); allowedCommonNames_.add(value); onChanged(); return this; } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7546,19 +9198,21 @@ public Builder addAllowedCommonNames(
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedCommonNames to add. * @return This builder for chaining. */ - public Builder addAllAllowedCommonNames( - java.lang.Iterable values) { + public Builder addAllAllowedCommonNames(java.lang.Iterable values) { ensureAllowedCommonNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedCommonNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCommonNames_); onChanged(); return this; } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7566,7 +9220,9 @@ public Builder addAllAllowedCommonNames(
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedCommonNames() { @@ -7576,6 +9232,8 @@ public Builder clearAllowedCommonNames() { return this; } /** + * + * *
        * Optional. If any value is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7583,26 +9241,37 @@ public Builder clearAllowedCommonNames() {
        * will be allowed for this fied. Glob patterns are also supported.
        * 
* - * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_common_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedCommonNames to add. * @return This builder for chaining. */ - public Builder addAllowedCommonNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedCommonNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedCommonNamesIsMutable(); allowedCommonNames_.add(value); onChanged(); return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowedSans_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + allowedSans_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> allowedSansBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> + allowedSansBuilder_; /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7611,13 +9280,18 @@ public Builder addAllowedCommonNamesBytes(
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedSans field is set. */ public boolean hasAllowedSans() { return allowedSansBuilder_ != null || allowedSans_ != null; } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7626,17 +9300,27 @@ public boolean hasAllowedSans() {
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedSans. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames getAllowedSans() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + getAllowedSans() { if (allowedSansBuilder_ == null) { - return allowedSans_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() : allowedSans_; + return allowedSans_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() + : allowedSans_; } else { return allowedSansBuilder_.getMessage(); } } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7645,9 +9329,14 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAllowedSans(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames value) { + public Builder setAllowedSans( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + value) { if (allowedSansBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7661,6 +9350,8 @@ public Builder setAllowedSans(com.google.cloud.security.privateca.v1beta1.Certif return this; } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7669,10 +9360,14 @@ public Builder setAllowedSans(com.google.cloud.security.privateca.v1beta1.Certif
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedSans( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder + builderForValue) { if (allowedSansBuilder_ == null) { allowedSans_ = builderForValue.build(); onChanged(); @@ -7683,6 +9378,8 @@ public Builder setAllowedSans( return this; } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7691,13 +9388,21 @@ public Builder setAllowedSans(
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAllowedSans(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames value) { + public Builder mergeAllowedSans( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames + value) { if (allowedSansBuilder_ == null) { if (allowedSans_ != null) { allowedSans_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder(allowedSans_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.newBuilder(allowedSans_) + .mergeFrom(value) + .buildPartial(); } else { allowedSans_ = value; } @@ -7709,6 +9414,8 @@ public Builder mergeAllowedSans(com.google.cloud.security.privateca.v1beta1.Cert return this; } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7717,7 +9424,9 @@ public Builder mergeAllowedSans(com.google.cloud.security.privateca.v1beta1.Cert
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllowedSans() { if (allowedSansBuilder_ == null) { @@ -7731,6 +9440,8 @@ public Builder clearAllowedSans() { return this; } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7739,14 +9450,20 @@ public Builder clearAllowedSans() {
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder getAllowedSansBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder + getAllowedSansBuilder() { + onChanged(); return getAllowedSansFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7755,17 +9472,25 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder getAllowedSansOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder + getAllowedSansOrBuilder() { if (allowedSansBuilder_ != null) { return allowedSansBuilder_.getMessageOrBuilder(); } else { - return allowedSans_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() : allowedSans_; + return allowedSans_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.getDefaultInstance() + : allowedSans_; } } /** + * + * *
        * Optional. If a [AllowedSubjectAltNames][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames] is specified here, then all
        * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] issued by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must
@@ -7774,17 +9499,28 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific
        * field.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames allowed_sans = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder> getAllowedSansFieldBuilder() { if (allowedSansBuilder_ == null) { - allowedSansBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder>( - getAllowedSans(), - getParentForChildren(), - isClean()); + allowedSansBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.AllowedSubjectAltNamesOrBuilder>( + getAllowedSans(), getParentForChildren(), isClean()); allowedSans_ = null; } return allowedSansBuilder_; @@ -7792,8 +9528,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific private com.google.protobuf.Duration maximumLifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumLifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maximumLifetimeBuilder_; /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7801,13 +9542,18 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Certific
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumLifetime field is set. */ public boolean hasMaximumLifetime() { return maximumLifetimeBuilder_ != null || maximumLifetime_ != null; } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7815,17 +9561,24 @@ public boolean hasMaximumLifetime() {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumLifetime. */ public com.google.protobuf.Duration getMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { - return maximumLifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; } else { return maximumLifetimeBuilder_.getMessage(); } } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7833,7 +9586,9 @@ public com.google.protobuf.Duration getMaximumLifetime() {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { @@ -7849,6 +9604,8 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7856,10 +9613,11 @@ public Builder setMaximumLifetime(com.google.protobuf.Duration value) {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMaximumLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (maximumLifetimeBuilder_ == null) { maximumLifetime_ = builderForValue.build(); onChanged(); @@ -7870,6 +9628,8 @@ public Builder setMaximumLifetime( return this; } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7877,13 +9637,17 @@ public Builder setMaximumLifetime(
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { if (maximumLifetimeBuilder_ == null) { if (maximumLifetime_ != null) { maximumLifetime_ = - com.google.protobuf.Duration.newBuilder(maximumLifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(maximumLifetime_) + .mergeFrom(value) + .buildPartial(); } else { maximumLifetime_ = value; } @@ -7895,6 +9659,8 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7902,7 +9668,9 @@ public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaximumLifetime() { if (maximumLifetimeBuilder_ == null) { @@ -7916,6 +9684,8 @@ public Builder clearMaximumLifetime() { return this; } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7923,14 +9693,18 @@ public Builder clearMaximumLifetime() {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { - + onChanged(); return getMaximumLifetimeFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7938,17 +9712,22 @@ public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { if (maximumLifetimeBuilder_ != null) { return maximumLifetimeBuilder_.getMessageOrBuilder(); } else { - return maximumLifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maximumLifetime_; + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; } } /** + * + * *
        * Optional. The maximum lifetime allowed by the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. Note that
        * if the any part if the issuing chain expires before a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]'s
@@ -7956,62 +9735,97 @@ public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() {
        * truncated.
        * 
* - * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_lifetime = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getMaximumLifetimeFieldBuilder() { if (maximumLifetimeBuilder_ == null) { - maximumLifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaximumLifetime(), - getParentForChildren(), - isClean()); + maximumLifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaximumLifetime(), getParentForChildren(), isClean()); maximumLifetime_ = null; } return maximumLifetimeBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowedIssuanceModes_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + allowedIssuanceModes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder> allowedIssuanceModesBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModesOrBuilder> + allowedIssuanceModesBuilder_; /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the allowedIssuanceModes field is set. */ public boolean hasAllowedIssuanceModes() { return allowedIssuanceModesBuilder_ != null || allowedIssuanceModes_ != null; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The allowedIssuanceModes. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes getAllowedIssuanceModes() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + getAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { - return allowedIssuanceModes_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; + return allowedIssuanceModes_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() + : allowedIssuanceModes_; } else { return allowedIssuanceModesBuilder_.getMessage(); } } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAllowedIssuanceModes(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes value) { + public Builder setAllowedIssuanceModes( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + value) { if (allowedIssuanceModesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8025,15 +9839,21 @@ public Builder setAllowedIssuanceModes(com.google.cloud.security.privateca.v1bet return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAllowedIssuanceModes( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder + builderForValue) { if (allowedIssuanceModesBuilder_ == null) { allowedIssuanceModes_ = builderForValue.build(); onChanged(); @@ -8044,18 +9864,28 @@ public Builder setAllowedIssuanceModes( return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAllowedIssuanceModes(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes value) { + public Builder mergeAllowedIssuanceModes( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes + value) { if (allowedIssuanceModesBuilder_ == null) { if (allowedIssuanceModes_ != null) { allowedIssuanceModes_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.newBuilder(allowedIssuanceModes_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.newBuilder(allowedIssuanceModes_) + .mergeFrom(value) + .buildPartial(); } else { allowedIssuanceModes_ = value; } @@ -8067,12 +9897,16 @@ public Builder mergeAllowedIssuanceModes(com.google.cloud.security.privateca.v1b return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAllowedIssuanceModes() { if (allowedIssuanceModesBuilder_ == null) { @@ -8086,55 +9920,83 @@ public Builder clearAllowedIssuanceModes() { return this; } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder getAllowedIssuanceModesBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder + getAllowedIssuanceModesBuilder() { + onChanged(); return getAllowedIssuanceModesFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder getAllowedIssuanceModesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModesOrBuilder + getAllowedIssuanceModesOrBuilder() { if (allowedIssuanceModesBuilder_ != null) { return allowedIssuanceModesBuilder_.getMessageOrBuilder(); } else { - return allowedIssuanceModes_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() : allowedIssuanceModes_; + return allowedIssuanceModes_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.getDefaultInstance() + : allowedIssuanceModes_; } } /** + * + * *
        * Optional. If specified, then only methods allowed in the [IssuanceModes][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes] may be
        * used to issue [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes allowed_issuance_modes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModesOrBuilder> getAllowedIssuanceModesFieldBuilder() { if (allowedIssuanceModesBuilder_ == null) { - allowedIssuanceModesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesOrBuilder>( - getAllowedIssuanceModes(), - getParentForChildren(), - isClean()); + allowedIssuanceModesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModes.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.IssuanceModesOrBuilder>( + getAllowedIssuanceModes(), getParentForChildren(), isClean()); allowedIssuanceModes_ = null; } return allowedIssuanceModesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8147,30 +10009,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateAuthorityPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateAuthorityPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateAuthorityPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8182,76 +10050,91 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AccessUrlsOrBuilder extends + public interface AccessUrlsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The caCertificateAccessUrl. */ java.lang.String getCaCertificateAccessUrl(); /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The bytes for caCertificateAccessUrl. */ - com.google.protobuf.ByteString - getCaCertificateAccessUrlBytes(); + com.google.protobuf.ByteString getCaCertificateAccessUrlBytes(); /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; + * * @return The crlAccessUrl. */ java.lang.String getCrlAccessUrl(); /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; + * * @return The bytes for crlAccessUrl. */ - com.google.protobuf.ByteString - getCrlAccessUrlBytes(); + com.google.protobuf.ByteString getCrlAccessUrlBytes(); } /** + * + * *
    * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will publish content.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls} */ - public static final class AccessUrls extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AccessUrls extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) AccessUrlsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AccessUrls.newBuilder() to construct. private AccessUrls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AccessUrls() { caCertificateAccessUrl_ = ""; crlAccessUrl_ = ""; @@ -8259,16 +10142,15 @@ private AccessUrls() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AccessUrls(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AccessUrls( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8287,25 +10169,27 @@ private AccessUrls( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificateAccessUrl_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + caCertificateAccessUrl_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - crlAccessUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + crlAccessUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8313,35 +10197,41 @@ private AccessUrls( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder + .class); } public static final int CA_CERTIFICATE_ACCESS_URL_FIELD_NUMBER = 1; private volatile java.lang.Object caCertificateAccessUrl_; /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The caCertificateAccessUrl. */ @java.lang.Override @@ -8350,30 +10240,30 @@ public java.lang.String getCaCertificateAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; } } /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
      * published. This will only be set for CAs that have been activated.
      * 
* * string ca_certificate_access_url = 1; + * * @return The bytes for caCertificateAccessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -8384,12 +10274,15 @@ public java.lang.String getCaCertificateAccessUrl() { public static final int CRL_ACCESS_URL_FIELD_NUMBER = 2; private volatile java.lang.Object crlAccessUrl_; /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; + * * @return The crlAccessUrl. */ @java.lang.Override @@ -8398,30 +10291,30 @@ public java.lang.String getCrlAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crlAccessUrl_ = s; return s; } } /** + * + * *
      * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
      * will only be set for CAs that have been activated.
      * 
* * string crl_access_url = 2; + * * @return The bytes for crlAccessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrlAccessUrlBytes() { + public com.google.protobuf.ByteString getCrlAccessUrlBytes() { java.lang.Object ref = crlAccessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crlAccessUrl_ = b; return b; } else { @@ -8430,6 +10323,7 @@ public java.lang.String getCrlAccessUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8441,8 +10335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, caCertificateAccessUrl_); } @@ -8459,7 +10352,8 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificateAccessUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caCertificateAccessUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crlAccessUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, crlAccessUrl_); @@ -8472,17 +10366,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.security.privateca.v1beta1.CertificateAuthority.AccessUrls)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) obj; - if (!getCaCertificateAccessUrl() - .equals(other.getCaCertificateAccessUrl())) return false; - if (!getCrlAccessUrl() - .equals(other.getCrlAccessUrl())) return false; + if (!getCaCertificateAccessUrl().equals(other.getCaCertificateAccessUrl())) return false; + if (!getCrlAccessUrl().equals(other.getCrlAccessUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8503,88 +10397,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls 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.security.privateca.v1beta1.CertificateAuthority.AccessUrls + 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.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8594,44 +10501,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will publish content.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -8643,19 +10556,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8663,8 +10579,10 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUr } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(this); result.caCertificateAccessUrl_ = caCertificateAccessUrl_; result.crlAccessUrl_ = crlAccessUrl_; onBuilt(); @@ -8675,46 +10593,55 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.AccessUrls) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + .getDefaultInstance()) return this; if (!other.getCaCertificateAccessUrl().isEmpty()) { caCertificateAccessUrl_ = other.caCertificateAccessUrl_; onChanged(); @@ -8738,11 +10665,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8754,19 +10684,21 @@ public Builder mergeFrom( private java.lang.Object caCertificateAccessUrl_ = ""; /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @return The caCertificateAccessUrl. */ public java.lang.String getCaCertificateAccessUrl() { java.lang.Object ref = caCertificateAccessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificateAccessUrl_ = s; return s; @@ -8775,21 +10707,22 @@ public java.lang.String getCaCertificateAccessUrl() { } } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @return The bytes for caCertificateAccessUrl. */ - public com.google.protobuf.ByteString - getCaCertificateAccessUrlBytes() { + public com.google.protobuf.ByteString getCaCertificateAccessUrlBytes() { java.lang.Object ref = caCertificateAccessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificateAccessUrl_ = b; return b; } else { @@ -8797,57 +10730,64 @@ public java.lang.String getCaCertificateAccessUrl() { } } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @param value The caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrl( - java.lang.String value) { + public Builder setCaCertificateAccessUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificateAccessUrl_ = value; onChanged(); return this; } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @return This builder for chaining. */ public Builder clearCaCertificateAccessUrl() { - + caCertificateAccessUrl_ = getDefaultInstance().getCaCertificateAccessUrl(); onChanged(); return this; } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
        * published. This will only be set for CAs that have been activated.
        * 
* * string ca_certificate_access_url = 1; + * * @param value The bytes for caCertificateAccessUrl to set. * @return This builder for chaining. */ - public Builder setCaCertificateAccessUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setCaCertificateAccessUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificateAccessUrl_ = value; onChanged(); return this; @@ -8855,19 +10795,21 @@ public Builder setCaCertificateAccessUrlBytes( private java.lang.Object crlAccessUrl_ = ""; /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; + * * @return The crlAccessUrl. */ public java.lang.String getCrlAccessUrl() { java.lang.Object ref = crlAccessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crlAccessUrl_ = s; return s; @@ -8876,21 +10818,22 @@ public java.lang.String getCrlAccessUrl() { } } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; + * * @return The bytes for crlAccessUrl. */ - public com.google.protobuf.ByteString - getCrlAccessUrlBytes() { + public com.google.protobuf.ByteString getCrlAccessUrlBytes() { java.lang.Object ref = crlAccessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crlAccessUrl_ = b; return b; } else { @@ -8898,61 +10841,69 @@ public java.lang.String getCrlAccessUrl() { } } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; + * * @param value The crlAccessUrl to set. * @return This builder for chaining. */ - public Builder setCrlAccessUrl( - java.lang.String value) { + public Builder setCrlAccessUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crlAccessUrl_ = value; onChanged(); return this; } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; + * * @return This builder for chaining. */ public Builder clearCrlAccessUrl() { - + crlAccessUrl_ = getDefaultInstance().getCrlAccessUrl(); onChanged(); return this; } /** + * + * *
        * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
        * will only be set for CAs that have been activated.
        * 
* * string crl_access_url = 2; + * * @param value The bytes for crlAccessUrl to set. * @return This builder for chaining. */ - public Builder setCrlAccessUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setCrlAccessUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crlAccessUrl_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8965,30 +10916,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessUrls parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessUrls(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessUrls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessUrls(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9000,17 +10954,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface KeyVersionSpecOrBuilder extends + public interface KeyVersionSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -9020,10 +10977,13 @@ public interface KeyVersionSpecOrBuilder extends
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the cloudKmsKeyVersion field is set. */ boolean hasCloudKmsKeyVersion(); /** + * + * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -9033,10 +10993,13 @@ public interface KeyVersionSpecOrBuilder extends
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cloudKmsKeyVersion. */ java.lang.String getCloudKmsKeyVersion(); /** + * + * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -9046,78 +11009,98 @@ public interface KeyVersionSpecOrBuilder extends
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for cloudKmsKeyVersion. */ - com.google.protobuf.ByteString - getCloudKmsKeyVersionBytes(); + com.google.protobuf.ByteString getCloudKmsKeyVersionBytes(); /** + * + * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the algorithm field is set. */ boolean hasAlgorithm(); /** + * + * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for algorithm. */ int getAlgorithmValue(); /** + * + * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The algorithm. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm getAlgorithm(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + getAlgorithm(); - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .KeyVersionCase + getKeyVersionCase(); } /** + * + * *
    * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will use.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} */ - public static final class KeyVersionSpec extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class KeyVersionSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) KeyVersionSpecOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KeyVersionSpec.newBuilder() to construct. private KeyVersionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KeyVersionSpec() { - } + + private KeyVersionSpec() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KeyVersionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private KeyVersionSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9136,25 +11119,27 @@ private KeyVersionSpec( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - keyVersionCase_ = 1; - keyVersion_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - keyVersionCase_ = 2; - keyVersion_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + keyVersionCase_ = 1; + keyVersion_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + keyVersionCase_ = 2; + keyVersion_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9162,35 +11147,41 @@ private KeyVersionSpec( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .Builder.class); } private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; + public enum KeyVersionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_KMS_KEY_VERSION(1), ALGORITHM(2), KEYVERSION_NOT_SET(0); private final int value; + private KeyVersionCase(int value) { this.value = value; } @@ -9206,25 +11197,30 @@ public static KeyVersionCase valueOf(int value) { public static KeyVersionCase forNumber(int value) { switch (value) { - case 1: return CLOUD_KMS_KEY_VERSION; - case 2: return ALGORITHM; - case 0: return KEYVERSION_NOT_SET; - default: return null; + case 1: + return CLOUD_KMS_KEY_VERSION; + case 2: + return ALGORITHM; + case 0: + return KEYVERSION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KeyVersionCase - getKeyVersionCase() { - return KeyVersionCase.forNumber( - keyVersionCase_); + public KeyVersionCase getKeyVersionCase() { + return KeyVersionCase.forNumber(keyVersionCase_); } public static final int CLOUD_KMS_KEY_VERSION_FIELD_NUMBER = 1; /** + * + * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -9234,12 +11230,15 @@ public int getNumber() {
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the cloudKmsKeyVersion field is set. */ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** + * + * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -9249,6 +11248,7 @@ public boolean hasCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cloudKmsKeyVersion. */ public java.lang.String getCloudKmsKeyVersion() { @@ -9259,8 +11259,7 @@ public java.lang.String getCloudKmsKeyVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -9269,6 +11268,8 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** + * + * *
      * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
      * format
@@ -9278,18 +11279,17 @@ public java.lang.String getCloudKmsKeyVersion() {
      * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for cloudKmsKeyVersion. */ - public com.google.protobuf.ByteString - getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -9301,26 +11301,36 @@ public java.lang.String getCloudKmsKeyVersion() { public static final int ALGORITHM_FIELD_NUMBER = 2; /** + * + * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** + * + * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for algorithm. */ public int getAlgorithmValue() { @@ -9330,26 +11340,38 @@ public int getAlgorithmValue() { return 0; } /** + * + * *
      * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
      * simplified experience. All managed keys will be have their
      * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The algorithm. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.valueOf( - (java.lang.Integer) keyVersion_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + .valueOf((java.lang.Integer) keyVersion_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + .UNRECOGNIZED + : result; } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + .SIGN_HASH_ALGORITHM_UNSPECIFIED; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9361,8 +11383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (keyVersionCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyVersion_); } @@ -9382,8 +11403,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyVersion_); } if (keyVersionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ((java.lang.Integer) keyVersion_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, ((java.lang.Integer) keyVersion_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9393,22 +11415,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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) obj; if (!getKeyVersionCase().equals(other.getKeyVersionCase())) return false; switch (keyVersionCase_) { case 1: - if (!getCloudKmsKeyVersion() - .equals(other.getCloudKmsKeyVersion())) return false; + if (!getCloudKmsKeyVersion().equals(other.getCloudKmsKeyVersion())) return false; break; case 2: - if (getAlgorithmValue() - != other.getAlgorithmValue()) return false; + if (getAlgorithmValue() != other.getAlgorithmValue()) return false; break; case 0: default: @@ -9441,88 +11464,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec 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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + 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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9532,44 +11568,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Cloud KMS key configuration that a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will use.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .class, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -9579,19 +11623,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec build() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + build() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9599,8 +11647,11 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersi } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec(this); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec result = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec( + this); if (keyVersionCase_ == 1) { result.keyVersion_ = keyVersion_; } @@ -9616,60 +11667,73 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance()) return this; switch (other.getKeyVersionCase()) { - case CLOUD_KMS_KEY_VERSION: { - keyVersionCase_ = 1; - keyVersion_ = other.keyVersion_; - onChanged(); - break; - } - case ALGORITHM: { - setAlgorithmValue(other.getAlgorithmValue()); - break; - } - case KEYVERSION_NOT_SET: { - break; - } + case CLOUD_KMS_KEY_VERSION: + { + keyVersionCase_ = 1; + keyVersion_ = other.keyVersion_; + onChanged(); + break; + } + case ALGORITHM: + { + setAlgorithmValue(other.getAlgorithmValue()); + break; + } + case KEYVERSION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -9686,11 +11750,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9699,12 +11766,12 @@ public Builder mergeFrom( } return this; } + private int keyVersionCase_ = 0; private java.lang.Object keyVersion_; - public KeyVersionCase - getKeyVersionCase() { - return KeyVersionCase.forNumber( - keyVersionCase_); + + public KeyVersionCase getKeyVersionCase() { + return KeyVersionCase.forNumber(keyVersionCase_); } public Builder clearKeyVersion() { @@ -9714,8 +11781,9 @@ public Builder clearKeyVersion() { return this; } - /** + * + * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -9725,6 +11793,7 @@ public Builder clearKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the cloudKmsKeyVersion field is set. */ @java.lang.Override @@ -9732,6 +11801,8 @@ public boolean hasCloudKmsKeyVersion() { return keyVersionCase_ == 1; } /** + * + * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -9741,6 +11812,7 @@ public boolean hasCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cloudKmsKeyVersion. */ @java.lang.Override @@ -9750,8 +11822,7 @@ public java.lang.String getCloudKmsKeyVersion() { ref = keyVersion_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyVersionCase_ == 1) { keyVersion_ = s; @@ -9762,6 +11833,8 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** + * + * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -9771,19 +11844,18 @@ public java.lang.String getCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for cloudKmsKeyVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getCloudKmsKeyVersionBytes() { + public com.google.protobuf.ByteString getCloudKmsKeyVersionBytes() { java.lang.Object ref = ""; if (keyVersionCase_ == 1) { ref = keyVersion_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (keyVersionCase_ == 1) { keyVersion_ = b; } @@ -9793,6 +11865,8 @@ public java.lang.String getCloudKmsKeyVersion() { } } /** + * + * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -9802,20 +11876,22 @@ public java.lang.String getCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersion( - java.lang.String value) { + public Builder setCloudKmsKeyVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - keyVersionCase_ = 1; + throw new NullPointerException(); + } + keyVersionCase_ = 1; keyVersion_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -9825,6 +11901,7 @@ public Builder setCloudKmsKeyVersion(
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCloudKmsKeyVersion() { @@ -9836,6 +11913,8 @@ public Builder clearCloudKmsKeyVersion() { return this; } /** + * + * *
        * Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
        * format
@@ -9845,15 +11924,15 @@ public Builder clearCloudKmsKeyVersion() {
        * 
* * string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for cloudKmsKeyVersion to set. * @return This builder for chaining. */ - public Builder setCloudKmsKeyVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setCloudKmsKeyVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); keyVersionCase_ = 1; keyVersion_ = value; onChanged(); @@ -9861,13 +11940,18 @@ public Builder setCloudKmsKeyVersionBytes( } /** + * + * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the algorithm field is set. */ @java.lang.Override @@ -9875,13 +11959,18 @@ public boolean hasAlgorithm() { return keyVersionCase_ == 2; } /** + * + * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for algorithm. */ @java.lang.Override @@ -9892,13 +11981,18 @@ public int getAlgorithmValue() { return 0; } /** + * + * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm 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. */ @@ -9909,37 +12003,56 @@ public Builder setAlgorithmValue(int value) { return this; } /** + * + * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The algorithm. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm getAlgorithm() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + getAlgorithm() { if (keyVersionCase_ == 2) { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.valueOf( - (java.lang.Integer) keyVersion_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.UNRECOGNIZED : result; - } - return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm.SIGN_HASH_ALGORITHM_UNSPECIFIED; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + .valueOf((java.lang.Integer) keyVersion_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + .UNRECOGNIZED + : result; + } + return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + .SIGN_HASH_ALGORITHM_UNSPECIFIED; } /** + * + * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The algorithm to set. * @return This builder for chaining. */ - public Builder setAlgorithm(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm value) { + public Builder setAlgorithm( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm + value) { if (value == null) { throw new NullPointerException(); } @@ -9949,13 +12062,18 @@ public Builder setAlgorithm(com.google.cloud.security.privateca.v1beta1.Certific return this; } /** + * + * *
        * Required. The algorithm to use for creating a managed Cloud KMS key for a for a
        * simplified experience. All managed keys will be have their
        * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
        * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAlgorithm() { @@ -9966,6 +12084,7 @@ public Builder clearAlgorithm() { } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9978,30 +12097,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .KeyVersionSpec + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyVersionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyVersionSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyVersionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyVersionSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10013,21 +12136,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -10036,30 +12162,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * 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 { @@ -10070,65 +12196,100 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED + : result; } public static final int TIER_FIELD_NUMBER = 3; private int tier_; /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The tier. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED + : result; } public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1beta1.CertificateConfig config_; /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -10136,32 +12297,46 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() { - return config_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder + getConfigOrBuilder() { return getConfig(); } public static final int LIFETIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration lifetime_; /** + * + * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -10169,6 +12344,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder ge
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -10176,6 +12352,8 @@ public boolean hasLifetime() { return lifetime_ != null; } /** + * + * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -10183,6 +12361,7 @@ public boolean hasLifetime() {
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The lifetime. */ @java.lang.Override @@ -10190,6 +12369,8 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** + * + * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -10206,6 +12387,8 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
   public static final int KEY_SPEC_FIELD_NUMBER = 6;
   private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec keySpec_;
   /**
+   *
+   *
    * 
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -10213,7 +12396,10 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the keySpec field is set. */ @java.lang.Override @@ -10221,6 +12407,8 @@ public boolean hasKeySpec() { return keySpec_ != null; } /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -10228,14 +12416,23 @@ public boolean hasKeySpec() {
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The keySpec. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getKeySpec() { - return keySpec_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + getKeySpec() { + return keySpec_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance() + : keySpec_; } /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -10243,22 +12440,32 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersi
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder + getKeySpecOrBuilder() { return getKeySpec(); } public static final int CERTIFICATE_POLICY_FIELD_NUMBER = 7; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificatePolicy_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + certificatePolicy_; /** + * + * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the certificatePolicy field is set. */ @java.lang.Override @@ -10266,40 +12473,61 @@ public boolean hasCertificatePolicy() { return certificatePolicy_ != null; } /** + * + * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The certificatePolicy. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy() { - return certificatePolicy_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance() : certificatePolicy_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + getCertificatePolicy() { + return certificatePolicy_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.getDefaultInstance() + : certificatePolicy_; } /** + * + * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder + getCertificatePolicyOrBuilder() { return getCertificatePolicy(); } public static final int ISSUING_OPTIONS_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuingOptions_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + issuingOptions_; /** + * + * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the issuingOptions field is set. */ @java.lang.Override @@ -10307,41 +12535,60 @@ public boolean hasIssuingOptions() { return issuingOptions_ != null; } /** + * + * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuingOptions. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getIssuingOptions() { - return issuingOptions_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance() : issuingOptions_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + getIssuingOptions() { + return issuingOptions_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .getDefaultInstance() + : issuingOptions_; } /** + * + * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder + getIssuingOptionsOrBuilder() { return getIssuingOptions(); } public static final int SUBORDINATE_CONFIG_FIELD_NUMBER = 19; private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subordinateConfig field is set. */ @java.lang.Override @@ -10349,63 +12596,92 @@ public boolean hasSubordinateConfig() { return subordinateConfig_ != null; } /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subordinateConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { return getSubordinateConfig(); } public static final int STATE_FIELD_NUMBER = 10; private int state_; /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED + : result; } public static final int PEM_CA_CERTIFICATES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList pemCaCertificates_; /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -10413,14 +12689,17 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder ge
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { return pemCaCertificates_; } /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -10428,13 +12707,17 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder ge
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -10442,7 +12725,9 @@ public int getPemCaCertificatesCount() {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -10450,6 +12735,8 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -10457,83 +12744,110 @@ public java.lang.String getPemCaCertificates(int index) {
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } public static final int CA_CERTIFICATE_DESCRIPTIONS_FIELD_NUMBER = 12; - private java.util.List caCertificateDescriptions_; + private java.util.List + caCertificateDescriptions_; /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getCaCertificateDescriptionsList() { + public java.util.List + getCaCertificateDescriptionsList() { return caCertificateDescriptions_; } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsOrBuilderList() { return caCertificateDescriptions_; } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getCaCertificateDescriptionsCount() { return caCertificateDescriptions_.size(); } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + getCaCertificateDescriptions(int index) { return caCertificateDescriptions_.get(index); } /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder + getCaCertificateDescriptionsOrBuilder(int index) { return caCertificateDescriptions_.get(index); } public static final int GCS_BUCKET_FIELD_NUMBER = 13; private volatile java.lang.Object gcsBucket_; /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -10544,6 +12858,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuild
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The gcsBucket. */ @java.lang.Override @@ -10552,14 +12867,15 @@ public java.lang.String getGcsBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; } } /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -10570,16 +12886,15 @@ public java.lang.String getGcsBucket() {
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for gcsBucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsBucketBytes() { + public com.google.protobuf.ByteString getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -10590,12 +12905,17 @@ public java.lang.String getGcsBucket() { public static final int ACCESS_URLS_FIELD_NUMBER = 14; private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls accessUrls_; /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accessUrls field is set. */ @java.lang.Override @@ -10603,39 +12923,57 @@ public boolean hasAccessUrls() { return accessUrls_ != null; } /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accessUrls. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getAccessUrls() { - return accessUrls_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + getAccessUrls() { + return accessUrls_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + .getDefaultInstance() + : accessUrls_; } /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder + getAccessUrlsOrBuilder() { return getAccessUrls(); } public static final int CREATE_TIME_FIELD_NUMBER = 15; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -10643,11 +12981,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -10655,11 +12997,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -10669,11 +13014,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 16; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -10681,11 +13030,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -10693,11 +13046,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -10707,12 +13063,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 17; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -10720,12 +13080,16 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -10733,12 +13097,15 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -10746,24 +13113,23 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 18; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -10772,28 +13138,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -10801,11 +13169,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -10813,16 +13182,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -10830,12 +13199,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -10843,6 +13211,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10854,15 +13223,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } - if (tier_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED.getNumber()) { + if (tier_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED + .getNumber()) { output.writeEnum(3, tier_); } if (config_ != null) { @@ -10883,7 +13255,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < pemCaCertificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pemCaCertificates_.getRaw(i)); } - if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(10, state_); } for (int i = 0; i < caCertificateDescriptions_.size(); i++) { @@ -10904,12 +13278,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deleteTime_ != null) { output.writeMessage(17, getDeleteTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 18); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); if (subordinateConfig_ != null) { output.writeMessage(19, getSubordinateConfig()); } @@ -10925,33 +13295,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - if (tier_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, tier_); + if (tier_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, tier_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLifetime()); } if (keySpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getKeySpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKeySpec()); } if (certificatePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCertificatePolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCertificatePolicy()); } if (issuingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getIssuingOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIssuingOptions()); } { int dataSize = 0; @@ -10961,46 +13328,43 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPemCaCertificatesList().size(); } - if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + if (state_ + != com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } for (int i = 0; i < caCertificateDescriptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, caCertificateDescriptions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, caCertificateDescriptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcsBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, gcsBucket_); } if (accessUrls_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getAccessUrls()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getAccessUrls()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getDeleteTime()); - } - 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(18, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getDeleteTime()); + } + 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(18, labels__); } if (subordinateConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getSubordinateConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSubordinateConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -11010,76 +13374,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateAuthority other = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority) obj; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority other = + (com.google.cloud.security.privateca.v1beta1.CertificateAuthority) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (tier_ != other.tier_) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime() - .equals(other.getLifetime())) return false; + if (!getLifetime().equals(other.getLifetime())) return false; } if (hasKeySpec() != other.hasKeySpec()) return false; if (hasKeySpec()) { - if (!getKeySpec() - .equals(other.getKeySpec())) return false; + if (!getKeySpec().equals(other.getKeySpec())) return false; } if (hasCertificatePolicy() != other.hasCertificatePolicy()) return false; if (hasCertificatePolicy()) { - if (!getCertificatePolicy() - .equals(other.getCertificatePolicy())) return false; + if (!getCertificatePolicy().equals(other.getCertificatePolicy())) return false; } if (hasIssuingOptions() != other.hasIssuingOptions()) return false; if (hasIssuingOptions()) { - if (!getIssuingOptions() - .equals(other.getIssuingOptions())) return false; + if (!getIssuingOptions().equals(other.getIssuingOptions())) return false; } if (hasSubordinateConfig() != other.hasSubordinateConfig()) return false; if (hasSubordinateConfig()) { - if (!getSubordinateConfig() - .equals(other.getSubordinateConfig())) return false; + if (!getSubordinateConfig().equals(other.getSubordinateConfig())) return false; } if (state_ != other.state_) return false; - if (!getPemCaCertificatesList() - .equals(other.getPemCaCertificatesList())) return false; - if (!getCaCertificateDescriptionsList() - .equals(other.getCaCertificateDescriptionsList())) return false; - if (!getGcsBucket() - .equals(other.getGcsBucket())) return false; + if (!getPemCaCertificatesList().equals(other.getPemCaCertificatesList())) return false; + if (!getCaCertificateDescriptionsList().equals(other.getCaCertificateDescriptionsList())) + return false; + if (!getGcsBucket().equals(other.getGcsBucket())) return false; if (hasAccessUrls() != other.hasAccessUrls()) return false; if (hasAccessUrls()) { - if (!getAccessUrls() - .equals(other.getAccessUrls())) return false; + if (!getAccessUrls().equals(other.getAccessUrls())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -11159,96 +13510,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority 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.security.privateca.v1beta1.CertificateAuthority parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateAuthority prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] represents an individual Certificate Authority.
    * A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
@@ -11256,43 +13615,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateAuthority}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateAuthority)
       com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 18:
           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 18:
           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.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.class,
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder()
@@ -11300,17 +13659,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCaCertificateDescriptionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -11397,13 +13756,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.CertificateAuthority
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance();
     }
 
@@ -11418,7 +13778,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateAuthority buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateAuthority result = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateAuthority result =
+          new com.google.cloud.security.privateca.v1beta1.CertificateAuthority(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.type_ = type_;
@@ -11461,7 +13822,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority buildPar
       result.pemCaCertificates_ = pemCaCertificates_;
       if (caCertificateDescriptionsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
-          caCertificateDescriptions_ = java.util.Collections.unmodifiableList(caCertificateDescriptions_);
+          caCertificateDescriptions_ =
+              java.util.Collections.unmodifiableList(caCertificateDescriptions_);
           bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.caCertificateDescriptions_ = caCertificateDescriptions_;
@@ -11499,46 +13861,50 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateAuthority) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateAuthority) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateAuthority other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.CertificateAuthority other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -11598,9 +13964,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate
             caCertificateDescriptionsBuilder_ = null;
             caCertificateDescriptions_ = other.caCertificateDescriptions_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            caCertificateDescriptionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCaCertificateDescriptionsFieldBuilder() : null;
+            caCertificateDescriptionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCaCertificateDescriptionsFieldBuilder()
+                    : null;
           } else {
             caCertificateDescriptionsBuilder_.addAllMessages(other.caCertificateDescriptions_);
           }
@@ -11622,8 +13989,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate
       if (other.hasDeleteTime()) {
         mergeDeleteTime(other.getDeleteTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -11643,7 +14009,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateAuthority) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.CertificateAuthority)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -11652,23 +14020,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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; @@ -11677,21 +14048,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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 { @@ -11699,57 +14071,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* * 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; @@ -11757,73 +14136,103 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.valueOf(type_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type value) { + public Builder setType( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -11831,73 +14240,103 @@ public Builder clearType() { private int tier_ = 0; /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for tier. */ - @java.lang.Override public int getTierValue() { + @java.lang.Override + public int getTierValue() { return tier_; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The tier. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.valueOf(tier_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The tier to set. * @return This builder for chaining. */ - public Builder setTier(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier value) { + public Builder setTier( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; @@ -11905,39 +14344,58 @@ public Builder clearTier() { private com.google.cloud.security.privateca.v1beta1.CertificateConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> configBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ public com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { @@ -11953,11 +14411,15 @@ public Builder setConfig(com.google.cloud.security.privateca.v1beta1.Certificate return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setConfig( com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder builderForValue) { @@ -11971,17 +14433,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { + public Builder mergeConfig( + com.google.cloud.security.privateca.v1beta1.CertificateConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -11993,11 +14462,15 @@ public Builder mergeConfig(com.google.cloud.security.privateca.v1beta1.Certifica return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -12011,48 +14484,66 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder getConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder + getConfigBuilder() { + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder + getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -12060,28 +14551,39 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder ge private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -12092,13 +14594,16 @@ public com.google.protobuf.Duration getLifetime() { } } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { @@ -12114,16 +14619,18 @@ public Builder setLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setLifetime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) { if (lifetimeBuilder_ == null) { lifetime_ = builderForValue.build(); onChanged(); @@ -12134,19 +14641,22 @@ public Builder setLifetime( return this; } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeLifetime(com.google.protobuf.Duration value) { if (lifetimeBuilder_ == null) { if (lifetime_ != null) { lifetime_ = - com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial(); } else { lifetime_ = value; } @@ -12158,13 +14668,16 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearLifetime() { if (lifetimeBuilder_ == null) { @@ -12178,63 +14691,81 @@ public Builder clearLifetime() { return this; } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getLifetimeBuilder() { - + onChanged(); return getLifetimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { if (lifetimeBuilder_ != null) { return lifetimeBuilder_.getMessageOrBuilder(); } else { - return lifetime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } } /** + * + * *
      * Required. The desired lifetime of the CA certificate. Used to create the
      * "not_before_time" and "not_after_time" fields inside an X.509
      * certificate.
      * 
* - * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ 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> getLifetimeFieldBuilder() { if (lifetimeBuilder_ == null) { - lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getLifetime(), - getParentForChildren(), - isClean()); + lifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLifetime(), getParentForChildren(), isClean()); lifetime_ = null; } return lifetimeBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec keySpec_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + keySpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder> keySpecBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .KeyVersionSpecOrBuilder> + keySpecBuilder_; /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12242,13 +14773,18 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the keySpec field is set. */ public boolean hasKeySpec() { return keySpecBuilder_ != null || keySpec_ != null; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12256,17 +14792,26 @@ public boolean hasKeySpec() {
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The keySpec. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getKeySpec() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + getKeySpec() { if (keySpecBuilder_ == null) { - return keySpec_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; + return keySpec_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance() + : keySpec_; } else { return keySpecBuilder_.getMessage(); } } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12274,9 +14819,12 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersi
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setKeySpec(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { + public Builder setKeySpec( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12290,6 +14838,8 @@ public Builder setKeySpec(com.google.cloud.security.privateca.v1beta1.Certificat return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12297,10 +14847,13 @@ public Builder setKeySpec(com.google.cloud.security.privateca.v1beta1.Certificat
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setKeySpec( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder + builderForValue) { if (keySpecBuilder_ == null) { keySpec_ = builderForValue.build(); onChanged(); @@ -12311,6 +14864,8 @@ public Builder setKeySpec( return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12318,13 +14873,19 @@ public Builder setKeySpec(
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeKeySpec(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { + public Builder mergeKeySpec( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec value) { if (keySpecBuilder_ == null) { if (keySpec_ != null) { keySpec_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.newBuilder(keySpec_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .newBuilder(keySpec_) + .mergeFrom(value) + .buildPartial(); } else { keySpec_ = value; } @@ -12336,6 +14897,8 @@ public Builder mergeKeySpec(com.google.cloud.security.privateca.v1beta1.Certific return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12343,7 +14906,9 @@ public Builder mergeKeySpec(com.google.cloud.security.privateca.v1beta1.Certific
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearKeySpec() { if (keySpecBuilder_ == null) { @@ -12357,6 +14922,8 @@ public Builder clearKeySpec() { return this; } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12364,14 +14931,19 @@ public Builder clearKeySpec() {
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder getKeySpecBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder + getKeySpecBuilder() { + onChanged(); return getKeySpecFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12379,17 +14951,24 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersi
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder + getKeySpecOrBuilder() { if (keySpecBuilder_ != null) { return keySpecBuilder_.getMessageOrBuilder(); } else { - return keySpec_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.getDefaultInstance() : keySpec_; + return keySpec_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .getDefaultInstance() + : keySpec_; } } /** + * + * *
      * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -12397,62 +14976,98 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersi
      * is used to sign a CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .KeyVersionSpecOrBuilder> getKeySpecFieldBuilder() { if (keySpecBuilder_ == null) { - keySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder>( - getKeySpec(), - getParentForChildren(), - isClean()); + keySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec + .Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .KeyVersionSpecOrBuilder>(getKeySpec(), getParentForChildren(), isClean()); keySpec_ = null; } return keySpecBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificatePolicy_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + certificatePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder> certificatePolicyBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder> + certificatePolicyBuilder_; /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the certificatePolicy field is set. */ public boolean hasCertificatePolicy() { return certificatePolicyBuilder_ != null || certificatePolicy_ != null; } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The certificatePolicy. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy + getCertificatePolicy() { if (certificatePolicyBuilder_ == null) { - return certificatePolicy_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance() : certificatePolicy_; + return certificatePolicy_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.getDefaultInstance() + : certificatePolicy_; } else { return certificatePolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCertificatePolicy(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy value) { + public Builder setCertificatePolicy( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + value) { if (certificatePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12466,15 +15081,21 @@ public Builder setCertificatePolicy(com.google.cloud.security.privateca.v1beta1. return this; } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCertificatePolicy( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + .Builder + builderForValue) { if (certificatePolicyBuilder_ == null) { certificatePolicy_ = builderForValue.build(); onChanged(); @@ -12485,18 +15106,27 @@ public Builder setCertificatePolicy( return this; } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCertificatePolicy(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy value) { + public Builder mergeCertificatePolicy( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + value) { if (certificatePolicyBuilder_ == null) { if (certificatePolicy_ != null) { certificatePolicy_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.newBuilder(certificatePolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.newBuilder(certificatePolicy_) + .mergeFrom(value) + .buildPartial(); } else { certificatePolicy_ = value; } @@ -12508,12 +15138,16 @@ public Builder mergeCertificatePolicy(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCertificatePolicy() { if (certificatePolicyBuilder_ == null) { @@ -12527,96 +15161,147 @@ public Builder clearCertificatePolicy() { return this; } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder getCertificatePolicyBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.Builder + getCertificatePolicyBuilder() { + onChanged(); return getCertificatePolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder + getCertificatePolicyOrBuilder() { if (certificatePolicyBuilder_ != null) { return certificatePolicyBuilder_.getMessageOrBuilder(); } else { - return certificatePolicy_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.getDefaultInstance() : certificatePolicy_; + return certificatePolicy_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.getDefaultInstance() + : certificatePolicy_; } } /** + * + * *
      * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder> getCertificatePolicyFieldBuilder() { if (certificatePolicyBuilder_ == null) { - certificatePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder>( - getCertificatePolicy(), - getParentForChildren(), - isClean()); + certificatePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicy.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder>( + getCertificatePolicy(), getParentForChildren(), isClean()); certificatePolicy_ = null; } return certificatePolicyBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuingOptions_; + private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + issuingOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder> issuingOptionsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .IssuingOptionsOrBuilder> + issuingOptionsBuilder_; /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the issuingOptions field is set. */ public boolean hasIssuingOptions() { return issuingOptionsBuilder_ != null || issuingOptions_ != null; } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuingOptions. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getIssuingOptions() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + getIssuingOptions() { if (issuingOptionsBuilder_ == null) { - return issuingOptions_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance() : issuingOptions_; + return issuingOptions_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .getDefaultInstance() + : issuingOptions_; } else { return issuingOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIssuingOptions(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { + public Builder setIssuingOptions( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { if (issuingOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12630,15 +15315,20 @@ public Builder setIssuingOptions(com.google.cloud.security.privateca.v1beta1.Cer return this; } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIssuingOptions( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder + builderForValue) { if (issuingOptionsBuilder_ == null) { issuingOptions_ = builderForValue.build(); onChanged(); @@ -12649,18 +15339,26 @@ public Builder setIssuingOptions( return this; } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeIssuingOptions(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { + public Builder mergeIssuingOptions( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions value) { if (issuingOptionsBuilder_ == null) { if (issuingOptions_ != null) { issuingOptions_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.newBuilder(issuingOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .newBuilder(issuingOptions_) + .mergeFrom(value) + .buildPartial(); } else { issuingOptions_ = value; } @@ -12672,12 +15370,16 @@ public Builder mergeIssuingOptions(com.google.cloud.security.privateca.v1beta1.C return this; } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIssuingOptions() { if (issuingOptionsBuilder_ == null) { @@ -12691,51 +15393,73 @@ public Builder clearIssuingOptions() { return this; } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder getIssuingOptionsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder + getIssuingOptionsBuilder() { + onChanged(); return getIssuingOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder + getIssuingOptionsOrBuilder() { if (issuingOptionsBuilder_ != null) { return issuingOptionsBuilder_.getMessageOrBuilder(); } else { - return issuingOptions_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.getDefaultInstance() : issuingOptions_; + return issuingOptions_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .getDefaultInstance() + : issuingOptions_; } } /** + * + * *
      * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
      * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .IssuingOptionsOrBuilder> getIssuingOptionsFieldBuilder() { if (issuingOptionsBuilder_ == null) { - issuingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder>( - getIssuingOptions(), - getParentForChildren(), - isClean()); + issuingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + .Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .IssuingOptionsOrBuilder>( + getIssuingOptions(), getParentForChildren(), isClean()); issuingOptions_ = null; } return issuingOptionsBuilder_; @@ -12743,47 +15467,67 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingO private com.google.cloud.security.privateca.v1beta1.SubordinateConfig subordinateConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> subordinateConfigBuilder_; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> + subordinateConfigBuilder_; /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subordinateConfig field is set. */ public boolean hasSubordinateConfig() { return subordinateConfigBuilder_ != null || subordinateConfig_ != null; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subordinateConfig. */ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig() { if (subordinateConfigBuilder_ == null) { - return subordinateConfig_ == null ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } else { return subordinateConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder setSubordinateConfig( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12797,13 +15541,17 @@ public Builder setSubordinateConfig(com.google.cloud.security.privateca.v1beta1. return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubordinateConfig( com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder builderForValue) { @@ -12817,19 +15565,27 @@ public Builder setSubordinateConfig( return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { + public Builder mergeSubordinateConfig( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig value) { if (subordinateConfigBuilder_ == null) { if (subordinateConfig_ != null) { subordinateConfig_ = - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder(subordinateConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder( + subordinateConfig_) + .mergeFrom(value) + .buildPartial(); } else { subordinateConfig_ = value; } @@ -12841,13 +15597,17 @@ public Builder mergeSubordinateConfig(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubordinateConfig() { if (subordinateConfigBuilder_ == null) { @@ -12861,54 +15621,72 @@ public Builder clearSubordinateConfig() { return this; } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder getSubordinateConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder + getSubordinateConfigBuilder() { + onChanged(); return getSubordinateConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder() { if (subordinateConfigBuilder_ != null) { return subordinateConfigBuilder_.getMessageOrBuilder(); } else { - return subordinateConfig_ == null ? - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() : subordinateConfig_; + return subordinateConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance() + : subordinateConfig_; } } /** + * + * *
      * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
      * with the subordinate configuration, which describes its issuers. This may
      * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder> getSubordinateConfigFieldBuilder() { if (subordinateConfigBuilder_ == null) { - subordinateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( - getSubordinateConfig(), - getParentForChildren(), - isClean()); + subordinateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubordinateConfig, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder>( + getSubordinateConfig(), getParentForChildren(), isClean()); subordinateConfig_ = null; } return subordinateConfigBuilder_; @@ -12916,86 +15694,120 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder ge private int state_ = 0; /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State result = + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State value) { + public Builder setState( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList pemCaCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pemCaCertificates_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePemCaCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCaCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCaCertificates_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13003,14 +15815,17 @@ private void ensurePemCaCertificatesIsMutable() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCaCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCaCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCaCertificatesList() { return pemCaCertificates_.getUnmodifiableView(); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13018,13 +15833,17 @@ private void ensurePemCaCertificatesIsMutable() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCaCertificates. */ public int getPemCaCertificatesCount() { return pemCaCertificates_.size(); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13032,7 +15851,9 @@ public int getPemCaCertificatesCount() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ @@ -13040,6 +15861,8 @@ public java.lang.String getPemCaCertificates(int index) { return pemCaCertificates_.get(index); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13047,15 +15870,18 @@ public java.lang.String getPemCaCertificates(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCaCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCaCertificatesBytes(int index) { return pemCaCertificates_.getByteString(index); } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13063,22 +15889,25 @@ public java.lang.String getPemCaCertificates(int index) {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The pemCaCertificates to set. * @return This builder for chaining. */ - public Builder setPemCaCertificates( - int index, java.lang.String value) { + public Builder setPemCaCertificates(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13086,21 +15915,24 @@ public Builder setPemCaCertificates(
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificates( - java.lang.String value) { + public Builder addPemCaCertificates(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCaCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13108,19 +15940,21 @@ public Builder addPemCaCertificates(
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCaCertificates( - java.lang.Iterable values) { + public Builder addAllPemCaCertificates(java.lang.Iterable values) { ensurePemCaCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pemCaCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCaCertificates_); onChanged(); return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13128,7 +15962,9 @@ public Builder addAllPemCaCertificates(
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPemCaCertificates() { @@ -13138,6 +15974,8 @@ public Builder clearPemCaCertificates() { return this; } /** + * + * *
      * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -13145,43 +15983,56 @@ public Builder clearPemCaCertificates() {
      * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
      * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the pemCaCertificates to add. * @return This builder for chaining. */ - public Builder addPemCaCertificatesBytes( - com.google.protobuf.ByteString value) { + public Builder addPemCaCertificatesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCaCertificatesIsMutable(); pemCaCertificates_.add(value); onChanged(); return this; } - private java.util.List caCertificateDescriptions_ = - java.util.Collections.emptyList(); + private java.util.List + caCertificateDescriptions_ = java.util.Collections.emptyList(); + private void ensureCaCertificateDescriptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - caCertificateDescriptions_ = new java.util.ArrayList(caCertificateDescriptions_); + caCertificateDescriptions_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.CertificateDescription>( + caCertificateDescriptions_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> caCertificateDescriptionsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + caCertificateDescriptionsBuilder_; /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getCaCertificateDescriptionsList() { + public java.util.List + getCaCertificateDescriptionsList() { if (caCertificateDescriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(caCertificateDescriptions_); } else { @@ -13189,12 +16040,16 @@ public java.util.List * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate * and its issuers. Ordered as self-to-root. *
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getCaCertificateDescriptionsCount() { if (caCertificateDescriptionsBuilder_ == null) { @@ -13204,14 +16059,19 @@ public int getCaCertificateDescriptionsCount() { } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + getCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { return caCertificateDescriptions_.get(index); } else { @@ -13219,12 +16079,16 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaC } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { @@ -13241,15 +16105,21 @@ public Builder setCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCaCertificateDescriptions( - int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.set(index, builderForValue.build()); @@ -13260,14 +16130,19 @@ public Builder setCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCaCertificateDescriptions(com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { + public Builder addCaCertificateDescriptions( + com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { if (caCertificateDescriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13281,12 +16156,16 @@ public Builder addCaCertificateDescriptions(com.google.cloud.security.privateca. return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCaCertificateDescriptions( int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription value) { @@ -13303,15 +16182,20 @@ public Builder addCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCaCertificateDescriptions( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.add(builderForValue.build()); @@ -13322,15 +16206,21 @@ public Builder addCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addCaCertificateDescriptions( - int index, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + builderForValue) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); caCertificateDescriptions_.add(index, builderForValue.build()); @@ -13341,19 +16231,24 @@ public Builder addCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllCaCertificateDescriptions( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescription> + values) { if (caCertificateDescriptionsBuilder_ == null) { ensureCaCertificateDescriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, caCertificateDescriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCertificateDescriptions_); onChanged(); } else { caCertificateDescriptionsBuilder_.addAllMessages(values); @@ -13361,12 +16256,16 @@ public Builder addAllCaCertificateDescriptions( return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCaCertificateDescriptions() { if (caCertificateDescriptionsBuilder_ == null) { @@ -13379,12 +16278,16 @@ public Builder clearCaCertificateDescriptions() { return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeCaCertificateDescriptions(int index) { if (caCertificateDescriptionsBuilder_ == null) { @@ -13397,42 +16300,56 @@ public Builder removeCaCertificateDescriptions(int index) { return this; } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder getCaCertificateDescriptionsBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + getCaCertificateDescriptionsBuilder(int index) { return getCaCertificateDescriptionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder + getCaCertificateDescriptionsOrBuilder(int index) { if (caCertificateDescriptionsBuilder_ == null) { - return caCertificateDescriptions_.get(index); } else { + return caCertificateDescriptions_.get(index); + } else { return caCertificateDescriptionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCaCertificateDescriptionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + getCaCertificateDescriptionsOrBuilderList() { if (caCertificateDescriptionsBuilder_ != null) { return caCertificateDescriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -13440,48 +16357,73 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuild } } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder() { - return getCaCertificateDescriptionsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + addCaCertificateDescriptionsBuilder() { + return getCaCertificateDescriptionsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .getDefaultInstance()); } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder addCaCertificateDescriptionsBuilder( - int index) { - return getCaCertificateDescriptionsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder + addCaCertificateDescriptionsBuilder(int index) { + return getCaCertificateDescriptionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .getDefaultInstance()); } /** + * + * *
      * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
      * and its issuers. Ordered as self-to-root.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCaCertificateDescriptionsBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder> + getCaCertificateDescriptionsBuilderList() { return getCaCertificateDescriptionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsFieldBuilder() { if (caCertificateDescriptionsBuilder_ == null) { - caCertificateDescriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( + caCertificateDescriptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder>( caCertificateDescriptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -13493,6 +16435,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builde private java.lang.Object gcsBucket_ = ""; /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -13503,13 +16447,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builde
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The gcsBucket. */ public java.lang.String getGcsBucket() { java.lang.Object ref = gcsBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsBucket_ = s; return s; @@ -13518,6 +16462,8 @@ public java.lang.String getGcsBucket() { } } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -13528,15 +16474,14 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for gcsBucket. */ - public com.google.protobuf.ByteString - getGcsBucketBytes() { + public com.google.protobuf.ByteString getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsBucket_ = b; return b; } else { @@ -13544,6 +16489,8 @@ public java.lang.String getGcsBucket() { } } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -13554,20 +16501,22 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucket( - java.lang.String value) { + public Builder setGcsBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsBucket_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -13578,15 +16527,18 @@ public Builder setGcsBucket(
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearGcsBucket() { - + gcsBucket_ = getDefaultInstance().getGcsBucket(); onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
      * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -13597,16 +16549,16 @@ public Builder clearGcsBucket() {
      * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; onChanged(); return this; @@ -13614,44 +16566,66 @@ public Builder setGcsBucketBytes( private com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls accessUrls_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> accessUrlsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> + accessUrlsBuilder_; /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accessUrls field is set. */ public boolean hasAccessUrls() { return accessUrlsBuilder_ != null || accessUrls_ != null; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accessUrls. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getAccessUrls() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + getAccessUrls() { if (accessUrlsBuilder_ == null) { - return accessUrls_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; + return accessUrls_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + .getDefaultInstance() + : accessUrls_; } else { return accessUrlsBuilder_.getMessage(); } } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setAccessUrls(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { + public Builder setAccessUrls( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13665,15 +16639,20 @@ public Builder setAccessUrls(com.google.cloud.security.privateca.v1beta1.Certifi return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAccessUrls( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder + builderForValue) { if (accessUrlsBuilder_ == null) { accessUrls_ = builderForValue.build(); onChanged(); @@ -13684,18 +16663,26 @@ public Builder setAccessUrls( return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeAccessUrls(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { + public Builder mergeAccessUrls( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls value) { if (accessUrlsBuilder_ == null) { if (accessUrls_ != null) { accessUrls_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.newBuilder(accessUrls_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + .newBuilder(accessUrls_) + .mergeFrom(value) + .buildPartial(); } else { accessUrls_ = value; } @@ -13707,12 +16694,16 @@ public Builder mergeAccessUrls(com.google.cloud.security.privateca.v1beta1.Certi return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAccessUrls() { if (accessUrlsBuilder_ == null) { @@ -13726,51 +16717,70 @@ public Builder clearAccessUrls() { return this; } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder getAccessUrlsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder + getAccessUrlsBuilder() { + onChanged(); return getAccessUrlsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder + getAccessUrlsOrBuilder() { if (accessUrlsBuilder_ != null) { return accessUrlsBuilder_.getMessageOrBuilder(); } else { - return accessUrls_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.getDefaultInstance() : accessUrls_; + return accessUrls_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls + .getDefaultInstance() + : accessUrls_; } } /** + * + * *
      * Output only. URLs for accessing content published by this CA, such as the CA certificate
      * and CRLs.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder> getAccessUrlsFieldBuilder() { if (accessUrlsBuilder_ == null) { - accessUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder>( - getAccessUrls(), - getParentForChildren(), - isClean()); + accessUrlsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .AccessUrlsOrBuilder>(getAccessUrls(), getParentForChildren(), isClean()); accessUrls_ = null; } return accessUrlsBuilder_; @@ -13778,39 +16788,58 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUr 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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -13826,14 +16855,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.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(); @@ -13844,17 +16876,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.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; } @@ -13866,11 +16902,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -13884,48 +16924,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 15 [(.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 [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> 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_; @@ -13933,39 +16989,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -13981,14 +17056,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -13999,17 +17077,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -14021,11 +17103,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -14039,48 +17125,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -14088,42 +17190,61 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -14139,15 +17260,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -14158,18 +17282,22 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -14181,12 +17309,16 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -14200,72 +17332,87 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
      * scheduled for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -14277,28 +17424,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -14306,11 +17455,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -14318,16 +17468,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -14335,12 +17486,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -14348,69 +17498,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -14420,30 +17567,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateAuthority) - private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateAuthority + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateAuthority(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateAuthority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateAuthority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateAuthority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14455,9 +17604,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java index 854ecf7f..8c0e447b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityOrBuilder.java @@ -1,100 +1,157 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateAuthorityOrBuilder extends +public interface CertificateAuthorityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateAuthority) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* * 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 [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. Immutable. The [Type][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Type getType(); /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** + * + * *
    * Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier tier = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The tier. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier getTier(); /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig(); /** + * + * *
    * Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -102,10 +159,13 @@ public interface CertificateAuthorityOrBuilder extends
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** + * + * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -113,10 +173,13 @@ public interface CertificateAuthorityOrBuilder extends
    * 
* * .google.protobuf.Duration lifetime = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** + * + * *
    * Required. The desired lifetime of the CA certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -128,6 +191,8 @@ public interface CertificateAuthorityOrBuilder extends
   com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -135,11 +200,16 @@ public interface CertificateAuthorityOrBuilder extends
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the keySpec field is set. */ boolean hasKeySpec(); /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -147,11 +217,16 @@ public interface CertificateAuthorityOrBuilder extends
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The keySpec. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec getKeySpec(); /** + * + * *
    * Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] is a self-signed CertificateAuthority, this key
@@ -159,123 +234,186 @@ public interface CertificateAuthorityOrBuilder extends
    * is used to sign a CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec key_spec = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder getKeySpecOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecOrBuilder + getKeySpecOrBuilder(); /** + * + * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the certificatePolicy field is set. */ boolean hasCertificatePolicy(); /** + * + * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The certificatePolicy. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy getCertificatePolicy(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy + getCertificatePolicy(); /** + * + * *
    * Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy certificate_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyOrBuilder getCertificatePolicyOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .CertificateAuthorityPolicyOrBuilder + getCertificatePolicyOrBuilder(); /** + * + * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the issuingOptions field is set. */ boolean hasIssuingOptions(); /** + * + * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The issuingOptions. */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions getIssuingOptions(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions + getIssuingOptions(); /** + * + * *
    * Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate]
    * from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions issuing_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder getIssuingOptionsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsOrBuilder + getIssuingOptionsOrBuilder(); /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subordinateConfig field is set. */ boolean hasSubordinateConfig(); /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subordinateConfig. */ com.google.cloud.security.privateca.v1beta1.SubordinateConfig getSubordinateConfig(); /** + * + * *
    * Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], this field will be set
    * with the subordinate configuration, which describes its issuers. This may
    * be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] must continue to validate.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig subordinate_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder getSubordinateConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder + getSubordinateConfigOrBuilder(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.State getState(); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -283,12 +421,15 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCaCertificates. */ - java.util.List - getPemCaCertificatesList(); + java.util.List getPemCaCertificatesList(); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -296,11 +437,15 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCaCertificates. */ int getPemCaCertificatesCount(); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -308,12 +453,16 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCaCertificates at the given index. */ java.lang.String getPemCaCertificates(int index); /** + * + * *
    * Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate. Ordered such that the root issuer
@@ -321,63 +470,88 @@ public interface CertificateAuthorityOrBuilder extends
    * will only list the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate.
    * 
* - * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_ca_certificates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCaCertificates at the given index. */ - com.google.protobuf.ByteString - getPemCaCertificatesBytes(int index); + com.google.protobuf.ByteString getPemCaCertificatesBytes(int index); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getCaCertificateDescriptionsList(); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions(int index); + com.google.cloud.security.privateca.v1beta1.CertificateDescription getCaCertificateDescriptions( + int index); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getCaCertificateDescriptionsCount(); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder> getCaCertificateDescriptionsOrBuilderList(); /** + * + * *
    * Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate
    * and its issuers. Ordered as self-to-root.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateDescription ca_certificate_descriptions = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCaCertificateDescriptionsOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder + getCaCertificateDescriptionsOrBuilder(int index); /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -388,10 +562,13 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getC
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The gcsBucket. */ java.lang.String getGcsBucket(); /** + * + * *
    * Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will
    * publish content, such as the CA certificate and CRLs. This must be a bucket
@@ -402,126 +579,176 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getC
    * 
* * string gcs_bucket = 13 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for gcsBucket. */ - com.google.protobuf.ByteString - getGcsBucketBytes(); + com.google.protobuf.ByteString getGcsBucketBytes(); /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the accessUrls field is set. */ boolean hasAccessUrls(); /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The accessUrls. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls getAccessUrls(); /** + * + * *
    * Output only. URLs for accessing content published by this CA, such as the CA certificate
    * and CRLs.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls access_urls = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder getAccessUrlsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsOrBuilder + getAccessUrlsOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will be deleted, if
    * scheduled for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -530,30 +757,31 @@ com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getC */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -562,18 +790,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java index b53d4226..c5a0fa6c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig] describes an X.509 certificate or CSR that is to be
  * created, as an alternative to using ASN.1.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig}
  */
-public final class CertificateConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateConfig)
     CertificateConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateConfig.newBuilder() to construct.
   private CertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private CertificateConfig() {
-  }
+
+  private CertificateConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,52 +69,67 @@ private CertificateConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder subBuilder = null;
-            if (subjectConfig_ != null) {
-              subBuilder = subjectConfig_.toBuilder();
-            }
-            subjectConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subjectConfig_);
-              subjectConfig_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder
+                  subBuilder = null;
+              if (subjectConfig_ != null) {
+                subBuilder = subjectConfig_.toBuilder();
+              }
+              subjectConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectConfig_);
+                subjectConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder subBuilder = null;
-            if (reusableConfig_ != null) {
-              subBuilder = reusableConfig_.toBuilder();
-            }
-            reusableConfig_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(reusableConfig_);
-              reusableConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder subBuilder =
+                  null;
+              if (reusableConfig_ != null) {
+                subBuilder = reusableConfig_.toBuilder();
+              }
+              reusableConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(reusableConfig_);
+                reusableConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
-            if (publicKey_ != null) {
-              subBuilder = publicKey_.toBuilder();
-            }
-            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.PublicKey.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publicKey_);
-              publicKey_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
+              if (publicKey_ != null) {
+                subBuilder = publicKey_.toBuilder();
+              }
+              publicKey_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.PublicKey.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publicKey_);
+                publicKey_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,105 +137,144 @@ private CertificateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.class,
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
   }
 
-  public interface SubjectConfigOrBuilder extends
+  public interface SubjectConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subject field is set. */ boolean hasSubject(); /** + * + * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subject. */ com.google.cloud.security.privateca.v1beta1.Subject getSubject(); /** + * + * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder(); /** + * + * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The commonName. */ java.lang.String getCommonName(); /** + * + * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for commonName. */ - com.google.protobuf.ByteString - getCommonNameBytes(); + com.google.protobuf.ByteString getCommonNameBytes(); /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subjectAltName. */ com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName(); /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder(); } /** + * + * *
    * These values are used to create the distinguished name and subject
    * alternative name fields in an X.509 certificate.
@@ -212,31 +282,31 @@ public interface SubjectConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig}
    */
-  public static final class SubjectConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SubjectConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
       SubjectConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SubjectConfig.newBuilder() to construct.
     private SubjectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SubjectConfig() {
       commonName_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SubjectConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private SubjectConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -255,45 +325,55 @@ private SubjectConfig(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null;
-              if (subject_ != null) {
-                subBuilder = subject_.toBuilder();
-              }
-              subject_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Subject.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subject_);
-                subject_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null;
+                if (subject_ != null) {
+                  subBuilder = subject_.toBuilder();
+                }
+                subject_ =
+                    input.readMessage(
+                        com.google.cloud.security.privateca.v1beta1.Subject.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(subject_);
+                  subject_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              commonName_ = s;
-              break;
-            }
-            case 26: {
-              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder = null;
-              if (subjectAltName_ != null) {
-                subBuilder = subjectAltName_.toBuilder();
+                commonName_ = s;
+                break;
               }
-              subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subjectAltName_);
-                subjectAltName_ = subBuilder.buildPartial();
+            case 26:
+              {
+                com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder =
+                    null;
+                if (subjectAltName_ != null) {
+                  subBuilder = subjectAltName_.toBuilder();
+                }
+                subjectAltName_ =
+                    input.readMessage(
+                        com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(subjectAltName_);
+                  subjectAltName_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -301,34 +381,42 @@ private SubjectConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class,
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder
+                  .class);
     }
 
     public static final int SUBJECT_FIELD_NUMBER = 1;
     private com.google.cloud.security.privateca.v1beta1.Subject subject_;
     /**
+     *
+     *
      * 
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subject field is set. */ @java.lang.Override @@ -336,23 +424,34 @@ public boolean hasSubject() { return subject_ != null; } /** + * + * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { - return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() + : subject_; } /** + * + * *
      * Required. Contains distinguished name fields such as the location and organization.
      * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder() { @@ -362,11 +461,14 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr public static final int COMMON_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object commonName_; /** + * + * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The commonName. */ @java.lang.Override @@ -375,29 +477,29 @@ public java.lang.String getCommonName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; } } /** + * + * *
      * Optional. The "common name" of the distinguished name.
      * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for commonName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommonNameBytes() { + public com.google.protobuf.ByteString getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); commonName_ = b; return b; } else { @@ -408,11 +510,16 @@ public java.lang.String getCommonName() { public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -420,30 +527,43 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } /** + * + * *
      * Optional. The subject alternative name fields.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { return getSubjectAltName(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -455,8 +575,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subject_ != null) { output.writeMessage(1, getSubject()); } @@ -476,15 +595,13 @@ public int getSerializedSize() { size = 0; if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commonName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commonName_); } if (subjectAltName_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubjectAltName()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubjectAltName()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -494,24 +611,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.security.privateca.v1beta1.CertificateConfig.SubjectConfig)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other = (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) obj; + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other = + (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) obj; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject() - .equals(other.getSubject())) return false; + if (!getSubject().equals(other.getSubject())) return false; } - if (!getCommonName() - .equals(other.getCommonName())) return false; + if (!getCommonName().equals(other.getCommonName())) return false; if (hasSubjectAltName() != other.hasSubjectAltName()) return false; if (hasSubjectAltName()) { - if (!getSubjectAltName() - .equals(other.getSubjectAltName())) return false; + if (!getSubjectAltName().equals(other.getSubjectAltName())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -539,88 +655,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig 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.security.privateca.v1beta1.CertificateConfig.SubjectConfig + 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.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -630,6 +759,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * These values are used to create the distinguished name and subject
      * alternative name fields in an X.509 certificate.
@@ -637,38 +768,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
         com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder.class);
+                com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.class,
+                com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -690,19 +825,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance();
+      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
+          getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig build() {
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result = buildPartial();
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -710,8 +848,10 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConf
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig buildPartial() {
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result = new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(this);
+      public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
+          buildPartial() {
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig result =
+            new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(this);
         if (subjectBuilder_ == null) {
           result.subject_ = subject_;
         } else {
@@ -731,46 +871,55 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConf
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateConfig.SubjectConfig) {
-          return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)other);
+        if (other
+            instanceof
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) {
+          return mergeFrom(
+              (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other) {
-        if (other == com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig other) {
+        if (other
+            == com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
+                .getDefaultInstance()) return this;
         if (other.hasSubject()) {
           mergeSubject(other.getSubject());
         }
@@ -796,11 +945,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parsedMessage = null;
+        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -812,39 +964,58 @@ public Builder mergeFrom(
 
       private com.google.cloud.security.privateca.v1beta1.Subject subject_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> subjectBuilder_;
+              com.google.cloud.security.privateca.v1beta1.Subject,
+              com.google.cloud.security.privateca.v1beta1.Subject.Builder,
+              com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>
+          subjectBuilder_;
       /**
+       *
+       *
        * 
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subject. */ public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() + : subject_; } else { return subjectBuilder_.getMessage(); } } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubject(com.google.cloud.security.privateca.v1beta1.Subject value) { if (subjectBuilder_ == null) { @@ -860,11 +1031,15 @@ public Builder setSubject(com.google.cloud.security.privateca.v1beta1.Subject va return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubject( com.google.cloud.security.privateca.v1beta1.Subject.Builder builderForValue) { @@ -878,17 +1053,23 @@ public Builder setSubject( return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject value) { if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = - com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_) + .mergeFrom(value) + .buildPartial(); } else { subject_ = value; } @@ -900,11 +1081,15 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubject() { if (subjectBuilder_ == null) { @@ -918,48 +1103,64 @@ public Builder clearSubject() { return this; } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1beta1.Subject.Builder getSubjectBuilder() { - + onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder() { if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null ? - com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() + : subject_; } } /** + * + * *
        * Required. Contains distinguished name fields such as the location and organization.
        * 
* - * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( - getSubject(), - getParentForChildren(), - isClean()); + subjectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( + getSubject(), getParentForChildren(), isClean()); subject_ = null; } return subjectBuilder_; @@ -967,18 +1168,20 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr private java.lang.Object commonName_ = ""; /** + * + * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The commonName. */ public java.lang.String getCommonName() { java.lang.Object ref = commonName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; @@ -987,20 +1190,21 @@ public java.lang.String getCommonName() { } } /** + * + * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for commonName. */ - public com.google.protobuf.ByteString - getCommonNameBytes() { + public com.google.protobuf.ByteString getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); commonName_ = b; return b; } else { @@ -1008,54 +1212,61 @@ public java.lang.String getCommonName() { } } /** + * + * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The commonName to set. * @return This builder for chaining. */ - public Builder setCommonName( - java.lang.String value) { + public Builder setCommonName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + commonName_ = value; onChanged(); return this; } /** + * + * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCommonName() { - + commonName_ = getDefaultInstance().getCommonName(); onChanged(); return this; } /** + * + * *
        * Optional. The "common name" of the distinguished name.
        * 
* * string common_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for commonName to set. * @return This builder for chaining. */ - public Builder setCommonNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commonName_ = value; onChanged(); return this; @@ -1063,41 +1274,61 @@ public Builder setCommonNameBytes( private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_; + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> + subjectAltNameBuilder_; /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder setSubjectAltName( + com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1111,11 +1342,15 @@ public Builder setSubjectAltName(com.google.cloud.security.privateca.v1beta1.Sub return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubjectAltName( com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder builderForValue) { @@ -1129,17 +1364,25 @@ public Builder setSubjectAltName( return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder mergeSubjectAltName( + com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder( + subjectAltName_) + .mergeFrom(value) + .buildPartial(); } else { subjectAltName_ = value; } @@ -1151,11 +1394,15 @@ public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1beta1.S return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubjectAltName() { if (subjectAltNameBuilder_ == null) { @@ -1169,52 +1416,71 @@ public Builder clearSubjectAltName() { return this; } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder + getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null ? - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } } /** + * + * *
        * Optional. The subject alternative name fields.
        * 
* - * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), - getParentForChildren(), - isClean()); + subjectAltNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), getParentForChildren(), isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1227,30 +1493,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig) - private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1262,21 +1531,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int SUBJECT_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subjectConfig_; + private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + subjectConfig_; /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subjectConfig field is set. */ @java.lang.Override @@ -1284,40 +1559,59 @@ public boolean hasSubjectConfig() { return subjectConfig_ != null; } /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subjectConfig. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getSubjectConfig() { - return subjectConfig_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + getSubjectConfig() { + return subjectConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + .getDefaultInstance() + : subjectConfig_; } /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder + getSubjectConfigOrBuilder() { return getSubjectConfig(); } public static final int REUSABLE_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusableConfig_; /** + * + * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reusableConfig field is set. */ @java.lang.Override @@ -1325,41 +1619,58 @@ public boolean hasReusableConfig() { return reusableConfig_ != null; } /** + * + * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reusableConfig. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getReusableConfig() { - return reusableConfig_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() : reusableConfig_; + return reusableConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() + : reusableConfig_; } /** + * + * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getReusableConfigOrBuilder() { return getReusableConfig(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -1367,27 +1678,38 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { - return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() + : publicKey_; } /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder() { @@ -1395,6 +1717,7 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1406,8 +1729,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subjectConfig_ != null) { output.writeMessage(1, getSubjectConfig()); } @@ -1427,16 +1749,13 @@ public int getSerializedSize() { size = 0; if (subjectConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubjectConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectConfig()); } if (reusableConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReusableConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReusableConfig()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1446,27 +1765,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.security.privateca.v1beta1.CertificateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateConfig other = (com.google.cloud.security.privateca.v1beta1.CertificateConfig) obj; + com.google.cloud.security.privateca.v1beta1.CertificateConfig other = + (com.google.cloud.security.privateca.v1beta1.CertificateConfig) obj; if (hasSubjectConfig() != other.hasSubjectConfig()) return false; if (hasSubjectConfig()) { - if (!getSubjectConfig() - .equals(other.getSubjectConfig())) return false; + if (!getSubjectConfig().equals(other.getSubjectConfig())) return false; } if (hasReusableConfig() != other.hasReusableConfig()) return false; if (hasReusableConfig()) { - if (!getReusableConfig() - .equals(other.getReusableConfig())) return false; + if (!getReusableConfig().equals(other.getReusableConfig())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1497,96 +1814,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateConfig 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.security.privateca.v1beta1.CertificateConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateConfig][google.cloud.security.privateca.v1beta1.CertificateConfig] describes an X.509 certificate or CSR that is to be
    * created, as an alternative to using ASN.1.
@@ -1594,21 +1919,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateConfig)
       com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateConfig.class, com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.class,
+              com.google.cloud.security.privateca.v1beta1.CertificateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.CertificateConfig.newBuilder()
@@ -1616,16 +1943,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1651,13 +1977,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateConfig getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.CertificateConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance();
     }
 
@@ -1672,7 +1999,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateConfig result = new com.google.cloud.security.privateca.v1beta1.CertificateConfig(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateConfig result =
+          new com.google.cloud.security.privateca.v1beta1.CertificateConfig(this);
       if (subjectConfigBuilder_ == null) {
         result.subjectConfig_ = subjectConfig_;
       } else {
@@ -1696,38 +2024,39 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1735,7 +2064,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateConfig other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.CertificateConfig.getDefaultInstance())
+        return this;
       if (other.hasSubjectConfig()) {
         mergeSubjectConfig(other.getSubjectConfig());
       }
@@ -1764,7 +2095,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.CertificateConfig)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1774,46 +2107,69 @@ public Builder mergeFrom(
       return this;
     }
 
-    private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subjectConfig_;
+    private com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig
+        subjectConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder> subjectConfigBuilder_;
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig,
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder,
+            com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder>
+        subjectConfigBuilder_;
     /**
+     *
+     *
      * 
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subjectConfig field is set. */ public boolean hasSubjectConfig() { return subjectConfigBuilder_ != null || subjectConfig_ != null; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subjectConfig. */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getSubjectConfig() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + getSubjectConfig() { if (subjectConfigBuilder_ == null) { - return subjectConfig_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; + return subjectConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + .getDefaultInstance() + : subjectConfig_; } else { return subjectConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSubjectConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { + public Builder setSubjectConfig( + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1827,15 +2183,20 @@ public Builder setSubjectConfig(com.google.cloud.security.privateca.v1beta1.Cert return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubjectConfig( - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder + builderForValue) { if (subjectConfigBuilder_ == null) { subjectConfig_ = builderForValue.build(); onChanged(); @@ -1846,18 +2207,26 @@ public Builder setSubjectConfig( return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSubjectConfig(com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { + public Builder mergeSubjectConfig( + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig value) { if (subjectConfigBuilder_ == null) { if (subjectConfig_ != null) { subjectConfig_ = - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.newBuilder(subjectConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + .newBuilder(subjectConfig_) + .mergeFrom(value) + .buildPartial(); } else { subjectConfig_ = value; } @@ -1869,12 +2238,16 @@ public Builder mergeSubjectConfig(com.google.cloud.security.privateca.v1beta1.Ce return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubjectConfig() { if (subjectConfigBuilder_ == null) { @@ -1888,51 +2261,70 @@ public Builder clearSubjectConfig() { return this; } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder getSubjectConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder + getSubjectConfigBuilder() { + onChanged(); return getSubjectConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder + getSubjectConfigOrBuilder() { if (subjectConfigBuilder_ != null) { return subjectConfigBuilder_.getMessageOrBuilder(); } else { - return subjectConfig_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.getDefaultInstance() : subjectConfig_; + return subjectConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig + .getDefaultInstance() + : subjectConfig_; } } /** + * + * *
      * Required. Specifies some of the values in a certificate that are related to the
      * subject.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder> getSubjectConfigFieldBuilder() { if (subjectConfigBuilder_ == null) { - subjectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder>( - getSubjectConfig(), - getParentForChildren(), - isClean()); + subjectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig, + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateConfig + .SubjectConfigOrBuilder>(getSubjectConfig(), getParentForChildren(), isClean()); subjectConfig_ = null; } return subjectConfigBuilder_; @@ -1940,44 +2332,64 @@ public com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConf private com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusableConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> reusableConfigBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + reusableConfigBuilder_; /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reusableConfig field is set. */ public boolean hasReusableConfig() { return reusableConfigBuilder_ != null || reusableConfig_ != null; } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reusableConfig. */ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getReusableConfig() { if (reusableConfigBuilder_ == null) { - return reusableConfig_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() : reusableConfig_; + return reusableConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() + : reusableConfig_; } else { return reusableConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setReusableConfig(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder setReusableConfig( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (reusableConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1991,12 +2403,16 @@ public Builder setReusableConfig(com.google.cloud.security.privateca.v1beta1.Reu return this; } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReusableConfig( com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder builderForValue) { @@ -2010,18 +2426,26 @@ public Builder setReusableConfig( return this; } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeReusableConfig(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { + public Builder mergeReusableConfig( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper value) { if (reusableConfigBuilder_ == null) { if (reusableConfig_ != null) { reusableConfig_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder(reusableConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder( + reusableConfig_) + .mergeFrom(value) + .buildPartial(); } else { reusableConfig_ = value; } @@ -2033,12 +2457,16 @@ public Builder mergeReusableConfig(com.google.cloud.security.privateca.v1beta1.R return this; } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReusableConfig() { if (reusableConfigBuilder_ == null) { @@ -2052,51 +2480,69 @@ public Builder clearReusableConfig() { return this; } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder getReusableConfigBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder + getReusableConfigBuilder() { + onChanged(); return getReusableConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getReusableConfigOrBuilder() { if (reusableConfigBuilder_ != null) { return reusableConfigBuilder_.getMessageOrBuilder(); } else { - return reusableConfig_ == null ? - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() : reusableConfig_; + return reusableConfig_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance() + : reusableConfig_; } } /** + * + * *
      * Required. Describes how some of the technical fields in a certificate should be
      * populated.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder> getReusableConfigFieldBuilder() { if (reusableConfigBuilder_ == null) { - reusableConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( - getReusableConfig(), - getParentForChildren(), - isClean()); + reusableConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder>( + getReusableConfig(), getParentForChildren(), isClean()); reusableConfig_ = null; } return reusableConfigBuilder_; @@ -2104,45 +2550,64 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilde private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> publicKeyBuilder_; + com.google.cloud.security.privateca.v1beta1.PublicKey, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, + com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> + publicKeyBuilder_; /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publicKey. */ public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() + : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKey(com.google.cloud.security.privateca.v1beta1.PublicKey value) { if (publicKeyBuilder_ == null) { @@ -2158,13 +2623,17 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1beta1.PublicKe return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKey( com.google.cloud.security.privateca.v1beta1.PublicKey.Builder builderForValue) { @@ -2178,19 +2647,25 @@ public Builder setPublicKey( return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.PublicKey value) { if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_) + .mergeFrom(value) + .buildPartial(); } else { publicKey_ = value; } @@ -2202,13 +2677,17 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.Public return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPublicKey() { if (publicKeyBuilder_ == null) { @@ -2222,61 +2701,77 @@ public Builder clearPublicKey() { return this; } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder() { if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null ? - com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() + : publicKey_; } } /** + * + * *
      * Optional. The public key that corresponds to this config. This is, for example, used
      * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
      * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1beta1.PublicKey, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, + com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); + publicKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.PublicKey, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, + com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( + getPublicKey(), getParentForChildren(), isClean()); publicKey_ = null; } return publicKeyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2286,12 +2781,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateConfig) - private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateConfig(); } @@ -2300,16 +2796,16 @@ public static com.google.cloud.security.privateca.v1beta1.CertificateConfig getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2324,6 +2820,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.CertificateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java index 7b8d3c4b..45f8a057 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateConfigOrBuilder.java @@ -1,102 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateConfigOrBuilder extends +public interface CertificateConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subjectConfig field is set. */ boolean hasSubjectConfig(); /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subjectConfig. */ com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig getSubjectConfig(); /** + * + * *
    * Required. Specifies some of the values in a certificate that are related to the
    * subject.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig subject_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder getSubjectConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigOrBuilder + getSubjectConfigOrBuilder(); /** + * + * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reusableConfig field is set. */ boolean hasReusableConfig(); /** + * + * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reusableConfig. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getReusableConfig(); /** + * + * *
    * Required. Describes how some of the technical fields in a certificate should be
    * populated.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigWrapper reusable_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder getReusableConfigOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder + getReusableConfigOrBuilder(); /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publicKey. */ com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey(); /** + * + * *
    * Optional. The public key that corresponds to this config. This is, for example, used
    * when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate], but not when creating a
    * self-signed [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] or [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] CSR.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java index 66bd326f..93bd1636 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescription.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [CertificateDescription][google.cloud.security.privateca.v1beta1.CertificateDescription] describes an X.509 certificate or CSR that has
  * been issued, as an alternative to using ASN.1 / X.509.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription}
  */
-public final class CertificateDescription extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateDescription extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription)
     CertificateDescriptionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateDescription.newBuilder() to construct.
   private CertificateDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateDescription() {
     crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -27,16 +45,15 @@ private CertificateDescription() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateDescription();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateDescription(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,109 +73,146 @@ private CertificateDescription(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder subBuilder = null;
-            if (subjectDescription_ != null) {
-              subBuilder = subjectDescription_.toBuilder();
-            }
-            subjectDescription_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subjectDescription_);
-              subjectDescription_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
+                      .Builder
+                  subBuilder = null;
+              if (subjectDescription_ != null) {
+                subBuilder = subjectDescription_.toBuilder();
+              }
+              subjectDescription_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateDescription
+                          .SubjectDescription.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectDescription_);
+                subjectDescription_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder = null;
-            if (configValues_ != null) {
-              subBuilder = configValues_.toBuilder();
-            }
-            configValues_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(configValues_);
-              configValues_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder =
+                  null;
+              if (configValues_ != null) {
+                subBuilder = configValues_.toBuilder();
+              }
+              configValues_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(configValues_);
+                configValues_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
-            if (publicKey_ != null) {
-              subBuilder = publicKey_.toBuilder();
-            }
-            publicKey_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.PublicKey.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publicKey_);
-              publicKey_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1beta1.PublicKey.Builder subBuilder = null;
+              if (publicKey_ != null) {
+                subBuilder = publicKey_.toBuilder();
+              }
+              publicKey_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.PublicKey.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publicKey_);
+                publicKey_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder subBuilder = null;
-            if (subjectKeyId_ != null) {
-              subBuilder = subjectKeyId_.toBuilder();
-            }
-            subjectKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subjectKeyId_);
-              subjectKeyId_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
+                  subBuilder = null;
+              if (subjectKeyId_ != null) {
+                subBuilder = subjectKeyId_.toBuilder();
+              }
+              subjectKeyId_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subjectKeyId_);
+                subjectKeyId_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 42: {
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder subBuilder = null;
-            if (authorityKeyId_ != null) {
-              subBuilder = authorityKeyId_.toBuilder();
-            }
-            authorityKeyId_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(authorityKeyId_);
-              authorityKeyId_ = subBuilder.buildPartial();
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
+                  subBuilder = null;
+              if (authorityKeyId_ != null) {
+                subBuilder = authorityKeyId_.toBuilder();
+              }
+              authorityKeyId_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(authorityKeyId_);
+                authorityKeyId_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            crlDistributionPoints_.add(s);
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            aiaIssuingCertificateUrls_.add(s);
-            break;
-          }
-          case 66: {
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder subBuilder = null;
-            if (certFingerprint_ != null) {
-              subBuilder = certFingerprint_.toBuilder();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              crlDistributionPoints_.add(s);
+              break;
             }
-            certFingerprint_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certFingerprint_);
-              certFingerprint_ = subBuilder.buildPartial();
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              aiaIssuingCertificateUrls_.add(s);
+              break;
             }
+          case 66:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription
+                      .CertificateFingerprint.Builder
+                  subBuilder = null;
+              if (certFingerprint_ != null) {
+                subBuilder = certFingerprint_.toBuilder();
+              }
+              certFingerprint_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateDescription
+                          .CertificateFingerprint.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certFingerprint_);
+                certFingerprint_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -166,8 +220,7 @@ private CertificateDescription(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         crlDistributionPoints_ = crlDistributionPoints_.getUnmodifiableView();
@@ -179,42 +232,54 @@ private CertificateDescription(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.class,
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
   }
 
-  public interface SubjectDescriptionOrBuilder extends
+  public interface SubjectDescriptionOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; + * * @return Whether the subject field is set. */ boolean hasSubject(); /** + * + * *
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; + * * @return The subject. */ com.google.cloud.security.privateca.v1beta1.Subject getSubject(); /** + * + * *
      * Contains distinguished name fields such as the location and organization.
      * 
@@ -224,93 +289,120 @@ public interface SubjectDescriptionOrBuilder extends com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOrBuilder(); /** + * + * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; + * * @return The commonName. */ java.lang.String getCommonName(); /** + * + * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; + * * @return The bytes for commonName. */ - com.google.protobuf.ByteString - getCommonNameBytes(); + com.google.protobuf.ByteString getCommonNameBytes(); /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; + * * @return Whether the subjectAltName field is set. */ boolean hasSubjectAltName(); /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; + * * @return The subjectAltName. */ com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName(); /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder(); /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; + * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; + * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString - getHexSerialNumberBytes(); + com.google.protobuf.ByteString getHexSerialNumberBytes(); /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; + * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; + * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -321,24 +413,32 @@ public interface SubjectDescriptionOrBuilder extends
     com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; + * * @return Whether the notBeforeTime field is set. */ boolean hasNotBeforeTime(); /** + * + * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; + * * @return The notBeforeTime. */ com.google.protobuf.Timestamp getNotBeforeTime(); /** + * + * *
      * The time at which the certificate becomes valid.
      * 
@@ -348,24 +448,32 @@ public interface SubjectDescriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder(); /** + * + * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; + * * @return Whether the notAfterTime field is set. */ boolean hasNotAfterTime(); /** + * + * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; + * * @return The notAfterTime. */ com.google.protobuf.Timestamp getNotAfterTime(); /** + * + * *
      * The time at which the certificate expires.
      * 
@@ -375,22 +483,26 @@ public interface SubjectDescriptionOrBuilder extends com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder(); } /** + * + * *
    * These values describe fields in an issued X.509 certificate such as the
    * distinguished name, subject alternative names, serial number, and lifetime.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} */ - public static final class SubjectDescription extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SubjectDescription extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) SubjectDescriptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubjectDescription.newBuilder() to construct. private SubjectDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SubjectDescription() { commonName_ = ""; hexSerialNumber_ = ""; @@ -398,16 +510,15 @@ private SubjectDescription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubjectDescription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubjectDescription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -426,90 +537,107 @@ private SubjectDescription( case 0: done = true; break; - case 10: { - com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null; - if (subject_ != null) { - subBuilder = subject_.toBuilder(); - } - subject_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Subject.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subject_); - subject_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.security.privateca.v1beta1.Subject.Builder subBuilder = null; + if (subject_ != null) { + subBuilder = subject_.toBuilder(); + } + subject_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.Subject.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subject_); + subject_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - commonName_ = s; - break; - } - case 26: { - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder = null; - if (subjectAltName_ != null) { - subBuilder = subjectAltName_.toBuilder(); + commonName_ = s; + break; } - subjectAltName_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subjectAltName_); - subjectAltName_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder subBuilder = + null; + if (subjectAltName_ != null) { + subBuilder = subjectAltName_.toBuilder(); + } + subjectAltName_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subjectAltName_); + subjectAltName_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - hexSerialNumber_ = s; - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (lifetime_ != null) { - subBuilder = lifetime_.toBuilder(); + hexSerialNumber_ = s; + break; } - lifetime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lifetime_); - lifetime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (lifetime_ != null) { + subBuilder = lifetime_.toBuilder(); + } + lifetime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lifetime_); + lifetime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notBeforeTime_ != null) { - subBuilder = notBeforeTime_.toBuilder(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notBeforeTime_ != null) { + subBuilder = notBeforeTime_.toBuilder(); + } + notBeforeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notBeforeTime_); + notBeforeTime_ = subBuilder.buildPartial(); + } + + break; } - notBeforeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notBeforeTime_); - notBeforeTime_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (notAfterTime_ != null) { + subBuilder = notAfterTime_.toBuilder(); + } + notAfterTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notAfterTime_); + notAfterTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (notAfterTime_ != null) { - subBuilder = notAfterTime_.toBuilder(); - } - notAfterTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notAfterTime_); - notAfterTime_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -517,34 +645,41 @@ private SubjectDescription( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .class, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .Builder.class); } public static final int SUBJECT_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.Subject subject_; /** + * + * *
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; + * * @return Whether the subject field is set. */ @java.lang.Override @@ -552,18 +687,25 @@ public boolean hasSubject() { return subject_ != null; } /** + * + * *
      * Contains distinguished name fields such as the location and organization.
      * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; + * * @return The subject. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { - return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() + : subject_; } /** + * + * *
      * Contains distinguished name fields such as the location and organization.
      * 
@@ -578,11 +720,14 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr public static final int COMMON_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object commonName_; /** + * + * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; + * * @return The commonName. */ @java.lang.Override @@ -591,29 +736,29 @@ public java.lang.String getCommonName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; } } /** + * + * *
      * The "common name" of the distinguished name.
      * 
* * string common_name = 2; + * * @return The bytes for commonName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommonNameBytes() { + public com.google.protobuf.ByteString getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); commonName_ = b; return b; } else { @@ -624,11 +769,14 @@ public java.lang.String getCommonName() { public static final int SUBJECT_ALT_NAME_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; + * * @return Whether the subjectAltName field is set. */ @java.lang.Override @@ -636,18 +784,25 @@ public boolean hasSubjectAltName() { return subjectAltName_ != null; } /** + * + * *
      * The subject alternative name fields.
      * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; + * * @return The subjectAltName. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } /** + * + * *
      * The subject alternative name fields.
      * 
@@ -655,18 +810,22 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAlt * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { return getSubjectAltName(); } public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 4; private volatile java.lang.Object hexSerialNumber_; /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; + * * @return The hexSerialNumber. */ @java.lang.Override @@ -675,29 +834,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** + * + * *
      * The serial number encoded in lowercase hexadecimal.
      * 
* * string hex_serial_number = 4; + * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -708,12 +867,15 @@ public java.lang.String getHexSerialNumber() { public static final int LIFETIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration lifetime_; /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; + * * @return Whether the lifetime field is set. */ @java.lang.Override @@ -721,12 +883,15 @@ public boolean hasLifetime() { return lifetime_ != null; } /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
      * 
* * .google.protobuf.Duration lifetime = 5; + * * @return The lifetime. */ @java.lang.Override @@ -734,6 +899,8 @@ public com.google.protobuf.Duration getLifetime() { return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; } /** + * + * *
      * For convenience, the actual lifetime of an issued certificate.
      * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -749,11 +916,14 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
     public static final int NOT_BEFORE_TIME_FIELD_NUMBER = 6;
     private com.google.protobuf.Timestamp notBeforeTime_;
     /**
+     *
+     *
      * 
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; + * * @return Whether the notBeforeTime field is set. */ @java.lang.Override @@ -761,18 +931,25 @@ public boolean hasNotBeforeTime() { return notBeforeTime_ != null; } /** + * + * *
      * The time at which the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp not_before_time = 6; + * * @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_; } /** + * + * *
      * The time at which the certificate becomes valid.
      * 
@@ -787,11 +964,14 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { public static final int NOT_AFTER_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp notAfterTime_; /** + * + * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; + * * @return Whether the notAfterTime field is set. */ @java.lang.Override @@ -799,18 +979,25 @@ public boolean hasNotAfterTime() { return notAfterTime_ != null; } /** + * + * *
      * The time at which the certificate expires.
      * 
* * .google.protobuf.Timestamp not_after_time = 7; + * * @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_; } /** + * + * *
      * The time at which the certificate expires.
      * 
@@ -823,6 +1010,7 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -834,8 +1022,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subject_ != null) { output.writeMessage(1, getSubject()); } @@ -867,30 +1054,25 @@ public int getSerializedSize() { size = 0; if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubject()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commonName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commonName_); } if (subjectAltName_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubjectAltName()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubjectAltName()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hexSerialNumber_); } if (lifetime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLifetime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLifetime()); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -900,41 +1082,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription other = + (com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) + obj; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject() - .equals(other.getSubject())) return false; + if (!getSubject().equals(other.getSubject())) return false; } - if (!getCommonName() - .equals(other.getCommonName())) return false; + if (!getCommonName().equals(other.getCommonName())) return false; if (hasSubjectAltName() != other.hasSubjectAltName()) return false; if (hasSubjectAltName()) { - if (!getSubjectAltName() - .equals(other.getSubjectAltName())) return false; + if (!getSubjectAltName().equals(other.getSubjectAltName())) return false; } - if (!getHexSerialNumber() - .equals(other.getHexSerialNumber())) return false; + if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false; if (hasLifetime() != other.hasLifetime()) return false; if (hasLifetime()) { - if (!getLifetime() - .equals(other.getLifetime())) return false; + if (!getLifetime().equals(other.getLifetime())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -976,88 +1155,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription 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.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + 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.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1067,45 +1272,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * These values describe fields in an issued X.509 certificate such as the
      * distinguished name, subject alternative names, serial number, and lifetime.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription.class, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1147,19 +1361,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription build() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + build() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1167,8 +1385,12 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Subjec } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription(this); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + result = + new com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription(this); if (subjectBuilder_ == null) { result.subject_ = subject_; } else { @@ -1204,46 +1426,58 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Subjec public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateDescription.SubjectDescription) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .getDefaultInstance()) return this; if (other.hasSubject()) { mergeSubject(other.getSubject()); } @@ -1282,11 +1516,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1298,34 +1536,47 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1beta1.Subject subject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> subjectBuilder_; + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + subjectBuilder_; /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; + * * @return Whether the subject field is set. */ public boolean hasSubject() { return subjectBuilder_ != null || subject_ != null; } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
* * .google.cloud.security.privateca.v1beta1.Subject subject = 1; + * * @return The subject. */ public com.google.cloud.security.privateca.v1beta1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() + : subject_; } else { return subjectBuilder_.getMessage(); } } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1346,6 +1597,8 @@ public Builder setSubject(com.google.cloud.security.privateca.v1beta1.Subject va return this; } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1364,6 +1617,8 @@ public Builder setSubject( return this; } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1374,7 +1629,9 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject if (subjectBuilder_ == null) { if (subject_ != null) { subject_ = - com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.Subject.newBuilder(subject_) + .mergeFrom(value) + .buildPartial(); } else { subject_ = value; } @@ -1386,6 +1643,8 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1beta1.Subject return this; } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1404,6 +1663,8 @@ public Builder clearSubject() { return this; } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1411,11 +1672,13 @@ public Builder clearSubject() { * .google.cloud.security.privateca.v1beta1.Subject subject = 1; */ public com.google.cloud.security.privateca.v1beta1.Subject.Builder getSubjectBuilder() { - + onChanged(); return getSubjectFieldBuilder().getBuilder(); } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1426,11 +1689,14 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null ? - com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance() + : subject_; } } /** + * + * *
        * Contains distinguished name fields such as the location and organization.
        * 
@@ -1438,14 +1704,17 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr * .google.cloud.security.privateca.v1beta1.Subject subject = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Subject, com.google.cloud.security.privateca.v1beta1.Subject.Builder, com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( - getSubject(), - getParentForChildren(), - isClean()); + subjectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Subject, + com.google.cloud.security.privateca.v1beta1.Subject.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder>( + getSubject(), getParentForChildren(), isClean()); subject_ = null; } return subjectBuilder_; @@ -1453,18 +1722,20 @@ public com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder getSubjectOr private java.lang.Object commonName_ = ""; /** + * + * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; + * * @return The commonName. */ public java.lang.String getCommonName() { java.lang.Object ref = commonName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); commonName_ = s; return s; @@ -1473,20 +1744,21 @@ public java.lang.String getCommonName() { } } /** + * + * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; + * * @return The bytes for commonName. */ - public com.google.protobuf.ByteString - getCommonNameBytes() { + public com.google.protobuf.ByteString getCommonNameBytes() { java.lang.Object ref = commonName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); commonName_ = b; return b; } else { @@ -1494,54 +1766,61 @@ public java.lang.String getCommonName() { } } /** + * + * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; + * * @param value The commonName to set. * @return This builder for chaining. */ - public Builder setCommonName( - java.lang.String value) { + public Builder setCommonName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + commonName_ = value; onChanged(); return this; } /** + * + * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; + * * @return This builder for chaining. */ public Builder clearCommonName() { - + commonName_ = getDefaultInstance().getCommonName(); onChanged(); return this; } /** + * + * *
        * The "common name" of the distinguished name.
        * 
* * string common_name = 2; + * * @param value The bytes for commonName to set. * @return This builder for chaining. */ - public Builder setCommonNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCommonNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commonName_ = value; onChanged(); return this; @@ -1549,41 +1828,55 @@ public Builder setCommonNameBytes( private com.google.cloud.security.privateca.v1beta1.SubjectAltNames subjectAltName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> subjectAltNameBuilder_; + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> + subjectAltNameBuilder_; /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; + * * @return Whether the subjectAltName field is set. */ public boolean hasSubjectAltName() { return subjectAltNameBuilder_ != null || subjectAltName_ != null; } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; + * * @return The subjectAltName. */ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getSubjectAltName() { if (subjectAltNameBuilder_ == null) { - return subjectAltName_ == null ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } else { return subjectAltNameBuilder_.getMessage(); } } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public Builder setSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder setSubjectAltName( + com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1597,6 +1890,8 @@ public Builder setSubjectAltName(com.google.cloud.security.privateca.v1beta1.Sub return this; } /** + * + * *
        * The subject alternative name fields.
        * 
@@ -1615,17 +1910,23 @@ public Builder setSubjectAltName( return this; } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { + public Builder mergeSubjectAltName( + com.google.cloud.security.privateca.v1beta1.SubjectAltNames value) { if (subjectAltNameBuilder_ == null) { if (subjectAltName_ != null) { subjectAltName_ = - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder(subjectAltName_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder( + subjectAltName_) + .mergeFrom(value) + .buildPartial(); } else { subjectAltName_ = value; } @@ -1637,6 +1938,8 @@ public Builder mergeSubjectAltName(com.google.cloud.security.privateca.v1beta1.S return this; } /** + * + * *
        * The subject alternative name fields.
        * 
@@ -1655,33 +1958,42 @@ public Builder clearSubjectAltName() { return this; } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder getSubjectAltNameBuilder() { - + public com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder + getSubjectAltNameBuilder() { + onChanged(); return getSubjectAltNameFieldBuilder().getBuilder(); } /** + * + * *
        * The subject alternative name fields.
        * 
* * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ - public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getSubjectAltNameOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder + getSubjectAltNameOrBuilder() { if (subjectAltNameBuilder_ != null) { return subjectAltNameBuilder_.getMessageOrBuilder(); } else { - return subjectAltName_ == null ? - com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() : subjectAltName_; + return subjectAltName_ == null + ? com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance() + : subjectAltName_; } } /** + * + * *
        * The subject alternative name fields.
        * 
@@ -1689,14 +2001,17 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getS * .google.cloud.security.privateca.v1beta1.SubjectAltNames subject_alt_name = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder> getSubjectAltNameFieldBuilder() { if (subjectAltNameBuilder_ == null) { - subjectAltNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubjectAltNames, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( - getSubjectAltName(), - getParentForChildren(), - isClean()); + subjectAltNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubjectAltNames, + com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder, + com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder>( + getSubjectAltName(), getParentForChildren(), isClean()); subjectAltName_ = null; } return subjectAltNameBuilder_; @@ -1704,18 +2019,20 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder getS private java.lang.Object hexSerialNumber_ = ""; /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; + * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1724,20 +2041,21 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; + * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1745,54 +2063,61 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; + * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber( - java.lang.String value) { + public Builder setHexSerialNumber(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; + * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** + * + * *
        * The serial number encoded in lowercase hexadecimal.
        * 
* * string hex_serial_number = 4; + * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes( - com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1800,26 +2125,35 @@ public Builder setHexSerialNumberBytes( private com.google.protobuf.Duration lifetime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lifetimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + lifetimeBuilder_; /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
        * 
* * .google.protobuf.Duration lifetime = 5; + * * @return Whether the lifetime field is set. */ public boolean hasLifetime() { return lifetimeBuilder_ != null || lifetime_ != null; } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
        * 
* * .google.protobuf.Duration lifetime = 5; + * * @return The lifetime. */ public com.google.protobuf.Duration getLifetime() { @@ -1830,6 +2164,8 @@ public com.google.protobuf.Duration getLifetime() { } } /** + * + * *
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1851,6 +2187,8 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1858,8 +2196,7 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration lifetime = 5;
        */
-      public Builder setLifetime(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) {
         if (lifetimeBuilder_ == null) {
           lifetime_ = builderForValue.build();
           onChanged();
@@ -1870,6 +2207,8 @@ public Builder setLifetime(
         return this;
       }
       /**
+       *
+       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1881,7 +2220,7 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
         if (lifetimeBuilder_ == null) {
           if (lifetime_ != null) {
             lifetime_ =
-              com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Duration.newBuilder(lifetime_).mergeFrom(value).buildPartial();
           } else {
             lifetime_ = value;
           }
@@ -1893,6 +2232,8 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1912,6 +2253,8 @@ public Builder clearLifetime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1920,11 +2263,13 @@ public Builder clearLifetime() {
        * .google.protobuf.Duration lifetime = 5;
        */
       public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
-        
+
         onChanged();
         return getLifetimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1936,11 +2281,12 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
         if (lifetimeBuilder_ != null) {
           return lifetimeBuilder_.getMessageOrBuilder();
         } else {
-          return lifetime_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : lifetime_;
+          return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_;
         }
       }
       /**
+       *
+       *
        * 
        * For convenience, the actual lifetime of an issued certificate.
        * Corresponds to 'not_after_time' - 'not_before_time'.
@@ -1949,14 +2295,17 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
        * .google.protobuf.Duration lifetime = 5;
        */
       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>
           getLifetimeFieldBuilder() {
         if (lifetimeBuilder_ == null) {
-          lifetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getLifetime(),
-                  getParentForChildren(),
-                  isClean());
+          lifetimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getLifetime(), getParentForChildren(), isClean());
           lifetime_ = null;
         }
         return lifetimeBuilder_;
@@ -1964,34 +2313,47 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
 
       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_;
       /**
+       *
+       *
        * 
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 6; + * * @return Whether the notBeforeTime field is set. */ public boolean hasNotBeforeTime() { return notBeforeTimeBuilder_ != null || notBeforeTime_ != null; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 6; + * * @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(); } } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -2012,14 +2374,15 @@ public Builder setNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
* * .google.protobuf.Timestamp not_before_time = 6; */ - 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(); @@ -2030,6 +2393,8 @@ public Builder setNotBeforeTime( return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -2040,7 +2405,9 @@ 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; } @@ -2052,6 +2419,8 @@ public Builder mergeNotBeforeTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -2070,6 +2439,8 @@ public Builder clearNotBeforeTime() { return this; } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -2077,11 +2448,13 @@ public Builder clearNotBeforeTime() { * .google.protobuf.Timestamp not_before_time = 6; */ public com.google.protobuf.Timestamp.Builder getNotBeforeTimeBuilder() { - + onChanged(); return getNotBeforeTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -2092,11 +2465,14 @@ 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_; } } /** + * + * *
        * The time at which the certificate becomes valid.
        * 
@@ -2104,14 +2480,17 @@ public com.google.protobuf.TimestampOrBuilder getNotBeforeTimeOrBuilder() { * .google.protobuf.Timestamp not_before_time = 6; */ 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_; @@ -2119,34 +2498,47 @@ 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_; /** + * + * *
        * The time at which the certificate expires.
        * 
* * .google.protobuf.Timestamp not_after_time = 7; + * * @return Whether the notAfterTime field is set. */ public boolean hasNotAfterTime() { return notAfterTimeBuilder_ != null || notAfterTime_ != null; } /** + * + * *
        * The time at which the certificate expires.
        * 
* * .google.protobuf.Timestamp not_after_time = 7; + * * @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(); } } /** + * + * *
        * The time at which the certificate expires.
        * 
@@ -2167,14 +2559,15 @@ public Builder setNotAfterTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which the certificate expires.
        * 
* * .google.protobuf.Timestamp not_after_time = 7; */ - 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(); @@ -2185,6 +2578,8 @@ public Builder setNotAfterTime( return this; } /** + * + * *
        * The time at which the certificate expires.
        * 
@@ -2195,7 +2590,9 @@ 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; } @@ -2207,6 +2604,8 @@ public Builder mergeNotAfterTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time at which the certificate expires.
        * 
@@ -2225,6 +2624,8 @@ public Builder clearNotAfterTime() { return this; } /** + * + * *
        * The time at which the certificate expires.
        * 
@@ -2232,11 +2633,13 @@ public Builder clearNotAfterTime() { * .google.protobuf.Timestamp not_after_time = 7; */ public com.google.protobuf.Timestamp.Builder getNotAfterTimeBuilder() { - + onChanged(); return getNotAfterTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The time at which the certificate expires.
        * 
@@ -2247,11 +2650,14 @@ 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_; } } /** + * + * *
        * The time at which the certificate expires.
        * 
@@ -2259,18 +2665,22 @@ public com.google.protobuf.TimestampOrBuilder getNotAfterTimeOrBuilder() { * .google.protobuf.Timestamp not_after_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> 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_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2283,30 +2693,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectDescription(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectDescription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2318,39 +2734,47 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface KeyIdOrBuilder extends + public interface KeyIdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyId. */ java.lang.String getKeyId(); /** + * + * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyId. */ - com.google.protobuf.ByteString - getKeyIdBytes(); + com.google.protobuf.ByteString getKeyIdBytes(); } /** + * + * *
    * A KeyId identifies a specific public key, usually by hashing the public
    * key.
@@ -2358,31 +2782,31 @@ public interface KeyIdOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId}
    */
-  public static final class KeyId extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class KeyId extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)
       KeyIdOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use KeyId.newBuilder() to construct.
     private KeyId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private KeyId() {
       keyId_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new KeyId();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private KeyId(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2401,19 +2825,20 @@ private KeyId(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              keyId_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                keyId_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2421,35 +2846,41 @@ private KeyId(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class,
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
+                  .class);
     }
 
     public static final int KEY_ID_FIELD_NUMBER = 1;
     private volatile java.lang.Object keyId_;
     /**
+     *
+     *
      * 
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyId. */ @java.lang.Override @@ -2458,30 +2889,30 @@ public java.lang.String getKeyId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** + * + * *
      * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
      * likely the 160 bit SHA-1 hash of the public key.
      * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyId. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyIdBytes() { + public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyId_ = b; return b; } else { @@ -2490,6 +2921,7 @@ public java.lang.String getKeyId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2501,8 +2933,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); } @@ -2526,15 +2957,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other = + (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) obj; - if (!getKeyId() - .equals(other.getKeyId())) return false; + if (!getKeyId().equals(other.getKeyId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2553,88 +2985,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId 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.security.privateca.v1beta1.CertificateDescription.KeyId + 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.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2644,6 +3089,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A KeyId identifies a specific public key, usually by hashing the public
      * key.
@@ -2651,38 +3098,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)
         com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder.class);
+                com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.class,
+                com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2692,19 +3143,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance();
+      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
+          getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId build() {
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result = buildPartial();
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2712,8 +3166,10 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId buildPartial() {
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(this);
+      public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
+          buildPartial() {
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId result =
+            new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(this);
         result.keyId_ = keyId_;
         onBuilt();
         return result;
@@ -2723,46 +3179,54 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateDescription.KeyId) {
-          return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)other);
+        if (other
+            instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) {
+          return mergeFrom(
+              (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other) {
-        if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId other) {
+        if (other
+            == com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId
+                .getDefaultInstance()) return this;
         if (!other.getKeyId().isEmpty()) {
           keyId_ = other.keyId_;
           onChanged();
@@ -2782,11 +3246,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parsedMessage = null;
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2798,19 +3265,21 @@ public Builder mergeFrom(
 
       private java.lang.Object keyId_ = "";
       /**
+       *
+       *
        * 
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; @@ -2819,21 +3288,22 @@ public java.lang.String getKeyId() { } } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for keyId. */ - public com.google.protobuf.ByteString - getKeyIdBytes() { + public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyId_ = b; return b; } else { @@ -2841,61 +3311,69 @@ public java.lang.String getKeyId() { } } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The keyId to set. * @return This builder for chaining. */ - public Builder setKeyId( - java.lang.String value) { + public Builder setKeyId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + keyId_ = value; onChanged(); return this; } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKeyId() { - + keyId_ = getDefaultInstance().getKeyId(); onChanged(); return this; } /** + * + * *
        * Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most
        * likely the 160 bit SHA-1 hash of the public key.
        * 
* * string key_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for keyId to set. * @return This builder for chaining. */ - public Builder setKeyIdBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2908,30 +3386,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2943,68 +3424,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CertificateFingerprintOrBuilder extends + public interface CertificateFingerprintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The sha256Hash. */ java.lang.String getSha256Hash(); /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The bytes for sha256Hash. */ - com.google.protobuf.ByteString - getSha256HashBytes(); + com.google.protobuf.ByteString getSha256HashBytes(); } /** + * + * *
    * A group of fingerprints for the x509 certificate.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} */ - public static final class CertificateFingerprint extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CertificateFingerprint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) CertificateFingerprintOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CertificateFingerprint.newBuilder() to construct. private CertificateFingerprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CertificateFingerprint() { sha256Hash_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CertificateFingerprint(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CertificateFingerprint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3023,19 +3513,20 @@ private CertificateFingerprint( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sha256Hash_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sha256Hash_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3043,34 +3534,41 @@ private CertificateFingerprint( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.class, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.Builder.class); } public static final int SHA256_HASH_FIELD_NUMBER = 1; private volatile java.lang.Object sha256Hash_; /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The sha256Hash. */ @java.lang.Override @@ -3079,29 +3577,29 @@ public java.lang.String getSha256Hash() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; } } /** + * + * *
      * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
      * 
* * string sha256_hash = 1; + * * @return The bytes for sha256Hash. */ @java.lang.Override - public com.google.protobuf.ByteString - getSha256HashBytes() { + public com.google.protobuf.ByteString getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -3110,6 +3608,7 @@ public java.lang.String getSha256Hash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3121,8 +3620,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256Hash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sha256Hash_); } @@ -3146,15 +3644,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.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + other = + (com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint) + obj; - if (!getSha256Hash() - .equals(other.getSha256Hash())) return false; + if (!getSha256Hash().equals(other.getSha256Hash())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3173,88 +3677,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint 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.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + 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.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3264,44 +3794,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A group of fingerprints for the x509 certificate.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.class, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3311,19 +3850,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint build() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + build() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3331,8 +3876,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Certif } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint(this); + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + result = + new com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint(this); result.sha256Hash_ = sha256Hash_; onBuilt(); return result; @@ -3342,46 +3892,59 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Certif public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.getDefaultInstance()) return this; if (!other.getSha256Hash().isEmpty()) { sha256Hash_ = other.sha256Hash_; onChanged(); @@ -3401,11 +3964,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3417,18 +3984,20 @@ public Builder mergeFrom( private java.lang.Object sha256Hash_ = ""; /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @return The sha256Hash. */ public java.lang.String getSha256Hash() { java.lang.Object ref = sha256Hash_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256Hash_ = s; return s; @@ -3437,20 +4006,21 @@ public java.lang.String getSha256Hash() { } } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @return The bytes for sha256Hash. */ - public com.google.protobuf.ByteString - getSha256HashBytes() { + public com.google.protobuf.ByteString getSha256HashBytes() { java.lang.Object ref = sha256Hash_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha256Hash_ = b; return b; } else { @@ -3458,58 +4028,66 @@ public java.lang.String getSha256Hash() { } } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @param value The sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256Hash( - java.lang.String value) { + public Builder setSha256Hash(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256Hash_ = value; onChanged(); return this; } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @return This builder for chaining. */ public Builder clearSha256Hash() { - + sha256Hash_ = getDefaultInstance().getSha256Hash(); onChanged(); return this; } /** + * + * *
        * The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
        * 
* * string sha256_hash = 1; + * * @param value The bytes for sha256Hash to set. * @return This builder for chaining. */ - public Builder setSha256HashBytes( - com.google.protobuf.ByteString value) { + public Builder setSha256HashBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256Hash_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3522,30 +4100,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateFingerprint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateFingerprint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateFingerprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateFingerprint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3557,21 +4141,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subjectDescription_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + subjectDescription_; /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return Whether the subjectDescription field is set. */ @java.lang.Override @@ -3579,39 +4169,57 @@ public boolean hasSubjectDescription() { return subjectDescription_ != null; } /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return The subjectDescription. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getSubjectDescription() { - return subjectDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + getSubjectDescription() { + return subjectDescription_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .getDefaultInstance() + : subjectDescription_; } /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescriptionOrBuilder + getSubjectDescriptionOrBuilder() { return getSubjectDescription(); } public static final int CONFIG_VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues configValues_; /** + * + * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; + * * @return Whether the configValues field is set. */ @java.lang.Override @@ -3619,18 +4227,25 @@ public boolean hasConfigValues() { return configValues_ != null; } /** + * + * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; + * * @return The configValues. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfigValues() { - return configValues_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : configValues_; + return configValues_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() + : configValues_; } /** + * + * *
    * Describes some of the technical fields in a certificate.
    * 
@@ -3638,18 +4253,22 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfi * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getConfigValuesOrBuilder() { return getConfigValues(); } public static final int PUBLIC_KEY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; + * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -3657,18 +4276,25 @@ public boolean hasPublicKey() { return publicKey_ != null; } /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; + * * @return The publicKey. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { - return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() + : publicKey_; } /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -3683,12 +4309,16 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK public static final int SUBJECT_KEY_ID_FIELD_NUMBER = 4; private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subjectKeyId_; /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return Whether the subjectKeyId field is set. */ @java.lang.Override @@ -3696,40 +4326,57 @@ public boolean hasSubjectKeyId() { return subjectKeyId_ != null; } /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return The subjectKeyId. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getSubjectKeyId() { - return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + getSubjectKeyId() { + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + .getDefaultInstance() + : subjectKeyId_; } /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder + getSubjectKeyIdOrBuilder() { return getSubjectKeyId(); } public static final int AUTHORITY_KEY_ID_FIELD_NUMBER = 5; private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authorityKeyId_; /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return Whether the authorityKeyId field is set. */ @java.lang.Override @@ -3737,34 +4384,50 @@ public boolean hasAuthorityKeyId() { return authorityKeyId_ != null; } /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return The authorityKeyId. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getAuthorityKeyId() { - return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + getAuthorityKeyId() { + return authorityKeyId_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + .getDefaultInstance() + : authorityKeyId_; } /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder + getAuthorityKeyIdOrBuilder() { return getAuthorityKeyId(); } public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList crlDistributionPoints_; /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3772,13 +4435,15 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdO
    * 
* * repeated string crl_distribution_points = 6; + * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList - getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { return crlDistributionPoints_; } /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3786,12 +4451,15 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdO
    * 
* * repeated string crl_distribution_points = 6; + * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3799,6 +4467,7 @@ public int getCrlDistributionPointsCount() {
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -3806,6 +4475,8 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -3813,48 +4484,56 @@ public java.lang.String getCrlDistributionPoints(int index) {
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString - getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_; /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList - getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_; } /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -3862,28 +4541,36 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString - getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } public static final int CERT_FINGERPRINT_FIELD_NUMBER = 8; - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint certFingerprint_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + certFingerprint_; /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return Whether the certFingerprint field is set. */ @java.lang.Override @@ -3891,30 +4578,46 @@ public boolean hasCertFingerprint() { return certFingerprint_ != null; } /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return The certFingerprint. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getCertFingerprint() { - return certFingerprint_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + getCertFingerprint() { + return certFingerprint_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + .getDefaultInstance() + : certFingerprint_; } /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprintOrBuilder + getCertFingerprintOrBuilder() { return getCertFingerprint(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3926,8 +4629,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subjectDescription_ != null) { output.writeMessage(1, getSubjectDescription()); } @@ -3944,10 +4646,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(5, getAuthorityKeyId()); } for (int i = 0; i < crlDistributionPoints_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, crlDistributionPoints_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 6, crlDistributionPoints_.getRaw(i)); } for (int i = 0; i < aiaIssuingCertificateUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, aiaIssuingCertificateUrls_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, aiaIssuingCertificateUrls_.getRaw(i)); } if (certFingerprint_ != null) { output.writeMessage(8, getCertFingerprint()); @@ -3962,24 +4666,19 @@ public int getSerializedSize() { size = 0; if (subjectDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubjectDescription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubjectDescription()); } if (configValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfigValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfigValues()); } if (publicKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPublicKey()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); } if (subjectKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSubjectKeyId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubjectKeyId()); } if (authorityKeyId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAuthorityKeyId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthorityKeyId()); } { int dataSize = 0; @@ -3998,8 +4697,7 @@ public int getSerializedSize() { size += 1 * getAiaIssuingCertificateUrlsList().size(); } if (certFingerprint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCertFingerprint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCertFingerprint()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4009,46 +4707,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateDescription other = (com.google.cloud.security.privateca.v1beta1.CertificateDescription) obj; + com.google.cloud.security.privateca.v1beta1.CertificateDescription other = + (com.google.cloud.security.privateca.v1beta1.CertificateDescription) obj; if (hasSubjectDescription() != other.hasSubjectDescription()) return false; if (hasSubjectDescription()) { - if (!getSubjectDescription() - .equals(other.getSubjectDescription())) return false; + if (!getSubjectDescription().equals(other.getSubjectDescription())) return false; } if (hasConfigValues() != other.hasConfigValues()) return false; if (hasConfigValues()) { - if (!getConfigValues() - .equals(other.getConfigValues())) return false; + if (!getConfigValues().equals(other.getConfigValues())) 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 (hasSubjectKeyId() != other.hasSubjectKeyId()) return false; if (hasSubjectKeyId()) { - if (!getSubjectKeyId() - .equals(other.getSubjectKeyId())) return false; + if (!getSubjectKeyId().equals(other.getSubjectKeyId())) return false; } if (hasAuthorityKeyId() != other.hasAuthorityKeyId()) return false; if (hasAuthorityKeyId()) { - if (!getAuthorityKeyId() - .equals(other.getAuthorityKeyId())) return false; + if (!getAuthorityKeyId().equals(other.getAuthorityKeyId())) return false; } - if (!getCrlDistributionPointsList() - .equals(other.getCrlDistributionPointsList())) return false; - if (!getAiaIssuingCertificateUrlsList() - .equals(other.getAiaIssuingCertificateUrlsList())) return false; + if (!getCrlDistributionPointsList().equals(other.getCrlDistributionPointsList())) return false; + if (!getAiaIssuingCertificateUrlsList().equals(other.getAiaIssuingCertificateUrlsList())) + return false; if (hasCertFingerprint() != other.hasCertFingerprint()) return false; if (hasCertFingerprint()) { - if (!getCertFingerprint() - .equals(other.getCertFingerprint())) return false; + if (!getCertFingerprint().equals(other.getCertFingerprint())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4099,96 +4791,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateDescription 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.security.privateca.v1beta1.CertificateDescription parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription 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.security.privateca.v1beta1.CertificateDescription + 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.security.privateca.v1beta1.CertificateDescription parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateDescription prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateDescription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateDescription][google.cloud.security.privateca.v1beta1.CertificateDescription] describes an X.509 certificate or CSR that has
    * been issued, as an alternative to using ASN.1 / X.509.
@@ -4196,38 +4897,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateDescription}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateDescription)
       com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateDescription.class, com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.class,
+              com.google.cloud.security.privateca.v1beta1.CertificateDescription.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.CertificateDescription.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4275,14 +4978,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateDescription getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.CertificateDescription
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.CertificateDescription
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -4296,7 +5001,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription build(
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateDescription buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateDescription result = new com.google.cloud.security.privateca.v1beta1.CertificateDescription(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateDescription result =
+          new com.google.cloud.security.privateca.v1beta1.CertificateDescription(this);
       int from_bitField0_ = bitField0_;
       if (subjectDescriptionBuilder_ == null) {
         result.subjectDescription_ = subjectDescription_;
@@ -4346,46 +5052,51 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription buildP
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateDescription) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateDescription)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.CertificateDescription) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateDescription other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.CertificateDescription.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.CertificateDescription other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.CertificateDescription
+              .getDefaultInstance()) return this;
       if (other.hasSubjectDescription()) {
         mergeSubjectDescription(other.getSubjectDescription());
       }
@@ -4443,7 +5154,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateDescription) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.CertificateDescription)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -4452,48 +5165,75 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subjectDescription_;
+    private com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
+        subjectDescription_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder> subjectDescriptionBuilder_;
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription,
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription
+                .Builder,
+            com.google.cloud.security.privateca.v1beta1.CertificateDescription
+                .SubjectDescriptionOrBuilder>
+        subjectDescriptionBuilder_;
     /**
+     *
+     *
      * 
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return Whether the subjectDescription field is set. */ public boolean hasSubjectDescription() { return subjectDescriptionBuilder_ != null || subjectDescription_ != null; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return The subjectDescription. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getSubjectDescription() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + getSubjectDescription() { if (subjectDescriptionBuilder_ == null) { - return subjectDescription_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; + return subjectDescription_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .getDefaultInstance() + : subjectDescription_; } else { return subjectDescriptionBuilder_.getMessage(); } } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public Builder setSubjectDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription value) { + public Builder setSubjectDescription( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + value) { if (subjectDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4507,15 +5247,21 @@ public Builder setSubjectDescription(com.google.cloud.security.privateca.v1beta1 return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ public Builder setSubjectDescription( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .Builder + builderForValue) { if (subjectDescriptionBuilder_ == null) { subjectDescription_ = builderForValue.build(); onChanged(); @@ -4526,18 +5272,27 @@ public Builder setSubjectDescription( return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public Builder mergeSubjectDescription(com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription value) { + public Builder mergeSubjectDescription( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + value) { if (subjectDescriptionBuilder_ == null) { if (subjectDescription_ != null) { subjectDescription_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.newBuilder(subjectDescription_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .newBuilder(subjectDescription_) + .mergeFrom(value) + .buildPartial(); } else { subjectDescription_ = value; } @@ -4549,12 +5304,16 @@ public Builder mergeSubjectDescription(com.google.cloud.security.privateca.v1bet return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ public Builder clearSubjectDescription() { if (subjectDescriptionBuilder_ == null) { @@ -4568,51 +5327,77 @@ public Builder clearSubjectDescription() { return this; } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder getSubjectDescriptionBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .Builder + getSubjectDescriptionBuilder() { + onChanged(); return getSubjectDescriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescriptionOrBuilder + getSubjectDescriptionOrBuilder() { if (subjectDescriptionBuilder_ != null) { return subjectDescriptionBuilder_.getMessageOrBuilder(); } else { - return subjectDescription_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.getDefaultInstance() : subjectDescription_; + return subjectDescription_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .getDefaultInstance() + : subjectDescription_; } } /** + * + * *
      * Describes some of the values in a certificate that are related to the
      * subject and lifetime.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + .Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescriptionOrBuilder> getSubjectDescriptionFieldBuilder() { if (subjectDescriptionBuilder_ == null) { - subjectDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder>( - getSubjectDescription(), - getParentForChildren(), - isClean()); + subjectDescriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescription.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .SubjectDescriptionOrBuilder>( + getSubjectDescription(), getParentForChildren(), isClean()); subjectDescription_ = null; } return subjectDescriptionBuilder_; @@ -4620,41 +5405,55 @@ public com.google.cloud.security.privateca.v1beta1.CertificateDescription.Subjec private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues configValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> configValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + configValuesBuilder_; /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; + * * @return Whether the configValues field is set. */ public boolean hasConfigValues() { return configValuesBuilder_ != null || configValues_ != null; } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; + * * @return The configValues. */ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfigValues() { if (configValuesBuilder_ == null) { - return configValues_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : configValues_; + return configValues_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() + : configValues_; } else { return configValuesBuilder_.getMessage(); } } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public Builder setConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder setConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (configValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4668,6 +5467,8 @@ public Builder setConfigValues(com.google.cloud.security.privateca.v1beta1.Reusa return this; } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
@@ -4686,17 +5487,23 @@ public Builder setConfigValues( return this; } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public Builder mergeConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder mergeConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (configValuesBuilder_ == null) { if (configValues_ != null) { configValues_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder(configValues_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder( + configValues_) + .mergeFrom(value) + .buildPartial(); } else { configValues_ = value; } @@ -4708,6 +5515,8 @@ public Builder mergeConfigValues(com.google.cloud.security.privateca.v1beta1.Reu return this; } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
@@ -4726,33 +5535,42 @@ public Builder clearConfigValues() { return this; } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder getConfigValuesBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder + getConfigValuesBuilder() { + onChanged(); return getConfigValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getConfigValuesOrBuilder() { if (configValuesBuilder_ != null) { return configValuesBuilder_.getMessageOrBuilder(); } else { - return configValues_ == null ? - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : configValues_; + return configValues_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() + : configValues_; } } /** + * + * *
      * Describes some of the technical fields in a certificate.
      * 
@@ -4760,14 +5578,17 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> getConfigValuesFieldBuilder() { if (configValuesBuilder_ == null) { - configValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( - getConfigValues(), - getParentForChildren(), - isClean()); + configValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( + getConfigValues(), getParentForChildren(), isClean()); configValues_ = null; } return configValuesBuilder_; @@ -4775,34 +5596,47 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder private com.google.cloud.security.privateca.v1beta1.PublicKey publicKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> publicKeyBuilder_; + com.google.cloud.security.privateca.v1beta1.PublicKey, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, + com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> + publicKeyBuilder_; /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; + * * @return Whether the publicKey field is set. */ public boolean hasPublicKey() { return publicKeyBuilder_ != null || publicKey_ != null; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; + * * @return The publicKey. */ public com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey() { if (publicKeyBuilder_ == null) { - return publicKey_ == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() + : publicKey_; } else { return publicKeyBuilder_.getMessage(); } } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4823,6 +5657,8 @@ public Builder setPublicKey(com.google.cloud.security.privateca.v1beta1.PublicKe return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4841,6 +5677,8 @@ public Builder setPublicKey( return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4851,7 +5689,9 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.Public if (publicKeyBuilder_ == null) { if (publicKey_ != null) { publicKey_ = - com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder(publicKey_) + .mergeFrom(value) + .buildPartial(); } else { publicKey_ = value; } @@ -4863,6 +5703,8 @@ public Builder mergePublicKey(com.google.cloud.security.privateca.v1beta1.Public return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4881,6 +5723,8 @@ public Builder clearPublicKey() { return this; } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4888,11 +5732,13 @@ public Builder clearPublicKey() { * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; */ public com.google.cloud.security.privateca.v1beta1.PublicKey.Builder getPublicKeyBuilder() { - + onChanged(); return getPublicKeyFieldBuilder().getBuilder(); } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4903,11 +5749,14 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK if (publicKeyBuilder_ != null) { return publicKeyBuilder_.getMessageOrBuilder(); } else { - return publicKey_ == null ? - com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() : publicKey_; + return publicKey_ == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance() + : publicKey_; } } /** + * + * *
      * The public key that corresponds to an issued certificate.
      * 
@@ -4915,14 +5764,17 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> + com.google.cloud.security.privateca.v1beta1.PublicKey, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, + com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder> getPublicKeyFieldBuilder() { if (publicKeyBuilder_ == null) { - publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.PublicKey, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( - getPublicKey(), - getParentForChildren(), - isClean()); + publicKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.PublicKey, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder, + com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder>( + getPublicKey(), getParentForChildren(), isClean()); publicKey_ = null; } return publicKeyBuilder_; @@ -4930,44 +5782,66 @@ public com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicK private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subjectKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> subjectKeyIdBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> + subjectKeyIdBuilder_; /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return Whether the subjectKeyId field is set. */ public boolean hasSubjectKeyId() { return subjectKeyIdBuilder_ != null || subjectKeyId_ != null; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return The subjectKeyId. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getSubjectKeyId() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + getSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { - return subjectKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + .getDefaultInstance() + : subjectKeyId_; } else { return subjectKeyIdBuilder_.getMessage(); } } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public Builder setSubjectKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder setSubjectKeyId( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4981,15 +5855,20 @@ public Builder setSubjectKeyId(com.google.cloud.security.privateca.v1beta1.Certi return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ public Builder setSubjectKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder + builderForValue) { if (subjectKeyIdBuilder_ == null) { subjectKeyId_ = builderForValue.build(); onChanged(); @@ -5000,18 +5879,26 @@ public Builder setSubjectKeyId( return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public Builder mergeSubjectKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder mergeSubjectKeyId( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (subjectKeyIdBuilder_ == null) { if (subjectKeyId_ != null) { subjectKeyId_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder(subjectKeyId_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder( + subjectKeyId_) + .mergeFrom(value) + .buildPartial(); } else { subjectKeyId_ = value; } @@ -5023,12 +5910,16 @@ public Builder mergeSubjectKeyId(com.google.cloud.security.privateca.v1beta1.Cer return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ public Builder clearSubjectKeyId() { if (subjectKeyIdBuilder_ == null) { @@ -5042,96 +5933,138 @@ public Builder clearSubjectKeyId() { return this; } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder getSubjectKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder + getSubjectKeyIdBuilder() { + onChanged(); return getSubjectKeyIdFieldBuilder().getBuilder(); } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder + getSubjectKeyIdOrBuilder() { if (subjectKeyIdBuilder_ != null) { return subjectKeyIdBuilder_.getMessageOrBuilder(); } else { - return subjectKeyId_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : subjectKeyId_; + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + .getDefaultInstance() + : subjectKeyId_; } } /** + * + * *
      * Provides a means of identifiying certificates that contain a particular
      * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> getSubjectKeyIdFieldBuilder() { if (subjectKeyIdBuilder_ == null) { - subjectKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( - getSubjectKeyId(), - getParentForChildren(), - isClean()); + subjectKeyIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( + getSubjectKeyId(), getParentForChildren(), isClean()); subjectKeyId_ = null; } return subjectKeyIdBuilder_; } - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authorityKeyId_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + authorityKeyId_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> authorityKeyIdBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> + authorityKeyIdBuilder_; /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return Whether the authorityKeyId field is set. */ public boolean hasAuthorityKeyId() { return authorityKeyIdBuilder_ != null || authorityKeyId_ != null; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return The authorityKeyId. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getAuthorityKeyId() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + getAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { - return authorityKeyId_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; + return authorityKeyId_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + .getDefaultInstance() + : authorityKeyId_; } else { return authorityKeyIdBuilder_.getMessage(); } } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public Builder setAuthorityKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder setAuthorityKeyId( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5145,15 +6078,20 @@ public Builder setAuthorityKeyId(com.google.cloud.security.privateca.v1beta1.Cer return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ public Builder setAuthorityKeyId( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder + builderForValue) { if (authorityKeyIdBuilder_ == null) { authorityKeyId_ = builderForValue.build(); onChanged(); @@ -5164,18 +6102,26 @@ public Builder setAuthorityKeyId( return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public Builder mergeAuthorityKeyId(com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { + public Builder mergeAuthorityKeyId( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId value) { if (authorityKeyIdBuilder_ == null) { if (authorityKeyId_ != null) { authorityKeyId_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder(authorityKeyId_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.newBuilder( + authorityKeyId_) + .mergeFrom(value) + .buildPartial(); } else { authorityKeyId_ = value; } @@ -5187,12 +6133,16 @@ public Builder mergeAuthorityKeyId(com.google.cloud.security.privateca.v1beta1.C return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ public Builder clearAuthorityKeyId() { if (authorityKeyIdBuilder_ == null) { @@ -5206,64 +6156,88 @@ public Builder clearAuthorityKeyId() { return this; } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder getAuthorityKeyIdBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder + getAuthorityKeyIdBuilder() { + onChanged(); return getAuthorityKeyIdFieldBuilder().getBuilder(); } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder + getAuthorityKeyIdOrBuilder() { if (authorityKeyIdBuilder_ != null) { return authorityKeyIdBuilder_.getMessageOrBuilder(); } else { - return authorityKeyId_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.getDefaultInstance() : authorityKeyId_; + return authorityKeyId_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId + .getDefaultInstance() + : authorityKeyId_; } } /** + * + * *
      * Identifies the subject_key_id of the parent certificate, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder> getAuthorityKeyIdFieldBuilder() { if (authorityKeyIdBuilder_ == null) { - authorityKeyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( - getAuthorityKeyId(), - getParentForChildren(), - isClean()); + authorityKeyIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder>( + getAuthorityKeyId(), getParentForChildren(), isClean()); authorityKeyId_ = null; } return authorityKeyIdBuilder_; } - private com.google.protobuf.LazyStringList crlDistributionPoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList crlDistributionPoints_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCrlDistributionPointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crlDistributionPoints_ = new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); + crlDistributionPoints_ = + new com.google.protobuf.LazyStringArrayList(crlDistributionPoints_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5271,13 +6245,15 @@ private void ensureCrlDistributionPointsIsMutable() {
      * 
* * repeated string crl_distribution_points = 6; + * * @return A list containing the crlDistributionPoints. */ - public com.google.protobuf.ProtocolStringList - getCrlDistributionPointsList() { + public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList() { return crlDistributionPoints_.getUnmodifiableView(); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5285,12 +6261,15 @@ private void ensureCrlDistributionPointsIsMutable() {
      * 
* * repeated string crl_distribution_points = 6; + * * @return The count of crlDistributionPoints. */ public int getCrlDistributionPointsCount() { return crlDistributionPoints_.size(); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5298,6 +6277,7 @@ public int getCrlDistributionPointsCount() {
      * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ @@ -5305,6 +6285,8 @@ public java.lang.String getCrlDistributionPoints(int index) { return crlDistributionPoints_.get(index); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5312,14 +6294,16 @@ public java.lang.String getCrlDistributionPoints(int index) {
      * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - public com.google.protobuf.ByteString - getCrlDistributionPointsBytes(int index) { + public com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index) { return crlDistributionPoints_.getByteString(index); } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5327,21 +6311,23 @@ public java.lang.String getCrlDistributionPoints(int index) {
      * 
* * repeated string crl_distribution_points = 6; + * * @param index The index to set the value at. * @param value The crlDistributionPoints to set. * @return This builder for chaining. */ - public Builder setCrlDistributionPoints( - int index, java.lang.String value) { + public Builder setCrlDistributionPoints(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.set(index, value); onChanged(); return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5349,20 +6335,22 @@ public Builder setCrlDistributionPoints(
      * 
* * repeated string crl_distribution_points = 6; + * * @param value The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPoints( - java.lang.String value) { + public Builder addCrlDistributionPoints(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCrlDistributionPointsIsMutable(); + throw new NullPointerException(); + } + ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5370,18 +6358,19 @@ public Builder addCrlDistributionPoints(
      * 
* * repeated string crl_distribution_points = 6; + * * @param values The crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addAllCrlDistributionPoints( - java.lang.Iterable values) { + public Builder addAllCrlDistributionPoints(java.lang.Iterable values) { ensureCrlDistributionPointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, crlDistributionPoints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crlDistributionPoints_); onChanged(); return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5389,6 +6378,7 @@ public Builder addAllCrlDistributionPoints(
      * 
* * repeated string crl_distribution_points = 6; + * * @return This builder for chaining. */ public Builder clearCrlDistributionPoints() { @@ -5398,6 +6388,8 @@ public Builder clearCrlDistributionPoints() { return this; } /** + * + * *
      * Describes a list of locations to obtain CRL information, i.e.
      * the DistributionPoint.fullName described by
@@ -5405,60 +6397,71 @@ public Builder clearCrlDistributionPoints() {
      * 
* * repeated string crl_distribution_points = 6; + * * @param value The bytes of the crlDistributionPoints to add. * @return This builder for chaining. */ - public Builder addCrlDistributionPointsBytes( - com.google.protobuf.ByteString value) { + public Builder addCrlDistributionPointsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCrlDistributionPointsIsMutable(); crlDistributionPoints_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList aiaIssuingCertificateUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAiaIssuingCertificateUrlsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - aiaIssuingCertificateUrls_ = new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); + aiaIssuingCertificateUrls_ = + new com.google.protobuf.LazyStringArrayList(aiaIssuingCertificateUrls_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return A list containing the aiaIssuingCertificateUrls. */ - public com.google.protobuf.ProtocolStringList - getAiaIssuingCertificateUrlsList() { + public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList() { return aiaIssuingCertificateUrls_.getUnmodifiableView(); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return The count of aiaIssuingCertificateUrls. */ public int getAiaIssuingCertificateUrlsCount() { return aiaIssuingCertificateUrls_.size(); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ @@ -5466,85 +6469,95 @@ public java.lang.String getAiaIssuingCertificateUrls(int index) { return aiaIssuingCertificateUrls_.get(index); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - public com.google.protobuf.ByteString - getAiaIssuingCertificateUrlsBytes(int index) { + public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index) { return aiaIssuingCertificateUrls_.getByteString(index); } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index to set the value at. * @param value The aiaIssuingCertificateUrls to set. * @return This builder for chaining. */ - public Builder setAiaIssuingCertificateUrls( - int index, java.lang.String value) { + public Builder setAiaIssuingCertificateUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param value The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrls( - java.lang.String value) { + public Builder addAiaIssuingCertificateUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaIssuingCertificateUrlsIsMutable(); + throw new NullPointerException(); + } + ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param values The aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAllAiaIssuingCertificateUrls( - java.lang.Iterable values) { + public Builder addAllAiaIssuingCertificateUrls(java.lang.Iterable values) { ensureAiaIssuingCertificateUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aiaIssuingCertificateUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaIssuingCertificateUrls_); onChanged(); return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return This builder for chaining. */ public Builder clearAiaIssuingCertificateUrls() { @@ -5554,64 +6567,94 @@ public Builder clearAiaIssuingCertificateUrls() { return this; } /** + * + * *
      * Describes lists of issuer CA certificate URLs that appear in the
      * "Authority Information Access" extension in the certificate.
      * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param value The bytes of the aiaIssuingCertificateUrls to add. * @return This builder for chaining. */ - public Builder addAiaIssuingCertificateUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addAiaIssuingCertificateUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaIssuingCertificateUrlsIsMutable(); aiaIssuingCertificateUrls_.add(value); onChanged(); return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint certFingerprint_; + private com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint + certFingerprint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder> certFingerprintBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprintOrBuilder> + certFingerprintBuilder_; /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return Whether the certFingerprint field is set. */ public boolean hasCertFingerprint() { return certFingerprintBuilder_ != null || certFingerprint_ != null; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return The certFingerprint. */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getCertFingerprint() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + getCertFingerprint() { if (certFingerprintBuilder_ == null) { - return certFingerprint_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; + return certFingerprint_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.getDefaultInstance() + : certFingerprint_; } else { return certFingerprintBuilder_.getMessage(); } } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public Builder setCertFingerprint(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint value) { + public Builder setCertFingerprint( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + value) { if (certFingerprintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5625,14 +6668,20 @@ public Builder setCertFingerprint(com.google.cloud.security.privateca.v1beta1.Ce return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ public Builder setCertFingerprint( - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + .Builder + builderForValue) { if (certFingerprintBuilder_ == null) { certFingerprint_ = builderForValue.build(); onChanged(); @@ -5643,17 +6692,26 @@ public Builder setCertFingerprint( return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public Builder mergeCertFingerprint(com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint value) { + public Builder mergeCertFingerprint( + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + value) { if (certFingerprintBuilder_ == null) { if (certFingerprint_ != null) { certFingerprint_ = - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.newBuilder(certFingerprint_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.newBuilder(certFingerprint_) + .mergeFrom(value) + .buildPartial(); } else { certFingerprint_ = value; } @@ -5665,11 +6723,15 @@ public Builder mergeCertFingerprint(com.google.cloud.security.privateca.v1beta1. return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ public Builder clearCertFingerprint() { if (certFingerprintBuilder_ == null) { @@ -5683,55 +6745,82 @@ public Builder clearCertFingerprint() { return this; } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder getCertFingerprintBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + .Builder + getCertFingerprintBuilder() { + onChanged(); return getCertFingerprintFieldBuilder().getBuilder(); } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprintOrBuilder + getCertFingerprintOrBuilder() { if (certFingerprintBuilder_ != null) { return certFingerprintBuilder_.getMessageOrBuilder(); } else { - return certFingerprint_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.getDefaultInstance() : certFingerprint_; + return certFingerprint_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.getDefaultInstance() + : certFingerprint_; } } /** + * + * *
      * The hash of the x.509 certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprintOrBuilder> getCertFingerprintFieldBuilder() { if (certFingerprintBuilder_ == null) { - certFingerprintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint.Builder, com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder>( - getCertFingerprint(), - getParentForChildren(), - isClean()); + certFingerprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprint.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateDescription + .CertificateFingerprintOrBuilder>( + getCertFingerprint(), getParentForChildren(), isClean()); certFingerprint_ = null; } return certFingerprintBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5741,30 +6830,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateDescription) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateDescription) - private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateDescription + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateDescription(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateDescription getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateDescription + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateDescription(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateDescription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5776,9 +6867,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateDescription getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateDescription + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java index 473a779b..005c90e7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateDescriptionOrBuilder.java @@ -1,88 +1,137 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateDescriptionOrBuilder extends +public interface CertificateDescriptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateDescription) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return Whether the subjectDescription field is set. */ boolean hasSubjectDescription(); /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * * @return The subjectDescription. */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription getSubjectDescription(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription + getSubjectDescription(); /** + * + * *
    * Describes some of the values in a certificate that are related to the
    * subject and lifetime.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescriptionOrBuilder + getSubjectDescriptionOrBuilder(); /** + * + * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; + * * @return Whether the configValues field is set. */ boolean hasConfigValues(); /** + * + * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; + * * @return The configValues. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getConfigValues(); /** + * + * *
    * Describes some of the technical fields in a certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2; */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getConfigValuesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getConfigValuesOrBuilder(); /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; + * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
* * .google.cloud.security.privateca.v1beta1.PublicKey public_key = 3; + * * @return The publicKey. */ com.google.cloud.security.privateca.v1beta1.PublicKey getPublicKey(); /** + * + * *
    * The public key that corresponds to an issued certificate.
    * 
@@ -92,66 +141,95 @@ public interface CertificateDescriptionOrBuilder extends com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder getPublicKeyOrBuilder(); /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return Whether the subjectKeyId field is set. */ boolean hasSubjectKeyId(); /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * + * * @return The subjectKeyId. */ com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getSubjectKeyId(); /** + * + * *
    * Provides a means of identifiying certificates that contain a particular
    * public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId subject_key_id = 4; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder + getSubjectKeyIdOrBuilder(); /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return Whether the authorityKeyId field is set. */ boolean hasAuthorityKeyId(); /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * * @return The authorityKeyId. */ com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId getAuthorityKeyId(); /** + * + * *
    * Identifies the subject_key_id of the parent certificate, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.1
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId authority_key_id = 5; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyIdOrBuilder + getAuthorityKeyIdOrBuilder(); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -159,11 +237,13 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @return A list containing the crlDistributionPoints. */ - java.util.List - getCrlDistributionPointsList(); + java.util.List getCrlDistributionPointsList(); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -171,10 +251,13 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @return The count of crlDistributionPoints. */ int getCrlDistributionPointsCount(); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -182,11 +265,14 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the element to return. * @return The crlDistributionPoints at the given index. */ java.lang.String getCrlDistributionPoints(int index); /** + * + * *
    * Describes a list of locations to obtain CRL information, i.e.
    * the DistributionPoint.fullName described by
@@ -194,81 +280,107 @@ public interface CertificateDescriptionOrBuilder extends
    * 
* * repeated string crl_distribution_points = 6; + * * @param index The index of the value to return. * @return The bytes of the crlDistributionPoints at the given index. */ - com.google.protobuf.ByteString - getCrlDistributionPointsBytes(int index); + com.google.protobuf.ByteString getCrlDistributionPointsBytes(int index); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return A list containing the aiaIssuingCertificateUrls. */ - java.util.List - getAiaIssuingCertificateUrlsList(); + java.util.List getAiaIssuingCertificateUrlsList(); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @return The count of aiaIssuingCertificateUrls. */ int getAiaIssuingCertificateUrlsCount(); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the element to return. * @return The aiaIssuingCertificateUrls at the given index. */ java.lang.String getAiaIssuingCertificateUrls(int index); /** + * + * *
    * Describes lists of issuer CA certificate URLs that appear in the
    * "Authority Information Access" extension in the certificate.
    * 
* * repeated string aia_issuing_certificate_urls = 7; + * * @param index The index of the value to return. * @return The bytes of the aiaIssuingCertificateUrls at the given index. */ - com.google.protobuf.ByteString - getAiaIssuingCertificateUrlsBytes(int index); + com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes(int index); /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return Whether the certFingerprint field is set. */ boolean hasCertFingerprint(); /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * * @return The certFingerprint. */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint getCertFingerprint(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint + getCertFingerprint(); /** + * + * *
    * The hash of the x.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprintOrBuilder + getCertFingerprintOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java index 41c6a706..6aba1cb1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateOrBuilder.java @@ -1,94 +1,139 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateOrBuilder extends +public interface CertificateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.Certificate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
    * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return Whether the pemCsr field is set. */ boolean hasPemCsr(); /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The pemCsr. */ java.lang.String getPemCsr(); /** + * + * *
    * Immutable. A pem-encoded X.509 certificate signing request (CSR).
    * 
* * string pem_csr = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString - getPemCsrBytes(); + com.google.protobuf.ByteString getPemCsrBytes(); /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The config. */ com.google.cloud.security.privateca.v1beta1.CertificateConfig getConfig(); /** + * + * *
    * Immutable. A description of the certificate and key that does not require X.509 or
    * ASN.1.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.security.privateca.v1beta1.CertificateConfig config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.cloud.security.privateca.v1beta1.CertificateConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -96,11 +141,16 @@ public interface CertificateOrBuilder extends
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the lifetime field is set. */ boolean hasLifetime(); /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -108,11 +158,16 @@ public interface CertificateOrBuilder extends
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The lifetime. */ com.google.protobuf.Duration getLifetime(); /** + * + * *
    * Required. Immutable. The desired lifetime of a certificate. Used to create the
    * "not_before_time" and "not_after_time" fields inside an X.509
@@ -120,187 +175,262 @@ public interface CertificateOrBuilder extends
    * past the life of any certificate authority in the issuing chain.
    * 
* - * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revocationDetails field is set. */ boolean hasRevocationDetails(); /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revocationDetails. */ com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails getRevocationDetails(); /** + * + * *
    * Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This
    * [Certificate][google.cloud.security.privateca.v1beta1.Certificate] is considered revoked if and only if this field is present.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails revocation_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder getRevocationDetailsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsOrBuilder + getRevocationDetailsOrBuilder(); /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCertificate. */ java.lang.String getPemCertificate(); /** + * + * *
    * Output only. The pem-encoded, signed X.509 certificate.
    * 
* * string pem_certificate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCertificate. */ - com.google.protobuf.ByteString - getPemCertificateBytes(); + com.google.protobuf.ByteString getPemCertificateBytes(); /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the certificateDescription field is set. */ boolean hasCertificateDescription(); /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The certificateDescription. */ com.google.cloud.security.privateca.v1beta1.CertificateDescription getCertificateDescription(); /** + * + * *
    * Output only. A structured description of the issued X.509 certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateDescription certificate_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder getCertificateDescriptionOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateDescriptionOrBuilder + getCertificateDescriptionOrBuilder(); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the pemCertificateChain. */ - java.util.List - getPemCertificateChainList(); + java.util.List getPemCertificateChainList(); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of pemCertificateChain. */ int getPemCertificateChainCount(); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ java.lang.String getPemCertificateChain(int index); /** + * + * *
    * Output only. The chain that may be used to verify the X.509 certificate. Expected to be
    * in issuer-to-root order according to RFC 5246.
    * 
* - * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string pem_certificate_chain = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ - com.google.protobuf.ByteString - getPemCertificateChainBytes(int index); + com.google.protobuf.ByteString getPemCertificateChainBytes(int index); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -309,30 +439,31 @@ public interface CertificateOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -341,20 +472,21 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ + java.lang.String getLabelsOrThrow(java.lang.String key); - java.lang.String getLabelsOrThrow( - java.lang.String key); - - public com.google.cloud.security.privateca.v1beta1.Certificate.CertificateConfigCase getCertificateConfigCase(); + public com.google.cloud.security.privateca.v1beta1.Certificate.CertificateConfigCase + getCertificateConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java index a9e86583..58a1a546 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationList.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] corresponds to a signed X.509 certificate
  * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList}
  */
-public final class CertificateRevocationList extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CertificateRevocationList extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList)
     CertificateRevocationListOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CertificateRevocationList.newBuilder() to construct.
   private CertificateRevocationList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CertificateRevocationList() {
     name_ = "";
     revokedCertificates_ = java.util.Collections.emptyList();
@@ -31,16 +49,15 @@ private CertificateRevocationList() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CertificateRevocationList();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CertificateRevocationList(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,90 +77,105 @@ private CertificateRevocationList(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            sequenceNumber_ = input.readInt64();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              revokedCertificates_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            revokedCertificates_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pemCrl_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            accessUrl_ = s;
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
+          case 16:
+            {
+              sequenceNumber_ = input.readInt64();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                revokedCertificates_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
+                            .RevokedCertificate>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              revokedCertificates_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
+                          .RevokedCertificate.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            state_ = rawValue;
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              pemCrl_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              accessUrl_ = s;
+              break;
             }
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 66: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 66:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 74: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 74:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -151,8 +183,7 @@ private CertificateRevocationList(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         revokedCertificates_ = java.util.Collections.unmodifiableList(revokedCertificates_);
@@ -161,41 +192,46 @@ private CertificateRevocationList(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 9:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class,
+            com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The state of a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList], indicating if it is current.
    * 
* * Protobuf enum {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified.
      * 
@@ -204,6 +240,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is up to date.
      * 
@@ -212,6 +250,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is no longer current.
      * 
@@ -223,6 +263,8 @@ public enum State ; /** + * + * *
      * Not specified.
      * 
@@ -231,6 +273,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is up to date.
      * 
@@ -239,6 +283,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] is no longer current.
      * 
@@ -247,7 +293,6 @@ public enum State */ public static final int SUPERSEDED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -272,49 +317,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return SUPERSEDED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUPERSEDED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -331,87 +378,108 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList.State) } - public interface RevokedCertificateOrBuilder extends + public interface RevokedCertificateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; + * * @return The certificate. */ java.lang.String getCertificate(); /** + * + * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; + * * @return The bytes for certificate. */ - com.google.protobuf.ByteString - getCertificateBytes(); + com.google.protobuf.ByteString getCertificateBytes(); /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The hexSerialNumber. */ java.lang.String getHexSerialNumber(); /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The bytes for hexSerialNumber. */ - com.google.protobuf.ByteString - getHexSerialNumberBytes(); + com.google.protobuf.ByteString getHexSerialNumberBytes(); /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * * @return The enum numeric value on the wire for revocationReason. */ int getRevocationReasonValue(); /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * * @return The revocationReason. */ com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason(); } /** + * + * *
    * Describes a revoked [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} */ - public static final class RevokedCertificate extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RevokedCertificate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) RevokedCertificateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RevokedCertificate.newBuilder() to construct. private RevokedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RevokedCertificate() { certificate_ = ""; hexSerialNumber_ = ""; @@ -420,16 +488,15 @@ private RevokedCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RevokedCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RevokedCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -448,31 +515,34 @@ private RevokedCertificate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - certificate_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + certificate_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - hexSerialNumber_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + hexSerialNumber_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - revocationReason_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + revocationReason_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -480,35 +550,42 @@ private RevokedCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.class, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private volatile java.lang.Object certificate_; /** + * + * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; + * * @return The certificate. */ @java.lang.Override @@ -517,30 +594,30 @@ public java.lang.String getCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; } } /** + * + * *
      * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
      * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* * string certificate = 1; + * * @return The bytes for certificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateBytes() { + public com.google.protobuf.ByteString getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificate_ = b; return b; } else { @@ -551,11 +628,14 @@ public java.lang.String getCertificate() { public static final int HEX_SERIAL_NUMBER_FIELD_NUMBER = 2; private volatile java.lang.Object hexSerialNumber_; /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The hexSerialNumber. */ @java.lang.Override @@ -564,29 +644,29 @@ public java.lang.String getHexSerialNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; } } /** + * + * *
      * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * string hex_serial_number = 2; + * * @return The bytes for hexSerialNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -597,31 +677,43 @@ public java.lang.String getHexSerialNumber() { public static final int REVOCATION_REASON_FIELD_NUMBER = 3; private int revocationReason_; /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override public int getRevocationReasonValue() { + @java.lang.Override + public int getRevocationReasonValue() { return revocationReason_; } /** + * + * *
      * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
      * 
* * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * * @return The revocationReason. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); - return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = + com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -633,15 +725,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hexSerialNumber_); } - if (revocationReason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + if (revocationReason_ + != com.google.cloud.security.privateca.v1beta1.RevocationReason + .REVOCATION_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(3, revocationReason_); } unknownFields.writeTo(output); @@ -659,9 +753,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hexSerialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hexSerialNumber_); } - if (revocationReason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, revocationReason_); + if (revocationReason_ + != com.google.cloud.security.privateca.v1beta1.RevocationReason + .REVOCATION_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, revocationReason_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -671,17 +767,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.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate other = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) obj; - - if (!getCertificate() - .equals(other.getCertificate())) return false; - if (!getHexSerialNumber() - .equals(other.getHexSerialNumber())) return false; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + other = + (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate) + obj; + + if (!getCertificate().equals(other.getCertificate())) return false; + if (!getHexSerialNumber().equals(other.getHexSerialNumber())) return false; if (revocationReason_ != other.revocationReason_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -705,88 +806,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate 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.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + 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.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -796,44 +923,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes a revoked [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder.class); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.class, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -847,19 +983,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate build() { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + build() { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -867,8 +1009,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Rev } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate buildPartial() { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate result = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate(this); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + buildPartial() { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + result = + new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate(this); result.certificate_ = certificate_; result.hexSerialNumber_ = hexSerialNumber_; result.revocationReason_ = revocationReason_; @@ -880,46 +1027,59 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Rev public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate other) { - if (other == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.getDefaultInstance()) return this; if (!other.getCertificate().isEmpty()) { certificate_ = other.certificate_; onChanged(); @@ -946,11 +1106,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -962,19 +1126,21 @@ public Builder mergeFrom( private java.lang.Object certificate_ = ""; /** + * + * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; + * * @return The certificate. */ public java.lang.String getCertificate() { java.lang.Object ref = certificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; @@ -983,21 +1149,22 @@ public java.lang.String getCertificate() { } } /** + * + * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; + * * @return The bytes for certificate. */ - public com.google.protobuf.ByteString - getCertificateBytes() { + public com.google.protobuf.ByteString getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificate_ = b; return b; } else { @@ -1005,57 +1172,64 @@ public java.lang.String getCertificate() { } } /** + * + * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; + * * @param value The certificate to set. * @return This builder for chaining. */ - public Builder setCertificate( - java.lang.String value) { + public Builder setCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificate_ = value; onChanged(); return this; } /** + * + * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; + * * @return This builder for chaining. */ public Builder clearCertificate() { - + certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } /** + * + * *
        * The resource path for the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format
        * `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
        * 
* * string certificate = 1; + * * @param value The bytes for certificate to set. * @return This builder for chaining. */ - public Builder setCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificate_ = value; onChanged(); return this; @@ -1063,18 +1237,20 @@ public Builder setCertificateBytes( private java.lang.Object hexSerialNumber_ = ""; /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @return The hexSerialNumber. */ public java.lang.String getHexSerialNumber() { java.lang.Object ref = hexSerialNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hexSerialNumber_ = s; return s; @@ -1083,20 +1259,21 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @return The bytes for hexSerialNumber. */ - public com.google.protobuf.ByteString - getHexSerialNumberBytes() { + public com.google.protobuf.ByteString getHexSerialNumberBytes() { java.lang.Object ref = hexSerialNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hexSerialNumber_ = b; return b; } else { @@ -1104,54 +1281,61 @@ public java.lang.String getHexSerialNumber() { } } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @param value The hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumber( - java.lang.String value) { + public Builder setHexSerialNumber(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hexSerialNumber_ = value; onChanged(); return this; } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @return This builder for chaining. */ public Builder clearHexSerialNumber() { - + hexSerialNumber_ = getDefaultInstance().getHexSerialNumber(); onChanged(); return this; } /** + * + * *
        * The serial number of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate].
        * 
* * string hex_serial_number = 2; + * * @param value The bytes for hexSerialNumber to set. * @return This builder for chaining. */ - public Builder setHexSerialNumberBytes( - com.google.protobuf.ByteString value) { + public Builder setHexSerialNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hexSerialNumber_ = value; onChanged(); return this; @@ -1159,77 +1343,103 @@ public Builder setHexSerialNumberBytes( private int revocationReason_ = 0; /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * + * * @return The enum numeric value on the wire for revocationReason. */ - @java.lang.Override public int getRevocationReasonValue() { + @java.lang.Override + public int getRevocationReasonValue() { return revocationReason_; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * + * * @param value The enum numeric value on the wire for revocationReason to set. * @return This builder for chaining. */ public Builder setRevocationReasonValue(int value) { - + revocationReason_ = value; onChanged(); return this; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * + * * @return The revocationReason. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getRevocationReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); - return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = + com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(revocationReason_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED + : result; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * + * * @param value The revocationReason to set. * @return This builder for chaining. */ - public Builder setRevocationReason(com.google.cloud.security.privateca.v1beta1.RevocationReason value) { + public Builder setRevocationReason( + com.google.cloud.security.privateca.v1beta1.RevocationReason value) { if (value == null) { throw new NullPointerException(); } - + revocationReason_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The reason the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] was revoked.
        * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * .google.cloud.security.privateca.v1beta1.RevocationReason revocation_reason = 3; + * + * * @return This builder for chaining. */ public Builder clearRevocationReason() { - + revocationReason_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1242,30 +1452,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate) - private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokedCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokedCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokedCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokedCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,15 +1493,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -1294,6 +1512,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Rev
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1302,14 +1521,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -1318,16 +1538,15 @@ 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 { @@ -1338,11 +1557,14 @@ public java.lang.String getName() { public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long sequenceNumber_; /** + * + * *
    * Output only. The CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sequenceNumber. */ @java.lang.Override @@ -1351,73 +1573,105 @@ public long getSequenceNumber() { } public static final int REVOKED_CERTIFICATES_FIELD_NUMBER = 3; - private java.util.List revokedCertificates_; + private java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate> + revokedCertificates_; /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getRevokedCertificatesList() { + public java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate> + getRevokedCertificatesList() { return revokedCertificates_; } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder> getRevokedCertificatesOrBuilderList() { return revokedCertificates_; } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getRevokedCertificatesCount() { return revokedCertificates_.size(); } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + getRevokedCertificates(int index) { return revokedCertificates_.get(index); } /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder + getRevokedCertificatesOrBuilder(int index) { return revokedCertificates_.get(index); } public static final int PEM_CRL_FIELD_NUMBER = 4; private volatile java.lang.Object pemCrl_; /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCrl. */ @java.lang.Override @@ -1426,29 +1680,29 @@ public java.lang.String getPemCrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; } } /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCrlBytes() { + public com.google.protobuf.ByteString getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -1459,11 +1713,14 @@ public java.lang.String getPemCrl() { public static final int ACCESS_URL_FIELD_NUMBER = 5; private volatile java.lang.Object accessUrl_; /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The accessUrl. */ @java.lang.Override @@ -1472,29 +1729,29 @@ public java.lang.String getAccessUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; } } /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for accessUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessUrlBytes() { + public com.google.protobuf.ByteString getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -1505,38 +1762,57 @@ public java.lang.String getAccessUrl() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf(state_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1544,11 +1820,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1556,11 +1836,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1570,11 +1853,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1582,11 +1869,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1594,11 +1885,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1606,24 +1900,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1632,28 +1925,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1661,11 +1956,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1673,16 +1969,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -1690,12 +1986,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1703,6 +1998,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1714,8 +2010,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1731,7 +2026,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, accessUrl_); } - if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State + .STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, state_); } if (createTime_ != null) { @@ -1740,12 +2038,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(8, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); unknownFields.writeTo(output); } @@ -1759,12 +2053,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (sequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, sequenceNumber_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sequenceNumber_); } for (int i = 0; i < revokedCertificates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, revokedCertificates_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, revokedCertificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pemCrl_); @@ -1772,27 +2065,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, accessUrl_); } - if (state_ != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1802,36 +2095,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.CertificateRevocationList)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSequenceNumber() - != other.getSequenceNumber()) return false; - if (!getRevokedCertificatesList() - .equals(other.getRevokedCertificatesList())) return false; - if (!getPemCrl() - .equals(other.getPemCrl())) return false; - if (!getAccessUrl() - .equals(other.getAccessUrl())) return false; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other = + (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) obj; + + if (!getName().equals(other.getName())) return false; + if (getSequenceNumber() != other.getSequenceNumber()) return false; + if (!getRevokedCertificatesList().equals(other.getRevokedCertificatesList())) return false; + if (!getPemCrl().equals(other.getPemCrl())) return false; + if (!getAccessUrl().equals(other.getAccessUrl())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1846,8 +2132,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSequenceNumber()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSequenceNumber()); if (getRevokedCertificatesCount() > 0) { hash = (37 * hash) + REVOKED_CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getRevokedCertificatesList().hashCode(); @@ -1876,96 +2161,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList 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.security.privateca.v1beta1.CertificateRevocationList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList 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.security.privateca.v1beta1.CertificateRevocationList + 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.security.privateca.v1beta1.CertificateRevocationList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] corresponds to a signed X.509 certificate
    * Revocation List (CRL). A CRL contains the serial numbers of certificates that
@@ -1974,61 +2268,62 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CertificateRevocationList}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CertificateRevocationList)
       com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 9:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.class,
+              com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getRevokedCertificatesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2065,14 +2360,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -2086,7 +2383,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList bui
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CertificateRevocationList result = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList(this);
+      com.google.cloud.security.privateca.v1beta1.CertificateRevocationList result =
+          new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.sequenceNumber_ = sequenceNumber_;
@@ -2122,46 +2420,51 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList bui
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CertificateRevocationList)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.CertificateRevocationList other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.CertificateRevocationList
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2187,9 +2490,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate
             revokedCertificatesBuilder_ = null;
             revokedCertificates_ = other.revokedCertificates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            revokedCertificatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRevokedCertificatesFieldBuilder() : null;
+            revokedCertificatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRevokedCertificatesFieldBuilder()
+                    : null;
           } else {
             revokedCertificatesBuilder_.addAllMessages(other.revokedCertificates_);
           }
@@ -2212,8 +2516,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Certificate
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -2233,7 +2536,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.CertificateRevocationList)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2242,10 +2547,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2254,13 +2562,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; @@ -2269,6 +2577,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2277,15 +2587,14 @@ 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 { @@ -2293,6 +2602,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2301,20 +2612,22 @@ public java.lang.String getName() {
      * 
* * 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 path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2323,15 +2636,18 @@ public Builder setName(
      * 
* * 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 path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
      * the format
@@ -2340,28 +2656,31 @@ 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; } - private long sequenceNumber_ ; + private long sequenceNumber_; /** + * + * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sequenceNumber. */ @java.lang.Override @@ -2369,55 +2688,80 @@ public long getSequenceNumber() { return sequenceNumber_; } /** + * + * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { - + sequenceNumber_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The CRL sequence number that appears in pem_crl.
      * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSequenceNumber() { - + sequenceNumber_ = 0L; onChanged(); return this; } - private java.util.List revokedCertificates_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate> + revokedCertificates_ = java.util.Collections.emptyList(); + private void ensureRevokedCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - revokedCertificates_ = new java.util.ArrayList(revokedCertificates_); + revokedCertificates_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate>(revokedCertificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder> revokedCertificatesBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder> + revokedCertificatesBuilder_; /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getRevokedCertificatesList() { + public java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate> + getRevokedCertificatesList() { if (revokedCertificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(revokedCertificates_); } else { @@ -2425,11 +2769,15 @@ public java.util.List * Output only. The revoked serial numbers that appear in pem_crl. *
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getRevokedCertificatesCount() { if (revokedCertificatesBuilder_ == null) { @@ -2439,13 +2787,18 @@ public int getRevokedCertificatesCount() { } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + getRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { return revokedCertificates_.get(index); } else { @@ -2453,14 +2806,20 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Rev } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevokedCertificates( - int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate value) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2474,14 +2833,21 @@ public Builder setRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevokedCertificates( - int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder + builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.set(index, builderForValue.build()); @@ -2492,13 +2858,19 @@ public Builder setRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addRevokedCertificates(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate value) { + public Builder addRevokedCertificates( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2512,14 +2884,20 @@ public Builder addRevokedCertificates(com.google.cloud.security.privateca.v1beta return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRevokedCertificates( - int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate value) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + value) { if (revokedCertificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2533,14 +2911,20 @@ public Builder addRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRevokedCertificates( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder + builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(builderForValue.build()); @@ -2551,14 +2935,21 @@ public Builder addRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRevokedCertificates( - int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder + builderForValue) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); revokedCertificates_.add(index, builderForValue.build()); @@ -2569,18 +2960,25 @@ public Builder addRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllRevokedCertificates( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate> + values) { if (revokedCertificatesBuilder_ == null) { ensureRevokedCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, revokedCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revokedCertificates_); onChanged(); } else { revokedCertificatesBuilder_.addAllMessages(values); @@ -2588,11 +2986,15 @@ public Builder addAllRevokedCertificates( return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevokedCertificates() { if (revokedCertificatesBuilder_ == null) { @@ -2605,11 +3007,15 @@ public Builder clearRevokedCertificates() { return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeRevokedCertificates(int index) { if (revokedCertificatesBuilder_ == null) { @@ -2622,39 +3028,57 @@ public Builder removeRevokedCertificates(int index) { return this; } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder getRevokedCertificatesBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder + getRevokedCertificatesBuilder(int index) { return getRevokedCertificatesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder + getRevokedCertificatesOrBuilder(int index) { if (revokedCertificatesBuilder_ == null) { - return revokedCertificates_.get(index); } else { + return revokedCertificates_.get(index); + } else { return revokedCertificatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getRevokedCertificatesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder> + getRevokedCertificatesOrBuilderList() { if (revokedCertificatesBuilder_ != null) { return revokedCertificatesBuilder_.getMessageOrBuilderList(); } else { @@ -2662,45 +3086,79 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Rev } } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder() { - return getRevokedCertificatesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder + addRevokedCertificatesBuilder() { + return getRevokedCertificatesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.getDefaultInstance()); } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder addRevokedCertificatesBuilder( - int index) { - return getRevokedCertificatesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder + addRevokedCertificatesBuilder(int index) { + return getRevokedCertificatesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.getDefaultInstance()); } /** + * + * *
      * Output only. The revoked serial numbers that appear in pem_crl.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getRevokedCertificatesBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder> + getRevokedCertificatesBuilderList() { return getRevokedCertificatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + .Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder> getRevokedCertificatesFieldBuilder() { if (revokedCertificatesBuilder_ == null) { - revokedCertificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder>( + revokedCertificatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder>( revokedCertificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2712,18 +3170,20 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Rev private java.lang.Object pemCrl_ = ""; /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCrl. */ public java.lang.String getPemCrl() { java.lang.Object ref = pemCrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCrl_ = s; return s; @@ -2732,20 +3192,21 @@ public java.lang.String getPemCrl() { } } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCrl. */ - public com.google.protobuf.ByteString - getPemCrlBytes() { + public com.google.protobuf.ByteString getPemCrlBytes() { java.lang.Object ref = pemCrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCrl_ = b; return b; } else { @@ -2753,54 +3214,61 @@ public java.lang.String getPemCrl() { } } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrl( - java.lang.String value) { + public Builder setPemCrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPemCrl() { - + pemCrl_ = getDefaultInstance().getPemCrl(); onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded X.509 CRL.
      * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for pemCrl to set. * @return This builder for chaining. */ - public Builder setPemCrlBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCrl_ = value; onChanged(); return this; @@ -2808,18 +3276,20 @@ public Builder setPemCrlBytes( private java.lang.Object accessUrl_ = ""; /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The accessUrl. */ public java.lang.String getAccessUrl() { java.lang.Object ref = accessUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessUrl_ = s; return s; @@ -2828,20 +3298,21 @@ public java.lang.String getAccessUrl() { } } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for accessUrl. */ - public com.google.protobuf.ByteString - getAccessUrlBytes() { + public com.google.protobuf.ByteString getAccessUrlBytes() { java.lang.Object ref = accessUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessUrl_ = b; return b; } else { @@ -2849,54 +3320,61 @@ public java.lang.String getAccessUrl() { } } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrl( - java.lang.String value) { + public Builder setAccessUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accessUrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAccessUrl() { - + accessUrl_ = getDefaultInstance().getAccessUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The location where 'pem_crl' can be accessed.
      * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for accessUrl to set. * @return This builder for chaining. */ - public Builder setAccessUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setAccessUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessUrl_ = value; onChanged(); return this; @@ -2904,73 +3382,104 @@ public Builder setAccessUrlBytes( private int state_ = 0; /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf(state_); - return result == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State result = + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.valueOf( + state_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State value) { + public Builder setState( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2978,39 +3487,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3026,14 +3554,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3044,17 +3575,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3066,11 +3601,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3084,48 +3623,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3133,39 +3688,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3181,14 +3755,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3199,17 +3776,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3221,11 +3802,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3239,69 +3824,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3313,28 +3913,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3342,11 +3944,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3354,16 +3957,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -3371,12 +3975,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -3384,69 +3987,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3456,30 +4056,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CertificateRevocationList) - private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CertificateRevocationList(); } - public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateRevocationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateRevocationList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateRevocationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CertificateRevocationList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3491,9 +4093,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java index 9b78d9c7..6f900ea9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface CertificateRevocationListOrBuilder extends +public interface CertificateRevocationListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CertificateRevocationList) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -16,10 +34,13 @@ public interface CertificateRevocationListOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in
    * the format
@@ -28,179 +49,251 @@ public interface CertificateRevocationListOrBuilder extends
    * 
* * 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 CRL sequence number that appears in pem_crl.
    * 
* * int64 sequence_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The sequenceNumber. */ long getSequenceNumber(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate> getRevokedCertificatesList(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate getRevokedCertificates(int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate + getRevokedCertificates(int index); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getRevokedCertificatesCount(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .RevokedCertificateOrBuilder> getRevokedCertificatesOrBuilderList(); /** + * + * *
    * Output only. The revoked serial numbers that appear in pem_crl.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate revoked_certificates = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder getRevokedCertificatesOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateOrBuilder + getRevokedCertificatesOrBuilder(int index); /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCrl. */ java.lang.String getPemCrl(); /** + * + * *
    * Output only. The PEM-encoded X.509 CRL.
    * 
* * string pem_crl = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCrl. */ - com.google.protobuf.ByteString - getPemCrlBytes(); + com.google.protobuf.ByteString getPemCrlBytes(); /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The accessUrl. */ java.lang.String getAccessUrl(); /** + * + * *
    * Output only. The location where 'pem_crl' can be accessed.
    * 
* * string access_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for accessUrl. */ - com.google.protobuf.ByteString - getAccessUrlBytes(); + com.google.protobuf.ByteString getAccessUrlBytes(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.State getState(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -209,30 +302,31 @@ com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCer */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -241,18 +335,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java index a343446f..6ee0afc9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest}
  */
-public final class CreateCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)
     CreateCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateCertificateAuthorityRequest.newBuilder() to construct.
-  private CreateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private CreateCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateCertificateAuthorityRequest() {
     parent_ = "";
     certificateAuthorityId_ = "";
@@ -28,16 +47,15 @@ private CreateCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,44 +74,52 @@ private CreateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            certificateAuthorityId_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder = null;
-            if (certificateAuthority_ != null) {
-              subBuilder = certificateAuthority_.toBuilder();
+              parent_ = s;
+              break;
             }
-            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateAuthority_);
-              certificateAuthority_ = subBuilder.buildPartial();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              certificateAuthorityId_ = s;
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder =
+                  null;
+              if (certificateAuthority_ != null) {
+                subBuilder = certificateAuthority_.toBuilder();
+              }
+              certificateAuthority_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateAuthority_);
+                certificateAuthority_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,36 +127,44 @@ private CreateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 @@ -139,31 +173,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -174,12 +210,15 @@ public java.lang.String getParent() { public static final int CERTIFICATE_AUTHORITY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateAuthorityId_; /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthorityId. */ @java.lang.Override @@ -188,30 +227,30 @@ public java.lang.String getCertificateAuthorityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; } } /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthorityId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -222,11 +261,16 @@ public java.lang.String getCertificateAuthorityId() { public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_; /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -234,32 +278,47 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getCertificateAuthority() { + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -275,6 +334,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -283,14 +343,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -306,16 +367,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -324,6 +384,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -365,8 +425,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateAuthorityId_); } if (certificateAuthority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCertificateAuthority()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateAuthority()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -379,24 +439,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.security.privateca.v1beta1.CreateCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCertificateAuthorityId() - .equals(other.getCertificateAuthorityId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCertificateAuthorityId().equals(other.getCertificateAuthorityId())) return false; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority() - .equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -423,97 +481,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest 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.security.privateca.v1beta1.CreateCertificateAuthorityRequest + 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.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority].
@@ -521,38 +593,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -572,19 +647,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -592,8 +670,10 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(this);
       result.parent_ = parent_;
       result.certificateAuthorityId_ = certificateAuthorityId_;
       if (certificateAuthorityBuilder_ == null) {
@@ -610,46 +690,53 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)other);
+      if (other
+          instanceof
+          com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -680,11 +767,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -696,20 +786,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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; @@ -718,22 +812,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -741,60 +838,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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; @@ -802,19 +912,21 @@ public Builder setParentBytes( private java.lang.Object certificateAuthorityId_ = ""; /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthorityId. */ public java.lang.String getCertificateAuthorityId() { java.lang.Object ref = certificateAuthorityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateAuthorityId_ = s; return s; @@ -823,21 +935,22 @@ public java.lang.String getCertificateAuthorityId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthorityId. */ - public com.google.protobuf.ByteString - getCertificateAuthorityIdBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityIdBytes() { java.lang.Object ref = certificateAuthorityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateAuthorityId_ = b; return b; } else { @@ -845,57 +958,64 @@ public java.lang.String getCertificateAuthorityId() { } } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityId( - java.lang.String value) { + public Builder setCertificateAuthorityId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateAuthorityId_ = value; onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCertificateAuthorityId() { - + certificateAuthorityId_ = getDefaultInstance().getCertificateAuthorityId(); onChanged(); return this; } /** + * + * *
      * Required. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`
      * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for certificateAuthorityId to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateAuthorityId_ = value; onChanged(); return this; @@ -903,41 +1023,62 @@ public Builder setCertificateAuthorityIdBytes( private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + certificateAuthorityBuilder_; /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder setCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -951,11 +1092,15 @@ public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1bet return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { @@ -969,17 +1114,25 @@ public Builder setCertificateAuthority( return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder mergeCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder( + certificateAuthority_) + .mergeFrom(value) + .buildPartial(); } else { certificateAuthority_ = value; } @@ -991,11 +1144,15 @@ public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1b return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -1009,48 +1166,66 @@ public Builder clearCertificateAuthority() { return this; } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder + getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } } /** + * + * *
      * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), - getParentForChildren(), - isClean()); + certificateAuthorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), getParentForChildren(), isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -1058,6 +1233,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1073,13 +1250,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1088,6 +1265,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1103,15 +1282,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1119,6 +1297,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1134,20 +1314,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1163,15 +1345,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1187,23 +1372,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1213,30 +1398,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1248,9 +1436,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java index 853ca91e..15e0c27f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateAuthorityRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface CreateCertificateAuthorityRequestOrBuilder extends +public interface CreateCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthorityId. */ java.lang.String getCertificateAuthorityId(); /** + * + * *
    * Required. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`
    * 
* * string certificate_authority_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthorityId. */ - com.google.protobuf.ByteString - getCertificateAuthorityIdBytes(); + com.google.protobuf.ByteString getCertificateAuthorityIdBytes(); /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority(); /** + * + * *
    * Required. A [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,10 +143,13 @@ public interface CreateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -115,8 +165,8 @@ public interface CreateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java index 16365025..8730e1ad 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateRequest} */ -public final class CreateCertificateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) CreateCertificateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCertificateRequest.newBuilder() to construct. private CreateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCertificateRequest() { parent_ = ""; certificateId_ = ""; @@ -27,16 +45,15 @@ private CreateCertificateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,51 @@ private CreateCertificateRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - certificateId_ = s; - break; - } - case 26: { - com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); + parent_ = s; + break; } - certificate_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + certificateId_ = s; + break; } + case 26: + { + com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); + } + certificate_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.Certificate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,36 +124,43 @@ private CreateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string parent = 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 @@ -138,31 +169,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string parent = 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 { @@ -173,6 +206,8 @@ public java.lang.String getParent() { public static final int CERTIFICATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateId_; /** + * + * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -181,6 +216,7 @@ public java.lang.String getParent() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The certificateId. */ @java.lang.Override @@ -189,14 +225,15 @@ public java.lang.String getCertificateId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; } } /** + * + * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -205,16 +242,15 @@ public java.lang.String getCertificateId() {
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for certificateId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateIdBytes() { + public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateId_ = b; return b; } else { @@ -225,11 +261,16 @@ public java.lang.String getCertificateId() { public static final int CERTIFICATE_FIELD_NUMBER = 3; private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ @java.lang.Override @@ -237,32 +278,46 @@ public boolean hasCertificate() { return certificate_ != null; } /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { - return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() + : certificate_; } /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder + getCertificateOrBuilder() { return getCertificate(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -278,6 +333,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -286,14 +342,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -309,16 +366,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -327,6 +383,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -368,8 +424,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateId_); } if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCertificate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -382,24 +437,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.security.privateca.v1beta1.CreateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other = + (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCertificateId() - .equals(other.getCertificateId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCertificateId().equals(other.getCertificateId())) return false; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate() - .equals(other.getCertificate())) return false; + if (!getCertificate().equals(other.getCertificate())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -427,134 +479,145 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest 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.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest 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.security.privateca.v1beta1.CreateCertificateRequest + 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.security.privateca.v1beta1.CreateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.CreateCertificateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) com.google.cloud.security.privateca.v1beta1.CreateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.class, + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -574,14 +637,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + .getDefaultInstance(); } @java.lang.Override @@ -595,7 +660,8 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest buil @java.lang.Override public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest(this); + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest result = + new com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest(this); result.parent_ = parent_; result.certificateId_ = certificateId_; if (certificateBuilder_ == null) { @@ -612,46 +678,51 @@ public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest)other); + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -686,7 +757,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -698,20 +771,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string parent = 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; @@ -720,22 +797,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string parent = 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 { @@ -743,60 +823,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
      * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -804,6 +897,8 @@ public Builder setParentBytes( private java.lang.Object certificateId_ = ""; /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -812,13 +907,13 @@ public Builder setParentBytes(
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The certificateId. */ public java.lang.String getCertificateId() { java.lang.Object ref = certificateId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateId_ = s; return s; @@ -827,6 +922,8 @@ public java.lang.String getCertificateId() { } } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -835,15 +932,14 @@ public java.lang.String getCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for certificateId. */ - public com.google.protobuf.ByteString - getCertificateIdBytes() { + public com.google.protobuf.ByteString getCertificateIdBytes() { java.lang.Object ref = certificateId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificateId_ = b; return b; } else { @@ -851,6 +947,8 @@ public java.lang.String getCertificateId() { } } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -859,20 +957,22 @@ public java.lang.String getCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateId( - java.lang.String value) { + public Builder setCertificateId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -881,15 +981,18 @@ public Builder setCertificateId(
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCertificateId() { - + certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** + * + * *
      * Optional. It must be unique within a location and match the regular
      * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -898,16 +1001,16 @@ public Builder clearCertificateId() {
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for certificateId to set. * @return This builder for chaining. */ - public Builder setCertificateIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateId_ = value; onChanged(); return this; @@ -915,39 +1018,58 @@ public Builder setCertificateIdBytes( private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> certificateBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + certificateBuilder_; /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() + : certificate_; } else { return certificateBuilder_.getMessage(); } } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { @@ -963,11 +1085,15 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certif return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate( com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { @@ -981,17 +1107,23 @@ public Builder setCertificate( return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_) + .mergeFrom(value) + .buildPartial(); } else { certificate_ = value; } @@ -1003,11 +1135,15 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Cert return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -1021,48 +1157,65 @@ public Builder clearCertificate() { return this; } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder + getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null ? - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() + : certificate_; } } /** + * + * *
      * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( - getCertificate(), - getParentForChildren(), - isClean()); + certificateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( + getCertificate(), getParentForChildren(), isClean()); certificate_ = null; } return certificateBuilder_; @@ -1070,6 +1223,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1085,13 +1240,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1100,6 +1255,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1115,15 +1272,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1131,6 +1287,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1146,20 +1304,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1175,15 +1335,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1199,23 +1362,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1225,30 +1388,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,9 +1425,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.CreateCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java index 0031c070..e7a69236 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CreateCertificateRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface CreateCertificateRequestOrBuilder extends +public interface CreateCertificateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.CreateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string parent = 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 and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]
    * associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string parent = 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. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -40,10 +67,13 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The certificateId. */ java.lang.String getCertificateId(); /** + * + * *
    * Optional. It must be unique within a location and match the regular
    * expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
@@ -52,39 +82,55 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for certificateId. */ - com.google.protobuf.ByteString - getCertificateIdBytes(); + com.google.protobuf.ByteString getCertificateIdBytes(); /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ boolean hasCertificate(); /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ com.google.cloud.security.privateca.v1beta1.Certificate getCertificate(); /** + * + * *
    * Required. A [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with initial field values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -100,10 +146,13 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -119,8 +168,8 @@ public interface CreateCertificateRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java index 287e1008..53ae8d49 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest}
  */
-public final class DisableCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DisableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)
     DisableCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DisableCertificateAuthorityRequest.newBuilder() to construct.
-  private DisableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DisableCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DisableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private DisableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DisableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DisableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +73,27 @@ private DisableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +101,43 @@ private DisableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +146,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +182,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +199,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +208,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +232,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +249,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +291,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,136 +323,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest 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.security.privateca.v1beta1.DisableCertificateAuthorityRequest + 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.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,19 +482,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -450,8 +505,10 @@ public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRe } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest result = + new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -462,46 +519,53 @@ public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -525,11 +589,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -541,19 +608,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +633,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +658,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +729,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +746,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +761,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +778,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +793,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +810,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +841,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +868,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +894,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .DisableCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +933,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java index e7835193..34db727f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/DisableCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface DisableCertificateAuthorityRequestOrBuilder extends +public interface DisableCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.DisableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface DisableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface DisableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java index 8f234e63..9f977bce 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest}
  */
-public final class EnableCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EnableCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)
     EnableCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EnableCertificateAuthorityRequest.newBuilder() to construct.
-  private EnableCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private EnableCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EnableCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private EnableCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EnableCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EnableCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +73,27 @@ private EnableCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +101,43 @@ private EnableCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +146,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +182,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +199,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +208,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +232,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +249,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +291,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.security.privateca.v1beta1.EnableCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,97 +322,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest 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.security.privateca.v1beta1.EnableCertificateAuthorityRequest + 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.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority].
@@ -387,38 +434,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,19 +480,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -450,8 +503,10 @@ public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -462,46 +517,53 @@ public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)other);
+      if (other
+          instanceof
+          com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -525,11 +587,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -541,19 +606,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +631,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +656,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +727,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +744,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +759,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +776,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +791,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +808,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +839,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +866,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +892,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +930,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java index 2f1d3131..496d274e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/EnableCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface EnableCertificateAuthorityRequestOrBuilder extends +public interface EnableCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.EnableCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface EnableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface EnableCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java index 718f3256..751e5506 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest}
  */
-public final class FetchCertificateAuthorityCsrRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FetchCertificateAuthorityCsrRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)
     FetchCertificateAuthorityCsrRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FetchCertificateAuthorityCsrRequest.newBuilder() to construct.
-  private FetchCertificateAuthorityCsrRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private FetchCertificateAuthorityCsrRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FetchCertificateAuthorityCsrRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FetchCertificateAuthorityCsrRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FetchCertificateAuthorityCsrRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +73,20 @@ private FetchCertificateAuthorityCsrRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,35 +94,43 @@ private FetchCertificateAuthorityCsrRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class,
+            com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -111,30 +139,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -143,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,15 +209,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.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) obj; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other = + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,136 +238,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.class, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,19 +395,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest build() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -365,8 +418,10 @@ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(this); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest result = + new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,46 +431,54 @@ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,11 +498,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,19 +517,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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; @@ -472,21 +542,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -494,64 +567,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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); } @@ -561,30 +647,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) - private static final com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest(); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -596,9 +686,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java new file mode 100644 index 00000000..a8535755 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface FetchCertificateAuthorityCsrRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
+   * format `projects/*/locations/*/certificateAuthorities/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
+   * format `projects/*/locations/*/certificateAuthorities/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java index 58e452a8..9e3c781b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponse.java @@ -1,41 +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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
  * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} */ -public final class FetchCertificateAuthorityCsrResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchCertificateAuthorityCsrResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) FetchCertificateAuthorityCsrResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchCertificateAuthorityCsrResponse.newBuilder() to construct. - private FetchCertificateAuthorityCsrResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private FetchCertificateAuthorityCsrResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchCertificateAuthorityCsrResponse() { pemCsr_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchCertificateAuthorityCsrResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FetchCertificateAuthorityCsrResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,19 +74,20 @@ private FetchCertificateAuthorityCsrResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pemCsr_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pemCsr_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,34 +95,40 @@ private FetchCertificateAuthorityCsrResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.Builder + .class); } public static final int PEM_CSR_FIELD_NUMBER = 1; private volatile java.lang.Object pemCsr_; /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCsr. */ @java.lang.Override @@ -110,29 +137,29 @@ public java.lang.String getPemCsr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; } } /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCsr. */ @java.lang.Override - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -141,6 +168,7 @@ public java.lang.String getPemCsr() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemCsr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCsr_); } @@ -177,15 +204,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.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) obj; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other = + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) obj; - if (!getPemCsr() - .equals(other.getPemCsr())) return false; + if (!getPemCsr().equals(other.getPemCsr())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,136 +233,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + 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.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.class, com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + .class, + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +391,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse build() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + build() { + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -363,8 +415,11 @@ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse buildPartial() { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse(this); + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + buildPartial() { + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse result = + new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse( + this); result.pemCsr_ = pemCsr_; onBuilt(); return result; @@ -374,46 +429,54 @@ public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other) { - if (other == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse other) { + if (other + == com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + .getDefaultInstance()) return this; if (!other.getPemCsr().isEmpty()) { pemCsr_ = other.pemCsr_; onChanged(); @@ -433,11 +496,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,18 +515,20 @@ public Builder mergeFrom( private java.lang.Object pemCsr_ = ""; /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCsr. */ public java.lang.String getPemCsr() { java.lang.Object ref = pemCsr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemCsr_ = s; return s; @@ -469,20 +537,21 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCsr. */ - public com.google.protobuf.ByteString - getPemCsrBytes() { + public com.google.protobuf.ByteString getPemCsrBytes() { java.lang.Object ref = pemCsr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pemCsr_ = b; return b; } else { @@ -490,61 +559,68 @@ public java.lang.String getPemCsr() { } } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsr( - java.lang.String value) { + public Builder setPemCsr(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemCsr_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPemCsr() { - + pemCsr_ = getDefaultInstance().getPemCsr(); onChanged(); return this; } /** + * + * *
      * Output only. The PEM-encoded signed certificate signing request (CSR).
      * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ - public Builder setPemCsrBytes( - com.google.protobuf.ByteString value) { + public Builder setPemCsrBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemCsr_ = 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); } @@ -554,30 +630,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) - private static final com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .FetchCertificateAuthorityCsrResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse(); } - public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchCertificateAuthorityCsrResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchCertificateAuthorityCsrResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FetchCertificateAuthorityCsrResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,9 +669,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java index 9976052c..e1c0bdd4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/FetchCertificateAuthorityCsrResponseOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface FetchCertificateAuthorityCsrResponseOrBuilder extends +public interface FetchCertificateAuthorityCsrResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pemCsr. */ java.lang.String getPemCsr(); /** + * + * *
    * Output only. The PEM-encoded signed certificate signing request (CSR).
    * 
* * string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for pemCsr. */ - com.google.protobuf.ByteString - getPemCsrBytes(); + com.google.protobuf.ByteString getPemCsrBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java index 921802db..8ede3b95 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest} */ -public final class GetCertificateAuthorityRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) GetCertificateAuthorityRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCertificateAuthorityRequest.newBuilder() to construct. - private GetCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetCertificateAuthorityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCertificateAuthorityRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCertificateAuthorityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCertificateAuthorityRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private GetCertificateAuthorityRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,43 @@ private GetCertificateAuthorityRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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 @@ -110,30 +137,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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 { @@ -142,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +207,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,135 +235,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest 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.security.privateca.v1beta1.GetCertificateAuthorityRequest + 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.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +390,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -363,8 +413,10 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityReques } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest result = + new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +426,52 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest)other); + if (other + instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,11 +491,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +510,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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; @@ -470,21 +535,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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 { @@ -492,64 +560,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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); } @@ -559,30 +640,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +678,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java new file mode 100644 index 00000000..86a93a86 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateAuthorityRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetCertificateAuthorityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateAuthorityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java index 14577bec..c6d9e6d3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRequest}
  */
-public final class GetCertificateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetCertificateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetCertificateRequest)
     GetCertificateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetCertificateRequest.newBuilder() to construct.
   private GetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetCertificateRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private GetCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,34 +92,41 @@ private GetCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class,
+            com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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 @@ -110,29 +135,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 [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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 { @@ -141,6 +168,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -177,15 +204,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.security.privateca.v1beta1.GetCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other = + (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,96 +232,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest 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.security.privateca.v1beta1.GetCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest 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.security.privateca.v1beta1.GetCertificateRequest + 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.security.privateca.v1beta1.GetCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.GetCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate].
@@ -302,38 +338,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetCertificateRequest)
       com.google.cloud.security.privateca.v1beta1.GetCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.class,
+              com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,13 +381,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance();
     }
 
@@ -364,7 +403,8 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.GetCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.GetCertificateRequest(this);
+      com.google.cloud.security.privateca.v1beta1.GetCertificateRequest result =
+          new com.google.cloud.security.privateca.v1beta1.GetCertificateRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -374,46 +414,50 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest 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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateRequest)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.GetCertificateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.GetCertificateRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -437,7 +481,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.GetCertificateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +495,22 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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; @@ -469,20 +519,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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 { @@ -490,61 +543,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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); } @@ -554,30 +620,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.GetCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,9 +657,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java new file mode 100644 index 00000000..7e15d1a7 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetCertificateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java index 27242a4e..82bba543 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList].
@@ -11,31 +28,33 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest}
  */
-public final class GetCertificateRevocationListRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetCertificateRevocationListRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)
     GetCertificateRevocationListRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetCertificateRevocationListRequest.newBuilder() to construct.
-  private GetCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GetCertificateRevocationListRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetCertificateRevocationListRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetCertificateRevocationListRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetCertificateRevocationListRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +73,20 @@ private GetCertificateRevocationListRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,35 +94,43 @@ private GetCertificateRevocationListRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class,
+            com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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 @@ -111,30 +139,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
    * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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 { @@ -143,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,15 +209,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.security.privateca.v1beta1.GetCertificateRevocationListRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other = + (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,136 +238,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest 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.security.privateca.v1beta1.GetCertificateRevocationListRequest + 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.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.class, + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,19 +395,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest build() { - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -365,8 +418,10 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListR } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(this); + public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest result = + new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,46 +431,54 @@ public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,11 +498,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,19 +517,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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; @@ -472,21 +542,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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 { @@ -494,64 +567,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
      * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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); } @@ -561,30 +647,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .GetCertificateRevocationListRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -596,9 +686,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java new file mode 100644 index 00000000..590a7ef4 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetCertificateRevocationListRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetCertificateRevocationListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetCertificateRevocationListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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.security.privateca.v1beta1.CertificateRevocationList.name] of the
+   * [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java index b127f96a..4e93eda6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.GetReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetReusableConfigRequest}
  */
-public final class GetReusableConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetReusableConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)
     GetReusableConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetReusableConfigRequest.newBuilder() to construct.
   private GetReusableConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetReusableConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetReusableConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetReusableConfigRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private GetReusableConfigRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,34 +92,41 @@ private GetReusableConfigRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class,
+            com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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 @@ -110,29 +135,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 [name][ReusableConfigs.name] of the [ReusableConfigs][] 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 { @@ -141,6 +168,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -177,15 +204,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.security.privateca.v1beta1.GetReusableConfigRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other = (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) obj; + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other = + (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,96 +232,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest 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.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest 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.security.privateca.v1beta1.GetReusableConfigRequest + 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.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.GetReusableConfig][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig].
@@ -302,38 +338,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.GetReusableConfigRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)
       com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class, com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.class,
+              com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,14 +381,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -364,7 +404,8 @@ public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest buil
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest result = new com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest(this);
+      com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest result =
+          new com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -374,46 +415,51 @@ public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest buil
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -437,7 +483,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +497,22 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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; @@ -469,20 +521,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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 { @@ -490,61 +545,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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][ReusableConfigs.name] of the [ReusableConfigs][] 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][ReusableConfigs.name] of the [ReusableConfigs][] 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); } @@ -554,30 +622,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) - private static final com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest(); } - public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReusableConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReusableConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReusableConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetReusableConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,9 +659,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.GetReusableConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java new file mode 100644 index 00000000..7ead8052 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/GetReusableConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface GetReusableConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.GetReusableConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java index cabab65e..4424520c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [KeyUsage][google.cloud.security.privateca.v1beta1.KeyUsage] describes key usage values that may appear in an X.509
  * certificate.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage}
  */
-public final class KeyUsage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KeyUsage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.KeyUsage)
     KeyUsageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KeyUsage.newBuilder() to construct.
   private KeyUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KeyUsage() {
     unknownExtendedKeyUsages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KeyUsage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KeyUsage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,48 +72,63 @@ private KeyUsage(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder subBuilder = null;
-            if (baseKeyUsage_ != null) {
-              subBuilder = baseKeyUsage_.toBuilder();
-            }
-            baseKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(baseKeyUsage_);
-              baseKeyUsage_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder
+                  subBuilder = null;
+              if (baseKeyUsage_ != null) {
+                subBuilder = baseKeyUsage_.toBuilder();
+              }
+              baseKeyUsage_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(baseKeyUsage_);
+                baseKeyUsage_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder subBuilder = null;
-            if (extendedKeyUsage_ != null) {
-              subBuilder = extendedKeyUsage_.toBuilder();
-            }
-            extendedKeyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(extendedKeyUsage_);
-              extendedKeyUsage_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder
+                  subBuilder = null;
+              if (extendedKeyUsage_ != null) {
+                subBuilder = extendedKeyUsage_.toBuilder();
+              }
+              extendedKeyUsage_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(extendedKeyUsage_);
+                extendedKeyUsage_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              unknownExtendedKeyUsages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            unknownExtendedKeyUsages_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.ObjectId.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                unknownExtendedKeyUsages_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              unknownExtendedKeyUsages_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -104,125 +136,158 @@ private KeyUsage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+        unknownExtendedKeyUsages_ =
+            java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.class,
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
   }
 
-  public interface KeyUsageOptionsOrBuilder extends
+  public interface KeyUsageOptionsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; + * * @return The digitalSignature. */ boolean getDigitalSignature(); /** + * + * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; + * * @return The contentCommitment. */ boolean getContentCommitment(); /** + * + * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; + * * @return The keyEncipherment. */ boolean getKeyEncipherment(); /** + * + * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; + * * @return The dataEncipherment. */ boolean getDataEncipherment(); /** + * + * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; + * * @return The keyAgreement. */ boolean getKeyAgreement(); /** + * + * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; + * * @return The certSign. */ boolean getCertSign(); /** + * + * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; + * * @return The crlSign. */ boolean getCrlSign(); /** + * + * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; + * * @return The encipherOnly. */ boolean getEncipherOnly(); /** + * + * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; + * * @return The decipherOnly. */ boolean getDecipherOnly(); } /** + * + * *
    * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
    * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -230,30 +295,29 @@ public interface KeyUsageOptionsOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions}
    */
-  public static final class KeyUsageOptions extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class KeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
       KeyUsageOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use KeyUsageOptions.newBuilder() to construct.
     private KeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private KeyUsageOptions() {
-    }
+
+    private KeyUsageOptions() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new KeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private KeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -272,58 +336,58 @@ private KeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8: {
-
-              digitalSignature_ = input.readBool();
-              break;
-            }
-            case 16: {
-
-              contentCommitment_ = input.readBool();
-              break;
-            }
-            case 24: {
-
-              keyEncipherment_ = input.readBool();
-              break;
-            }
-            case 32: {
-
-              dataEncipherment_ = input.readBool();
-              break;
-            }
-            case 40: {
-
-              keyAgreement_ = input.readBool();
-              break;
-            }
-            case 48: {
-
-              certSign_ = input.readBool();
-              break;
-            }
-            case 56: {
-
-              crlSign_ = input.readBool();
-              break;
-            }
-            case 64: {
-
-              encipherOnly_ = input.readBool();
-              break;
-            }
-            case 72: {
-
-              decipherOnly_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 8:
+              {
+                digitalSignature_ = input.readBool();
+                break;
+              }
+            case 16:
+              {
+                contentCommitment_ = input.readBool();
+                break;
+              }
+            case 24:
+              {
+                keyEncipherment_ = input.readBool();
+                break;
+              }
+            case 32:
+              {
+                dataEncipherment_ = input.readBool();
+                break;
+              }
+            case 40:
+              {
+                keyAgreement_ = input.readBool();
+                break;
+              }
+            case 48:
+              {
+                certSign_ = input.readBool();
+                break;
+              }
+            case 56:
+              {
+                crlSign_ = input.readBool();
+                break;
+              }
+            case 64:
+              {
+                encipherOnly_ = input.readBool();
+                break;
+              }
+            case 72:
+              {
+                decipherOnly_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -331,34 +395,39 @@ private KeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class,
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
     }
 
     public static final int DIGITAL_SIGNATURE_FIELD_NUMBER = 1;
     private boolean digitalSignature_;
     /**
+     *
+     *
      * 
      * The key may be used for digital signatures.
      * 
* * bool digital_signature = 1; + * * @return The digitalSignature. */ @java.lang.Override @@ -369,12 +438,15 @@ public boolean getDigitalSignature() { public static final int CONTENT_COMMITMENT_FIELD_NUMBER = 2; private boolean contentCommitment_; /** + * + * *
      * The key may be used for cryptographic commitments. Note that this may
      * also be referred to as "non-repudiation".
      * 
* * bool content_commitment = 2; + * * @return The contentCommitment. */ @java.lang.Override @@ -385,11 +457,14 @@ public boolean getContentCommitment() { public static final int KEY_ENCIPHERMENT_FIELD_NUMBER = 3; private boolean keyEncipherment_; /** + * + * *
      * The key may be used to encipher other keys.
      * 
* * bool key_encipherment = 3; + * * @return The keyEncipherment. */ @java.lang.Override @@ -400,11 +475,14 @@ public boolean getKeyEncipherment() { public static final int DATA_ENCIPHERMENT_FIELD_NUMBER = 4; private boolean dataEncipherment_; /** + * + * *
      * The key may be used to encipher data.
      * 
* * bool data_encipherment = 4; + * * @return The dataEncipherment. */ @java.lang.Override @@ -415,11 +493,14 @@ public boolean getDataEncipherment() { public static final int KEY_AGREEMENT_FIELD_NUMBER = 5; private boolean keyAgreement_; /** + * + * *
      * The key may be used in a key agreement protocol.
      * 
* * bool key_agreement = 5; + * * @return The keyAgreement. */ @java.lang.Override @@ -430,11 +511,14 @@ public boolean getKeyAgreement() { public static final int CERT_SIGN_FIELD_NUMBER = 6; private boolean certSign_; /** + * + * *
      * The key may be used to sign certificates.
      * 
* * bool cert_sign = 6; + * * @return The certSign. */ @java.lang.Override @@ -445,11 +529,14 @@ public boolean getCertSign() { public static final int CRL_SIGN_FIELD_NUMBER = 7; private boolean crlSign_; /** + * + * *
      * The key may be used sign certificate revocation lists.
      * 
* * bool crl_sign = 7; + * * @return The crlSign. */ @java.lang.Override @@ -460,11 +547,14 @@ public boolean getCrlSign() { public static final int ENCIPHER_ONLY_FIELD_NUMBER = 8; private boolean encipherOnly_; /** + * + * *
      * The key may be used to encipher only.
      * 
* * bool encipher_only = 8; + * * @return The encipherOnly. */ @java.lang.Override @@ -475,11 +565,14 @@ public boolean getEncipherOnly() { public static final int DECIPHER_ONLY_FIELD_NUMBER = 9; private boolean decipherOnly_; /** + * + * *
      * The key may be used to decipher only.
      * 
* * bool decipher_only = 9; + * * @return The decipherOnly. */ @java.lang.Override @@ -488,6 +581,7 @@ public boolean getDecipherOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -499,8 +593,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (digitalSignature_ != false) { output.writeBool(1, digitalSignature_); } @@ -538,40 +631,31 @@ public int getSerializedSize() { size = 0; if (digitalSignature_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, digitalSignature_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, digitalSignature_); } if (contentCommitment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, contentCommitment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, contentCommitment_); } if (keyEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, keyEncipherment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, keyEncipherment_); } if (dataEncipherment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, dataEncipherment_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dataEncipherment_); } if (keyAgreement_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, keyAgreement_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, keyAgreement_); } if (certSign_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, certSign_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, certSign_); } if (crlSign_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, crlSign_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, crlSign_); } if (encipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, encipherOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, encipherOnly_); } if (decipherOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, decipherOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, decipherOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -581,31 +665,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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other = (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) obj; - - if (getDigitalSignature() - != other.getDigitalSignature()) return false; - if (getContentCommitment() - != other.getContentCommitment()) return false; - if (getKeyEncipherment() - != other.getKeyEncipherment()) return false; - if (getDataEncipherment() - != other.getDataEncipherment()) return false; - if (getKeyAgreement() - != other.getKeyAgreement()) return false; - if (getCertSign() - != other.getCertSign()) return false; - if (getCrlSign() - != other.getCrlSign()) return false; - if (getEncipherOnly() - != other.getEncipherOnly()) return false; - if (getDecipherOnly() - != other.getDecipherOnly()) return false; + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other = + (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) obj; + + if (getDigitalSignature() != other.getDigitalSignature()) return false; + if (getContentCommitment() != other.getContentCommitment()) return false; + if (getKeyEncipherment() != other.getKeyEncipherment()) return false; + if (getDataEncipherment() != other.getDataEncipherment()) return false; + if (getKeyAgreement() != other.getKeyAgreement()) return false; + if (getCertSign() != other.getCertSign()) return false; + if (getCrlSign() != other.getCrlSign()) return false; + if (getEncipherOnly() != other.getEncipherOnly()) return false; + if (getDecipherOnly() != other.getDecipherOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -618,119 +694,118 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIGITAL_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDigitalSignature()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDigitalSignature()); hash = (37 * hash) + CONTENT_COMMITMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContentCommitment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContentCommitment()); hash = (37 * hash) + KEY_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getKeyEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyEncipherment()); hash = (37 * hash) + DATA_ENCIPHERMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDataEncipherment()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataEncipherment()); hash = (37 * hash) + KEY_AGREEMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getKeyAgreement()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeyAgreement()); hash = (37 * hash) + CERT_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCertSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCertSign()); hash = (37 * hash) + CRL_SIGN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCrlSign()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCrlSign()); hash = (37 * hash) + ENCIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEncipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEncipherOnly()); hash = (37 * hash) + DECIPHER_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDecipherOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDecipherOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions 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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions 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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + 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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -740,6 +815,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * [KeyUsage.KeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions] corresponds to the key usage values
      * described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
@@ -747,38 +824,41 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
         com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
+                com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.class,
+                com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder.class);
       }
 
-      // Construct using com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder()
+      // Construct using
+      // com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -804,19 +884,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+            .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() {
-        return com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance();
+      public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions
+          getDefaultInstanceForType() {
+        return com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions build() {
-        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result = buildPartial();
+        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -825,7 +908,8 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions buil
 
       @java.lang.Override
       public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions buildPartial() {
-        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result = new com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions(this);
+        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions result =
+            new com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions(this);
         result.digitalSignature_ = digitalSignature_;
         result.contentCommitment_ = contentCommitment_;
         result.keyEncipherment_ = keyEncipherment_;
@@ -843,46 +927,53 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions buil
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) {
-          return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)other);
+          return mergeFrom(
+              (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other) {
-        if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions other) {
+        if (other
+            == com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions
+                .getDefaultInstance()) return this;
         if (other.getDigitalSignature() != false) {
           setDigitalSignature(other.getDigitalSignature());
         }
@@ -929,7 +1020,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -939,13 +1032,16 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean digitalSignature_ ;
+      private boolean digitalSignature_;
       /**
+       *
+       *
        * 
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; + * * @return The digitalSignature. */ @java.lang.Override @@ -953,43 +1049,52 @@ public boolean getDigitalSignature() { return digitalSignature_; } /** + * + * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; + * * @param value The digitalSignature to set. * @return This builder for chaining. */ public Builder setDigitalSignature(boolean value) { - + digitalSignature_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used for digital signatures.
        * 
* * bool digital_signature = 1; + * * @return This builder for chaining. */ public Builder clearDigitalSignature() { - + digitalSignature_ = false; onChanged(); return this; } - private boolean contentCommitment_ ; + private boolean contentCommitment_; /** + * + * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; + * * @return The contentCommitment. */ @java.lang.Override @@ -997,44 +1102,53 @@ public boolean getContentCommitment() { return contentCommitment_; } /** + * + * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; + * * @param value The contentCommitment to set. * @return This builder for chaining. */ public Builder setContentCommitment(boolean value) { - + contentCommitment_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used for cryptographic commitments. Note that this may
        * also be referred to as "non-repudiation".
        * 
* * bool content_commitment = 2; + * * @return This builder for chaining. */ public Builder clearContentCommitment() { - + contentCommitment_ = false; onChanged(); return this; } - private boolean keyEncipherment_ ; + private boolean keyEncipherment_; /** + * + * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; + * * @return The keyEncipherment. */ @java.lang.Override @@ -1042,42 +1156,51 @@ public boolean getKeyEncipherment() { return keyEncipherment_; } /** + * + * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; + * * @param value The keyEncipherment to set. * @return This builder for chaining. */ public Builder setKeyEncipherment(boolean value) { - + keyEncipherment_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to encipher other keys.
        * 
* * bool key_encipherment = 3; + * * @return This builder for chaining. */ public Builder clearKeyEncipherment() { - + keyEncipherment_ = false; onChanged(); return this; } - private boolean dataEncipherment_ ; + private boolean dataEncipherment_; /** + * + * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; + * * @return The dataEncipherment. */ @java.lang.Override @@ -1085,42 +1208,51 @@ public boolean getDataEncipherment() { return dataEncipherment_; } /** + * + * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; + * * @param value The dataEncipherment to set. * @return This builder for chaining. */ public Builder setDataEncipherment(boolean value) { - + dataEncipherment_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to encipher data.
        * 
* * bool data_encipherment = 4; + * * @return This builder for chaining. */ public Builder clearDataEncipherment() { - + dataEncipherment_ = false; onChanged(); return this; } - private boolean keyAgreement_ ; + private boolean keyAgreement_; /** + * + * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; + * * @return The keyAgreement. */ @java.lang.Override @@ -1128,42 +1260,51 @@ public boolean getKeyAgreement() { return keyAgreement_; } /** + * + * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; + * * @param value The keyAgreement to set. * @return This builder for chaining. */ public Builder setKeyAgreement(boolean value) { - + keyAgreement_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used in a key agreement protocol.
        * 
* * bool key_agreement = 5; + * * @return This builder for chaining. */ public Builder clearKeyAgreement() { - + keyAgreement_ = false; onChanged(); return this; } - private boolean certSign_ ; + private boolean certSign_; /** + * + * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; + * * @return The certSign. */ @java.lang.Override @@ -1171,42 +1312,51 @@ public boolean getCertSign() { return certSign_; } /** + * + * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; + * * @param value The certSign to set. * @return This builder for chaining. */ public Builder setCertSign(boolean value) { - + certSign_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to sign certificates.
        * 
* * bool cert_sign = 6; + * * @return This builder for chaining. */ public Builder clearCertSign() { - + certSign_ = false; onChanged(); return this; } - private boolean crlSign_ ; + private boolean crlSign_; /** + * + * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; + * * @return The crlSign. */ @java.lang.Override @@ -1214,42 +1364,51 @@ public boolean getCrlSign() { return crlSign_; } /** + * + * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; + * * @param value The crlSign to set. * @return This builder for chaining. */ public Builder setCrlSign(boolean value) { - + crlSign_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used sign certificate revocation lists.
        * 
* * bool crl_sign = 7; + * * @return This builder for chaining. */ public Builder clearCrlSign() { - + crlSign_ = false; onChanged(); return this; } - private boolean encipherOnly_ ; + private boolean encipherOnly_; /** + * + * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; + * * @return The encipherOnly. */ @java.lang.Override @@ -1257,42 +1416,51 @@ public boolean getEncipherOnly() { return encipherOnly_; } /** + * + * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; + * * @param value The encipherOnly to set. * @return This builder for chaining. */ public Builder setEncipherOnly(boolean value) { - + encipherOnly_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to encipher only.
        * 
* * bool encipher_only = 8; + * * @return This builder for chaining. */ public Builder clearEncipherOnly() { - + encipherOnly_ = false; onChanged(); return this; } - private boolean decipherOnly_ ; + private boolean decipherOnly_; /** + * + * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; + * * @return The decipherOnly. */ @java.lang.Override @@ -1300,34 +1468,41 @@ public boolean getDecipherOnly() { return decipherOnly_; } /** + * + * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; + * * @param value The decipherOnly to set. * @return This builder for chaining. */ public Builder setDecipherOnly(boolean value) { - + decipherOnly_ = value; onChanged(); return this; } /** + * + * *
        * The key may be used to decipher only.
        * 
* * bool decipher_only = 9; + * * @return This builder for chaining. */ public Builder clearDecipherOnly() { - + decipherOnly_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1340,30 +1515,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions) - private static final com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1375,83 +1552,104 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ExtendedKeyUsageOptionsOrBuilder extends + public interface ExtendedKeyUsageOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; + * * @return The serverAuth. */ boolean getServerAuth(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; + * * @return The clientAuth. */ boolean getClientAuth(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; + * * @return The codeSigning. */ boolean getCodeSigning(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; + * * @return The emailProtection. */ boolean getEmailProtection(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; + * * @return The timeStamping. */ boolean getTimeStamping(); /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; + * * @return The ocspSigning. */ boolean getOcspSigning(); } /** + * + * *
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
    * certain common OIDs that could be specified as an extended key usage value.
@@ -1459,30 +1657,29 @@ public interface ExtendedKeyUsageOptionsOrBuilder extends
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions}
    */
-  public static final class ExtendedKeyUsageOptions extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ExtendedKeyUsageOptions extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)
       ExtendedKeyUsageOptionsOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ExtendedKeyUsageOptions.newBuilder() to construct.
     private ExtendedKeyUsageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ExtendedKeyUsageOptions() {
-    }
+
+    private ExtendedKeyUsageOptions() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ExtendedKeyUsageOptions();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ExtendedKeyUsageOptions(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1501,43 +1698,43 @@ private ExtendedKeyUsageOptions(
             case 0:
               done = true;
               break;
-            case 8: {
-
-              serverAuth_ = input.readBool();
-              break;
-            }
-            case 16: {
-
-              clientAuth_ = input.readBool();
-              break;
-            }
-            case 24: {
-
-              codeSigning_ = input.readBool();
-              break;
-            }
-            case 32: {
-
-              emailProtection_ = input.readBool();
-              break;
-            }
-            case 40: {
-
-              timeStamping_ = input.readBool();
-              break;
-            }
-            case 48: {
-
-              ocspSigning_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 8:
+              {
+                serverAuth_ = input.readBool();
+                break;
+              }
+            case 16:
+              {
+                clientAuth_ = input.readBool();
+                break;
+              }
+            case 24:
+              {
+                codeSigning_ = input.readBool();
+                break;
+              }
+            case 32:
+              {
+                emailProtection_ = input.readBool();
+                break;
+              }
+            case 40:
+              {
+                timeStamping_ = input.readBool();
+                break;
+              }
+            case 48:
+              {
+                ocspSigning_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1545,35 +1742,41 @@ private ExtendedKeyUsageOptions(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class,
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder
+                  .class);
     }
 
     public static final int SERVER_AUTH_FIELD_NUMBER = 1;
     private boolean serverAuth_;
     /**
+     *
+     *
      * 
      * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
      * server authentication", though regularly used for non-WWW TLS.
      * 
* * bool server_auth = 1; + * * @return The serverAuth. */ @java.lang.Override @@ -1584,12 +1787,15 @@ public boolean getServerAuth() { public static final int CLIENT_AUTH_FIELD_NUMBER = 2; private boolean clientAuth_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
      * client authentication", though regularly used for non-WWW TLS.
      * 
* * bool client_auth = 2; + * * @return The clientAuth. */ @java.lang.Override @@ -1600,12 +1806,15 @@ public boolean getClientAuth() { public static final int CODE_SIGNING_FIELD_NUMBER = 3; private boolean codeSigning_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
      * downloadable executable code client authentication".
      * 
* * bool code_signing = 3; + * * @return The codeSigning. */ @java.lang.Override @@ -1616,12 +1825,15 @@ public boolean getCodeSigning() { public static final int EMAIL_PROTECTION_FIELD_NUMBER = 4; private boolean emailProtection_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
      * protection".
      * 
* * bool email_protection = 4; + * * @return The emailProtection. */ @java.lang.Override @@ -1632,12 +1844,15 @@ public boolean getEmailProtection() { public static final int TIME_STAMPING_FIELD_NUMBER = 5; private boolean timeStamping_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
      * the hash of an object to a time".
      * 
* * bool time_stamping = 5; + * * @return The timeStamping. */ @java.lang.Override @@ -1648,12 +1863,15 @@ public boolean getTimeStamping() { public static final int OCSP_SIGNING_FIELD_NUMBER = 6; private boolean ocspSigning_; /** + * + * *
      * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
      * OCSP responses".
      * 
* * bool ocsp_signing = 6; + * * @return The ocspSigning. */ @java.lang.Override @@ -1662,6 +1880,7 @@ public boolean getOcspSigning() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1673,8 +1892,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (serverAuth_ != false) { output.writeBool(1, serverAuth_); } @@ -1703,28 +1921,22 @@ public int getSerializedSize() { size = 0; if (serverAuth_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, serverAuth_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, serverAuth_); } if (clientAuth_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clientAuth_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientAuth_); } if (codeSigning_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, codeSigning_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, codeSigning_); } if (emailProtection_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, emailProtection_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, emailProtection_); } if (timeStamping_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, timeStamping_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, timeStamping_); } if (ocspSigning_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, ocspSigning_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, ocspSigning_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1734,25 +1946,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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other = (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) obj; - - if (getServerAuth() - != other.getServerAuth()) return false; - if (getClientAuth() - != other.getClientAuth()) return false; - if (getCodeSigning() - != other.getCodeSigning()) return false; - if (getEmailProtection() - != other.getEmailProtection()) return false; - if (getTimeStamping() - != other.getTimeStamping()) return false; - if (getOcspSigning() - != other.getOcspSigning()) return false; + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other = + (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) obj; + + if (getServerAuth() != other.getServerAuth()) return false; + if (getClientAuth() != other.getClientAuth()) return false; + if (getCodeSigning() != other.getCodeSigning()) return false; + if (getEmailProtection() != other.getEmailProtection()) return false; + if (getTimeStamping() != other.getTimeStamping()) return false; + if (getOcspSigning() != other.getOcspSigning()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1765,110 +1974,117 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVER_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getServerAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServerAuth()); hash = (37 * hash) + CLIENT_AUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientAuth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientAuth()); hash = (37 * hash) + CODE_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCodeSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCodeSigning()); hash = (37 * hash) + EMAIL_PROTECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEmailProtection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailProtection()); hash = (37 * hash) + TIME_STAMPING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTimeStamping()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTimeStamping()); hash = (37 * hash) + OCSP_SIGNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOcspSigning()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOcspSigning()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions 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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + 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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1878,45 +2094,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] has fields that correspond to
      * certain common OIDs that could be specified as an extended key usage value.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder.class); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.class, + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1936,19 +2159,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions build() { - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1956,8 +2182,10 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOpti } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions buildPartial() { - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(this); + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + buildPartial() { + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions result = + new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(this); result.serverAuth_ = serverAuth_; result.clientAuth_ = clientAuth_; result.codeSigning_ = codeSigning_; @@ -1972,46 +2200,55 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOpti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other) { - if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions other) { + if (other + == com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance()) return this; if (other.getServerAuth() != false) { setServerAuth(other.getServerAuth()); } @@ -2045,11 +2282,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2059,14 +2299,17 @@ public Builder mergeFrom( return this; } - private boolean serverAuth_ ; + private boolean serverAuth_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; + * * @return The serverAuth. */ @java.lang.Override @@ -2074,45 +2317,54 @@ public boolean getServerAuth() { return serverAuth_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; + * * @param value The serverAuth to set. * @return This builder for chaining. */ public Builder setServerAuth(boolean value) { - + serverAuth_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
        * server authentication", though regularly used for non-WWW TLS.
        * 
* * bool server_auth = 1; + * * @return This builder for chaining. */ public Builder clearServerAuth() { - + serverAuth_ = false; onChanged(); return this; } - private boolean clientAuth_ ; + private boolean clientAuth_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; + * * @return The clientAuth. */ @java.lang.Override @@ -2120,45 +2372,54 @@ public boolean getClientAuth() { return clientAuth_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; + * * @param value The clientAuth to set. * @return This builder for chaining. */ public Builder setClientAuth(boolean value) { - + clientAuth_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
        * client authentication", though regularly used for non-WWW TLS.
        * 
* * bool client_auth = 2; + * * @return This builder for chaining. */ public Builder clearClientAuth() { - + clientAuth_ = false; onChanged(); return this; } - private boolean codeSigning_ ; + private boolean codeSigning_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; + * * @return The codeSigning. */ @java.lang.Override @@ -2166,45 +2427,54 @@ public boolean getCodeSigning() { return codeSigning_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; + * * @param value The codeSigning to set. * @return This builder for chaining. */ public Builder setCodeSigning(boolean value) { - + codeSigning_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
        * downloadable executable code client authentication".
        * 
* * bool code_signing = 3; + * * @return This builder for chaining. */ public Builder clearCodeSigning() { - + codeSigning_ = false; onChanged(); return this; } - private boolean emailProtection_ ; + private boolean emailProtection_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; + * * @return The emailProtection. */ @java.lang.Override @@ -2212,45 +2482,54 @@ public boolean getEmailProtection() { return emailProtection_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; + * * @param value The emailProtection to set. * @return This builder for chaining. */ public Builder setEmailProtection(boolean value) { - + emailProtection_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
        * protection".
        * 
* * bool email_protection = 4; + * * @return This builder for chaining. */ public Builder clearEmailProtection() { - + emailProtection_ = false; onChanged(); return this; } - private boolean timeStamping_ ; + private boolean timeStamping_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; + * * @return The timeStamping. */ @java.lang.Override @@ -2258,45 +2537,54 @@ public boolean getTimeStamping() { return timeStamping_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; + * * @param value The timeStamping to set. * @return This builder for chaining. */ public Builder setTimeStamping(boolean value) { - + timeStamping_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
        * the hash of an object to a time".
        * 
* * bool time_stamping = 5; + * * @return This builder for chaining. */ public Builder clearTimeStamping() { - + timeStamping_ = false; onChanged(); return this; } - private boolean ocspSigning_ ; + private boolean ocspSigning_; /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; + * * @return The ocspSigning. */ @java.lang.Override @@ -2304,36 +2592,43 @@ public boolean getOcspSigning() { return ocspSigning_; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; + * * @param value The ocspSigning to set. * @return This builder for chaining. */ public Builder setOcspSigning(boolean value) { - + ocspSigning_ = value; onChanged(); return this; } /** + * + * *
        * Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
        * OCSP responses".
        * 
* * bool ocsp_signing = 6; + * * @return This builder for chaining. */ public Builder clearOcspSigning() { - + ocspSigning_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2346,30 +2641,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions) - private static final com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.KeyUsage + .ExtendedKeyUsageOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions(); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtendedKeyUsageOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtendedKeyUsageOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendedKeyUsageOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtendedKeyUsageOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2381,20 +2680,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BASE_KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions baseKeyUsage_; /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * + * * @return Whether the baseKeyUsage field is set. */ @java.lang.Override @@ -2402,37 +2705,53 @@ public boolean hasBaseKeyUsage() { return baseKeyUsage_ != null; } /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * + * * @return The baseKeyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { - return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; + return baseKeyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() + : baseKeyUsage_; } /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder + getBaseKeyUsageOrBuilder() { return getBaseKeyUsage(); } public static final int EXTENDED_KEY_USAGE_FIELD_NUMBER = 2; - private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; + private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + extendedKeyUsage_; /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return Whether the extendedKeyUsage field is set. */ @java.lang.Override @@ -2440,95 +2759,133 @@ public boolean hasExtendedKeyUsage() { return extendedKeyUsage_ != null; } /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return The extendedKeyUsage. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { - return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + getExtendedKeyUsage() { + return extendedKeyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance() + : extendedKeyUsage_; } /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder + getExtendedKeyUsageOrBuilder() { return getExtendedKeyUsage(); } public static final int UNKNOWN_EXTENDED_KEY_USAGES_FIELD_NUMBER = 3; - private java.util.List unknownExtendedKeyUsages_; + private java.util.List + unknownExtendedKeyUsages_; /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public java.util.List getUnknownExtendedKeyUsagesList() { + public java.util.List + getUnknownExtendedKeyUsagesList() { return unknownExtendedKeyUsages_; } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List getUnknownExtendedKeyUsagesOrBuilderList() { return unknownExtendedKeyUsages_; } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override public int getUnknownExtendedKeyUsagesCount() { return unknownExtendedKeyUsages_.size(); } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages(int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages( + int index) { return unknownExtendedKeyUsages_.get(index); } /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder + getUnknownExtendedKeyUsagesOrBuilder(int index) { return unknownExtendedKeyUsages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2540,8 +2897,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (baseKeyUsage_ != null) { output.writeMessage(1, getBaseKeyUsage()); } @@ -2561,16 +2917,15 @@ public int getSerializedSize() { size = 0; if (baseKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBaseKeyUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBaseKeyUsage()); } if (extendedKeyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExtendedKeyUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExtendedKeyUsage()); } for (int i = 0; i < unknownExtendedKeyUsages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, unknownExtendedKeyUsages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, unknownExtendedKeyUsages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2580,25 +2935,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.security.privateca.v1beta1.KeyUsage)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.KeyUsage other = (com.google.cloud.security.privateca.v1beta1.KeyUsage) obj; + com.google.cloud.security.privateca.v1beta1.KeyUsage other = + (com.google.cloud.security.privateca.v1beta1.KeyUsage) obj; if (hasBaseKeyUsage() != other.hasBaseKeyUsage()) return false; if (hasBaseKeyUsage()) { - if (!getBaseKeyUsage() - .equals(other.getBaseKeyUsage())) return false; + if (!getBaseKeyUsage().equals(other.getBaseKeyUsage())) return false; } if (hasExtendedKeyUsage() != other.hasExtendedKeyUsage()) return false; if (hasExtendedKeyUsage()) { - if (!getExtendedKeyUsage() - .equals(other.getExtendedKeyUsage())) return false; + if (!getExtendedKeyUsage().equals(other.getExtendedKeyUsage())) return false; } - if (!getUnknownExtendedKeyUsagesList() - .equals(other.getUnknownExtendedKeyUsagesList())) return false; + if (!getUnknownExtendedKeyUsagesList().equals(other.getUnknownExtendedKeyUsagesList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2628,96 +2982,103 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.KeyUsage 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.security.privateca.v1beta1.KeyUsage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.KeyUsage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.KeyUsage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [KeyUsage][google.cloud.security.privateca.v1beta1.KeyUsage] describes key usage values that may appear in an X.509
    * certificate.
@@ -2725,21 +3086,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.KeyUsage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.KeyUsage)
       com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.KeyUsage.class, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.class,
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.KeyUsage.newBuilder()
@@ -2747,17 +3110,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getUnknownExtendedKeyUsagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2783,9 +3146,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor;
     }
 
     @java.lang.Override
@@ -2804,7 +3167,8 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.KeyUsage buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.KeyUsage result = new com.google.cloud.security.privateca.v1beta1.KeyUsage(this);
+      com.google.cloud.security.privateca.v1beta1.KeyUsage result =
+          new com.google.cloud.security.privateca.v1beta1.KeyUsage(this);
       int from_bitField0_ = bitField0_;
       if (baseKeyUsageBuilder_ == null) {
         result.baseKeyUsage_ = baseKeyUsage_;
@@ -2818,7 +3182,8 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage buildPartial() {
       }
       if (unknownExtendedKeyUsagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          unknownExtendedKeyUsages_ = java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
+          unknownExtendedKeyUsages_ =
+              java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.unknownExtendedKeyUsages_ = unknownExtendedKeyUsages_;
@@ -2833,38 +3198,39 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.KeyUsage) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.KeyUsage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2872,7 +3238,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance())
+        return this;
       if (other.hasBaseKeyUsage()) {
         mergeBaseKeyUsage(other.getBaseKeyUsage());
       }
@@ -2897,9 +3264,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.KeyUsage ot
             unknownExtendedKeyUsagesBuilder_ = null;
             unknownExtendedKeyUsages_ = other.unknownExtendedKeyUsages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            unknownExtendedKeyUsagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getUnknownExtendedKeyUsagesFieldBuilder() : null;
+            unknownExtendedKeyUsagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getUnknownExtendedKeyUsagesFieldBuilder()
+                    : null;
           } else {
             unknownExtendedKeyUsagesBuilder_.addAllMessages(other.unknownExtendedKeyUsages_);
           }
@@ -2924,7 +3292,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.KeyUsage) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.KeyUsage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2933,45 +3302,64 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions baseKeyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder> baseKeyUsageBuilder_;
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions,
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder,
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder>
+        baseKeyUsageBuilder_;
     /**
+     *
+     *
      * 
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * + * * @return Whether the baseKeyUsage field is set. */ public boolean hasBaseKeyUsage() { return baseKeyUsageBuilder_ != null || baseKeyUsage_ != null; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * + * * @return The baseKeyUsage. */ public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getBaseKeyUsage() { if (baseKeyUsageBuilder_ == null) { - return baseKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; + return baseKeyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + .getDefaultInstance() + : baseKeyUsage_; } else { return baseKeyUsageBuilder_.getMessage(); } } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ - public Builder setBaseKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { + public Builder setBaseKeyUsage( + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2985,14 +3373,18 @@ public Builder setBaseKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUs return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ public Builder setBaseKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder + builderForValue) { if (baseKeyUsageBuilder_ == null) { baseKeyUsage_ = builderForValue.build(); onChanged(); @@ -3003,17 +3395,24 @@ public Builder setBaseKeyUsage( return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ - public Builder mergeBaseKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { + public Builder mergeBaseKeyUsage( + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions value) { if (baseKeyUsageBuilder_ == null) { if (baseKeyUsage_ != null) { baseKeyUsage_ = - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder(baseKeyUsage_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.newBuilder( + baseKeyUsage_) + .mergeFrom(value) + .buildPartial(); } else { baseKeyUsage_ = value; } @@ -3025,11 +3424,14 @@ public Builder mergeBaseKeyUsage(com.google.cloud.security.privateca.v1beta1.Key return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ public Builder clearBaseKeyUsage() { if (baseKeyUsageBuilder_ == null) { @@ -3043,90 +3445,129 @@ public Builder clearBaseKeyUsage() { return this; } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder getBaseKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder + getBaseKeyUsageBuilder() { + onChanged(); return getBaseKeyUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder + getBaseKeyUsageOrBuilder() { if (baseKeyUsageBuilder_ != null) { return baseKeyUsageBuilder_.getMessageOrBuilder(); } else { - return baseKeyUsage_ == null ? - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.getDefaultInstance() : baseKeyUsage_; + return baseKeyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions + .getDefaultInstance() + : baseKeyUsage_; } } /** + * + * *
      * Describes high-level ways in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder> getBaseKeyUsageFieldBuilder() { if (baseKeyUsageBuilder_ == null) { - baseKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder>( - getBaseKeyUsage(), - getParentForChildren(), - isClean()); + baseKeyUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions, + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder>( + getBaseKeyUsage(), getParentForChildren(), isClean()); baseKeyUsage_ = null; } return baseKeyUsageBuilder_; } - private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extendedKeyUsage_; + private com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + extendedKeyUsage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> extendedKeyUsageBuilder_; + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> + extendedKeyUsageBuilder_; /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return Whether the extendedKeyUsage field is set. */ public boolean hasExtendedKeyUsage() { return extendedKeyUsageBuilder_ != null || extendedKeyUsage_ != null; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return The extendedKeyUsage. */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + getExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { - return extendedKeyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; + return extendedKeyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance() + : extendedKeyUsage_; } else { return extendedKeyUsageBuilder_.getMessage(); } } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public Builder setExtendedKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder setExtendedKeyUsage( + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3140,14 +3581,19 @@ public Builder setExtendedKeyUsage(com.google.cloud.security.privateca.v1beta1.K return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ public Builder setExtendedKeyUsage( - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder + builderForValue) { if (extendedKeyUsageBuilder_ == null) { extendedKeyUsage_ = builderForValue.build(); onChanged(); @@ -3158,17 +3604,25 @@ public Builder setExtendedKeyUsage( return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public Builder mergeExtendedKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { + public Builder mergeExtendedKeyUsage( + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions value) { if (extendedKeyUsageBuilder_ == null) { if (extendedKeyUsage_ != null) { extendedKeyUsage_ = - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.newBuilder(extendedKeyUsage_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .newBuilder(extendedKeyUsage_) + .mergeFrom(value) + .buildPartial(); } else { extendedKeyUsage_ = value; } @@ -3180,11 +3634,15 @@ public Builder mergeExtendedKeyUsage(com.google.cloud.security.privateca.v1beta1 return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ public Builder clearExtendedKeyUsage() { if (extendedKeyUsageBuilder_ == null) { @@ -3198,74 +3656,106 @@ public Builder clearExtendedKeyUsage() { return this; } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder getExtendedKeyUsageBuilder() { - + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder + getExtendedKeyUsageBuilder() { + onChanged(); return getExtendedKeyUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder + getExtendedKeyUsageOrBuilder() { if (extendedKeyUsageBuilder_ != null) { return extendedKeyUsageBuilder_.getMessageOrBuilder(); } else { - return extendedKeyUsage_ == null ? - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.getDefaultInstance() : extendedKeyUsage_; + return extendedKeyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .getDefaultInstance() + : extendedKeyUsage_; } } /** + * + * *
      * Detailed scenarios in which a key may be used.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder> getExtendedKeyUsageFieldBuilder() { if (extendedKeyUsageBuilder_ == null) { - extendedKeyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder>( - getExtendedKeyUsage(), - getParentForChildren(), - isClean()); + extendedKeyUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions, + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + .Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsage + .ExtendedKeyUsageOptionsOrBuilder>( + getExtendedKeyUsage(), getParentForChildren(), isClean()); extendedKeyUsage_ = null; } return extendedKeyUsageBuilder_; } - private java.util.List unknownExtendedKeyUsages_ = - java.util.Collections.emptyList(); + private java.util.List + unknownExtendedKeyUsages_ = java.util.Collections.emptyList(); + private void ensureUnknownExtendedKeyUsagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - unknownExtendedKeyUsages_ = new java.util.ArrayList(unknownExtendedKeyUsages_); + unknownExtendedKeyUsages_ = + new java.util.ArrayList( + unknownExtendedKeyUsages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> unknownExtendedKeyUsagesBuilder_; + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + unknownExtendedKeyUsagesBuilder_; /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public java.util.List getUnknownExtendedKeyUsagesList() { + public java.util.List + getUnknownExtendedKeyUsagesList() { if (unknownExtendedKeyUsagesBuilder_ == null) { return java.util.Collections.unmodifiableList(unknownExtendedKeyUsages_); } else { @@ -3273,12 +3763,16 @@ public java.util.List getU } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public int getUnknownExtendedKeyUsagesCount() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3288,14 +3782,19 @@ public int getUnknownExtendedKeyUsagesCount() { } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages(int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages( + int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { return unknownExtendedKeyUsages_.get(index); } else { @@ -3303,12 +3802,16 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKe } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -3325,12 +3828,16 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder setUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -3344,14 +3851,19 @@ public Builder setUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public Builder addUnknownExtendedKeyUsages(com.google.cloud.security.privateca.v1beta1.ObjectId value) { + public Builder addUnknownExtendedKeyUsages( + com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (unknownExtendedKeyUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3365,12 +3877,16 @@ public Builder addUnknownExtendedKeyUsages(com.google.cloud.security.privateca.v return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -3387,12 +3903,16 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addUnknownExtendedKeyUsages( com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -3406,12 +3926,16 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addUnknownExtendedKeyUsages( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -3425,19 +3949,22 @@ public Builder addUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder addAllUnknownExtendedKeyUsages( java.lang.Iterable values) { if (unknownExtendedKeyUsagesBuilder_ == null) { ensureUnknownExtendedKeyUsagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unknownExtendedKeyUsages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unknownExtendedKeyUsages_); onChanged(); } else { unknownExtendedKeyUsagesBuilder_.addAllMessages(values); @@ -3445,12 +3972,16 @@ public Builder addAllUnknownExtendedKeyUsages( return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder clearUnknownExtendedKeyUsages() { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3463,12 +3994,16 @@ public Builder clearUnknownExtendedKeyUsages() { return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ public Builder removeUnknownExtendedKeyUsages(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { @@ -3481,42 +4016,55 @@ public Builder removeUnknownExtendedKeyUsages(int index) { return this; } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getUnknownExtendedKeyUsagesBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder + getUnknownExtendedKeyUsagesBuilder(int index) { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder + getUnknownExtendedKeyUsagesOrBuilder(int index) { if (unknownExtendedKeyUsagesBuilder_ == null) { - return unknownExtendedKeyUsages_.get(index); } else { + return unknownExtendedKeyUsages_.get(index); + } else { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public java.util.List - getUnknownExtendedKeyUsagesOrBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesOrBuilderList() { if (unknownExtendedKeyUsagesBuilder_ != null) { return unknownExtendedKeyUsagesBuilder_.getMessageOrBuilderList(); } else { @@ -3524,48 +4072,68 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownE } } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder() { - return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder + addUnknownExtendedKeyUsagesBuilder() { + return getUnknownExtendedKeyUsagesFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addUnknownExtendedKeyUsagesBuilder( - int index) { - return getUnknownExtendedKeyUsagesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder + addUnknownExtendedKeyUsagesBuilder(int index) { + return getUnknownExtendedKeyUsagesFieldBuilder() + .addBuilder( + index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Used to describe extended key usages that are not listed in the
      * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - public java.util.List - getUnknownExtendedKeyUsagesBuilderList() { + public java.util.List + getUnknownExtendedKeyUsagesBuilderList() { return getUnknownExtendedKeyUsagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> getUnknownExtendedKeyUsagesFieldBuilder() { if (unknownExtendedKeyUsagesBuilder_ == null) { - unknownExtendedKeyUsagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( + unknownExtendedKeyUsagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( unknownExtendedKeyUsages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3574,9 +4142,9 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addUnknownEx } return unknownExtendedKeyUsagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3586,12 +4154,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.KeyUsage) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.KeyUsage) private static final com.google.cloud.security.privateca.v1beta1.KeyUsage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.KeyUsage(); } @@ -3600,16 +4168,16 @@ public static com.google.cloud.security.privateca.v1beta1.KeyUsage getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyUsage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyUsage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyUsage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyUsage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3624,6 +4192,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.KeyUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java index ada0a512..c020d95f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java @@ -1,112 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface KeyUsageOrBuilder extends +public interface KeyUsageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.KeyUsage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * + * * @return Whether the baseKeyUsage field is set. */ boolean hasBaseKeyUsage(); /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * + * * @return The baseKeyUsage. */ com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions getBaseKeyUsage(); /** + * + * *
    * Describes high-level ways in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * .google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions base_key_usage = 1; + * */ - com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder getBaseKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptionsOrBuilder + getBaseKeyUsageOrBuilder(); /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return Whether the extendedKeyUsage field is set. */ boolean hasExtendedKeyUsage(); /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * * @return The extendedKeyUsage. */ - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions getExtendedKeyUsage(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions + getExtendedKeyUsage(); /** + * + * *
    * Detailed scenarios in which a key may be used.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions extended_key_usage = 2; + * */ - com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder getExtendedKeyUsageOrBuilder(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptionsOrBuilder + getExtendedKeyUsageOrBuilder(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - java.util.List + java.util.List getUnknownExtendedKeyUsagesList(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ com.google.cloud.security.privateca.v1beta1.ObjectId getUnknownExtendedKeyUsages(int index); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ int getUnknownExtendedKeyUsagesCount(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - java.util.List + java.util.List getUnknownExtendedKeyUsagesOrBuilderList(); /** + * + * *
    * Used to describe extended key usages that are not listed in the
    * [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions] message.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId unknown_extended_key_usages = 3; + * */ - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getUnknownExtendedKeyUsagesOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder + getUnknownExtendedKeyUsagesOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java index 4eca2a1d..2a0d68ed 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest}
  */
-public final class ListCertificateAuthoritiesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateAuthoritiesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)
     ListCertificateAuthoritiesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesRequest.newBuilder() to construct.
-  private ListCertificateAuthoritiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateAuthoritiesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,16 +48,15 @@ private ListCertificateAuthoritiesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateAuthoritiesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,42 +75,46 @@ private ListCertificateAuthoritiesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pageToken_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            orderBy_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderBy_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,36 +122,44 @@ private ListCertificateAuthoritiesRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class,
+            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 @@ -138,31 +168,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -173,6 +205,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
    * include in the response.
@@ -183,6 +217,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +228,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +245,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. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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 { @@ -241,11 +279,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +295,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +328,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +344,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +375,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +387,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +416,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +435,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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) 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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other = + (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,97 +475,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest 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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + 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.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -533,38 +587,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)
       com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.class,
+              com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,19 +639,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest build() {
-      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -602,8 +662,10 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest result =
+          new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -617,46 +679,53 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)other);
+      if (other
+          instanceof
+          com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -691,11 +760,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,20 +779,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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; @@ -729,22 +805,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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 { @@ -752,67 +831,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
      * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
      * include in the response.
@@ -823,6 +917,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +925,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
      * include in the response.
@@ -840,16 +937,19 @@ 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
      * include in the response.
@@ -860,10 +960,11 @@ 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; @@ -871,19 +972,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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; @@ -892,21 +995,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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 { @@ -914,57 +1018,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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. Pagination token, returned earlier via
      * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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; @@ -972,18 +1083,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1105,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1127,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1189,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1211,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1233,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,30 +1304,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,9 +1342,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java index c81e9884..bb2a7dc3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateAuthoritiesRequestOrBuilder extends +public interface ListCertificateAuthoritiesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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
    * [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority], 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. Limit on the number of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority] to
    * include in the response.
@@ -42,69 +69,85 @@ public interface ListCertificateAuthoritiesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java index 5c138370..e500c46f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse}
  */
-public final class ListCertificateAuthoritiesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListCertificateAuthoritiesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)
     ListCertificateAuthoritiesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListCertificateAuthoritiesResponse.newBuilder() to construct.
-  private ListCertificateAuthoritiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private ListCertificateAuthoritiesResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListCertificateAuthoritiesResponse() {
     certificateAuthorities_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,16 +47,15 @@ private ListCertificateAuthoritiesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListCertificateAuthoritiesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListCertificateAuthoritiesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,37 +75,44 @@ private ListCertificateAuthoritiesResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              certificateAuthorities_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                certificateAuthorities_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1beta1.CertificateAuthority>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              certificateAuthorities_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(),
+                      extensionRegistry));
+              break;
             }
-            certificateAuthorities_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              unreachable_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              nextPageToken_ = s;
+              break;
             }
-            unreachable_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                unreachable_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              unreachable_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,8 +120,7 @@ private ListCertificateAuthoritiesResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         certificateAuthorities_ = java.util.Collections.unmodifiableList(certificateAuthorities_);
@@ -108,82 +132,112 @@ private ListCertificateAuthoritiesResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class,
+            com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder
+                .class);
   }
 
   public static final int CERTIFICATE_AUTHORITIES_FIELD_NUMBER = 1;
-  private java.util.List certificateAuthorities_;
+  private java.util.List
+      certificateAuthorities_;
   /**
+   *
+   *
    * 
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public java.util.List getCertificateAuthoritiesList() { + public java.util.List + getCertificateAuthoritiesList() { return certificateAuthorities_; } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesOrBuilderList() { return certificateAuthorities_; } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override public int getCertificateAuthoritiesCount() { return certificateAuthorities_.size(); } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities( + int index) { return certificateAuthorities_.get(index); } /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthoritiesOrBuilder(int index) { return certificateAuthorities_.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
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -191,6 +245,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +254,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -214,16 +270,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +289,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +332,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +360,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificateAuthorities_.size(); i++) { output.writeMessage(1, certificateAuthorities_.get(i)); } @@ -315,8 +380,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateAuthorities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificateAuthorities_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, certificateAuthorities_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +403,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.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other = + (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) obj; - if (!getCertificateAuthoritiesList() - .equals(other.getCertificateAuthoritiesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificateAuthoritiesList().equals(other.getCertificateAuthoritiesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,137 +443,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse 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.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + 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.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.class, + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCertificateAuthoritiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,19 +610,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse build() { - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -544,8 +633,10 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRes } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(this); + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + buildPartial() { + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse result = + new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(this); int from_bitField0_ = bitField0_; if (certificateAuthoritiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -570,46 +661,53 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRes public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other) { - if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + .getDefaultInstance()) return this; if (certificateAuthoritiesBuilder_ == null) { if (!other.certificateAuthorities_.isEmpty()) { if (certificateAuthorities_.isEmpty()) { @@ -628,9 +726,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertifi certificateAuthoritiesBuilder_ = null; certificateAuthorities_ = other.certificateAuthorities_; bitField0_ = (bitField0_ & ~0x00000001); - certificateAuthoritiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCertificateAuthoritiesFieldBuilder() : null; + certificateAuthoritiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificateAuthoritiesFieldBuilder() + : null; } else { certificateAuthoritiesBuilder_.addAllMessages(other.certificateAuthorities_); } @@ -665,11 +764,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,28 +780,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List certificateAuthorities_ = - java.util.Collections.emptyList(); + private java.util.List + certificateAuthorities_ = java.util.Collections.emptyList(); + private void ensureCertificateAuthoritiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificateAuthorities_ = new java.util.ArrayList(certificateAuthorities_); + certificateAuthorities_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority>( + certificateAuthorities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> certificateAuthoritiesBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + certificateAuthoritiesBuilder_; /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public java.util.List getCertificateAuthoritiesList() { + public java.util.List + getCertificateAuthoritiesList() { if (certificateAuthoritiesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateAuthorities_); } else { @@ -707,11 +822,15 @@ public java.util.List * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority]. *
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public int getCertificateAuthoritiesCount() { if (certificateAuthoritiesBuilder_ == null) { @@ -721,13 +840,18 @@ public int getCertificateAuthoritiesCount() { } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { return certificateAuthorities_.get(index); } else { @@ -735,11 +859,15 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCerti } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder setCertificateAuthorities( int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { @@ -756,14 +884,19 @@ public Builder setCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder setCertificateAuthorities( - int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.set(index, builderForValue.build()); @@ -774,13 +907,18 @@ public Builder setCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public Builder addCertificateAuthorities(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder addCertificateAuthorities( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthoritiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,11 +932,15 @@ public Builder addCertificateAuthorities(com.google.cloud.security.privateca.v1b return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addCertificateAuthorities( int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { @@ -815,11 +957,15 @@ public Builder addCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addCertificateAuthorities( com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { @@ -833,14 +979,19 @@ public Builder addCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addCertificateAuthorities( - int index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); certificateAuthorities_.add(index, builderForValue.build()); @@ -851,18 +1002,23 @@ public Builder addCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder addAllCertificateAuthorities( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthority> + values) { if (certificateAuthoritiesBuilder_ == null) { ensureCertificateAuthoritiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificateAuthorities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateAuthorities_); onChanged(); } else { certificateAuthoritiesBuilder_.addAllMessages(values); @@ -870,11 +1026,15 @@ public Builder addAllCertificateAuthorities( return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder clearCertificateAuthorities() { if (certificateAuthoritiesBuilder_ == null) { @@ -887,11 +1047,15 @@ public Builder clearCertificateAuthorities() { return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ public Builder removeCertificateAuthorities(int index) { if (certificateAuthoritiesBuilder_ == null) { @@ -904,39 +1068,53 @@ public Builder removeCertificateAuthorities(int index) { return this; } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder getCertificateAuthoritiesBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder + getCertificateAuthoritiesBuilder(int index) { return getCertificateAuthoritiesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthoritiesOrBuilder(int index) { if (certificateAuthoritiesBuilder_ == null) { - return certificateAuthorities_.get(index); } else { + return certificateAuthorities_.get(index); + } else { return certificateAuthoritiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public java.util.List - getCertificateAuthoritiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + getCertificateAuthoritiesOrBuilderList() { if (certificateAuthoritiesBuilder_ != null) { return certificateAuthoritiesBuilder_.getMessageOrBuilderList(); } else { @@ -944,45 +1122,69 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder } } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder() { - return getCertificateAuthoritiesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder + addCertificateAuthoritiesBuilder() { + return getCertificateAuthoritiesFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .getDefaultInstance()); } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder addCertificateAuthoritiesBuilder( - int index) { - return getCertificateAuthoritiesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder + addCertificateAuthoritiesBuilder(int index) { + return getCertificateAuthoritiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority + .getDefaultInstance()); } /** + * + * *
      * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - public java.util.List - getCertificateAuthoritiesBuilderList() { + public java.util.List + getCertificateAuthoritiesBuilderList() { return getCertificateAuthoritiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesFieldBuilder() { if (certificateAuthoritiesBuilder_ == null) { - certificateAuthoritiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( + certificateAuthoritiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( certificateAuthorities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,6 +1196,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1001,13 +1205,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1220,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1023,15 +1229,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1244,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1046,20 +1253,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1067,15 +1276,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -1083,57 +1295,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1363,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1456,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,30 +1489,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .ListCertificateAuthoritiesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateAuthoritiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateAuthoritiesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateAuthoritiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateAuthoritiesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,9 +1528,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java index 6106367e..21eb6564 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateAuthoritiesResponseOrBuilder.java @@ -1,57 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateAuthoritiesResponseOrBuilder extends +public interface ListCertificateAuthoritiesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - java.util.List + java.util.List getCertificateAuthoritiesList(); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities(int index); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthorities( + int index); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ int getCertificateAuthoritiesCount(); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthoritiesOrBuilderList(); /** + * + * *
    * The list of [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authorities = 1; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthoritiesOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthoritiesOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -59,10 +99,13 @@ com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCer
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
@@ -70,49 +113,59 @@ com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCer
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java index f5902396..d1e1d1f5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequest.java @@ -1,25 +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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
  * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} */ -public final class ListCertificateRevocationListsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCertificateRevocationListsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) ListCertificateRevocationListsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCertificateRevocationListsRequest.newBuilder() to construct. - private ListCertificateRevocationListsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListCertificateRevocationListsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCertificateRevocationListsRequest() { parent_ = ""; pageToken_ = ""; @@ -29,16 +50,15 @@ private ListCertificateRevocationListsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCertificateRevocationListsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCertificateRevocationListsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,42 +77,46 @@ private ListCertificateRevocationListsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,36 +124,44 @@ private ListCertificateRevocationListsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + .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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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 @@ -138,31 +170,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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 { @@ -173,6 +207,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -183,6 +219,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +230,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +247,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. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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 { @@ -241,11 +281,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +297,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +330,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +346,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +377,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +389,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +418,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +437,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.security.privateca.v1beta1.ListCertificateRevocationListsRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest other = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) 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.security.privateca.v1beta1.ListCertificateRevocationListsRequest other = + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,136 +478,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest 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.security.privateca.v1beta1.ListCertificateRevocationListsRequest + 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.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + .class, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -582,19 +644,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest build() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + build() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -602,8 +668,11 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationList } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest(this); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest result = + new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest( + this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -617,46 +686,54 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationList public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -691,11 +768,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -707,20 +787,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * string parent = 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; @@ -729,22 +813,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * string parent = 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 { @@ -752,67 +839,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * string 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
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * 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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -823,6 +925,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +933,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -840,16 +945,19 @@ 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. Limit on the number of
      * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -860,10 +968,11 @@ 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; @@ -871,19 +980,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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; @@ -892,21 +1003,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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 { @@ -914,57 +1026,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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. Pagination token, returned earlier via
      * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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; @@ -972,18 +1091,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1113,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1135,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1197,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1219,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1241,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,30 +1312,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,9 +1351,8 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java index 1424667d..a378a19e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateRevocationListsRequestOrBuilder extends +public interface ListCertificateRevocationListsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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. Limit on the number of
    * [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to include in the
@@ -42,69 +69,85 @@ public interface ListCertificateRevocationListsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificateRevocationListsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java index 6a742276..4ca43739 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponse.java @@ -1,25 +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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
  * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} */ -public final class ListCertificateRevocationListsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCertificateRevocationListsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) ListCertificateRevocationListsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCertificateRevocationListsResponse.newBuilder() to construct. - private ListCertificateRevocationListsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListCertificateRevocationListsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCertificateRevocationListsResponse() { certificateRevocationLists_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -28,16 +49,15 @@ private ListCertificateRevocationListsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCertificateRevocationListsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCertificateRevocationListsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,37 +77,45 @@ private ListCertificateRevocationListsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificateRevocationLists_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>(); + mutable_bitField0_ |= 0x00000001; + } + certificateRevocationLists_.add( + input.readMessage( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .parser(), + extensionRegistry)); + break; } - certificateRevocationLists_.add( - input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,11 +123,11 @@ private ListCertificateRevocationListsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_); + certificateRevocationLists_ = + java.util.Collections.unmodifiableList(certificateRevocationLists_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { unreachable_ = unreachable_.getUnmodifiableView(); @@ -108,82 +136,113 @@ private ListCertificateRevocationListsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + .class, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + .Builder.class); } public static final int CERTIFICATE_REVOCATION_LISTS_FIELD_NUMBER = 1; - private java.util.List certificateRevocationLists_; + private java.util.List + certificateRevocationLists_; /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public java.util.List getCertificateRevocationListsList() { + public java.util.List + getCertificateRevocationListsList() { return certificateRevocationLists_; } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> getCertificateRevocationListsOrBuilderList() { return certificateRevocationLists_; } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override public int getCertificateRevocationListsCount() { return certificateRevocationLists_.size(); } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationLists(int index) { return certificateRevocationLists_.get(index); } /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder + getCertificateRevocationListsOrBuilder(int index) { return certificateRevocationLists_.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
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -191,6 +250,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBu
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +259,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -214,16 +275,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +294,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +337,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +365,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificateRevocationLists_.size(); i++) { output.writeMessage(1, certificateRevocationLists_.get(i)); } @@ -315,8 +385,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateRevocationLists_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificateRevocationLists_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, certificateRevocationLists_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +408,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.security.privateca.v1beta1.ListCertificateRevocationListsResponse)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other = + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) obj; - if (!getCertificateRevocationListsList() - .equals(other.getCertificateRevocationListsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificateRevocationListsList().equals(other.getCertificateRevocationListsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,137 +448,158 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse 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.security.privateca.v1beta1.ListCertificateRevocationListsResponse + 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.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListCertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + .class, + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCertificateRevocationListsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,19 +617,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse build() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + build() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -544,12 +641,16 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationList } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse(this); + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + buildPartial() { + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse result = + new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse( + this); int from_bitField0_ = bitField0_; if (certificateRevocationListsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = java.util.Collections.unmodifiableList(certificateRevocationLists_); + certificateRevocationLists_ = + java.util.Collections.unmodifiableList(certificateRevocationLists_); bitField0_ = (bitField0_ & ~0x00000001); } result.certificateRevocationLists_ = certificateRevocationLists_; @@ -570,46 +671,54 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationList public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other) { - if (other == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + .getDefaultInstance()) return this; if (certificateRevocationListsBuilder_ == null) { if (!other.certificateRevocationLists_.isEmpty()) { if (certificateRevocationLists_.isEmpty()) { @@ -628,9 +737,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertifi certificateRevocationListsBuilder_ = null; certificateRevocationLists_ = other.certificateRevocationLists_; bitField0_ = (bitField0_ & ~0x00000001); - certificateRevocationListsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCertificateRevocationListsFieldBuilder() : null; + certificateRevocationListsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificateRevocationListsFieldBuilder() + : null; } else { certificateRevocationListsBuilder_.addAllMessages(other.certificateRevocationLists_); } @@ -665,11 +775,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,28 +791,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List certificateRevocationLists_ = - java.util.Collections.emptyList(); + private java.util.List + certificateRevocationLists_ = java.util.Collections.emptyList(); + private void ensureCertificateRevocationListsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificateRevocationLists_ = new java.util.ArrayList(certificateRevocationLists_); + certificateRevocationLists_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList>( + certificateRevocationLists_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> certificateRevocationListsBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + certificateRevocationListsBuilder_; /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public java.util.List getCertificateRevocationListsList() { + public java.util.List + getCertificateRevocationListsList() { if (certificateRevocationListsBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateRevocationLists_); } else { @@ -707,11 +833,15 @@ public java.util.List * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList]. *
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public int getCertificateRevocationListsCount() { if (certificateRevocationListsBuilder_ == null) { @@ -721,13 +851,18 @@ public int getCertificateRevocationListsCount() { } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationLists(int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { return certificateRevocationLists_.get(index); } else { @@ -735,11 +870,15 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList get } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder setCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { @@ -756,14 +895,20 @@ public Builder setCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder setCertificateRevocationLists( - int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.set(index, builderForValue.build()); @@ -774,13 +919,18 @@ public Builder setCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public Builder addCertificateRevocationLists(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { + public Builder addCertificateRevocationLists( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { if (certificateRevocationListsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,11 +944,15 @@ public Builder addCertificateRevocationLists(com.google.cloud.security.privateca return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addCertificateRevocationLists( int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { @@ -815,14 +969,19 @@ public Builder addCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addCertificateRevocationLists( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.add(builderForValue.build()); @@ -833,14 +992,20 @@ public Builder addCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addCertificateRevocationLists( - int index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + builderForValue) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); certificateRevocationLists_.add(index, builderForValue.build()); @@ -851,18 +1016,23 @@ public Builder addCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder addAllCertificateRevocationLists( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateRevocationList> + values) { if (certificateRevocationListsBuilder_ == null) { ensureCertificateRevocationListsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificateRevocationLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateRevocationLists_); onChanged(); } else { certificateRevocationListsBuilder_.addAllMessages(values); @@ -870,11 +1040,15 @@ public Builder addAllCertificateRevocationLists( return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder clearCertificateRevocationLists() { if (certificateRevocationListsBuilder_ == null) { @@ -887,11 +1061,15 @@ public Builder clearCertificateRevocationLists() { return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ public Builder removeCertificateRevocationLists(int index) { if (certificateRevocationListsBuilder_ == null) { @@ -904,39 +1082,54 @@ public Builder removeCertificateRevocationLists(int index) { return this; } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder getCertificateRevocationListsBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + getCertificateRevocationListsBuilder(int index) { return getCertificateRevocationListsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder + getCertificateRevocationListsOrBuilder(int index) { if (certificateRevocationListsBuilder_ == null) { - return certificateRevocationLists_.get(index); } else { + return certificateRevocationLists_.get(index); + } else { return certificateRevocationListsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public java.util.List - getCertificateRevocationListsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + getCertificateRevocationListsOrBuilderList() { if (certificateRevocationListsBuilder_ != null) { return certificateRevocationListsBuilder_.getMessageOrBuilderList(); } else { @@ -944,45 +1137,70 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBu } } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder() { - return getCertificateRevocationListsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + addCertificateRevocationListsBuilder() { + return getCertificateRevocationListsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .getDefaultInstance()); } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder addCertificateRevocationListsBuilder( - int index) { - return getCertificateRevocationListsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + addCertificateRevocationListsBuilder(int index) { + return getCertificateRevocationListsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .getDefaultInstance()); } /** + * + * *
      * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - public java.util.List - getCertificateRevocationListsBuilderList() { + public java.util.List< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder> + getCertificateRevocationListsBuilderList() { return getCertificateRevocationListsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> getCertificateRevocationListsFieldBuilder() { if (certificateRevocationListsBuilder_ == null) { - certificateRevocationListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( + certificateRevocationListsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( certificateRevocationLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,6 +1212,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Bui private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1001,13 +1221,13 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Bui
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1236,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1023,15 +1245,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1260,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1046,20 +1269,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1067,15 +1292,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -1083,57 +1311,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1379,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1472,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,30 +1505,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .ListCertificateRevocationListsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateRevocationListsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateRevocationListsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateRevocationListsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificateRevocationListsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,9 +1544,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java index 3dcf680c..b9f5b669 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificateRevocationListsResponseOrBuilder.java @@ -1,57 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificateRevocationListsResponseOrBuilder extends +public interface ListCertificateRevocationListsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - java.util.List + java.util.List getCertificateRevocationListsList(); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationLists(int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationLists(int index); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ int getCertificateRevocationListsCount(); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> getCertificateRevocationListsOrBuilderList(); /** + * + * *
    * The list of [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * + * repeated .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_lists = 1; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListsOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder + getCertificateRevocationListsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -59,10 +99,13 @@ com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder g
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificateRevocationListsRequest.next_page_token][] to retrieve the
@@ -70,49 +113,59 @@ com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder g
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java index 30744272..f90c2cbc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesRequest} */ -public final class ListCertificatesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCertificatesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) ListCertificatesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCertificatesRequest.newBuilder() to construct. private ListCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCertificatesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListCertificatesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCertificatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCertificatesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListCertificatesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +120,43 @@ private ListCertificatesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.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
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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 @@ -137,31 +165,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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 { @@ -172,6 +202,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -182,6 +214,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -192,12 +225,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -206,30 +242,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. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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 { @@ -240,6 +276,8 @@ public java.lang.String getPageToken() { 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -247,6 +285,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -255,14 +294,15 @@ 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -270,16 +310,15 @@ 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 { @@ -290,6 +329,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -297,6 +338,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -305,14 +347,15 @@ 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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -320,16 +363,15 @@ 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 { @@ -338,6 +380,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +392,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -379,8 +421,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -399,23 +440,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.security.privateca.v1beta1.ListCertificatesRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest other = (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) 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.security.privateca.v1beta1.ListCertificatesRequest other = + (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -443,134 +480,145 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest 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.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest 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.security.privateca.v1beta1.ListCertificatesRequest + 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.security.privateca.v1beta1.ListCertificatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) com.google.cloud.security.privateca.v1beta1.ListCertificatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.class, + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -588,14 +636,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + .getDefaultInstance(); } @java.lang.Override @@ -609,7 +659,8 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest build @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest result = new com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest(this); + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest result = + new com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -623,46 +674,51 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest)other); + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -701,7 +757,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -713,20 +771,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -735,22 +797,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * string parent = 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 { @@ -758,67 +823,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * 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
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * string 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
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
      * `projects/*/locations/*/certificateauthorities/*`.
      * 
* - * 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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -829,6 +909,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -836,6 +917,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -846,16 +929,19 @@ 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. Limit on the number of
      * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -866,10 +952,11 @@ 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; @@ -877,19 +964,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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; @@ -898,21 +987,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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 { @@ -920,57 +1010,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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. Pagination token, returned earlier via
      * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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; @@ -978,6 +1075,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -985,13 +1084,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; @@ -1000,6 +1099,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1007,15 +1108,14 @@ 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 { @@ -1023,6 +1123,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response. For details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1030,20 +1132,22 @@ public java.lang.String getFilter() {
      * 
* * 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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1051,15 +1155,18 @@ public Builder setFilter(
      * 
* * 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 details
      * on supported filters and syntax, see [Certificates Filtering
@@ -1067,16 +1174,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; @@ -1084,6 +1191,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1091,13 +1200,13 @@ public Builder setFilterBytes(
      * 
* * 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; @@ -1106,6 +1215,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1113,15 +1224,14 @@ 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 { @@ -1129,6 +1239,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1136,20 +1248,22 @@ public java.lang.String getOrderBy() {
      * 
* * 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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1157,15 +1271,18 @@ public Builder setOrderBy(
      * 
* * 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. For details on supported fields
      * and syntax, see [Certificates Sorting
@@ -1173,23 +1290,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); } @@ -1199,30 +1316,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1234,9 +1353,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificatesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java index 224e72d0..0f0c7eb1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificatesRequestOrBuilder extends +public interface ListCertificatesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificatesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format
    * `projects/*/locations/*/certificateauthorities/*`.
    * 
* - * string parent = 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. Limit on the number of
    * [Certificates][google.cloud.security.privateca.v1beta1.Certificate] to include in the
@@ -42,33 +69,41 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListCertificatesResponse.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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -76,10 +111,13 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * 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 details
    * on supported filters and syntax, see [Certificates Filtering
@@ -87,12 +125,14 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * 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. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -100,10 +140,13 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted. For details on supported fields
    * and syntax, see [Certificates Sorting
@@ -111,8 +154,8 @@ public interface ListCertificatesRequestOrBuilder extends
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java index 603e62e0..87e58a1d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Response message for [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesResponse} */ -public final class ListCertificatesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCertificatesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) ListCertificatesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCertificatesResponse.newBuilder() to construct. private ListCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCertificatesResponse() { certificates_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListCertificatesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCertificatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCertificatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,44 @@ private ListCertificatesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + certificates_ = + new java.util.ArrayList< + com.google.cloud.security.privateca.v1beta1.Certificate>(); + mutable_bitField0_ |= 0x00000001; + } + certificates_.add( + input.readMessage( + com.google.cloud.security.privateca.v1beta1.Certificate.parser(), + extensionRegistry)); + break; } - certificates_.add( - input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +118,7 @@ private ListCertificatesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); @@ -107,22 +130,27 @@ private ListCertificatesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private java.util.List certificates_; /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -130,10 +158,13 @@ private ListCertificatesResponse( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List getCertificatesList() { + public java.util.List + getCertificatesList() { return certificates_; } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -141,11 +172,13 @@ public java.util.List g * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -157,6 +190,8 @@ public int getCertificatesCount() { return certificates_.size(); } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificates(i return certificates_.get(index); } /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -183,6 +220,8 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti 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
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -190,6 +229,7 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -198,14 +238,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -213,16 +254,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -233,34 +273,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -268,20 +316,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } @@ -314,8 +364,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, certificates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -336,19 +385,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other = (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other = + (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) obj; - if (!getCertificatesList() - .equals(other.getCertificatesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getCertificatesList().equals(other.getCertificatesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,135 +423,147 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse 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.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse 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.security.privateca.v1beta1.ListCertificatesResponse + 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.security.privateca.v1beta1.ListCertificatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListCertificatesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) com.google.cloud.security.privateca.v1beta1.ListCertificatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.class, + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,14 +581,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + .getDefaultInstance(); } @java.lang.Override @@ -543,7 +604,8 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse buil @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse buildPartial() { - com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse result = new com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse(this); + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse result = + new com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse(this); int from_bitField0_ = bitField0_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -568,46 +630,51 @@ public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse)other); + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other) { - if (other == com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + .getDefaultInstance()) return this; if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { @@ -626,9 +693,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListCertifi certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); - certificatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCertificatesFieldBuilder() : null; + certificatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificatesFieldBuilder() + : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } @@ -667,7 +735,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,28 +746,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List certificates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificates_ = new java.util.ArrayList(certificates_); + certificates_ = + new java.util.ArrayList( + certificates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> certificatesBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + certificatesBuilder_; /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public java.util.List getCertificatesList() { + public java.util.List + getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { @@ -705,6 +785,8 @@ public java.util.List g } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -719,6 +801,8 @@ public int getCertificatesCount() { } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -733,6 +817,8 @@ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificates(i } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -754,6 +840,8 @@ public Builder setCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -761,7 +849,8 @@ public Builder setCertificates( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ public Builder setCertificates( - int index, com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.set(index, builderForValue.build()); @@ -772,6 +861,8 @@ public Builder setCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -792,6 +883,8 @@ public Builder addCertificates(com.google.cloud.security.privateca.v1beta1.Certi return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -813,6 +906,8 @@ public Builder addCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -831,6 +926,8 @@ public Builder addCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -838,7 +935,8 @@ public Builder addCertificates( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ public Builder addCertificates( - int index, com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(index, builderForValue.build()); @@ -849,6 +947,8 @@ public Builder addCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -856,11 +956,11 @@ public Builder addCertificates( * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ public Builder addAllCertificates( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, certificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); @@ -868,6 +968,8 @@ public Builder addAllCertificates( return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -885,6 +987,8 @@ public Builder clearCertificates() { return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -902,6 +1006,8 @@ public Builder removeCertificates(int index) { return this; } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -913,28 +1019,34 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertif return getCertificatesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificatesOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder + getCertificatesOrBuilder(int index) { if (certificatesBuilder_ == null) { - return certificates_.get(index); } else { + return certificates_.get(index); + } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public java.util.List - getCertificatesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { @@ -942,17 +1054,22 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti } } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertificatesBuilder() { - return getCertificatesFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.Certificate.Builder + addCertificatesBuilder() { + return getCertificatesFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
@@ -961,30 +1078,36 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertif */ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertificatesBuilder( int index) { - return getCertificatesFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder() + .addBuilder( + index, com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance()); } /** + * + * *
      * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
      * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - public java.util.List - getCertificatesBuilderList() { + public java.util.List + getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { - certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( - certificates_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + certificatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( + certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; } return certificatesBuilder_; @@ -992,6 +1115,8 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertif private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -999,13 +1124,13 @@ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder addCertif
      * 
* * 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; @@ -1014,6 +1139,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1021,15 +1148,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1037,6 +1163,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1044,20 +1172,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1065,15 +1195,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -1081,57 +1214,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1139,80 +1282,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1222,28 +1375,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1253,30 +1408,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) - private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificatesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCertificatesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1288,9 +1445,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListCertificatesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java index 3673ce7d..e43dae2a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListCertificatesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListCertificatesResponseOrBuilder extends +public interface ListCertificatesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListCertificatesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - java.util.List - getCertificatesList(); + java.util.List getCertificatesList(); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -25,6 +44,8 @@ public interface ListCertificatesResponseOrBuilder extends */ com.google.cloud.security.privateca.v1beta1.Certificate getCertificates(int index); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -33,15 +54,19 @@ public interface ListCertificatesResponseOrBuilder extends */ int getCertificatesCount(); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
* * repeated .google.cloud.security.privateca.v1beta1.Certificate certificates = 1; */ - java.util.List + java.util.List getCertificatesOrBuilderList(); /** + * + * *
    * The list of [Certificates][google.cloud.security.privateca.v1beta1.Certificate].
    * 
@@ -52,6 +77,8 @@ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificates int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -59,10 +86,13 @@ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificates
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListCertificatesRequest.next_page_token][] to retrieve the
@@ -70,49 +100,59 @@ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificates
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java index f45008f8..c0ae2a06 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest}
  */
-public final class ListReusableConfigsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListReusableConfigsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)
     ListReusableConfigsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListReusableConfigsRequest.newBuilder() to construct.
   private ListReusableConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListReusableConfigsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,16 +47,15 @@ private ListReusableConfigsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListReusableConfigsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListReusableConfigsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,42 +74,46 @@ private ListReusableConfigsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pageToken_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            orderBy_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderBy_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,36 +121,43 @@ private ListReusableConfigsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class,
+            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.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
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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 @@ -138,31 +166,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the location associated with the
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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 { @@ -173,6 +203,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Limit on the number of
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -183,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -193,12 +226,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,30 +243,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. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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 { @@ -241,11 +277,14 @@ public java.lang.String getPageToken() { 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.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -254,29 +293,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Only include resources that match the filter in the response.
    * 
* * 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 { @@ -287,11 +326,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -300,29 +342,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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 { @@ -331,6 +373,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +385,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -372,8 +414,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -392,23 +433,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.security.privateca.v1beta1.ListReusableConfigsRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest other = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) 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.security.privateca.v1beta1.ListReusableConfigsRequest other = + (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,96 +473,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest 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.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest 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.security.privateca.v1beta1.ListReusableConfigsRequest + 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.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -533,38 +579,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)
       com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.class,
+              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -582,19 +630,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest build() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -603,7 +654,8 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest bu
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest(this);
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest result =
+          new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -617,46 +669,51 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest bu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -695,7 +752,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,20 +766,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name of the location associated with the
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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; @@ -729,22 +792,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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 { @@ -752,67 +818,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the location associated with the
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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. Limit on the number of
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -823,6 +904,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +912,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Limit on the number of
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -840,16 +924,19 @@ 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. Limit on the number of
      * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -860,10 +947,11 @@ 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; @@ -871,19 +959,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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; @@ -892,21 +982,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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 { @@ -914,57 +1005,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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. Pagination token, returned earlier via
      * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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; @@ -972,18 +1070,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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; @@ -992,20 +1092,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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 { @@ -1013,54 +1114,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only include resources that match the filter in the response.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -1068,18 +1176,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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; @@ -1088,20 +1198,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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 { @@ -1109,61 +1220,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Specify how the results should be sorted.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1173,30 +1291,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) - private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReusableConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReusableConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReusableConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReusableConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,9 +1328,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java index 238ad3ed..a2865dd6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListReusableConfigsRequestOrBuilder extends +public interface ListReusableConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the location associated with the
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig], 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. Limit on the number of
    * [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig] to include in the response.
@@ -42,69 +69,85 @@ public interface ListReusableConfigsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.next_page_token].
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Pagination token, returned earlier via
    * [ListReusableConfigsResponse.next_page_token][google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.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.
    * 
* * 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.
    * 
* * 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.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Specify how the results should be sorted.
    * 
* * 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/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java index 47bc8183..1c908faa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Response message for
  * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse}
  */
-public final class ListReusableConfigsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListReusableConfigsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)
     ListReusableConfigsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListReusableConfigsResponse.newBuilder() to construct.
   private ListReusableConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListReusableConfigsResponse() {
     reusableConfigs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,16 +46,15 @@ private ListReusableConfigsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListReusableConfigsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListReusableConfigsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,37 +74,44 @@ private ListReusableConfigsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              reusableConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                reusableConfigs_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1beta1.ReusableConfig>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              reusableConfigs_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ReusableConfig.parser(),
+                      extensionRegistry));
+              break;
             }
-            reusableConfigs_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfig.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              unreachable_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              nextPageToken_ = s;
+              break;
             }
-            unreachable_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                unreachable_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              unreachable_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,8 +119,7 @@ private ListReusableConfigsResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         reusableConfigs_ = java.util.Collections.unmodifiableList(reusableConfigs_);
@@ -108,82 +131,105 @@ private ListReusableConfigsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class,
+            com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder.class);
   }
 
   public static final int REUSABLE_CONFIGS_FIELD_NUMBER = 1;
-  private java.util.List reusableConfigs_;
+  private java.util.List
+      reusableConfigs_;
   /**
+   *
+   *
    * 
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ @java.lang.Override - public java.util.List getReusableConfigsList() { + public java.util.List + getReusableConfigsList() { return reusableConfigs_; } /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> getReusableConfigsOrBuilderList() { return reusableConfigs_; } /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ @java.lang.Override public int getReusableConfigsCount() { return reusableConfigs_.size(); } /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs(int index) { return reusableConfigs_.get(index); } /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder + getReusableConfigsOrBuilder(int index) { return reusableConfigs_.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
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -191,6 +237,7 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getRe
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +246,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -214,16 +262,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -234,34 +281,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,20 +324,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +352,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < reusableConfigs_.size(); i++) { output.writeMessage(1, reusableConfigs_.get(i)); } @@ -315,8 +372,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < reusableConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, reusableConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reusableConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -337,19 +393,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.security.privateca.v1beta1.ListReusableConfigsResponse)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) obj; + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other = + (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) obj; - if (!getReusableConfigsList() - .equals(other.getReusableConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getReusableConfigsList().equals(other.getReusableConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,96 +431,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse 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.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse 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.security.privateca.v1beta1.ListReusableConfigsResponse + 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.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
@@ -474,39 +537,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)
       com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class, com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.class,
+              com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getReusableConfigsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,19 +591,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse build() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result = buildPartial();
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -545,7 +615,8 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse b
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(this);
+      com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse result =
+          new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(this);
       int from_bitField0_ = bitField0_;
       if (reusableConfigsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -570,46 +641,52 @@ public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse b
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)other);
+      if (other
+          instanceof com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse
+              .getDefaultInstance()) return this;
       if (reusableConfigsBuilder_ == null) {
         if (!other.reusableConfigs_.isEmpty()) {
           if (reusableConfigs_.isEmpty()) {
@@ -628,9 +705,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ListReusabl
             reusableConfigsBuilder_ = null;
             reusableConfigs_ = other.reusableConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            reusableConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReusableConfigsFieldBuilder() : null;
+            reusableConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReusableConfigsFieldBuilder()
+                    : null;
           } else {
             reusableConfigsBuilder_.addAllMessages(other.reusableConfigs_);
           }
@@ -669,7 +747,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -678,28 +758,39 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List reusableConfigs_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        reusableConfigs_ = java.util.Collections.emptyList();
+
     private void ensureReusableConfigsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        reusableConfigs_ = new java.util.ArrayList(reusableConfigs_);
+        reusableConfigs_ =
+            new java.util.ArrayList(
+                reusableConfigs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.ReusableConfig, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> reusableConfigsBuilder_;
+            com.google.cloud.security.privateca.v1beta1.ReusableConfig,
+            com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder,
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>
+        reusableConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public java.util.List getReusableConfigsList() { + public java.util.List + getReusableConfigsList() { if (reusableConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(reusableConfigs_); } else { @@ -707,11 +798,14 @@ public java.util.List * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig]. *
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public int getReusableConfigsCount() { if (reusableConfigsBuilder_ == null) { @@ -721,13 +815,17 @@ public int getReusableConfigsCount() { } } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs(int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs( + int index) { if (reusableConfigsBuilder_ == null) { return reusableConfigs_.get(index); } else { @@ -735,11 +833,14 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableCon } } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder setReusableConfigs( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { @@ -756,14 +857,18 @@ public Builder setReusableConfigs( return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder setReusableConfigs( - int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { if (reusableConfigsBuilder_ == null) { ensureReusableConfigsIsMutable(); reusableConfigs_.set(index, builderForValue.build()); @@ -774,13 +879,17 @@ public Builder setReusableConfigs( return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public Builder addReusableConfigs(com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { + public Builder addReusableConfigs( + com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { if (reusableConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,11 +903,14 @@ public Builder addReusableConfigs(com.google.cloud.security.privateca.v1beta1.Re return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder addReusableConfigs( int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig value) { @@ -815,11 +927,14 @@ public Builder addReusableConfigs( return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder addReusableConfigs( com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { @@ -833,14 +948,18 @@ public Builder addReusableConfigs( return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder addReusableConfigs( - int index, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder builderForValue) { if (reusableConfigsBuilder_ == null) { ensureReusableConfigsIsMutable(); reusableConfigs_.add(index, builderForValue.build()); @@ -851,18 +970,21 @@ public Builder addReusableConfigs( return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder addAllReusableConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (reusableConfigsBuilder_ == null) { ensureReusableConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reusableConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reusableConfigs_); onChanged(); } else { reusableConfigsBuilder_.addAllMessages(values); @@ -870,11 +992,14 @@ public Builder addAllReusableConfigs( return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder clearReusableConfigs() { if (reusableConfigsBuilder_ == null) { @@ -887,11 +1012,14 @@ public Builder clearReusableConfigs() { return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ public Builder removeReusableConfigs(int index) { if (reusableConfigsBuilder_ == null) { @@ -904,39 +1032,50 @@ public Builder removeReusableConfigs(int index) { return this; } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder getReusableConfigsBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder + getReusableConfigsBuilder(int index) { return getReusableConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder + getReusableConfigsOrBuilder(int index) { if (reusableConfigsBuilder_ == null) { - return reusableConfigs_.get(index); } else { + return reusableConfigs_.get(index); + } else { return reusableConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public java.util.List - getReusableConfigsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> + getReusableConfigsOrBuilderList() { if (reusableConfigsBuilder_ != null) { return reusableConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -944,45 +1083,64 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getRe } } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder addReusableConfigsBuilder() { - return getReusableConfigsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder + addReusableConfigsBuilder() { + return getReusableConfigsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder addReusableConfigsBuilder( - int index) { - return getReusableConfigsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder + addReusableConfigsBuilder(int index) { + return getReusableConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()); } /** + * + * *
      * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - public java.util.List - getReusableConfigsBuilderList() { + public java.util.List + getReusableConfigsBuilderList() { return getReusableConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfig, + com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder> getReusableConfigsFieldBuilder() { if (reusableConfigsBuilder_ == null) { - reusableConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfig, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>( + reusableConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfig, + com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder>( reusableConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -994,6 +1152,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder addReu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1001,13 +1161,13 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder addReu
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1016,6 +1176,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1023,15 +1185,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1039,6 +1200,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1046,20 +1209,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1067,15 +1232,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve next page of results. Pass this value in
      * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -1083,57 +1251,67 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1141,80 +1319,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1224,28 +1412,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * A list of locations (e.g. "us-west1") that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,30 +1445,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) - private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse(); } - public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReusableConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReusableConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReusableConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListReusableConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,9 +1483,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java index 9d0d5cd0..db4abc61 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ListReusableConfigsResponseOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ListReusableConfigsResponseOrBuilder extends +public interface ListReusableConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - java.util.List + java.util.List getReusableConfigsList(); /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ com.google.cloud.security.privateca.v1beta1.ReusableConfig getReusableConfigs(int index); /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ int getReusableConfigsCount(); /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ - java.util.List + java.util.List getReusableConfigsOrBuilderList(); /** + * + * *
    * The list of [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * repeated .google.cloud.security.privateca.v1beta1.ReusableConfig reusable_configs = 1; + * */ com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableConfigsOrBuilder( int index); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -59,10 +92,13 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableC
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results. Pass this value in
    * [ListReusableConfigsRequest.next_page_token][] to retrieve
@@ -70,49 +106,59 @@ com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder getReusableC
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * A list of locations (e.g. "us-west1") that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java index 7aa1ae7c..3002b8e5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectId.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * An [ObjectId][google.cloud.security.privateca.v1beta1.ObjectId] specifies an object identifier (OID). These provide context
  * and describe types in ASN.1 messages.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ObjectId}
  */
-public final class ObjectId extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ObjectId extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ObjectId)
     ObjectIdOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ObjectId.newBuilder() to construct.
   private ObjectId(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ObjectId() {
     objectIdPath_ = emptyIntList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ObjectId();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ObjectId(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,34 +72,36 @@ private ObjectId(
           case 0:
             done = true;
             break;
-          case 8: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              objectIdPath_ = newIntList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            objectIdPath_.addInt(input.readInt32());
-            break;
-          }
-          case 10: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
-              objectIdPath_ = newIntList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            while (input.getBytesUntilLimit() > 0) {
+          case 8:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                objectIdPath_ = newIntList();
+                mutable_bitField0_ |= 0x00000001;
+              }
               objectIdPath_.addInt(input.readInt32());
+              break;
             }
-            input.popLimit(limit);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
+                objectIdPath_ = newIntList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              while (input.getBytesUntilLimit() > 0) {
+                objectIdPath_.addInt(input.readInt32());
+              }
+              input.popLimit(limit);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +109,7 @@ private ObjectId(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable(); // C
@@ -100,63 +118,76 @@ private ObjectId(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ObjectId.class, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ObjectId.class,
+            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
   }
 
   public static final int OBJECT_ID_PATH_FIELD_NUMBER = 1;
   private com.google.protobuf.Internal.IntList objectIdPath_;
   /**
+   *
+   *
    * 
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the objectIdPath. */ @java.lang.Override - public java.util.List - getObjectIdPathList() { + public java.util.List getObjectIdPathList() { return objectIdPath_; } /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } + private int objectIdPathMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getObjectIdPathList().size() > 0) { output.writeUInt32NoTag(10); @@ -190,14 +220,13 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < objectIdPath_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(objectIdPath_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(objectIdPath_.getInt(i)); } size += dataSize; if (!getObjectIdPathList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } objectIdPathMemoizedSerializedSize = dataSize; } @@ -209,15 +238,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.security.privateca.v1beta1.ObjectId)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ObjectId other = (com.google.cloud.security.privateca.v1beta1.ObjectId) obj; + com.google.cloud.security.privateca.v1beta1.ObjectId other = + (com.google.cloud.security.privateca.v1beta1.ObjectId) obj; - if (!getObjectIdPathList() - .equals(other.getObjectIdPathList())) return false; + if (!getObjectIdPathList().equals(other.getObjectIdPathList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,96 +268,103 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ObjectId 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.security.privateca.v1beta1.ObjectId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ObjectId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ObjectId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ObjectId][google.cloud.security.privateca.v1beta1.ObjectId] specifies an object identifier (OID). These provide context
    * and describe types in ASN.1 messages.
@@ -336,21 +372,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ObjectId}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ObjectId)
       com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ObjectId.class, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ObjectId.class,
+              com.google.cloud.security.privateca.v1beta1.ObjectId.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.ObjectId.newBuilder()
@@ -358,16 +396,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor;
     }
 
     @java.lang.Override
@@ -398,7 +435,8 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ObjectId buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ObjectId result = new com.google.cloud.security.privateca.v1beta1.ObjectId(this);
+      com.google.cloud.security.privateca.v1beta1.ObjectId result =
+          new com.google.cloud.security.privateca.v1beta1.ObjectId(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_.makeImmutable();
@@ -413,38 +451,39 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ObjectId) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ObjectId)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ObjectId) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -452,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ObjectId other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance())
+        return this;
       if (!other.objectIdPath_.isEmpty()) {
         if (objectIdPath_.isEmpty()) {
           objectIdPath_ = other.objectIdPath_;
@@ -482,7 +522,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ObjectId) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ObjectId) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -491,48 +532,59 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Internal.IntList objectIdPath_ = emptyIntList();
+
     private void ensureObjectIdPathIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         objectIdPath_ = mutableCopy(objectIdPath_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the objectIdPath. */ - public java.util.List - getObjectIdPathList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(objectIdPath_) : objectIdPath_; + public java.util.List getObjectIdPathList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(objectIdPath_) + : objectIdPath_; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of objectIdPath. */ public int getObjectIdPathCount() { return objectIdPath_.size(); } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ @@ -540,30 +592,35 @@ public int getObjectIdPath(int index) { return objectIdPath_.getInt(index); } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The objectIdPath to set. * @return This builder for chaining. */ - public Builder setObjectIdPath( - int index, int value) { + public Builder setObjectIdPath(int index, int value) { ensureObjectIdPathIsMutable(); objectIdPath_.setInt(index, value); onChanged(); return this; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The objectIdPath to add. * @return This builder for chaining. */ @@ -574,30 +631,34 @@ public Builder addObjectIdPath(int value) { return this; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The objectIdPath to add. * @return This builder for chaining. */ - public Builder addAllObjectIdPath( - java.lang.Iterable values) { + public Builder addAllObjectIdPath(java.lang.Iterable values) { ensureObjectIdPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectIdPath_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectIdPath_); onChanged(); return this; } /** + * + * *
      * Required. The parts of an OID path. The most significant parts of the path come
      * first.
      * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearObjectIdPath() { @@ -606,9 +667,9 @@ public Builder clearObjectIdPath() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +679,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ObjectId) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ObjectId) private static final com.google.cloud.security.privateca.v1beta1.ObjectId DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ObjectId(); } @@ -632,16 +693,16 @@ public static com.google.cloud.security.privateca.v1beta1.ObjectId getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectId parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectId(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectId(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,6 +717,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.ObjectId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java index 5d346706..a2295a8a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ObjectIdOrBuilder.java @@ -1,39 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ObjectIdOrBuilder extends +public interface ObjectIdOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ObjectId) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the objectIdPath. */ java.util.List getObjectIdPathList(); /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of objectIdPath. */ int getObjectIdPathCount(); /** + * + * *
    * Required. The parts of an OID path. The most significant parts of the path come
    * first.
    * 
* * repeated int32 object_id_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The objectIdPath at the given index. */ diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java index 61ed1b00..0544f01d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,34 +150,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, + com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -329,29 +387,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -362,6 +420,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -485,8 +547,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -499,33 +560,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.OperationMetadata other = (com.google.cloud.security.privateca.v1beta1.OperationMetadata) obj; + com.google.cloud.security.privateca.v1beta1.OperationMetadata other = + (com.google.cloud.security.privateca.v1beta1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -552,8 +607,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -562,117 +616,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.OperationMetadata 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.security.privateca.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.OperationMetadata) com.google.cloud.security.privateca.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.security.privateca.v1beta1.OperationMetadata.class, + com.google.cloud.security.privateca.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.security.privateca.v1beta1.OperationMetadata.newBuilder() @@ -680,16 +744,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,13 +782,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.OperationMetadata + getDefaultInstanceForType() { return com.google.cloud.security.privateca.v1beta1.OperationMetadata.getDefaultInstance(); } @@ -740,7 +804,8 @@ public com.google.cloud.security.privateca.v1beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.security.privateca.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.security.privateca.v1beta1.OperationMetadata result = new com.google.cloud.security.privateca.v1beta1.OperationMetadata(this); + com.google.cloud.security.privateca.v1beta1.OperationMetadata result = + new com.google.cloud.security.privateca.v1beta1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +829,39 @@ public com.google.cloud.security.privateca.v1beta1.OperationMetadata buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.OperationMetadata)other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +869,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.security.privateca.v1beta1.OperationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.security.privateca.v1beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -848,7 +916,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.OperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -860,39 +930,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +997,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1018,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1044,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1066,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1131,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1170,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1193,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1213,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1238,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1259,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1319,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1341,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1363,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1425,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1447,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1469,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1531,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1382,20 +1553,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1403,61 +1575,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1466,6 +1647,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1473,6 +1655,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1481,16 +1665,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1499,10 +1686,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1510,18 +1698,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1720,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1742,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1813,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.OperationMetadata) - private static final com.google.cloud.security.privateca.v1beta1.OperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.OperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.OperationMetadata(); } @@ -1629,16 +1828,16 @@ public static com.google.cloud.security.privateca.v1beta1.OperationMetadata getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,6 +1852,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java index c134d97a..a3f8cedf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java new file mode 100644 index 00000000..7d331138 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaProto.java @@ -0,0 +1,666 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/service.proto + +package com.google.cloud.security.privateca.v1beta1; + +public final class PrivateCaProto { + private PrivateCaProto() {} + + 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_security_privateca_v1beta1_CreateCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/security/privateca/v1beta" + + "1/service.proto\022\'google.cloud.security.p" + + "rivateca.v1beta1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\0327google/cloud/security/priva" + + "teca/v1beta1/resources.proto\032#google/lon" + + "grunning/operations.proto\032\036google/protob" + + "uf/duration.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\347\001\n\030CreateCertificateRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis." + + "com/CertificateAuthority\022\033\n\016certificate_" + + "id\030\002 \001(\tB\003\340A\001\022N\n\013certificate\030\003 \001(\01324.goo" + + "gle.cloud.security.privateca.v1beta1.Cer" + + "tificateB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"S" + + "\n\025GetCertificateRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$privateca.googleapis.com/Certific" + + "ate\"\275\001\n\027ListCertificatesRequest\022E\n\006paren" + + "t\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.co" + + "m/CertificateAuthority\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\006filte" + + "r\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\224\001\n\030" + + "ListCertificatesResponse\022J\n\014certificates" + + "\030\001 \003(\01324.google.cloud.security.privateca" + + ".v1beta1.Certificate\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\277\001\n\030RevokeCer" + + "tificateRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$p" + + "rivateca.googleapis.com/Certificate\022N\n\006r" + + "eason\030\002 \001(\01629.google.cloud.security.priv" + + "ateca.v1beta1.RevocationReasonB\003\340A\002\022\027\n\nr" + + "equest_id\030\003 \001(\tB\003\340A\001\"\271\001\n\030UpdateCertifica" + + "teRequest\022N\n\013certificate\030\001 \001(\01324.google." + + "cloud.security.privateca.v1beta1.Certifi" + + "cateB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 " + + "\001(\tB\003\340A\001\"\201\002\n#ActivateCertificateAuthorit" + + "yRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privatec" + + "a.googleapis.com/CertificateAuthority\022\037\n" + + "\022pem_ca_certificate\030\002 \001(\tB\003\340A\002\022[\n\022subord" + + "inate_config\030\003 \001(\0132:.google.cloud.securi" + + "ty.privateca.v1beta1.SubordinateConfigB\003" + + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\201\002\n!CreateC" + + "ertificateAuthorityRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022%\n\030certificate_authority_id\030\002 \001(\tB" + + "\003\340A\002\022a\n\025certificate_authority\030\003 \001(\0132=.go" + + "ogle.cloud.security.privateca.v1beta1.Ce" + + "rtificateAuthorityB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\"\202\001\n\"DisableCertificateAuthority" + + "Request\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca" + + ".googleapis.com/CertificateAuthority\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\201\001\n!EnableCertific" + + "ateAuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A" + + "/\n-privateca.googleapis.com/CertificateA" + + "uthority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"j\n#Fet" + + "chCertificateAuthorityCsrRequest\022C\n\004name" + + "\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis.com" + + "/CertificateAuthority\"<\n$FetchCertificat" + + "eAuthorityCsrResponse\022\024\n\007pem_csr\030\001 \001(\tB\003" + + "\340A\003\"e\n\036GetCertificateAuthorityRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapi" + + "s.com/CertificateAuthority\"\273\001\n!ListCerti" + + "ficateAuthoritiesRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"\262\001\n\"ListCertificateAuth" + + "oritiesResponse\022^\n\027certificate_authoriti" + + "es\030\001 \003(\0132=.google.cloud.security.private" + + "ca.v1beta1.CertificateAuthority\022\027\n\017next_" + + "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\001" + + "\n\"RestoreCertificateAuthorityRequest\022C\n\004" + + "name\030\001 \001(\tB5\340A\002\372A/\n-privateca.googleapis" + + ".com/CertificateAuthority\022\027\n\nrequest_id\030" + + "\002 \001(\tB\003\340A\001\"\211\001\n)ScheduleDeleteCertificate" + + "AuthorityRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + + "privateca.googleapis.com/CertificateAuth" + + "ority\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\325\001\n!Updat" + + "eCertificateAuthorityRequest\022a\n\025certific" + + "ate_authority\030\001 \001(\0132=.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateAuthori" + + "tyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\003 \001(" + + "\tB\003\340A\001\"o\n#GetCertificateRevocationListRe" + + "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2privateca.g" + + "oogleapis.com/CertificateRevocationList\"" + + "\313\001\n%ListCertificateRevocationListsReques" + + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-privateca.goo" + + "gleapis.com/CertificateAuthority\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(\t" + + "B\003\340A\001\"\300\001\n&ListCertificateRevocationLists" + + "Response\022h\n\034certificate_revocation_lists" + + "\030\001 \003(\0132B.google.cloud.security.privateca" + + ".v1beta1.CertificateRevocationList\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"\345\001\n&UpdateCertificateRevocationListRequ" + + "est\022l\n\033certificate_revocation_list\030\001 \001(\013" + + "2B.google.cloud.security.privateca.v1bet" + + "a1.CertificateRevocationListB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"Y\n\030GetR" + + "eusableConfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372" + + "A)\n\'privateca.googleapis.com/ReusableCon" + + "fig\"\264\001\n\032ListReusableConfigsRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\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\"\236\001\n\033ListReusa" + + "bleConfigsResponse\022Q\n\020reusable_configs\030\001" + + " \003(\01327.google.cloud.security.privateca.v" + + "1beta1.ReusableConfig\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\200\002\n\021Operatio" + + "nMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006ta" + + "rget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016st" + + "atus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_can" + + "cellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(" + + "\tB\003\340A\0032\321,\n\033CertificateAuthorityService\022\226" + + "\002\n\021CreateCertificate\022A.google.cloud.secu" + + "rity.privateca.v1beta1.CreateCertificate" + + "Request\0324.google.cloud.security.privatec" + + "a.v1beta1.Certificate\"\207\001\202\323\344\223\002]\"N/v1beta1" + + "/{parent=projects/*/locations/*/certific" + + "ateAuthorities/*}/certificates:\013certific" + + "ate\332A!parent,certificate,certificate_id\022" + + "\345\001\n\016GetCertificate\022>.google.cloud.securi" + + "ty.privateca.v1beta1.GetCertificateReque" + + "st\0324.google.cloud.security.privateca.v1b" + + "eta1.Certificate\"]\202\323\344\223\002P\022N/v1beta1/{name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*/certificates/*}\332A\004name\022\370\001\n\020List" + + "Certificates\022@.google.cloud.security.pri" + + "vateca.v1beta1.ListCertificatesRequest\032A" + + ".google.cloud.security.privateca.v1beta1" + + ".ListCertificatesResponse\"_\202\323\344\223\002P\022N/v1be" + + "ta1/{parent=projects/*/locations/*/certi" + + "ficateAuthorities/*}/certificates\332A\006pare" + + "nt\022\365\001\n\021RevokeCertificate\022A.google.cloud." + + "security.privateca.v1beta1.RevokeCertifi" + + "cateRequest\0324.google.cloud.security.priv" + + "ateca.v1beta1.Certificate\"g\202\323\344\223\002Z\"U/v1be" + + "ta1/{name=projects/*/locations/*/certifi" + + "cateAuthorities/*/certificates/*}:revoke" + + ":\001*\332A\004name\022\230\002\n\021UpdateCertificate\022A.googl" + + "e.cloud.security.privateca.v1beta1.Updat" + + "eCertificateRequest\0324.google.cloud.secur" + + "ity.privateca.v1beta1.Certificate\"\211\001\202\323\344\223" + + "\002i2Z/v1beta1/{certificate.name=projects/" + + "*/locations/*/certificateAuthorities/*/c" + + "ertificates/*}:\013certificate\332A\027certificat" + + "e,update_mask\022\224\002\n\034ActivateCertificateAut" + + "hority\022L.google.cloud.security.privateca" + + ".v1beta1.ActivateCertificateAuthorityReq" + + "uest\032\035.google.longrunning.Operation\"\206\001\202\323" + + "\344\223\002M\"H/v1beta1/{name=projects/*/location" + + "s/*/certificateAuthorities/*}:activate:\001" + + "*\332A\004name\312A)\n\024CertificateAuthority\022\021Opera" + + "tionMetadata\022\314\002\n\032CreateCertificateAuthor" + + "ity\022J.google.cloud.security.privateca.v1" + + "beta1.CreateCertificateAuthorityRequest\032" + + "\035.google.longrunning.Operation\"\302\001\202\323\344\223\002X\"" + + "?/v1beta1/{parent=projects/*/locations/*" + + "}/certificateAuthorities:\025certificate_au" + + "thority\332A5parent,certificate_authority,c" + + "ertificate_authority_id\312A)\n\024CertificateA" + + "uthority\022\021OperationMetadata\022\221\002\n\033DisableC" + + "ertificateAuthority\022K.google.cloud.secur" + + "ity.privateca.v1beta1.DisableCertificate" + + "AuthorityRequest\032\035.google.longrunning.Op" + + "eration\"\205\001\202\323\344\223\002L\"G/v1beta1/{name=project" + + "s/*/locations/*/certificateAuthorities/*" + + "}:disable:\001*\332A\004name\312A)\n\024CertificateAutho" + + "rity\022\021OperationMetadata\022\216\002\n\032EnableCertif" + + "icateAuthority\022J.google.cloud.security.p" + + "rivateca.v1beta1.EnableCertificateAuthor" + + "ityRequest\032\035.google.longrunning.Operatio" + + "n\"\204\001\202\323\344\223\002K\"F/v1beta1/{name=projects/*/lo" + + "cations/*/certificateAuthorities/*}:enab" + + "le:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021O" + + "perationMetadata\022\221\002\n\034FetchCertificateAut" + + "horityCsr\022L.google.cloud.security.privat" + + "eca.v1beta1.FetchCertificateAuthorityCsr" + + "Request\032M.google.cloud.security.privatec" + + "a.v1beta1.FetchCertificateAuthorityCsrRe" + + "sponse\"T\202\323\344\223\002G\022E/v1beta1/{name=projects/" + + "*/locations/*/certificateAuthorities/*}:" + + "fetch\332A\004name\022\361\001\n\027GetCertificateAuthority" + + "\022G.google.cloud.security.privateca.v1bet" + + "a1.GetCertificateAuthorityRequest\032=.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateAuthority\"N\202\323\344\223\002A\022?/v1beta1/{name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*}\332A\004name\022\207\002\n\032ListCertificateAuth" + + "orities\022J.google.cloud.security.privatec" + + "a.v1beta1.ListCertificateAuthoritiesRequ" + + "est\032K.google.cloud.security.privateca.v1" + + "beta1.ListCertificateAuthoritiesResponse" + + "\"P\202\323\344\223\002A\022?/v1beta1/{parent=projects/*/lo" + + "cations/*}/certificateAuthorities\332A\006pare" + + "nt\022\221\002\n\033RestoreCertificateAuthority\022K.goo" + + "gle.cloud.security.privateca.v1beta1.Res" + + "toreCertificateAuthorityRequest\032\035.google" + + ".longrunning.Operation\"\205\001\202\323\344\223\002L\"G/v1beta" + + "1/{name=projects/*/locations/*/certifica" + + "teAuthorities/*}:restore:\001*\332A\004name\312A)\n\024C" + + "ertificateAuthority\022\021OperationMetadata\022\246" + + "\002\n\"ScheduleDeleteCertificateAuthority\022R." + + "google.cloud.security.privateca.v1beta1." + + "ScheduleDeleteCertificateAuthorityReques" + + "t\032\035.google.longrunning.Operation\"\214\001\202\323\344\223\002" + + "S\"N/v1beta1/{name=projects/*/locations/*" + + "/certificateAuthorities/*}:scheduleDelet" + + "e:\001*\332A\004name\312A)\n\024CertificateAuthority\022\021Op" + + "erationMetadata\022\316\002\n\032UpdateCertificateAut" + + "hority\022J.google.cloud.security.privateca" + + ".v1beta1.UpdateCertificateAuthorityReque" + + "st\032\035.google.longrunning.Operation\"\304\001\202\323\344\223" + + "\002n2U/v1beta1/{certificate_authority.name" + + "=projects/*/locations/*/certificateAutho" + + "rities/*}:\025certificate_authority\332A!certi" + + "ficate_authority,update_mask\312A)\n\024Certifi" + + "cateAuthority\022\021OperationMetadata\022\235\002\n\034Get" + + "CertificateRevocationList\022L.google.cloud" + + ".security.privateca.v1beta1.GetCertifica" + + "teRevocationListRequest\032B.google.cloud.s" + + "ecurity.privateca.v1beta1.CertificateRev" + + "ocationList\"k\202\323\344\223\002^\022\\/v1beta1/{name=proj" + + "ects/*/locations/*/certificateAuthoritie" + + "s/*/certificateRevocationLists/*}\332A\004name" + + "\022\260\002\n\036ListCertificateRevocationLists\022N.go" + + "ogle.cloud.security.privateca.v1beta1.Li" + + "stCertificateRevocationListsRequest\032O.go" + + "ogle.cloud.security.privateca.v1beta1.Li" + + "stCertificateRevocationListsResponse\"m\202\323" + + "\344\223\002^\022\\/v1beta1/{parent=projects/*/locati" + + "ons/*/certificateAuthorities/*}/certific" + + "ateRevocationLists\332A\006parent\022\215\003\n\037UpdateCe" + + "rtificateRevocationList\022O.google.cloud.s" + + "ecurity.privateca.v1beta1.UpdateCertific" + + "ateRevocationListRequest\032\035.google.longru" + + "nning.Operation\"\371\001\202\323\344\223\002\227\0012x/v1beta1/{cer" + + "tificate_revocation_list.name=projects/*" + + "/locations/*/certificateAuthorities/*/ce" + + "rtificateRevocationLists/*}:\033certificate" + + "_revocation_list\332A\'certificate_revocatio" + + "n_list,update_mask\312A.\n\031CertificateRevoca" + + "tionList\022\021OperationMetadata\022\330\001\n\021GetReusa" + + "bleConfig\022A.google.cloud.security.privat" + + "eca.v1beta1.GetReusableConfigRequest\0327.g" + + "oogle.cloud.security.privateca.v1beta1.R" + + "eusableConfig\"G\202\323\344\223\002:\0228/v1beta1/{name=pr" + + "ojects/*/locations/*/reusableConfigs/*}\332" + + "A\004name\022\353\001\n\023ListReusableConfigs\022C.google." + + "cloud.security.privateca.v1beta1.ListReu" + + "sableConfigsRequest\032D.google.cloud.secur" + + "ity.privateca.v1beta1.ListReusableConfig" + + "sResponse\"I\202\323\344\223\002:\0228/v1beta1/{parent=proj" + + "ects/*/locations/*}/reusableConfigs\332A\006pa" + + "rent\032L\312A\030privateca.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\226\002\n+com.google.cloud.security.private" + + "ca.v1beta1B\016PrivateCaProtoP\001ZPgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "ty/privateca/v1beta1;privateca\370\001\001\252\002\'Goog" + + "le.Cloud.Security.PrivateCA.V1Beta1\312\002\'Go" + + "ogle\\Cloud\\Security\\PrivateCA\\V1beta1\352\002+" + + "Google::Cloud::Security::PrivateCA::V1be" + + "ta1b\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.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateRequest_descriptor, + new java.lang.String[] { + "Parent", "CertificateId", "Certificate", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificatesResponse_descriptor, + new java.lang.String[] { + "Certificates", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor, + new java.lang.String[] { + "Name", "Reason", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor, + new java.lang.String[] { + "Certificate", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ActivateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "PemCaCertificate", "SubordinateConfig", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CreateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Parent", "CertificateAuthorityId", "CertificateAuthority", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_DisableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_EnableCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_FetchCertificateAuthorityCsrResponse_descriptor, + new java.lang.String[] { + "PemCsr", + }); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateAuthoritiesResponse_descriptor, + new java.lang.String[] { + "CertificateAuthorities", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "CertificateAuthority", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetCertificateRevocationListRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListCertificateRevocationListsResponse_descriptor, + new java.lang.String[] { + "CertificateRevocationLists", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor, + new java.lang.String[] { + "CertificateRevocationList", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_GetReusableConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ListReusableConfigsResponse_descriptor, + new java.lang.String[] { + "ReusableConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java new file mode 100644 index 00000000..b1e67871 --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PrivateCaResourcesProto.java @@ -0,0 +1,896 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/resources.proto + +package com.google.cloud.security.privateca.v1beta1; + +public final class PrivateCaResourcesProto { + private PrivateCaResourcesProto() {} + + 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_security_privateca_v1beta1_CertificateAuthority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/security/privateca/v1beta" + + "1/resources.proto\022\'google.cloud.security" + + ".privateca.v1beta1\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\032\034google/api/annotations." + + "proto\"\250\034\n\024CertificateAuthority\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022X\n\004type\030\002 \001(\0162B.google.cloud.s" + + "ecurity.privateca.v1beta1.CertificateAut" + + "hority.TypeB\006\340A\002\340A\005\022X\n\004tier\030\003 \001(\0162B.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateAuthority.TierB\006\340A\002\340A\005\022R\n\006config\030" + + "\004 \001(\0132:.google.cloud.security.privateca." + + "v1beta1.CertificateConfigB\006\340A\002\340A\005\0220\n\010lif" + + "etime\030\005 \001(\0132\031.google.protobuf.DurationB\003" + + "\340A\002\022f\n\010key_spec\030\006 \001(\0132L.google.cloud.sec" + + "urity.privateca.v1beta1.CertificateAutho" + + "rity.KeyVersionSpecB\006\340A\002\340A\005\022y\n\022certifica" + + "te_policy\030\007 \001(\0132X.google.cloud.security." + + "privateca.v1beta1.CertificateAuthority.C" + + "ertificateAuthorityPolicyB\003\340A\001\022j\n\017issuin" + + "g_options\030\010 \001(\0132L.google.cloud.security." + + "privateca.v1beta1.CertificateAuthority.I" + + "ssuingOptionsB\003\340A\001\022[\n\022subordinate_config" + + "\030\023 \001(\0132:.google.cloud.security.privateca" + + ".v1beta1.SubordinateConfigB\003\340A\001\022W\n\005state" + + "\030\n \001(\0162C.google.cloud.security.privateca" + + ".v1beta1.CertificateAuthority.StateB\003\340A\003" + + "\022 \n\023pem_ca_certificates\030\t \003(\tB\003\340A\003\022i\n\033ca" + + "_certificate_descriptions\030\014 \003(\0132?.google" + + ".cloud.security.privateca.v1beta1.Certif" + + "icateDescriptionB\003\340A\003\022\027\n\ngcs_bucket\030\r \001(" + + "\tB\003\340A\005\022b\n\013access_urls\030\016 \001(\0132H.google.clo" + + "ud.security.privateca.v1beta1.Certificat" + + "eAuthority.AccessUrlsB\003\340A\003\0224\n\013create_tim" + + "e\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\020 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013delete_time\030\021 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022^\n\006labels\030\022" + + " \003(\0132I.google.cloud.security.privateca.v" + + "1beta1.CertificateAuthority.LabelsEntryB" + + "\003\340A\001\032W\n\016IssuingOptions\022 \n\023include_ca_cer" + + "t_url\030\001 \001(\010B\003\340A\002\022#\n\026include_crl_access_u" + + "rl\030\002 \001(\010B\003\340A\002\032\276\t\n\032CertificateAuthorityPo" + + "licy\022\216\001\n\023allowed_config_list\030\001 \001(\0132j.goo" + + "gle.cloud.security.privateca.v1beta1.Cer" + + "tificateAuthority.CertificateAuthorityPo" + + "licy.AllowedConfigListB\003\340A\001H\000\022f\n\027overwri" + + "te_config_values\030\002 \001(\0132>.google.cloud.se" + + "curity.privateca.v1beta1.ReusableConfigW" + + "rapperB\003\340A\001H\000\022b\n#allowed_locations_and_o" + + "rganizations\030\003 \003(\01320.google.cloud.securi" + + "ty.privateca.v1beta1.SubjectB\003\340A\001\022!\n\024all" + + "owed_common_names\030\004 \003(\tB\003\340A\001\022\212\001\n\014allowed" + + "_sans\030\005 \001(\0132o.google.cloud.security.priv" + + "ateca.v1beta1.CertificateAuthority.Certi" + + "ficateAuthorityPolicy.AllowedSubjectAltN" + + "amesB\003\340A\001\0228\n\020maximum_lifetime\030\006 \001(\0132\031.go" + + "ogle.protobuf.DurationB\003\340A\001\022\213\001\n\026allowed_" + + "issuance_modes\030\010 \001(\0132f.google.cloud.secu" + + "rity.privateca.v1beta1.CertificateAuthor" + + "ity.CertificateAuthorityPolicy.IssuanceM" + + "odesB\003\340A\001\032w\n\021AllowedConfigList\022b\n\025allowe" + + "d_config_values\030\001 \003(\0132>.google.cloud.sec" + + "urity.privateca.v1beta1.ReusableConfigWr" + + "apperB\003\340A\002\032\336\001\n\026AllowedSubjectAltNames\022\036\n" + + "\021allowed_dns_names\030\001 \003(\tB\003\340A\001\022\031\n\014allowed" + + "_uris\030\002 \003(\tB\003\340A\001\022$\n\027allowed_email_addres" + + "ses\030\003 \003(\tB\003\340A\001\022\030\n\013allowed_ips\030\004 \003(\tB\003\340A\001" + + "\022)\n\034allow_globbing_dns_wildcards\030\005 \001(\010B\003" + + "\340A\001\022\036\n\021allow_custom_sans\030\006 \001(\010B\003\340A\001\032`\n\rI" + + "ssuanceModes\022%\n\030allow_csr_based_issuance" + + "\030\001 \001(\010B\003\340A\002\022(\n\033allow_config_based_issuan" + + "ce\030\002 \001(\010B\003\340A\002B\017\n\rconfig_policy\032G\n\nAccess" + + "Urls\022!\n\031ca_certificate_access_url\030\001 \001(\t\022" + + "\026\n\016crl_access_url\030\002 \001(\t\032\257\001\n\016KeyVersionSp" + + "ec\022$\n\025cloud_kms_key_version\030\001 \001(\tB\003\340A\002H\000" + + "\022i\n\talgorithm\030\002 \001(\0162O.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateAuthori" + + "ty.SignHashAlgorithmB\003\340A\002H\000B\014\n\nKeyVersio" + + "n\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\">\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\017" + + "\n\013SELF_SIGNED\020\001\022\017\n\013SUBORDINATE\020\002\"8\n\004Tier" + + "\022\024\n\020TIER_UNSPECIFIED\020\000\022\016\n\nENTERPRISE\020\001\022\n" + + "\n\006DEVOPS\020\002\"g\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\026\n\022PENDING" + + "_ACTIVATION\020\003\022\024\n\020PENDING_DELETION\020\004\"\374\001\n\021" + + "SignHashAlgorithm\022#\n\037SIGN_HASH_ALGORITHM" + + "_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA256\020\001\022" + + "\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS_4096" + + "_SHA256\020\003\022\031\n\025RSA_PKCS1_2048_SHA256\020\006\022\031\n\025" + + "RSA_PKCS1_3072_SHA256\020\007\022\031\n\025RSA_PKCS1_409" + + "6_SHA256\020\010\022\022\n\016EC_P256_SHA256\020\004\022\022\n\016EC_P38" + + "4_SHA384\020\005:\213\001\352A\207\001\n-privateca.googleapis." + + "com/CertificateAuthority\022Vprojects/{proj" + + "ect}/locations/{location}/certificateAut" + + "horities/{certificate_authority}\"\371\007\n\031Cer" + + "tificateRevocationList\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\034\n\017sequence_number\030\002 \001(\003B\003\340A\003\022x\n\024revok" + + "ed_certificates\030\003 \003(\0132U.google.cloud.sec" + + "urity.privateca.v1beta1.CertificateRevoc" + + "ationList.RevokedCertificateB\003\340A\003\022\024\n\007pem" + + "_crl\030\004 \001(\tB\003\340A\003\022\027\n\naccess_url\030\005 \001(\tB\003\340A\003" + + "\022\\\n\005state\030\006 \001(\0162H.google.cloud.security." + + "privateca.v1beta1.CertificateRevocationL" + + "ist.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022c\n\006labels\030\t \003(\0132N.google.cloud.securi" + + "ty.privateca.v1beta1.CertificateRevocati" + + "onList.LabelsEntryB\003\340A\001\032\232\001\n\022RevokedCerti" + + "ficate\022\023\n\013certificate\030\001 \001(\t\022\031\n\021hex_seria" + + "l_number\030\002 \001(\t\022T\n\021revocation_reason\030\003 \001(" + + "\01629.google.cloud.security.privateca.v1be" + + "ta1.RevocationReason\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nSUPER" + + "SEDED\020\002:\312\001\352A\306\001\n2privateca.googleapis.com" + + "/CertificateRevocationList\022\217\001projects/{p" + + "roject}/locations/{location}/certificate" + + "Authorities/{certificate_authority}/cert" + + "ificateRevocationLists/{certificate_revo" + + "cation_list}\"\232\010\n\013Certificate\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\026\n\007pem_csr\030\002 \001(\tB\003\340A\005H\000\022Q\n\006confi" + + "g\030\003 \001(\0132:.google.cloud.security.privatec" + + "a.v1beta1.CertificateConfigB\003\340A\005H\000\0223\n\010li" + + "fetime\030\004 \001(\0132\031.google.protobuf.DurationB" + + "\006\340A\002\340A\005\022g\n\022revocation_details\030\005 \001(\0132F.go" + + "ogle.cloud.security.privateca.v1beta1.Ce" + + "rtificate.RevocationDetailsB\003\340A\003\022\034\n\017pem_" + + "certificate\030\006 \001(\tB\003\340A\003\022e\n\027certificate_de" + + "scription\030\007 \001(\0132?.google.cloud.security." + + "privateca.v1beta1.CertificateDescription" + + "B\003\340A\003\022\"\n\025pem_certificate_chain\030\010 \003(\tB\003\340A" + + "\003\0224\n\013create_time\030\t \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022U\n\006labels\030" + + "\013 \003(\0132@.google.cloud.security.privateca." + + "v1beta1.Certificate.LabelsEntryB\003\340A\001\032\235\001\n" + + "\021RevocationDetails\022S\n\020revocation_state\030\001" + + " \001(\01629.google.cloud.security.privateca.v" + + "1beta1.RevocationReason\0223\n\017revocation_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\235\001\352A\231\001\n$privateca.googleapis.com/Cer" + + "tificate\022qprojects/{project}/locations/{" + + "location}/certificateAuthorities/{certif" + + "icate_authority}/certificates/{certifica" + + "te}B\024\n\022certificate_config\"\377\003\n\016ReusableCo" + + "nfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022R\n\006values\030\002 \001(\0132" + + "=.google.cloud.security.privateca.v1beta" + + "1.ReusableConfigValuesB\003\340A\002\022\030\n\013descripti" + + "on\030\003 \001(\tB\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022X\n\006labels\030\006 \003(\0132C.google.cloud.securit" + + "y.privateca.v1beta1.ReusableConfig.Label" + + "sEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:w\352At\n\'privateca.googl" + + "eapis.com/ReusableConfig\022Iprojects/{proj" + + "ect}/locations/{location}/reusableConfig" + + "s/{reusable_config}\"\211\004\n\024ReusableConfigVa" + + "lues\022I\n\tkey_usage\030\001 \001(\01321.google.cloud.s" + + "ecurity.privateca.v1beta1.KeyUsageB\003\340A\001\022" + + "`\n\nca_options\030\002 \001(\0132G.google.cloud.secur" + + "ity.privateca.v1beta1.ReusableConfigValu" + + "es.CaOptionsB\003\340A\001\022J\n\npolicy_ids\030\003 \003(\01321." + + "google.cloud.security.privateca.v1beta1." + + "ObjectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB" + + "\003\340A\001\022Z\n\025additional_extensions\030\005 \003(\01326.go" + + "ogle.cloud.security.privateca.v1beta1.X5" + + "09ExtensionB\003\340A\001\032}\n\tCaOptions\022.\n\005is_ca\030\001" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022@\n" + + "\026max_issuer_path_length\030\002 \001(\0132\033.google.p" + + "rotobuf.Int32ValueB\003\340A\001\"\256\001\n\025ReusableConf" + + "igWrapper\022\036\n\017reusable_config\030\001 \001(\tB\003\340A\002H" + + "\000\022d\n\026reusable_config_values\030\002 \001(\0132=.goog" + + "le.cloud.security.privateca.v1beta1.Reus" + + "ableConfigValuesB\003\340A\002H\000B\017\n\rconfig_values" + + "\"\374\001\n\021SubordinateConfig\022$\n\025certificate_au" + + "thority\030\001 \001(\tB\003\340A\002H\000\022r\n\020pem_issuer_chain" + + "\030\002 \001(\0132Q.google.cloud.security.privateca" + + ".v1beta1.SubordinateConfig.SubordinateCo" + + "nfigChainB\003\340A\002H\000\0327\n\026SubordinateConfigCha" + + "in\022\035\n\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022sub" + + "ordinate_config\"\262\001\n\tPublicKey\022M\n\004type\030\001 " + + "\001(\0162:.google.cloud.security.privateca.v1" + + "beta1.PublicKey.KeyTypeB\003\340A\002\022\020\n\003key\030\002 \001(" + + "\014B\003\340A\002\"D\n\007KeyType\022\030\n\024KEY_TYPE_UNSPECIFIE" + + "D\020\000\022\017\n\013PEM_RSA_KEY\020\001\022\016\n\nPEM_EC_KEY\020\002\"\362\003\n" + + "\021CertificateConfig\022e\n\016subject_config\030\001 \001" + + "(\0132H.google.cloud.security.privateca.v1b" + + "eta1.CertificateConfig.SubjectConfigB\003\340A" + + "\002\022\\\n\017reusable_config\030\002 \001(\0132>.google.clou" + + "d.security.privateca.v1beta1.ReusableCon" + + "figWrapperB\003\340A\002\022K\n\npublic_key\030\003 \001(\01322.go" + + "ogle.cloud.security.privateca.v1beta1.Pu" + + "blicKeyB\003\340A\001\032\312\001\n\rSubjectConfig\022F\n\007subjec" + + "t\030\001 \001(\01320.google.cloud.security.privatec" + + "a.v1beta1.SubjectB\003\340A\002\022\030\n\013common_name\030\002 " + + "\001(\tB\003\340A\001\022W\n\020subject_alt_name\030\003 \001(\01328.goo" + + "gle.cloud.security.privateca.v1beta1.Sub" + + "jectAltNamesB\003\340A\001\"\341\010\n\026CertificateDescrip" + + "tion\022o\n\023subject_description\030\001 \001(\0132R.goog" + + "le.cloud.security.privateca.v1beta1.Cert" + + "ificateDescription.SubjectDescription\022T\n" + + "\rconfig_values\030\002 \001(\0132=.google.cloud.secu" + + "rity.privateca.v1beta1.ReusableConfigVal" + + "ues\022F\n\npublic_key\030\003 \001(\01322.google.cloud.s" + + "ecurity.privateca.v1beta1.PublicKey\022]\n\016s" + + "ubject_key_id\030\004 \001(\0132E.google.cloud.secur" + + "ity.privateca.v1beta1.CertificateDescrip" + + "tion.KeyId\022_\n\020authority_key_id\030\005 \001(\0132E.g" + + "oogle.cloud.security.privateca.v1beta1.C" + + "ertificateDescription.KeyId\022\037\n\027crl_distr" + + "ibution_points\030\006 \003(\t\022$\n\034aia_issuing_cert" + + "ificate_urls\030\007 \003(\t\022p\n\020cert_fingerprint\030\010" + + " \001(\0132V.google.cloud.security.privateca.v" + + "1beta1.CertificateDescription.Certificat" + + "eFingerprint\032\361\002\n\022SubjectDescription\022A\n\007s" + + "ubject\030\001 \001(\01320.google.cloud.security.pri" + + "vateca.v1beta1.Subject\022\023\n\013common_name\030\002 " + + "\001(\t\022R\n\020subject_alt_name\030\003 \001(\01328.google.c" + + "loud.security.privateca.v1beta1.SubjectA" + + "ltNames\022\031\n\021hex_serial_number\030\004 \001(\t\022+\n\010li" + + "fetime\030\005 \001(\0132\031.google.protobuf.Duration\022" + + "3\n\017not_before_time\030\006 \001(\0132\032.google.protob" + + "uf.Timestamp\0222\n\016not_after_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\032\034\n\005KeyId\022\023\n\006key" + + "_id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFingerprint" + + "\022\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016obj" + + "ect_id_path\030\001 \003(\005B\003\340A\002\"\205\001\n\rX509Extension" + + "\022I\n\tobject_id\030\001 \001(\01321.google.cloud.secur" + + "ity.privateca.v1beta1.ObjectIdB\003\340A\002\022\025\n\010c" + + "ritical\030\002 \001(\010B\003\340A\002\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\261" + + "\005\n\010KeyUsage\022Y\n\016base_key_usage\030\001 \001(\0132A.go" + + "ogle.cloud.security.privateca.v1beta1.Ke" + + "yUsage.KeyUsageOptions\022e\n\022extended_key_u" + + "sage\030\002 \001(\0132I.google.cloud.security.priva" + + "teca.v1beta1.KeyUsage.ExtendedKeyUsageOp" + + "tions\022V\n\033unknown_extended_key_usages\030\003 \003" + + "(\01321.google.cloud.security.privateca.v1b" + + "eta1.ObjectId\032\347\001\n\017KeyUsageOptions\022\031\n\021dig" + + "ital_signature\030\001 \001(\010\022\032\n\022content_commitme" + + "nt\030\002 \001(\010\022\030\n\020key_encipherment\030\003 \001(\010\022\031\n\021da" + + "ta_encipherment\030\004 \001(\010\022\025\n\rkey_agreement\030\005" + + " \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(" + + "\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rdecipher_onl" + + "y\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOptions\022\023\n\013s" + + "erver_auth\030\001 \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n" + + "\014code_signing\030\003 \001(\010\022\030\n\020email_protection\030" + + "\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024\n\014ocsp_sig" + + "ning\030\006 \001(\010\"\243\001\n\007Subject\022\024\n\014country_code\030\001" + + " \001(\t\022\024\n\014organization\030\002 \001(\t\022\033\n\023organizati" + + "onal_unit\030\003 \001(\t\022\020\n\010locality\030\004 \001(\t\022\020\n\010pro" + + "vince\030\005 \001(\t\022\026\n\016street_address\030\006 \001(\t\022\023\n\013p" + + "ostal_code\030\007 \001(\t\"\256\001\n\017SubjectAltNames\022\021\n\t" + + "dns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_a" + + "ddresses\030\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022K\n\013" + + "custom_sans\030\005 \003(\01326.google.cloud.securit" + + "y.privateca.v1beta1.X509Extension*\207\002\n\020Re" + + "vocationReason\022!\n\035REVOCATION_REASON_UNSP" + + "ECIFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFI" + + "CATE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATI" + + "ON_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATIO" + + "N_OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027" + + "\n\023PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUT" + + "HORITY_COMPROMISE\020\010B\237\002\n+com.google.cloud" + + ".security.privateca.v1beta1B\027PrivateCaRe" + + "sourcesProtoP\001ZPgoogle.golang.org/genpro" + + "to/googleapis/cloud/security/privateca/v" + + "1beta1;privateca\370\001\001\252\002\'Google.Cloud.Secur" + + "ity.PrivateCA.V1Beta1\312\002\'Google\\Cloud\\Sec" + + "urity\\PrivateCA\\V1beta1\352\002+Google::Cloud:" + + ":Security::PrivateCA::V1beta1b\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(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor, + new java.lang.String[] { + "Name", + "Type", + "Tier", + "Config", + "Lifetime", + "KeySpec", + "CertificatePolicy", + "IssuingOptions", + "SubordinateConfig", + "State", + "PemCaCertificates", + "CaCertificateDescriptions", + "GcsBucket", + "AccessUrls", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Labels", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_IssuingOptions_descriptor, + new java.lang.String[] { + "IncludeCaCertUrl", "IncludeCrlAccessUrl", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor, + new java.lang.String[] { + "AllowedConfigList", + "OverwriteConfigValues", + "AllowedLocationsAndOrganizations", + "AllowedCommonNames", + "AllowedSans", + "MaximumLifetime", + "AllowedIssuanceModes", + "ConfigPolicy", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedConfigList_descriptor, + new java.lang.String[] { + "AllowedConfigValues", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_AllowedSubjectAltNames_descriptor, + new java.lang.String[] { + "AllowedDnsNames", + "AllowedUris", + "AllowedEmailAddresses", + "AllowedIps", + "AllowGlobbingDnsWildcards", + "AllowCustomSans", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_CertificateAuthorityPolicy_IssuanceModes_descriptor, + new java.lang.String[] { + "AllowCsrBasedIssuance", "AllowConfigBasedIssuance", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_AccessUrls_descriptor, + new java.lang.String[] { + "CaCertificateAccessUrl", "CrlAccessUrl", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_KeyVersionSpec_descriptor, + new java.lang.String[] { + "CloudKmsKeyVersion", "Algorithm", "KeyVersion", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateAuthority_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor, + new java.lang.String[] { + "Name", + "SequenceNumber", + "RevokedCertificates", + "PemCrl", + "AccessUrl", + "State", + "CreateTime", + "UpdateTime", + "Labels", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_RevokedCertificate_descriptor, + new java.lang.String[] { + "Certificate", "HexSerialNumber", "RevocationReason", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateRevocationList_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor, + new java.lang.String[] { + "Name", + "PemCsr", + "Config", + "Lifetime", + "RevocationDetails", + "PemCertificate", + "CertificateDescription", + "PemCertificateChain", + "CreateTime", + "UpdateTime", + "Labels", + "CertificateConfig", + }); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Certificate_RevocationDetails_descriptor, + new java.lang.String[] { + "RevocationState", "RevocationTime", + }); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_Certificate_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Certificate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor, + new java.lang.String[] { + "Name", "Values", "Description", "CreateTime", "UpdateTime", "Labels", + }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor, + new java.lang.String[] { + "KeyUsage", "CaOptions", "PolicyIds", "AiaOcspServers", "AdditionalExtensions", + }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor, + new java.lang.String[] { + "IsCa", "MaxIssuerPathLength", + }); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor, + new java.lang.String[] { + "ReusableConfig", "ReusableConfigValues", "ConfigValues", + }); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor, + new java.lang.String[] { + "CertificateAuthority", "PemIssuerChain", "SubordinateConfig", + }); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor, + new java.lang.String[] { + "PemCertificates", + }); + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor, + new java.lang.String[] { + "Type", "Key", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor, + new java.lang.String[] { + "SubjectConfig", "ReusableConfig", "PublicKey", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateConfig_SubjectConfig_descriptor, + new java.lang.String[] { + "Subject", "CommonName", "SubjectAltName", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor, + new java.lang.String[] { + "SubjectDescription", + "ConfigValues", + "PublicKey", + "SubjectKeyId", + "AuthorityKeyId", + "CrlDistributionPoints", + "AiaIssuingCertificateUrls", + "CertFingerprint", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_SubjectDescription_descriptor, + new java.lang.String[] { + "Subject", + "CommonName", + "SubjectAltName", + "HexSerialNumber", + "Lifetime", + "NotBeforeTime", + "NotAfterTime", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_KeyId_descriptor, + new java.lang.String[] { + "KeyId", + }); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_CertificateDescription_CertificateFingerprint_descriptor, + new java.lang.String[] { + "Sha256Hash", + }); + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_ObjectId_descriptor, + new java.lang.String[] { + "ObjectIdPath", + }); + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor, + new java.lang.String[] { + "ObjectId", "Critical", "Value", + }); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor, + new java.lang.String[] { + "BaseKeyUsage", "ExtendedKeyUsage", "UnknownExtendedKeyUsages", + }); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_KeyUsageOptions_descriptor, + new java.lang.String[] { + "DigitalSignature", + "ContentCommitment", + "KeyEncipherment", + "DataEncipherment", + "KeyAgreement", + "CertSign", + "CrlSign", + "EncipherOnly", + "DecipherOnly", + }); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor = + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_KeyUsage_ExtendedKeyUsageOptions_descriptor, + new java.lang.String[] { + "ServerAuth", + "ClientAuth", + "CodeSigning", + "EmailProtection", + "TimeStamping", + "OcspSigning", + }); + internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor, + new java.lang.String[] { + "CountryCode", + "Organization", + "OrganizationalUnit", + "Locality", + "Province", + "StreetAddress", + "PostalCode", + }); + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor, + new java.lang.String[] { + "DnsNames", "Uris", "EmailAddresses", "IpAddresses", "CustomSans", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java index 02764f99..47a992df 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKey.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [PublicKey][google.cloud.security.privateca.v1beta1.PublicKey] describes a public key.
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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() { type_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; @@ -26,16 +44,15 @@ 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; } + private PublicKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,24 +71,25 @@ private PublicKey( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 18: { - - key_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + type_ = rawValue; + break; + } + case 18: + { + key_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,27 +97,31 @@ private PublicKey( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.PublicKey.class, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1beta1.PublicKey.class, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); } /** + * + * *
    * Types of public keys that are supported.
    * At a minimum, we support RSA and ECDSA, for the key sizes or curves listed:
@@ -108,9 +130,10 @@ private PublicKey(
    *
    * Protobuf enum {@code google.cloud.security.privateca.v1beta1.PublicKey.KeyType}
    */
-  public enum KeyType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum KeyType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default unspecified value.
      * 
@@ -119,6 +142,8 @@ public enum KeyType */ KEY_TYPE_UNSPECIFIED(0), /** + * + * *
      * A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
      * 
@@ -127,6 +152,8 @@ public enum KeyType */ PEM_RSA_KEY(1), /** + * + * *
      * A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
      * 
@@ -138,6 +165,8 @@ public enum KeyType ; /** + * + * *
      * Default unspecified value.
      * 
@@ -146,6 +175,8 @@ public enum KeyType */ public static final int KEY_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
      * 
@@ -154,6 +185,8 @@ public enum KeyType */ public static final int PEM_RSA_KEY_VALUE = 1; /** + * + * *
      * A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
      * 
@@ -162,7 +195,6 @@ public enum KeyType */ public static final int PEM_EC_KEY_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,49 +219,51 @@ public static KeyType valueOf(int value) { */ public static KeyType forNumber(int value) { switch (value) { - case 0: return KEY_TYPE_UNSPECIFIED; - case 1: return PEM_RSA_KEY; - case 2: return PEM_EC_KEY; - default: return null; + case 0: + return KEY_TYPE_UNSPECIFIED; + case 1: + return PEM_RSA_KEY; + case 2: + return PEM_EC_KEY; + 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< - KeyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KeyType findValueByNumber(int number) { - return KeyType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KeyType findValueByNumber(int number) { + return KeyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PublicKey.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PublicKey.getDescriptor() + .getEnumTypes() + .get(0); } private static final KeyType[] VALUES = values(); - public static KeyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static KeyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -249,39 +283,57 @@ private KeyType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * Required. The type of public key.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. The type of public key.
    * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); - return result == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED + : result; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** + * + * *
    * Required. A public key. Padding and encoding varies by 'KeyType' and is described
    * along with the KeyType values.
    * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The key. */ @java.lang.Override @@ -290,6 +342,7 @@ public com.google.protobuf.ByteString getKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,9 +354,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (!key_.isEmpty()) { @@ -318,13 +372,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.KEY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, key_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, key_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -334,16 +388,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.PublicKey)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.PublicKey other = (com.google.cloud.security.privateca.v1beta1.PublicKey) obj; + com.google.cloud.security.privateca.v1beta1.PublicKey other = + (com.google.cloud.security.privateca.v1beta1.PublicKey) obj; if (type_ != other.type_) return false; - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -365,117 +419,127 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.PublicKey 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.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.PublicKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.PublicKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.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; } /** + * + * *
    * A [PublicKey][google.cloud.security.privateca.v1beta1.PublicKey] describes a public key.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey) com.google.cloud.security.privateca.v1beta1.PublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.PublicKey.class, com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); + com.google.cloud.security.privateca.v1beta1.PublicKey.class, + com.google.cloud.security.privateca.v1beta1.PublicKey.Builder.class); } // Construct using com.google.cloud.security.privateca.v1beta1.PublicKey.newBuilder() @@ -483,16 +547,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -504,9 +567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_PublicKey_descriptor; } @java.lang.Override @@ -525,7 +588,8 @@ public com.google.cloud.security.privateca.v1beta1.PublicKey build() { @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey buildPartial() { - com.google.cloud.security.privateca.v1beta1.PublicKey result = new com.google.cloud.security.privateca.v1beta1.PublicKey(this); + com.google.cloud.security.privateca.v1beta1.PublicKey result = + new com.google.cloud.security.privateca.v1beta1.PublicKey(this); result.type_ = type_; result.key_ = key_; onBuilt(); @@ -536,38 +600,39 @@ public com.google.cloud.security.privateca.v1beta1.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.security.privateca.v1beta1.PublicKey) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.PublicKey)other); + return mergeFrom((com.google.cloud.security.privateca.v1beta1.PublicKey) other); } else { super.mergeFrom(other); return this; @@ -575,7 +640,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.PublicKey other) { - if (other == com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance()) return this; + if (other == com.google.cloud.security.privateca.v1beta1.PublicKey.getDefaultInstance()) + return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -601,7 +667,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.PublicKey) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.PublicKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -613,51 +680,75 @@ public Builder mergeFrom( private int type_ = 0; /** + * + * *
      * Required. The type of public key.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. The type of public key.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. The type of public key.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); - return result == null ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType result = + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.valueOf(type_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The type of public key.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -665,21 +756,26 @@ public Builder setType(com.google.cloud.security.privateca.v1beta1.PublicKey.Key if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The type of public key.
      * 
* - * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -687,12 +783,15 @@ public Builder clearType() { private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. A public key. Padding and encoding varies by 'KeyType' and is described
      * along with the KeyType values.
      * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The key. */ @java.lang.Override @@ -700,42 +799,48 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** + * + * *
      * Required. A public key. Padding and encoding varies by 'KeyType' and is described
      * along with the KeyType values.
      * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Required. A public key. Padding and encoding varies by 'KeyType' and is described
      * along with the KeyType values.
      * 
* * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -745,12 +850,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.PublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.PublicKey) private static final com.google.cloud.security.privateca.v1beta1.PublicKey DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.PublicKey(); } @@ -759,16 +864,16 @@ public static com.google.cloud.security.privateca.v1beta1.PublicKey getDefaultIn 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 { - return new PublicKey(input, extensionRegistry); - } - }; + 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 { + return new PublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -783,6 +888,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.PublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java new file mode 100644 index 00000000..613e66ba --- /dev/null +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/PublicKeyOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/security/privateca/v1beta1/resources.proto + +package com.google.cloud.security.privateca.v1beta1; + +public interface PublicKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.PublicKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type of public key.
+   * 
+ * + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. The type of public key.
+   * 
+ * + * + * .google.cloud.security.privateca.v1beta1.PublicKey.KeyType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.security.privateca.v1beta1.PublicKey.KeyType getType(); + + /** + * + * + *
+   * Required. A public key. Padding and encoding varies by 'KeyType' and is described
+   * along with the KeyType values.
+   * 
+ * + * bytes key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + com.google.protobuf.ByteString getKey(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java index 48b78261..606f8be1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.RestoreCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority].
@@ -11,15 +28,17 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest}
  */
-public final class RestoreCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RestoreCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)
     RestoreCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RestoreCertificateAuthorityRequest.newBuilder() to construct.
-  private RestoreCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private RestoreCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RestoreCertificateAuthorityRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,16 +46,15 @@ private RestoreCertificateAuthorityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RestoreCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RestoreCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +73,27 @@ private RestoreCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +101,43 @@ private RestoreCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +146,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +182,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +199,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +208,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +232,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +249,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +291,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,136 +323,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest 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.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + 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.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.RestoreCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.class, + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,19 +482,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_RestoreCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -450,8 +505,10 @@ public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRe } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest result = + new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -462,46 +519,53 @@ public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -525,11 +589,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -541,19 +608,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +633,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +658,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +729,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +746,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +761,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +778,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +793,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +810,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +841,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +868,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +894,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .RestoreCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RestoreCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +933,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java index a689302c..c9a42fd5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RestoreCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface RestoreCertificateAuthorityRequestOrBuilder extends +public interface RestoreCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.RestoreCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface RestoreCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface RestoreCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java index 69a6d861..ce5030f6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] refers to a managed [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues]. Those, in
  * turn, are used to describe certain fields of an X.509 certificate, such as
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfig}
  */
-public final class ReusableConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReusableConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfig)
     ReusableConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReusableConfig.newBuilder() to construct.
   private ReusableConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReusableConfig() {
     name_ = "";
     description_ = "";
@@ -29,16 +47,15 @@ private ReusableConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReusableConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReusableConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,77 +75,88 @@ private ReusableConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder = null;
-            if (values_ != null) {
-              subBuilder = values_.toBuilder();
+              name_ = s;
+              break;
             }
-            values_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(values_);
-              values_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder =
+                  null;
+              if (values_ != null) {
+                subBuilder = values_.toBuilder();
+              }
+              values_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(values_);
+                values_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -136,47 +164,51 @@ private ReusableConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 6:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ReusableConfig.class,
+            com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -185,30 +217,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * 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 { @@ -219,11 +251,16 @@ public java.lang.String getName() { public static final int VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues values_; /** + * + * *
    * Required. The config values.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the values field is set. */ @java.lang.Override @@ -231,38 +268,53 @@ public boolean hasValues() { return values_ != null; } /** + * + * *
    * Required. The config values.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The values. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getValues() { - return values_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : values_; + return values_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() + : values_; } /** + * + * *
    * Required. The config values.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getValuesOrBuilder() { return getValues(); } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -271,30 +323,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -305,11 +357,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 @@ -317,11 +373,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 @@ -329,11 +389,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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() { @@ -343,11 +406,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -355,11 +422,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -367,11 +438,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -379,24 +453,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 6; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -405,28 +478,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -434,11 +509,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -446,16 +522,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -463,12 +539,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -476,6 +551,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -487,8 +563,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -504,12 +579,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @@ -523,29 +594,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (values_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValues()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -555,34 +623,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfig other = (com.google.cloud.security.privateca.v1beta1.ReusableConfig) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfig other = + (com.google.cloud.security.privateca.v1beta1.ReusableConfig) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasValues() != other.hasValues()) return false; if (hasValues()) { - if (!getValues() - .equals(other.getValues())) return false; + if (!getValues().equals(other.getValues())) return false; } - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -620,96 +683,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ReusableConfig 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.security.privateca.v1beta1.ReusableConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] refers to a managed [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues]. Those, in
    * turn, are used to describe certain fields of an X.509 certificate, such as
@@ -719,43 +790,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfig)
       com.google.cloud.security.privateca.v1beta1.ReusableConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 6:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ReusableConfig.class, com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ReusableConfig.class,
+              com.google.cloud.security.privateca.v1beta1.ReusableConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfig.newBuilder()
@@ -763,16 +834,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -803,9 +873,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfig_descriptor;
     }
 
     @java.lang.Override
@@ -824,7 +894,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ReusableConfig buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ReusableConfig result = new com.google.cloud.security.privateca.v1beta1.ReusableConfig(this);
+      com.google.cloud.security.privateca.v1beta1.ReusableConfig result =
+          new com.google.cloud.security.privateca.v1beta1.ReusableConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (valuesBuilder_ == null) {
@@ -853,38 +924,39 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfig buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfig)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -892,7 +964,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfig other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -910,8 +983,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableCon
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -931,7 +1003,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ReusableConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -940,23 +1013,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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; @@ -965,21 +1041,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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 { @@ -987,57 +1064,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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 path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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 path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * 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; @@ -1045,41 +1129,61 @@ public Builder setNameBytes( private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues values_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> valuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + valuesBuilder_; /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the values field is set. */ public boolean hasValues() { return valuesBuilder_ != null || values_ != null; } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The values. */ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getValues() { if (valuesBuilder_ == null) { - return values_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : values_; + return values_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() + : values_; } else { return valuesBuilder_.getMessage(); } } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder setValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1093,11 +1197,15 @@ public Builder setValues(com.google.cloud.security.privateca.v1beta1.ReusableCon return this; } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setValues( com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder builderForValue) { @@ -1111,17 +1219,24 @@ public Builder setValues( return this; } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder mergeValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (valuesBuilder_ == null) { if (values_ != null) { values_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder(values_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder(values_) + .mergeFrom(value) + .buildPartial(); } else { values_ = value; } @@ -1133,11 +1248,15 @@ public Builder mergeValues(com.google.cloud.security.privateca.v1beta1.ReusableC return this; } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearValues() { if (valuesBuilder_ == null) { @@ -1151,48 +1270,66 @@ public Builder clearValues() { return this; } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder getValuesBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder + getValuesBuilder() { + onChanged(); return getValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getValuesOrBuilder() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilder(); } else { - return values_ == null ? - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() : values_; + return values_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance() + : values_; } } /** + * + * *
      * Required. The config values.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( - getValues(), - getParentForChildren(), - isClean()); + valuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( + getValues(), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; @@ -1200,19 +1337,21 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1221,21 +1360,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1243,57 +1383,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A human-readable description of scenarios these ReusableConfigValues may be
      * compatible with.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1301,39 +1448,58 @@ public Builder setDescriptionBytes( 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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) { @@ -1349,14 +1515,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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(); @@ -1367,17 +1536,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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; } @@ -1389,11 +1562,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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) { @@ -1407,48 +1584,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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_; @@ -1456,39 +1649,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1504,14 +1716,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1522,17 +1737,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1544,11 +1763,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1562,69 +1785,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1636,28 +1874,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - @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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -1665,11 +1905,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -1677,16 +1918,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
@@ -1694,12 +1936,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @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(); } @@ -1707,69 +1948,66 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - - 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(); } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - 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; } /** + * + * *
      * Optional. Labels with user-defined metadata.
      * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1779,12 +2017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfig) private static final com.google.cloud.security.privateca.v1beta1.ReusableConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfig(); } @@ -1793,16 +2031,16 @@ public static com.google.cloud.security.privateca.v1beta1.ReusableConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReusableConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReusableConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReusableConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReusableConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1817,6 +2055,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.ReusableConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java index a6d130e6..294c6d2d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigOrBuilder.java @@ -1,138 +1,202 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ReusableConfigOrBuilder extends +public interface ReusableConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * 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. The config values.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the values field is set. */ boolean hasValues(); /** + * + * *
    * Required. The config values.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The values. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getValues(); /** + * + * *
    * Required. The config values.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getValuesOrBuilder(); /** + * + * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A human-readable description of scenarios these ReusableConfigValues may be
    * compatible with.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] 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 at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -141,30 +205,31 @@ public interface ReusableConfigOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
@@ -173,18 +238,18 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Labels with user-defined metadata.
    * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java index 04067465..2dacd773 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValues.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
  * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues}
  */
-public final class ReusableConfigValues extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReusableConfigValues extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
     ReusableConfigValuesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReusableConfigValues.newBuilder() to construct.
   private ReusableConfigValues(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReusableConfigValues() {
     policyIds_ = java.util.Collections.emptyList();
     aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -29,16 +47,15 @@ private ReusableConfigValues() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReusableConfigValues();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReusableConfigValues(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,66 +75,86 @@ private ReusableConfigValues(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder subBuilder = null;
-            if (keyUsage_ != null) {
-              subBuilder = keyUsage_.toBuilder();
-            }
-            keyUsage_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.KeyUsage.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(keyUsage_);
-              keyUsage_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder subBuilder = null;
+              if (keyUsage_ != null) {
+                subBuilder = keyUsage_.toBuilder();
+              }
+              keyUsage_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.KeyUsage.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(keyUsage_);
+                keyUsage_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder subBuilder = null;
-            if (caOptions_ != null) {
-              subBuilder = caOptions_.toBuilder();
-            }
-            caOptions_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(caOptions_);
-              caOptions_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder
+                  subBuilder = null;
+              if (caOptions_ != null) {
+                subBuilder = caOptions_.toBuilder();
+              }
+              caOptions_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(caOptions_);
+                caOptions_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              policyIds_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            policyIds_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.ObjectId.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                policyIds_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              policyIds_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
+                      extensionRegistry));
+              break;
             }
-            aiaOcspServers_.add(s);
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              additionalExtensions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              aiaOcspServers_.add(s);
+              break;
             }
-            additionalExtensions_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.X509Extension.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                additionalExtensions_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1beta1.X509Extension>();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              additionalExtensions_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.X509Extension.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -125,8 +162,7 @@ private ReusableConfigValues(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         policyIds_ = java.util.Collections.unmodifiableList(policyIds_);
@@ -141,44 +177,56 @@ private ReusableConfigValues(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class,
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
   }
 
-  public interface CaOptionsOrBuilder extends
+  public interface CaOptionsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the isCa field is set. */ boolean hasIsCa(); /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isCa. */ com.google.protobuf.BoolValue getIsCa(); /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
@@ -189,6 +237,8 @@ public interface CaOptionsOrBuilder extends
     com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder();
 
     /**
+     *
+     *
      * 
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -198,11 +248,16 @@ public interface CaOptionsOrBuilder extends
      * CA certificate.
      * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxIssuerPathLength field is set. */ boolean hasMaxIssuerPathLength(); /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -212,11 +267,16 @@ public interface CaOptionsOrBuilder extends
      * CA certificate.
      * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxIssuerPathLength. */ com.google.protobuf.Int32Value getMaxIssuerPathLength(); /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -226,41 +286,44 @@ public interface CaOptionsOrBuilder extends
      * CA certificate.
      * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder(); } /** + * + * *
    * Describes values that are relevant in a CA certificate.
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions} */ - public static final class CaOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CaOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) CaOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CaOptions.newBuilder() to construct. private CaOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CaOptions() { - } + + private CaOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CaOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CaOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -279,39 +342,43 @@ private CaOptions( case 0: done = true; break; - case 10: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isCa_ != null) { - subBuilder = isCa_.toBuilder(); + case 10: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (isCa_ != null) { + subBuilder = isCa_.toBuilder(); + } + isCa_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isCa_); + isCa_ = subBuilder.buildPartial(); + } + + break; } - isCa_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isCa_); - isCa_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (maxIssuerPathLength_ != null) { + subBuilder = maxIssuerPathLength_.toBuilder(); + } + maxIssuerPathLength_ = + input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxIssuerPathLength_); + maxIssuerPathLength_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (maxIssuerPathLength_ != null) { - subBuilder = maxIssuerPathLength_.toBuilder(); - } - maxIssuerPathLength_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxIssuerPathLength_); - maxIssuerPathLength_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -319,35 +386,41 @@ private CaOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder.class); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder + .class); } public static final int IS_CA_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue isCa_; /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the isCa field is set. */ @java.lang.Override @@ -355,12 +428,15 @@ public boolean hasIsCa() { return isCa_ != null; } /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
      * 
* * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isCa. */ @java.lang.Override @@ -368,6 +444,8 @@ public com.google.protobuf.BoolValue getIsCa() { return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_; } /** + * + * *
      * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
      * value is missing, the extension will be omitted from the CA certificate.
@@ -383,6 +461,8 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
     public static final int MAX_ISSUER_PATH_LENGTH_FIELD_NUMBER = 2;
     private com.google.protobuf.Int32Value maxIssuerPathLength_;
     /**
+     *
+     *
      * 
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -392,7 +472,10 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
      * CA certificate.
      * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxIssuerPathLength field is set. */ @java.lang.Override @@ -400,6 +483,8 @@ public boolean hasMaxIssuerPathLength() { return maxIssuerPathLength_ != null; } /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -409,14 +494,21 @@ public boolean hasMaxIssuerPathLength() {
      * CA certificate.
      * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxIssuerPathLength. */ @java.lang.Override public com.google.protobuf.Int32Value getMaxIssuerPathLength() { - return maxIssuerPathLength_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxIssuerPathLength_; + return maxIssuerPathLength_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : maxIssuerPathLength_; } /** + * + * *
      * Optional. Refers to the path length restriction X.509 extension. For a CA
      * certificate, this value describes the depth of subordinate CA
@@ -426,7 +518,9 @@ public com.google.protobuf.Int32Value getMaxIssuerPathLength() {
      * CA certificate.
      * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() { @@ -434,6 +528,7 @@ public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -445,8 +540,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isCa_ != null) { output.writeMessage(1, getIsCa()); } @@ -463,12 +557,11 @@ public int getSerializedSize() { size = 0; if (isCa_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIsCa()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIsCa()); } if (maxIssuerPathLength_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxIssuerPathLength()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxIssuerPathLength()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -478,22 +571,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.security.privateca.v1beta1.ReusableConfigValues.CaOptions)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other = + (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) obj; if (hasIsCa() != other.hasIsCa()) return false; if (hasIsCa()) { - if (!getIsCa() - .equals(other.getIsCa())) return false; + if (!getIsCa().equals(other.getIsCa())) return false; } if (hasMaxIssuerPathLength() != other.hasMaxIssuerPathLength()) return false; if (hasMaxIssuerPathLength()) { - if (!getMaxIssuerPathLength() - .equals(other.getMaxIssuerPathLength())) return false; + if (!getMaxIssuerPathLength().equals(other.getMaxIssuerPathLength())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -519,88 +612,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions 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.security.privateca.v1beta1.ReusableConfigValues.CaOptions + 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.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -610,44 +716,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes values that are relevant in a CA certificate.
      * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder.class); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.class, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder + .class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -667,19 +779,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_CaOptions_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions build() { - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -687,8 +802,10 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOption } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions buildPartial() { - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(this); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + buildPartial() { + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions result = + new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(this); if (isCaBuilder_ == null) { result.isCa_ = isCa_; } else { @@ -707,46 +824,54 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOption public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.ReusableConfigValues.CaOptions) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions)other); + if (other + instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other) { - if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + .getDefaultInstance()) return this; if (other.hasIsCa()) { mergeIsCa(other.getIsCa()); } @@ -768,11 +893,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -784,26 +912,37 @@ public Builder mergeFrom( private com.google.protobuf.BoolValue isCa_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> isCaBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + isCaBuilder_; /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the isCa field is set. */ public boolean hasIsCa() { return isCaBuilder_ != null || isCa_ != null; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The isCa. */ public com.google.protobuf.BoolValue getIsCa() { @@ -814,12 +953,15 @@ public com.google.protobuf.BoolValue getIsCa() { } } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIsCa(com.google.protobuf.BoolValue value) { if (isCaBuilder_ == null) { @@ -835,15 +977,17 @@ public Builder setIsCa(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIsCa( - com.google.protobuf.BoolValue.Builder builderForValue) { + public Builder setIsCa(com.google.protobuf.BoolValue.Builder builderForValue) { if (isCaBuilder_ == null) { isCa_ = builderForValue.build(); onChanged(); @@ -854,18 +998,20 @@ public Builder setIsCa( return this; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeIsCa(com.google.protobuf.BoolValue value) { if (isCaBuilder_ == null) { if (isCa_ != null) { - isCa_ = - com.google.protobuf.BoolValue.newBuilder(isCa_).mergeFrom(value).buildPartial(); + isCa_ = com.google.protobuf.BoolValue.newBuilder(isCa_).mergeFrom(value).buildPartial(); } else { isCa_ = value; } @@ -877,12 +1023,15 @@ public Builder mergeIsCa(com.google.protobuf.BoolValue value) { return this; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIsCa() { if (isCaBuilder_ == null) { @@ -896,51 +1045,62 @@ public Builder clearIsCa() { return this; } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.BoolValue.Builder getIsCaBuilder() { - + onChanged(); return getIsCaFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() { if (isCaBuilder_ != null) { return isCaBuilder_.getMessageOrBuilder(); } else { - return isCa_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : isCa_; + return isCa_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCa_; } } /** + * + * *
        * Optional. Refers to the "CA" X.509 extension, which is a boolean value. When this
        * value is missing, the extension will be omitted from the CA certificate.
        * 
* - * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.BoolValue is_ca = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> getIsCaFieldBuilder() { if (isCaBuilder_ == null) { - isCaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getIsCa(), - getParentForChildren(), - isClean()); + isCaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getIsCa(), getParentForChildren(), isClean()); isCa_ = null; } return isCaBuilder_; @@ -948,8 +1108,13 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() { private com.google.protobuf.Int32Value maxIssuerPathLength_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> maxIssuerPathLengthBuilder_; + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + maxIssuerPathLengthBuilder_; /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -959,13 +1124,18 @@ public com.google.protobuf.BoolValueOrBuilder getIsCaOrBuilder() {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxIssuerPathLength field is set. */ public boolean hasMaxIssuerPathLength() { return maxIssuerPathLengthBuilder_ != null || maxIssuerPathLength_ != null; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -975,17 +1145,24 @@ public boolean hasMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxIssuerPathLength. */ public com.google.protobuf.Int32Value getMaxIssuerPathLength() { if (maxIssuerPathLengthBuilder_ == null) { - return maxIssuerPathLength_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : maxIssuerPathLength_; + return maxIssuerPathLength_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : maxIssuerPathLength_; } else { return maxIssuerPathLengthBuilder_.getMessage(); } } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -995,7 +1172,9 @@ public com.google.protobuf.Int32Value getMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) { if (maxIssuerPathLengthBuilder_ == null) { @@ -1011,6 +1190,8 @@ public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) { return this; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1020,7 +1201,9 @@ public Builder setMaxIssuerPathLength(com.google.protobuf.Int32Value value) {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxIssuerPathLength( com.google.protobuf.Int32Value.Builder builderForValue) { @@ -1034,6 +1217,8 @@ public Builder setMaxIssuerPathLength( return this; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1043,13 +1228,17 @@ public Builder setMaxIssuerPathLength(
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) { if (maxIssuerPathLengthBuilder_ == null) { if (maxIssuerPathLength_ != null) { maxIssuerPathLength_ = - com.google.protobuf.Int32Value.newBuilder(maxIssuerPathLength_).mergeFrom(value).buildPartial(); + com.google.protobuf.Int32Value.newBuilder(maxIssuerPathLength_) + .mergeFrom(value) + .buildPartial(); } else { maxIssuerPathLength_ = value; } @@ -1061,6 +1250,8 @@ public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) { return this; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1070,7 +1261,9 @@ public Builder mergeMaxIssuerPathLength(com.google.protobuf.Int32Value value) {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaxIssuerPathLength() { if (maxIssuerPathLengthBuilder_ == null) { @@ -1084,6 +1277,8 @@ public Builder clearMaxIssuerPathLength() { return this; } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1093,14 +1288,18 @@ public Builder clearMaxIssuerPathLength() {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Int32Value.Builder getMaxIssuerPathLengthBuilder() { - + onChanged(); return getMaxIssuerPathLengthFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1110,17 +1309,22 @@ public com.google.protobuf.Int32Value.Builder getMaxIssuerPathLengthBuilder() {
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder() { if (maxIssuerPathLengthBuilder_ != null) { return maxIssuerPathLengthBuilder_.getMessageOrBuilder(); } else { - return maxIssuerPathLength_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : maxIssuerPathLength_; + return maxIssuerPathLength_ == null + ? com.google.protobuf.Int32Value.getDefaultInstance() + : maxIssuerPathLength_; } } /** + * + * *
        * Optional. Refers to the path length restriction X.509 extension. For a CA
        * certificate, this value describes the depth of subordinate CA
@@ -1130,21 +1334,27 @@ public com.google.protobuf.Int32ValueOrBuilder getMaxIssuerPathLengthOrBuilder()
        * CA certificate.
        * 
* - * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Int32Value max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> getMaxIssuerPathLengthFieldBuilder() { if (maxIssuerPathLengthBuilder_ == null) { - maxIssuerPathLengthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getMaxIssuerPathLength(), - getParentForChildren(), - isClean()); + maxIssuerPathLengthBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder>( + getMaxIssuerPathLength(), getParentForChildren(), isClean()); maxIssuerPathLength_ = null; } return maxIssuerPathLengthBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1157,30 +1367,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions) - private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions(); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CaOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CaOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,20 +1405,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int KEY_USAGE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.KeyUsage keyUsage_; /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the keyUsage field is set. */ @java.lang.Override @@ -1213,23 +1431,34 @@ public boolean hasKeyUsage() { return keyUsage_ != null; } /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The keyUsage. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage() { - return keyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() : keyUsage_; + return keyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() + : keyUsage_; } /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder() { @@ -1239,12 +1468,17 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsage public static final int CA_OPTIONS_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions caOptions_; /** + * + * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the caOptions field is set. */ @java.lang.Override @@ -1252,89 +1486,122 @@ public boolean hasCaOptions() { return caOptions_ != null; } /** + * + * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The caOptions. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions() { - return caOptions_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance() : caOptions_; + return caOptions_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + .getDefaultInstance() + : caOptions_; } /** + * + * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder + getCaOptionsOrBuilder() { return getCaOptions(); } public static final int POLICY_IDS_FIELD_NUMBER = 3; private java.util.List policyIds_; /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getPolicyIdsList() { return policyIds_; } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getPolicyIdsOrBuilderList() { return policyIds_; } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getPolicyIdsCount() { return policyIds_.size(); } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index) { return policyIds_.get(index); } /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder( @@ -1345,6 +1612,8 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId public static final int AIA_OCSP_SERVERS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList aiaOcspServers_; /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1352,13 +1621,15 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList - getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { return aiaOcspServers_; } /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1366,12 +1637,15 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1379,6 +1653,7 @@ public int getAiaOcspServersCount() {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -1386,6 +1661,8 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -1393,75 +1670,100 @@ public java.lang.String getAiaOcspServers(int index) {
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString - getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER = 5; - private java.util.List additionalExtensions_; + private java.util.List + additionalExtensions_; /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAdditionalExtensionsList() { + public java.util.List + getAdditionalExtensionsList() { return additionalExtensions_; } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> getAdditionalExtensionsOrBuilderList() { return additionalExtensions_; } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAdditionalExtensionsCount() { return additionalExtensions_.size(); } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(int index) { + public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions( + int index) { return additionalExtensions_.get(index); } /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder + getAdditionalExtensionsOrBuilder(int index) { return additionalExtensions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1473,8 +1775,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (keyUsage_ != null) { output.writeMessage(1, getKeyUsage()); } @@ -1500,16 +1801,13 @@ public int getSerializedSize() { size = 0; if (keyUsage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getKeyUsage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyUsage()); } if (caOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCaOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCaOptions()); } for (int i = 0; i < policyIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, policyIds_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyIds_.get(i)); } { int dataSize = 0; @@ -1520,8 +1818,8 @@ public int getSerializedSize() { size += 1 * getAiaOcspServersList().size(); } for (int i = 0; i < additionalExtensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, additionalExtensions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, additionalExtensions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1531,29 +1829,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.security.privateca.v1beta1.ReusableConfigValues)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other = + (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) obj; if (hasKeyUsage() != other.hasKeyUsage()) return false; if (hasKeyUsage()) { - if (!getKeyUsage() - .equals(other.getKeyUsage())) return false; + if (!getKeyUsage().equals(other.getKeyUsage())) return false; } if (hasCaOptions() != other.hasCaOptions()) return false; if (hasCaOptions()) { - if (!getCaOptions() - .equals(other.getCaOptions())) return false; - } - if (!getPolicyIdsList() - .equals(other.getPolicyIdsList())) return false; - if (!getAiaOcspServersList() - .equals(other.getAiaOcspServersList())) return false; - if (!getAdditionalExtensionsList() - .equals(other.getAdditionalExtensionsList())) return false; + if (!getCaOptions().equals(other.getCaOptions())) return false; + } + if (!getPolicyIdsList().equals(other.getPolicyIdsList())) return false; + if (!getAiaOcspServersList().equals(other.getAiaOcspServersList())) return false; + if (!getAdditionalExtensionsList().equals(other.getAdditionalExtensionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1591,96 +1885,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues 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.security.privateca.v1beta1.ReusableConfigValues parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] is used to describe certain fields of an
    * X.509 certificate, such as the key usage fields, fields specific to CA
@@ -1689,21 +1991,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigValues}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigValues)
       com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.class,
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder()
@@ -1711,18 +2015,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPolicyIdsFieldBuilder();
         getAdditionalExtensionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1756,13 +2060,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigValues_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance();
     }
 
@@ -1777,7 +2082,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(this);
+      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues result =
+          new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(this);
       int from_bitField0_ = bitField0_;
       if (keyUsageBuilder_ == null) {
         result.keyUsage_ = keyUsage_;
@@ -1820,46 +2126,50 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.ReusableConfigValues other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance())
+        return this;
       if (other.hasKeyUsage()) {
         mergeKeyUsage(other.getKeyUsage());
       }
@@ -1884,9 +2194,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableCon
             policyIdsBuilder_ = null;
             policyIds_ = other.policyIds_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            policyIdsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPolicyIdsFieldBuilder() : null;
+            policyIdsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPolicyIdsFieldBuilder()
+                    : null;
           } else {
             policyIdsBuilder_.addAllMessages(other.policyIds_);
           }
@@ -1920,9 +2231,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableCon
             additionalExtensionsBuilder_ = null;
             additionalExtensions_ = other.additionalExtensions_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            additionalExtensionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAdditionalExtensionsFieldBuilder() : null;
+            additionalExtensionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAdditionalExtensionsFieldBuilder()
+                    : null;
           } else {
             additionalExtensionsBuilder_.addAllMessages(other.additionalExtensions_);
           }
@@ -1947,7 +2259,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1956,43 +2270,63 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.security.privateca.v1beta1.KeyUsage keyUsage_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.KeyUsage, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder> keyUsageBuilder_;
+            com.google.cloud.security.privateca.v1beta1.KeyUsage,
+            com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder,
+            com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>
+        keyUsageBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the keyUsage field is set. */ public boolean hasKeyUsage() { return keyUsageBuilder_ != null || keyUsage_ != null; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The keyUsage. */ public com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage() { if (keyUsageBuilder_ == null) { - return keyUsage_ == null ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() : keyUsage_; + return keyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() + : keyUsage_; } else { return keyUsageBuilder_.getMessage(); } } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage value) { if (keyUsageBuilder_ == null) { @@ -2008,11 +2342,15 @@ public Builder setKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKeyUsage( com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder builderForValue) { @@ -2026,17 +2364,23 @@ public Builder setKeyUsage( return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsage value) { if (keyUsageBuilder_ == null) { if (keyUsage_ != null) { keyUsage_ = - com.google.cloud.security.privateca.v1beta1.KeyUsage.newBuilder(keyUsage_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.KeyUsage.newBuilder(keyUsage_) + .mergeFrom(value) + .buildPartial(); } else { keyUsage_ = value; } @@ -2048,11 +2392,15 @@ public Builder mergeKeyUsage(com.google.cloud.security.privateca.v1beta1.KeyUsag return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKeyUsage() { if (keyUsageBuilder_ == null) { @@ -2066,48 +2414,64 @@ public Builder clearKeyUsage() { return this; } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder getKeyUsageBuilder() { - + onChanged(); return getKeyUsageFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder() { if (keyUsageBuilder_ != null) { return keyUsageBuilder_.getMessageOrBuilder(); } else { - return keyUsage_ == null ? - com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() : keyUsage_; + return keyUsage_ == null + ? com.google.cloud.security.privateca.v1beta1.KeyUsage.getDefaultInstance() + : keyUsage_; } } /** + * + * *
      * Optional. Indicates the intended use for keys that correspond to a certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder> + com.google.cloud.security.privateca.v1beta1.KeyUsage, + com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder> getKeyUsageFieldBuilder() { if (keyUsageBuilder_ == null) { - keyUsageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.KeyUsage, com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>( - getKeyUsage(), - getParentForChildren(), - isClean()); + keyUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.KeyUsage, + com.google.cloud.security.privateca.v1beta1.KeyUsage.Builder, + com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder>( + getKeyUsage(), getParentForChildren(), isClean()); keyUsage_ = null; } return keyUsageBuilder_; @@ -2115,44 +2479,66 @@ public com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsage private com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions caOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> caOptionsBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> + caOptionsBuilder_; /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the caOptions field is set. */ public boolean hasCaOptions() { return caOptionsBuilder_ != null || caOptions_ != null; } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The caOptions. */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + getCaOptions() { if (caOptionsBuilder_ == null) { - return caOptions_ == null ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance() : caOptions_; + return caOptions_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + .getDefaultInstance() + : caOptions_; } else { return caOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCaOptions(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { + public Builder setCaOptions( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { if (caOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2166,15 +2552,20 @@ public Builder setCaOptions(com.google.cloud.security.privateca.v1beta1.Reusable return this; } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCaOptions( - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder + builderForValue) { if (caOptionsBuilder_ == null) { caOptions_ = builderForValue.build(); onChanged(); @@ -2185,18 +2576,26 @@ public Builder setCaOptions( return this; } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeCaOptions(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { + public Builder mergeCaOptions( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions value) { if (caOptionsBuilder_ == null) { if (caOptions_ != null) { caOptions_ = - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder(caOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.newBuilder( + caOptions_) + .mergeFrom(value) + .buildPartial(); } else { caOptions_ = value; } @@ -2208,12 +2607,16 @@ public Builder mergeCaOptions(com.google.cloud.security.privateca.v1beta1.Reusab return this; } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCaOptions() { if (caOptionsBuilder_ == null) { @@ -2227,75 +2630,104 @@ public Builder clearCaOptions() { return this; } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder getCaOptionsBuilder() { - + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder + getCaOptionsBuilder() { + onChanged(); return getCaOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder + getCaOptionsOrBuilder() { if (caOptionsBuilder_ != null) { return caOptionsBuilder_.getMessageOrBuilder(); } else { - return caOptions_ == null ? - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.getDefaultInstance() : caOptions_; + return caOptions_ == null + ? com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions + .getDefaultInstance() + : caOptions_; } } /** + * + * *
      * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
      * relevant in a CA certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder> getCaOptionsFieldBuilder() { if (caOptionsBuilder_ == null) { - caOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder>( - getCaOptions(), - getParentForChildren(), - isClean()); + caOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + .CaOptionsOrBuilder>(getCaOptions(), getParentForChildren(), isClean()); caOptions_ = null; } return caOptionsBuilder_; } private java.util.List policyIds_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePolicyIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policyIds_ = new java.util.ArrayList(policyIds_); + policyIds_ = + new java.util.ArrayList( + policyIds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> policyIdsBuilder_; + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + policyIdsBuilder_; /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getPolicyIdsList() { if (policyIdsBuilder_ == null) { @@ -2305,12 +2737,16 @@ public java.util.List getP } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPolicyIdsCount() { if (policyIdsBuilder_ == null) { @@ -2320,12 +2756,16 @@ public int getPolicyIdsCount() { } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2335,12 +2775,16 @@ public com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int ind } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -2357,12 +2801,16 @@ public Builder setPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -2376,12 +2824,16 @@ public Builder setPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (policyIdsBuilder_ == null) { @@ -2397,12 +2849,16 @@ public Builder addPolicyIds(com.google.cloud.security.privateca.v1beta1.ObjectId return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId value) { @@ -2419,12 +2875,16 @@ public Builder addPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds( com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -2438,12 +2898,16 @@ public Builder addPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPolicyIds( int index, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -2457,19 +2921,22 @@ public Builder addPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllPolicyIds( java.lang.Iterable values) { if (policyIdsBuilder_ == null) { ensurePolicyIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policyIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyIds_); onChanged(); } else { policyIdsBuilder_.addAllMessages(values); @@ -2477,12 +2944,16 @@ public Builder addAllPolicyIds( return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPolicyIds() { if (policyIdsBuilder_ == null) { @@ -2495,12 +2966,16 @@ public Builder clearPolicyIds() { return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removePolicyIds(int index) { if (policyIdsBuilder_ == null) { @@ -2513,42 +2988,55 @@ public Builder removePolicyIds(int index) { return this; } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getPolicyIdsBuilder( int index) { return getPolicyIdsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder( int index) { if (policyIdsBuilder_ == null) { - return policyIds_.get(index); } else { + return policyIds_.get(index); + } else { return policyIdsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPolicyIdsOrBuilderList() { + public java.util.List + getPolicyIdsOrBuilderList() { if (policyIdsBuilder_ != null) { return policyIdsBuilder_.getMessageOrBuilderList(); } else { @@ -2556,65 +3044,85 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyId } } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIdsBuilder() { - return getPolicyIdsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + return getPolicyIdsFieldBuilder() + .addBuilder(com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder addPolicyIdsBuilder( int index) { - return getPolicyIdsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); + return getPolicyIdsFieldBuilder() + .addBuilder( + index, com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the X.509 certificate policy object identifiers, per
      * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPolicyIdsBuilderList() { + public java.util.List + getPolicyIdsBuilderList() { return getPolicyIdsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> getPolicyIdsFieldBuilder() { if (policyIdsBuilder_ == null) { - policyIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( - policyIds_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + policyIdsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( + policyIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policyIds_ = null; } return policyIdsBuilder_; } - private com.google.protobuf.LazyStringList aiaOcspServers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList aiaOcspServers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAiaOcspServersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { aiaOcspServers_ = new com.google.protobuf.LazyStringArrayList(aiaOcspServers_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2622,13 +3130,15 @@ private void ensureAiaOcspServersIsMutable() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the aiaOcspServers. */ - public com.google.protobuf.ProtocolStringList - getAiaOcspServersList() { + public com.google.protobuf.ProtocolStringList getAiaOcspServersList() { return aiaOcspServers_.getUnmodifiableView(); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2636,12 +3146,15 @@ private void ensureAiaOcspServersIsMutable() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of aiaOcspServers. */ public int getAiaOcspServersCount() { return aiaOcspServers_.size(); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2649,6 +3162,7 @@ public int getAiaOcspServersCount() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ @@ -2656,6 +3170,8 @@ public java.lang.String getAiaOcspServers(int index) { return aiaOcspServers_.get(index); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2663,14 +3179,16 @@ public java.lang.String getAiaOcspServers(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - public com.google.protobuf.ByteString - getAiaOcspServersBytes(int index) { + public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) { return aiaOcspServers_.getByteString(index); } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2678,21 +3196,23 @@ public java.lang.String getAiaOcspServers(int index) {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The aiaOcspServers to set. * @return This builder for chaining. */ - public Builder setAiaOcspServers( - int index, java.lang.String value) { + public Builder setAiaOcspServers(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2700,20 +3220,22 @@ public Builder setAiaOcspServers(
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServers( - java.lang.String value) { + public Builder addAiaOcspServers(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAiaOcspServersIsMutable(); + throw new NullPointerException(); + } + ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2721,18 +3243,19 @@ public Builder addAiaOcspServers(
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAllAiaOcspServers( - java.lang.Iterable values) { + public Builder addAllAiaOcspServers(java.lang.Iterable values) { ensureAiaOcspServersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, aiaOcspServers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aiaOcspServers_); onChanged(); return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2740,6 +3263,7 @@ public Builder addAllAiaOcspServers(
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAiaOcspServers() { @@ -2749,6 +3273,8 @@ public Builder clearAiaOcspServers() { return this; } /** + * + * *
      * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
      * that appear in the "Authority Information Access" extension in the
@@ -2756,41 +3282,52 @@ public Builder clearAiaOcspServers() {
      * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the aiaOcspServers to add. * @return This builder for chaining. */ - public Builder addAiaOcspServersBytes( - com.google.protobuf.ByteString value) { + public Builder addAiaOcspServersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAiaOcspServersIsMutable(); aiaOcspServers_.add(value); onChanged(); return this; } - private java.util.List additionalExtensions_ = - java.util.Collections.emptyList(); + private java.util.List + additionalExtensions_ = java.util.Collections.emptyList(); + private void ensureAdditionalExtensionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - additionalExtensions_ = new java.util.ArrayList(additionalExtensions_); + additionalExtensions_ = + new java.util.ArrayList( + additionalExtensions_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> additionalExtensionsBuilder_; + com.google.cloud.security.privateca.v1beta1.X509Extension, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + additionalExtensionsBuilder_; /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAdditionalExtensionsList() { + public java.util.List + getAdditionalExtensionsList() { if (additionalExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalExtensions_); } else { @@ -2798,11 +3335,15 @@ public java.util.List } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAdditionalExtensionsCount() { if (additionalExtensionsBuilder_ == null) { @@ -2812,13 +3353,18 @@ public int getAdditionalExtensionsCount() { } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(int index) { + public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions( + int index) { if (additionalExtensionsBuilder_ == null) { return additionalExtensions_.get(index); } else { @@ -2826,11 +3372,15 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalEx } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdditionalExtensions( int index, com.google.cloud.security.privateca.v1beta1.X509Extension value) { @@ -2847,14 +3397,19 @@ public Builder setAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdditionalExtensions( - int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); additionalExtensions_.set(index, builderForValue.build()); @@ -2865,13 +3420,18 @@ public Builder setAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1beta1.X509Extension value) { + public Builder addAdditionalExtensions( + com.google.cloud.security.privateca.v1beta1.X509Extension value) { if (additionalExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2885,11 +3445,15 @@ public Builder addAdditionalExtensions(com.google.cloud.security.privateca.v1bet return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( int index, com.google.cloud.security.privateca.v1beta1.X509Extension value) { @@ -2906,11 +3470,15 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { @@ -2924,14 +3492,19 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdditionalExtensions( - int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); additionalExtensions_.add(index, builderForValue.build()); @@ -2942,18 +3515,22 @@ public Builder addAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAdditionalExtensions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (additionalExtensionsBuilder_ == null) { ensureAdditionalExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalExtensions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExtensions_); onChanged(); } else { additionalExtensionsBuilder_.addAllMessages(values); @@ -2961,11 +3538,15 @@ public Builder addAllAdditionalExtensions( return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAdditionalExtensions() { if (additionalExtensionsBuilder_ == null) { @@ -2978,11 +3559,15 @@ public Builder clearAdditionalExtensions() { return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAdditionalExtensions(int index) { if (additionalExtensionsBuilder_ == null) { @@ -2995,39 +3580,53 @@ public Builder removeAdditionalExtensions(int index) { return this; } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder getAdditionalExtensionsBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder + getAdditionalExtensionsBuilder(int index) { return getAdditionalExtensionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder + getAdditionalExtensionsOrBuilder(int index) { if (additionalExtensionsBuilder_ == null) { - return additionalExtensions_.get(index); } else { + return additionalExtensions_.get(index); + } else { return additionalExtensionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdditionalExtensionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + getAdditionalExtensionsOrBuilderList() { if (additionalExtensionsBuilder_ != null) { return additionalExtensionsBuilder_.getMessageOrBuilderList(); } else { @@ -3035,45 +3634,67 @@ public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdd } } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addAdditionalExtensionsBuilder() { - return getAdditionalExtensionsFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder + addAdditionalExtensionsBuilder() { + return getAdditionalExtensionsFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addAdditionalExtensionsBuilder( - int index) { - return getAdditionalExtensionsFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder + addAdditionalExtensionsBuilder(int index) { + return getAdditionalExtensionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** + * + * *
      * Optional. Describes custom X.509 extensions.
      * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdditionalExtensionsBuilderList() { + public java.util.List + getAdditionalExtensionsBuilderList() { return getAdditionalExtensionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + com.google.cloud.security.privateca.v1beta1.X509Extension, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> getAdditionalExtensionsFieldBuilder() { if (additionalExtensionsBuilder_ == null) { - additionalExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( + additionalExtensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.X509Extension, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( additionalExtensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3082,9 +3703,9 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addAddi } return additionalExtensionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3094,30 +3715,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigValues) - private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigValues(); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReusableConfigValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReusableConfigValues(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReusableConfigValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReusableConfigValues(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3129,9 +3752,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java index 0ba5c05c..f2673d65 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigValuesOrBuilder.java @@ -1,119 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ReusableConfigValuesOrBuilder extends +public interface ReusableConfigValuesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigValues) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the keyUsage field is set. */ boolean hasKeyUsage(); /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The keyUsage. */ com.google.cloud.security.privateca.v1beta1.KeyUsage getKeyUsage(); /** + * + * *
    * Optional. Indicates the intended use for keys that correspond to a certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1beta1.KeyUsageOrBuilder getKeyUsageOrBuilder(); /** + * + * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the caOptions field is set. */ boolean hasCaOptions(); /** + * + * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The caOptions. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions getCaOptions(); /** + * + * *
    * Optional. Describes options in this [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] that are
    * relevant in a CA certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder getCaOptionsOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsOrBuilder + getCaOptionsOrBuilder(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getPolicyIdsList(); + java.util.List getPolicyIdsList(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1beta1.ObjectId getPolicyIds(int index); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPolicyIdsCount(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getPolicyIdsOrBuilderList(); /** + * + * *
    * Optional. Describes the X.509 certificate policy object identifiers, per
    * https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuilder(int index); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -121,11 +186,13 @@ com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuil
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the aiaOcspServers. */ - java.util.List - getAiaOcspServersList(); + java.util.List getAiaOcspServersList(); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -133,10 +200,13 @@ com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuil
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of aiaOcspServers. */ int getAiaOcspServersCount(); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -144,11 +214,14 @@ com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuil
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The aiaOcspServers at the given index. */ java.lang.String getAiaOcspServers(int index); /** + * + * *
    * Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses
    * that appear in the "Authority Information Access" extension in the
@@ -156,53 +229,73 @@ com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getPolicyIdsOrBuil
    * 
* * repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the aiaOcspServers at the given index. */ - com.google.protobuf.ByteString - getAiaOcspServersBytes(int index); + com.google.protobuf.ByteString getAiaOcspServersBytes(int index); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAdditionalExtensionsList(); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.security.privateca.v1beta1.X509Extension getAdditionalExtensions(int index); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAdditionalExtensionsCount(); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAdditionalExtensionsOrBuilderList(); /** + * + * *
    * Optional. Describes custom X.509 extensions.
    * 
* - * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.security.privateca.v1beta1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder( - int index); + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder + getAdditionalExtensionsOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java index 00b369e7..6648f3e1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapper.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] describes values that may assist in creating an
  * X.509 certificate, or a reference to a pre-defined set of values.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigWrapper}
  */
-public final class ReusableConfigWrapper extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReusableConfigWrapper extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)
     ReusableConfigWrapperOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReusableConfigWrapper.newBuilder() to construct.
   private ReusableConfigWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ReusableConfigWrapper() {
-  }
+
+  private ReusableConfigWrapper() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReusableConfigWrapper();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ReusableConfigWrapper(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,33 +69,43 @@ private ReusableConfigWrapper(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            configValuesCase_ = 1;
-            configValues_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder = null;
-            if (configValuesCase_ == 2) {
-              subBuilder = ((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_).toBuilder();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              configValuesCase_ = 1;
+              configValues_ = s;
+              break;
             }
-            configValues_ =
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_);
-              configValues_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder subBuilder =
+                  null;
+              if (configValuesCase_ == 2) {
+                subBuilder =
+                    ((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)
+                            configValues_)
+                        .toBuilder();
+              }
+              configValues_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues)
+                        configValues_);
+                configValues_ = subBuilder.buildPartial();
+              }
+              configValuesCase_ = 2;
+              break;
             }
-            configValuesCase_ = 2;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,35 +113,40 @@ private ReusableConfigWrapper(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class,
+            com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
   }
 
   private int configValuesCase_ = 0;
   private java.lang.Object configValues_;
+
   public enum ConfigValuesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     REUSABLE_CONFIG(1),
     REUSABLE_CONFIG_VALUES(2),
     CONFIGVALUES_NOT_SET(0);
     private final int value;
+
     private ConfigValuesCase(int value) {
       this.value = value;
     }
@@ -131,43 +162,52 @@ public static ConfigValuesCase valueOf(int value) {
 
     public static ConfigValuesCase forNumber(int value) {
       switch (value) {
-        case 1: return REUSABLE_CONFIG;
-        case 2: return REUSABLE_CONFIG_VALUES;
-        case 0: return CONFIGVALUES_NOT_SET;
-        default: return null;
+        case 1:
+          return REUSABLE_CONFIG;
+        case 2:
+          return REUSABLE_CONFIG_VALUES;
+        case 0:
+          return CONFIGVALUES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ConfigValuesCase
-  getConfigValuesCase() {
-    return ConfigValuesCase.forNumber(
-        configValuesCase_);
+  public ConfigValuesCase getConfigValuesCase() {
+    return ConfigValuesCase.forNumber(configValuesCase_);
   }
 
   public static final int REUSABLE_CONFIG_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the reusableConfig field is set. */ public boolean hasReusableConfig() { return configValuesCase_ == 1; } /** + * + * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reusableConfig. */ public java.lang.String getReusableConfig() { @@ -178,8 +218,7 @@ public java.lang.String getReusableConfig() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (configValuesCase_ == 1) { configValues_ = s; @@ -188,24 +227,25 @@ public java.lang.String getReusableConfig() { } } /** + * + * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for reusableConfig. */ - public com.google.protobuf.ByteString - getReusableConfigBytes() { + public com.google.protobuf.ByteString getReusableConfigBytes() { java.lang.Object ref = ""; if (configValuesCase_ == 1) { ref = configValues_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (configValuesCase_ == 1) { configValues_ = b; } @@ -217,11 +257,16 @@ public java.lang.String getReusableConfig() { public static final int REUSABLE_CONFIG_VALUES_FIELD_NUMBER = 2; /** + * + * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reusableConfigValues field is set. */ @java.lang.Override @@ -229,36 +274,48 @@ public boolean hasReusableConfigValues() { return configValuesCase_ == 2; } /** + * + * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reusableConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getReusableConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + getReusableConfigValues() { if (configValuesCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } /** + * + * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getReusableConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getReusableConfigValuesOrBuilder() { if (configValuesCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; + return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,13 +327,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configValuesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configValues_); } if (configValuesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); + output.writeMessage( + 2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); } unknownFields.writeTo(output); } @@ -291,8 +348,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configValues_); } if (configValuesCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,22 +360,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.security.privateca.v1beta1.ReusableConfigWrapper)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other = (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) obj; + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other = + (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) obj; if (!getConfigValuesCase().equals(other.getConfigValuesCase())) return false; switch (configValuesCase_) { case 1: - if (!getReusableConfig() - .equals(other.getReusableConfig())) return false; + if (!getReusableConfig().equals(other.getReusableConfig())) return false; break; case 2: - if (!getReusableConfigValues() - .equals(other.getReusableConfigValues())) return false; + if (!getReusableConfigValues().equals(other.getReusableConfigValues())) return false; break; case 0: default: @@ -351,96 +408,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper 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.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper 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.security.privateca.v1beta1.ReusableConfigWrapper + 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.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] describes values that may assist in creating an
    * X.509 certificate, or a reference to a pre-defined set of values.
@@ -448,38 +514,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.ReusableConfigWrapper}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)
       com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class, com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.class,
+              com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,13 +557,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_ReusableConfigWrapper_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance();
     }
 
@@ -510,7 +579,8 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper build()
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper result = new com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper(this);
+      com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper result =
+          new com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper(this);
       if (configValuesCase_ == 1) {
         result.configValues_ = configValues_;
       }
@@ -530,60 +600,67 @@ public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper 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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.getDefaultInstance())
+        return this;
       switch (other.getConfigValuesCase()) {
-        case REUSABLE_CONFIG: {
-          configValuesCase_ = 1;
-          configValues_ = other.configValues_;
-          onChanged();
-          break;
-        }
-        case REUSABLE_CONFIG_VALUES: {
-          mergeReusableConfigValues(other.getReusableConfigValues());
-          break;
-        }
-        case CONFIGVALUES_NOT_SET: {
-          break;
-        }
+        case REUSABLE_CONFIG:
+          {
+            configValuesCase_ = 1;
+            configValues_ = other.configValues_;
+            onChanged();
+            break;
+          }
+        case REUSABLE_CONFIG_VALUES:
+          {
+            mergeReusableConfigValues(other.getReusableConfigValues());
+            break;
+          }
+        case CONFIGVALUES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -604,7 +681,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -613,12 +692,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int configValuesCase_ = 0;
     private java.lang.Object configValues_;
-    public ConfigValuesCase
-        getConfigValuesCase() {
-      return ConfigValuesCase.forNumber(
-          configValuesCase_);
+
+    public ConfigValuesCase getConfigValuesCase() {
+      return ConfigValuesCase.forNumber(configValuesCase_);
     }
 
     public Builder clearConfigValues() {
@@ -628,14 +707,16 @@ public Builder clearConfigValues() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the reusableConfig field is set. */ @java.lang.Override @@ -643,12 +724,15 @@ public boolean hasReusableConfig() { return configValuesCase_ == 1; } /** + * + * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reusableConfig. */ @java.lang.Override @@ -658,8 +742,7 @@ public java.lang.String getReusableConfig() { ref = configValues_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (configValuesCase_ == 1) { configValues_ = s; @@ -670,25 +753,26 @@ public java.lang.String getReusableConfig() { } } /** + * + * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for reusableConfig. */ @java.lang.Override - public com.google.protobuf.ByteString - getReusableConfigBytes() { + public com.google.protobuf.ByteString getReusableConfigBytes() { java.lang.Object ref = ""; if (configValuesCase_ == 1) { ref = configValues_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (configValuesCase_ == 1) { configValues_ = b; } @@ -698,32 +782,37 @@ public java.lang.String getReusableConfig() { } } /** + * + * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The reusableConfig to set. * @return This builder for chaining. */ - public Builder setReusableConfig( - java.lang.String value) { + public Builder setReusableConfig(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - configValuesCase_ = 1; + throw new NullPointerException(); + } + configValuesCase_ = 1; configValues_ = value; onChanged(); return this; } /** + * + * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearReusableConfig() { @@ -735,21 +824,23 @@ public Builder clearReusableConfig() { return this; } /** + * + * *
      * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
      * `projects/*/locations/*/reusableConfigs/*`.
      * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for reusableConfig to set. * @return This builder for chaining. */ - public Builder setReusableConfigBytes( - com.google.protobuf.ByteString value) { + public Builder setReusableConfigBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); configValuesCase_ = 1; configValues_ = value; onChanged(); @@ -757,13 +848,21 @@ public Builder setReusableConfigBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> reusableConfigValuesBuilder_; + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + reusableConfigValuesBuilder_; /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reusableConfigValues field is set. */ @java.lang.Override @@ -771,35 +870,48 @@ public boolean hasReusableConfigValues() { return configValuesCase_ == 2; } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reusableConfigValues. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getReusableConfigValues() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + getReusableConfigValues() { if (reusableConfigValuesBuilder_ == null) { if (configValuesCase_ == 2) { return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + .getDefaultInstance(); } else { if (configValuesCase_ == 2) { return reusableConfigValuesBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + .getDefaultInstance(); } } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setReusableConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder setReusableConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (reusableConfigValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -813,11 +925,15 @@ public Builder setReusableConfigValues(com.google.cloud.security.privateca.v1bet return this; } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReusableConfigValues( com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder builderForValue) { @@ -831,18 +947,29 @@ public Builder setReusableConfigValues( return this; } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeReusableConfigValues(com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { + public Builder mergeReusableConfigValues( + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues value) { if (reusableConfigValuesBuilder_ == null) { - if (configValuesCase_ == 2 && - configValues_ != com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance()) { - configValues_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder((com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_) - .mergeFrom(value).buildPartial(); + if (configValuesCase_ == 2 + && configValues_ + != com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + .getDefaultInstance()) { + configValues_ = + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.newBuilder( + (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) + configValues_) + .mergeFrom(value) + .buildPartial(); } else { configValues_ = value; } @@ -858,11 +985,15 @@ public Builder mergeReusableConfigValues(com.google.cloud.security.privateca.v1b return this; } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReusableConfigValues() { if (reusableConfigValuesBuilder_ == null) { @@ -881,61 +1012,83 @@ public Builder clearReusableConfigValues() { return this; } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder getReusableConfigValuesBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder + getReusableConfigValuesBuilder() { return getReusableConfigValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getReusableConfigValuesOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getReusableConfigValuesOrBuilder() { if ((configValuesCase_ == 2) && (reusableConfigValuesBuilder_ != null)) { return reusableConfigValuesBuilder_.getMessageOrBuilder(); } else { if (configValuesCase_ == 2) { return (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_; } - return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.ReusableConfigValues + .getDefaultInstance(); } } /** + * + * *
      * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
      * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder> getReusableConfigValuesFieldBuilder() { if (reusableConfigValuesBuilder_ == null) { if (!(configValuesCase_ == 2)) { - configValues_ = com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); + configValues_ = + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.getDefaultInstance(); } - reusableConfigValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( + reusableConfigValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValues.Builder, + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder>( (com.google.cloud.security.privateca.v1beta1.ReusableConfigValues) configValues_, getParentForChildren(), isClean()); configValues_ = null; } configValuesCase_ = 2; - onChanged();; + onChanged(); + ; return reusableConfigValuesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -945,30 +1098,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) - private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper(); } - public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReusableConfigWrapper parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReusableConfigWrapper(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReusableConfigWrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReusableConfigWrapper(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,9 +1135,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java index 5e83bd06..eb54dc6b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigWrapperOrBuilder.java @@ -1,70 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface ReusableConfigWrapperOrBuilder extends +public interface ReusableConfigWrapperOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ReusableConfigWrapper) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the reusableConfig field is set. */ boolean hasReusableConfig(); /** + * + * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The reusableConfig. */ java.lang.String getReusableConfig(); /** + * + * *
    * Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format
    * `projects/*/locations/*/reusableConfigs/*`.
    * 
* * string reusable_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for reusableConfig. */ - com.google.protobuf.ByteString - getReusableConfigBytes(); + com.google.protobuf.ByteString getReusableConfigBytes(); /** + * + * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the reusableConfigValues field is set. */ boolean hasReusableConfigValues(); /** + * + * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reusableConfigValues. */ com.google.cloud.security.privateca.v1beta1.ReusableConfigValues getReusableConfigValues(); /** + * + * *
    * Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].
    * 
* - * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ReusableConfigValues reusable_config_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder getReusableConfigValuesOrBuilder(); + com.google.cloud.security.privateca.v1beta1.ReusableConfigValuesOrBuilder + getReusableConfigValuesOrBuilder(); - public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.ConfigValuesCase getConfigValuesCase(); + public com.google.cloud.security.privateca.v1beta1.ReusableConfigWrapper.ConfigValuesCase + getConfigValuesCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java index 745792b4..8a038bb9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevocationReason.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * A [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked,
  * and the reason for revocation. These correspond to standard revocation
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.cloud.security.privateca.v1beta1.RevocationReason}
  */
-public enum RevocationReason
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum RevocationReason implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -26,6 +44,8 @@ public enum RevocationReason
    */
   REVOCATION_REASON_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have leaked.
    * 
@@ -34,6 +54,8 @@ public enum RevocationReason */ KEY_COMPROMISE(1), /** + * + * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -43,6 +65,8 @@ public enum RevocationReason
    */
   CERTIFICATE_AUTHORITY_COMPROMISE(2),
   /**
+   *
+   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] have changed.
    * 
@@ -51,6 +75,8 @@ public enum RevocationReason */ AFFILIATION_CHANGED(3), /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been superseded.
    * 
@@ -59,6 +85,8 @@ public enum RevocationReason */ SUPERSEDED(4), /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -68,6 +96,8 @@ public enum RevocationReason
    */
   CESSATION_OF_OPERATION(5),
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -77,6 +107,8 @@ public enum RevocationReason
    */
   CERTIFICATE_HOLD(6),
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -86,6 +118,8 @@ public enum RevocationReason
    */
   PRIVILEGE_WITHDRAWN(7),
   /**
+   *
+   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * may have been compromised.
@@ -98,6 +132,8 @@ public enum RevocationReason
   ;
 
   /**
+   *
+   *
    * 
    * Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * has been revoked, but that a reason has not been recorded.
@@ -107,6 +143,8 @@ public enum RevocationReason
    */
   public static final int REVOCATION_REASON_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Key material for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have leaked.
    * 
@@ -115,6 +153,8 @@ public enum RevocationReason */ public static final int KEY_COMPROMISE_VALUE = 1; /** + * + * *
    * The key material for a certificate authority in the issuing path may have
    * leaked.
@@ -124,6 +164,8 @@ public enum RevocationReason
    */
   public static final int CERTIFICATE_AUTHORITY_COMPROMISE_VALUE = 2;
   /**
+   *
+   *
    * 
    * The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] have changed.
    * 
@@ -132,6 +174,8 @@ public enum RevocationReason */ public static final int AFFILIATION_CHANGED_VALUE = 3; /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been superseded.
    * 
@@ -140,6 +184,8 @@ public enum RevocationReason */ public static final int SUPERSEDED_VALUE = 4; /** + * + * *
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] or entities in the issuing path have ceased to
    * operate.
@@ -149,6 +195,8 @@ public enum RevocationReason
    */
   public static final int CESSATION_OF_OPERATION_VALUE = 5;
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] should not be considered valid, it is expected that it
    * may become valid in the future.
@@ -158,6 +206,8 @@ public enum RevocationReason
    */
   public static final int CERTIFICATE_HOLD_VALUE = 6;
   /**
+   *
+   *
    * 
    * This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] no longer has permission to assert the listed
    * attributes.
@@ -167,6 +217,8 @@ public enum RevocationReason
    */
   public static final int PRIVILEGE_WITHDRAWN_VALUE = 7;
   /**
+   *
+   *
    * 
    * The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]
    * may have been compromised.
@@ -176,7 +228,6 @@ public enum RevocationReason
    */
   public static final int ATTRIBUTE_AUTHORITY_COMPROMISE_VALUE = 8;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -201,55 +252,63 @@ public static RevocationReason valueOf(int value) {
    */
   public static RevocationReason forNumber(int value) {
     switch (value) {
-      case 0: return REVOCATION_REASON_UNSPECIFIED;
-      case 1: return KEY_COMPROMISE;
-      case 2: return CERTIFICATE_AUTHORITY_COMPROMISE;
-      case 3: return AFFILIATION_CHANGED;
-      case 4: return SUPERSEDED;
-      case 5: return CESSATION_OF_OPERATION;
-      case 6: return CERTIFICATE_HOLD;
-      case 7: return PRIVILEGE_WITHDRAWN;
-      case 8: return ATTRIBUTE_AUTHORITY_COMPROMISE;
-      default: return null;
+      case 0:
+        return REVOCATION_REASON_UNSPECIFIED;
+      case 1:
+        return KEY_COMPROMISE;
+      case 2:
+        return CERTIFICATE_AUTHORITY_COMPROMISE;
+      case 3:
+        return AFFILIATION_CHANGED;
+      case 4:
+        return SUPERSEDED;
+      case 5:
+        return CESSATION_OF_OPERATION;
+      case 6:
+        return CERTIFICATE_HOLD;
+      case 7:
+        return PRIVILEGE_WITHDRAWN;
+      case 8:
+        return ATTRIBUTE_AUTHORITY_COMPROMISE;
+      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<
-      RevocationReason> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RevocationReason findValueByNumber(int number) {
-            return RevocationReason.forNumber(number);
-          }
-        };
 
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public RevocationReason findValueByNumber(int number) {
+          return RevocationReason.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor().getEnumTypes().get(0);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.getDescriptor()
+        .getEnumTypes()
+        .get(0);
   }
 
   private static final RevocationReason[] VALUES = values();
 
-  public static RevocationReason valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static RevocationReason 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;
@@ -265,4 +324,3 @@ private RevocationReason(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.security.privateca.v1beta1.RevocationReason)
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
similarity index 69%
rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
index 54902c96..1f6718f8 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
+++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/security/privateca/v1beta1/service.proto
 
 package com.google.cloud.security.privateca.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for
  * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.RevokeCertificateRequest}
  */
-public final class RevokeCertificateRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RevokeCertificateRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)
     RevokeCertificateRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RevokeCertificateRequest.newBuilder() to construct.
   private RevokeCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RevokeCertificateRequest() {
     name_ = "";
     reason_ = 0;
@@ -28,16 +46,15 @@ private RevokeCertificateRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RevokeCertificateRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RevokeCertificateRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,31 +73,34 @@ private RevokeCertificateRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            reason_ = rawValue;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              reason_ = rawValue;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,35 +108,42 @@ private RevokeCertificateRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class,
+            com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * string name = 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 @@ -125,30 +152,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * string name = 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 { @@ -159,33 +188,50 @@ public java.lang.String getName() { public static final int REASON_FIELD_NUMBER = 2; private int reason_; /** + * + * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reason. */ - @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason() { + @java.lang.Override + public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); - return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = + com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED + : result; } public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -201,6 +247,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +256,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -232,16 +280,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +297,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,12 +309,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (reason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { + if (reason_ + != com.google.cloud.security.privateca.v1beta1.RevocationReason + .REVOCATION_REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { @@ -284,9 +334,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (reason_ != com.google.cloud.security.privateca.v1beta1.RevocationReason.REVOCATION_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reason_); + if (reason_ + != com.google.cloud.security.privateca.v1beta1.RevocationReason + .REVOCATION_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -299,18 +351,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.security.privateca.v1beta1.RevokeCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other = + (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (reason_ != other.reason_) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,96 +385,105 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest 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.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest 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.security.privateca.v1beta1.RevokeCertificateRequest + 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.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate].
@@ -431,38 +491,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.RevokeCertificateRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)
       com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.class,
+              com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -476,14 +538,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_RevokeCertificateRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -497,7 +561,8 @@ public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest buil
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest(this);
+      com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest result =
+          new com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest(this);
       result.name_ = name_;
       result.reason_ = reason_;
       result.requestId_ = requestId_;
@@ -509,46 +574,51 @@ public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest buil
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)other);
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -579,7 +649,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -591,19 +663,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -612,21 +688,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * string name = 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 { @@ -634,57 +713,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * 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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * string 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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
      * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
      * 
* - * 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; @@ -692,51 +784,75 @@ public Builder setNameBytes( private int reason_ = 0; /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { - + reason_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reason. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.RevocationReason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.security.privateca.v1beta1.RevocationReason result = com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); - return result == null ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED : result; + com.google.cloud.security.privateca.v1beta1.RevocationReason result = + com.google.cloud.security.privateca.v1beta1.RevocationReason.valueOf(reason_); + return result == null + ? com.google.cloud.security.privateca.v1beta1.RevocationReason.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The reason to set. * @return This builder for chaining. */ @@ -744,21 +860,26 @@ public Builder setReason(com.google.cloud.security.privateca.v1beta1.RevocationR if (value == null) { throw new NullPointerException(); } - + reason_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
      * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = 0; onChanged(); return this; @@ -766,6 +887,8 @@ public Builder clearReason() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -781,13 +904,13 @@ public Builder clearReason() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -796,6 +919,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -811,15 +936,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -827,6 +951,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -842,20 +968,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -871,15 +999,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -895,23 +1026,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -921,30 +1052,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RevokeCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RevokeCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RevokeCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,9 +1089,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.RevokeCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java index 6eb0b7c9..eb95c14e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/RevokeCertificateRequestOrBuilder.java @@ -1,54 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface RevokeCertificateRequestOrBuilder extends +public interface RevokeCertificateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.RevokeCertificateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * string name = 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 for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the
    * format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
    * 
* - * string name = 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 [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** + * + * *
    * Required. The [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] for revoking this certificate.
    * 
* - * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.RevocationReason reason = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The reason. */ com.google.cloud.security.privateca.v1beta1.RevocationReason getReason(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,10 +101,13 @@ public interface RevokeCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -83,8 +123,8 @@ public interface RevokeCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java index 21d9c3f9..9834cda4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequest.java @@ -1,25 +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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.ScheduleDeleteCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority].
  * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} */ -public final class ScheduleDeleteCertificateAuthorityRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScheduleDeleteCertificateAuthorityRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) ScheduleDeleteCertificateAuthorityRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScheduleDeleteCertificateAuthorityRequest.newBuilder() to construct. - private ScheduleDeleteCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ScheduleDeleteCertificateAuthorityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ScheduleDeleteCertificateAuthorityRequest() { name_ = ""; requestId_ = ""; @@ -27,16 +48,15 @@ private ScheduleDeleteCertificateAuthorityRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScheduleDeleteCertificateAuthorityRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ScheduleDeleteCertificateAuthorityRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,25 +75,27 @@ private ScheduleDeleteCertificateAuthorityRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -81,35 +103,44 @@ private ScheduleDeleteCertificateAuthorityRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .class, + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 @@ -118,30 +149,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 { @@ -152,6 +185,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -167,6 +202,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +211,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -198,16 +235,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -216,6 +252,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -258,17 +294,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,136 +326,169 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest 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.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + 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.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.ScheduleDeleteCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .class, + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,19 +500,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_ScheduleDeleteCertificateAuthorityRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest build() { - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + build() { + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -450,8 +524,11 @@ public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuth } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest(this); + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest result = + new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest( + this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -462,46 +539,55 @@ public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuth public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -525,11 +611,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -541,19 +630,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -562,21 +655,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string name = 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 { @@ -584,57 +680,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * string 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
      * format `projects/*/locations/*/certificateAuthorities/*`.
      * 
* - * 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; @@ -642,6 +751,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -657,13 +768,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -672,6 +783,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -687,15 +800,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -703,6 +815,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -718,20 +832,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -747,15 +863,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -771,23 +890,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -797,30 +916,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1 + .ScheduleDeleteCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScheduleDeleteCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScheduleDeleteCertificateAuthorityRequest(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScheduleDeleteCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScheduleDeleteCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,9 +957,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java index 25799eb7..cf18b5c2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ScheduleDeleteCertificateAuthorityRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder extends +public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.ScheduleDeleteCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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 for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the
    * format `projects/*/locations/*/certificateAuthorities/*`.
    * 
* - * string name = 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. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -45,10 +72,13 @@ public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -64,8 +94,8 @@ public interface ScheduleDeleteCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java index ebe3b155..ce728d71 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/Subject.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
  * describes the subject of the certificate.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.Subject}
  */
-public final class Subject extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Subject extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.Subject)
     SubjectOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Subject.newBuilder() to construct.
   private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Subject() {
     countryCode_ = "";
     organization_ = "";
@@ -32,16 +50,15 @@ private Subject() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Subject();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Subject(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,55 +77,62 @@ private Subject(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            countryCode_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              countryCode_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            organization_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              organization_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            organizationalUnit_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              organizationalUnit_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            locality_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              locality_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            province_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              province_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            streetAddress_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
+              streetAddress_ = s;
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            postalCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              postalCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,34 +140,39 @@ private Subject(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.Subject.class, com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.Subject.class,
+            com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
   }
 
   public static final int COUNTRY_CODE_FIELD_NUMBER = 1;
   private volatile java.lang.Object countryCode_;
   /**
+   *
+   *
    * 
    * The country code of the subject.
    * 
* * string country_code = 1; + * * @return The countryCode. */ @java.lang.Override @@ -152,29 +181,29 @@ public java.lang.String getCountryCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } } /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 1; + * * @return The bytes for countryCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { + public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); countryCode_ = b; return b; } else { @@ -185,11 +214,14 @@ public java.lang.String getCountryCode() { public static final int ORGANIZATION_FIELD_NUMBER = 2; private volatile java.lang.Object organization_; /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 2; + * * @return The organization. */ @java.lang.Override @@ -198,29 +230,29 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 2; + * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -231,11 +263,14 @@ public java.lang.String getOrganization() { public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER = 3; private volatile java.lang.Object organizationalUnit_; /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; + * * @return The organizationalUnit. */ @java.lang.Override @@ -244,29 +279,29 @@ public java.lang.String getOrganizationalUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; } } /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; + * * @return The bytes for organizationalUnit. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -277,11 +312,14 @@ public java.lang.String getOrganizationalUnit() { public static final int LOCALITY_FIELD_NUMBER = 4; private volatile java.lang.Object locality_; /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 4; + * * @return The locality. */ @java.lang.Override @@ -290,29 +328,29 @@ public java.lang.String getLocality() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; } } /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 4; + * * @return The bytes for locality. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -323,11 +361,14 @@ public java.lang.String getLocality() { public static final int PROVINCE_FIELD_NUMBER = 5; private volatile java.lang.Object province_; /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; + * * @return The province. */ @java.lang.Override @@ -336,29 +377,29 @@ public java.lang.String getProvince() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } } /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; + * * @return The bytes for province. */ @java.lang.Override - public com.google.protobuf.ByteString - getProvinceBytes() { + public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); province_ = b; return b; } else { @@ -369,11 +410,14 @@ public java.lang.String getProvince() { public static final int STREET_ADDRESS_FIELD_NUMBER = 6; private volatile java.lang.Object streetAddress_; /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 6; + * * @return The streetAddress. */ @java.lang.Override @@ -382,29 +426,29 @@ public java.lang.String getStreetAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; } } /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 6; + * * @return The bytes for streetAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getStreetAddressBytes() { + public com.google.protobuf.ByteString getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -415,11 +459,14 @@ public java.lang.String getStreetAddress() { public static final int POSTAL_CODE_FIELD_NUMBER = 7; private volatile java.lang.Object postalCode_; /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; + * * @return The postalCode. */ @java.lang.Override @@ -428,29 +475,29 @@ public java.lang.String getPostalCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; + * * @return The bytes for postalCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -459,6 +506,7 @@ public java.lang.String getPostalCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -470,8 +518,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, countryCode_); } @@ -531,27 +578,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.security.privateca.v1beta1.Subject)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.Subject other = (com.google.cloud.security.privateca.v1beta1.Subject) obj; - - if (!getCountryCode() - .equals(other.getCountryCode())) return false; - if (!getOrganization() - .equals(other.getOrganization())) return false; - if (!getOrganizationalUnit() - .equals(other.getOrganizationalUnit())) return false; - if (!getLocality() - .equals(other.getLocality())) return false; - if (!getProvince() - .equals(other.getProvince())) return false; - if (!getStreetAddress() - .equals(other.getStreetAddress())) return false; - if (!getPostalCode() - .equals(other.getPostalCode())) return false; + com.google.cloud.security.privateca.v1beta1.Subject other = + (com.google.cloud.security.privateca.v1beta1.Subject) obj; + + if (!getCountryCode().equals(other.getCountryCode())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; + if (!getOrganizationalUnit().equals(other.getOrganizationalUnit())) return false; + if (!getLocality().equals(other.getLocality())) return false; + if (!getProvince().equals(other.getProvince())) return false; + if (!getStreetAddress().equals(other.getStreetAddress())) return false; + if (!getPostalCode().equals(other.getPostalCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -583,96 +624,103 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.Subject 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.security.privateca.v1beta1.Subject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.Subject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.Subject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.Subject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
    * describes the subject of the certificate.
@@ -680,21 +728,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.Subject}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.Subject)
       com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.Subject.class, com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.Subject.class,
+              com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.Subject.newBuilder()
@@ -702,16 +752,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -733,9 +782,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
     }
 
     @java.lang.Override
@@ -754,7 +803,8 @@ public com.google.cloud.security.privateca.v1beta1.Subject build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.Subject buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.Subject result = new com.google.cloud.security.privateca.v1beta1.Subject(this);
+      com.google.cloud.security.privateca.v1beta1.Subject result =
+          new com.google.cloud.security.privateca.v1beta1.Subject(this);
       result.countryCode_ = countryCode_;
       result.organization_ = organization_;
       result.organizationalUnit_ = organizationalUnit_;
@@ -770,38 +820,39 @@ public com.google.cloud.security.privateca.v1beta1.Subject buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.Subject) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Subject)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Subject) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -809,7 +860,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Subject other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance())
+        return this;
       if (!other.getCountryCode().isEmpty()) {
         countryCode_ = other.countryCode_;
         onChanged();
@@ -857,7 +909,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.Subject) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.Subject) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -869,18 +922,20 @@ public Builder mergeFrom(
 
     private java.lang.Object countryCode_ = "";
     /**
+     *
+     *
      * 
      * The country code of the subject.
      * 
* * string country_code = 1; + * * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; @@ -889,20 +944,21 @@ public java.lang.String getCountryCode() { } } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 1; + * * @return The bytes for countryCode. */ - public com.google.protobuf.ByteString - getCountryCodeBytes() { + public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); countryCode_ = b; return b; } else { @@ -910,54 +966,61 @@ public java.lang.String getCountryCode() { } } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 1; + * * @param value The countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCode( - java.lang.String value) { + public Builder setCountryCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + countryCode_ = value; onChanged(); return this; } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 1; + * * @return This builder for chaining. */ public Builder clearCountryCode() { - + countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** + * + * *
      * The country code of the subject.
      * 
* * string country_code = 1; + * * @param value The bytes for countryCode to set. * @return This builder for chaining. */ - public Builder setCountryCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + countryCode_ = value; onChanged(); return this; @@ -965,18 +1028,20 @@ public Builder setCountryCodeBytes( private java.lang.Object organization_ = ""; /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 2; + * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -985,20 +1050,21 @@ public java.lang.String getOrganization() { } } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 2; + * * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -1006,54 +1072,61 @@ public java.lang.String getOrganization() { } } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 2; + * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization( - java.lang.String value) { + public Builder setOrganization(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 2; + * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** + * + * *
      * The organization of the subject.
      * 
* * string organization = 2; + * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -1061,18 +1134,20 @@ public Builder setOrganizationBytes( private java.lang.Object organizationalUnit_ = ""; /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; + * * @return The organizationalUnit. */ public java.lang.String getOrganizationalUnit() { java.lang.Object ref = organizationalUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationalUnit_ = s; return s; @@ -1081,20 +1156,21 @@ public java.lang.String getOrganizationalUnit() { } } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; + * * @return The bytes for organizationalUnit. */ - public com.google.protobuf.ByteString - getOrganizationalUnitBytes() { + public com.google.protobuf.ByteString getOrganizationalUnitBytes() { java.lang.Object ref = organizationalUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organizationalUnit_ = b; return b; } else { @@ -1102,54 +1178,61 @@ public java.lang.String getOrganizationalUnit() { } } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; + * * @param value The organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnit( - java.lang.String value) { + public Builder setOrganizationalUnit(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organizationalUnit_ = value; onChanged(); return this; } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; + * * @return This builder for chaining. */ public Builder clearOrganizationalUnit() { - + organizationalUnit_ = getDefaultInstance().getOrganizationalUnit(); onChanged(); return this; } /** + * + * *
      * The organizational_unit of the subject.
      * 
* * string organizational_unit = 3; + * * @param value The bytes for organizationalUnit to set. * @return This builder for chaining. */ - public Builder setOrganizationalUnitBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organizationalUnit_ = value; onChanged(); return this; @@ -1157,18 +1240,20 @@ public Builder setOrganizationalUnitBytes( private java.lang.Object locality_ = ""; /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 4; + * * @return The locality. */ public java.lang.String getLocality() { java.lang.Object ref = locality_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locality_ = s; return s; @@ -1177,20 +1262,21 @@ public java.lang.String getLocality() { } } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 4; + * * @return The bytes for locality. */ - public com.google.protobuf.ByteString - getLocalityBytes() { + public com.google.protobuf.ByteString getLocalityBytes() { java.lang.Object ref = locality_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locality_ = b; return b; } else { @@ -1198,54 +1284,61 @@ public java.lang.String getLocality() { } } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 4; + * * @param value The locality to set. * @return This builder for chaining. */ - public Builder setLocality( - java.lang.String value) { + public Builder setLocality(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locality_ = value; onChanged(); return this; } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 4; + * * @return This builder for chaining. */ public Builder clearLocality() { - + locality_ = getDefaultInstance().getLocality(); onChanged(); return this; } /** + * + * *
      * The locality or city of the subject.
      * 
* * string locality = 4; + * * @param value The bytes for locality to set. * @return This builder for chaining. */ - public Builder setLocalityBytes( - com.google.protobuf.ByteString value) { + public Builder setLocalityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locality_ = value; onChanged(); return this; @@ -1253,18 +1346,20 @@ public Builder setLocalityBytes( private java.lang.Object province_ = ""; /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; + * * @return The province. */ public java.lang.String getProvince() { java.lang.Object ref = province_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; @@ -1273,20 +1368,21 @@ public java.lang.String getProvince() { } } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; + * * @return The bytes for province. */ - public com.google.protobuf.ByteString - getProvinceBytes() { + public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); province_ = b; return b; } else { @@ -1294,54 +1390,61 @@ public java.lang.String getProvince() { } } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; + * * @param value The province to set. * @return This builder for chaining. */ - public Builder setProvince( - java.lang.String value) { + public Builder setProvince(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + province_ = value; onChanged(); return this; } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; + * * @return This builder for chaining. */ public Builder clearProvince() { - + province_ = getDefaultInstance().getProvince(); onChanged(); return this; } /** + * + * *
      * The province, territory, or regional state of the subject.
      * 
* * string province = 5; + * * @param value The bytes for province to set. * @return This builder for chaining. */ - public Builder setProvinceBytes( - com.google.protobuf.ByteString value) { + public Builder setProvinceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + province_ = value; onChanged(); return this; @@ -1349,18 +1452,20 @@ public Builder setProvinceBytes( private java.lang.Object streetAddress_ = ""; /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 6; + * * @return The streetAddress. */ public java.lang.String getStreetAddress() { java.lang.Object ref = streetAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streetAddress_ = s; return s; @@ -1369,20 +1474,21 @@ public java.lang.String getStreetAddress() { } } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 6; + * * @return The bytes for streetAddress. */ - public com.google.protobuf.ByteString - getStreetAddressBytes() { + public com.google.protobuf.ByteString getStreetAddressBytes() { java.lang.Object ref = streetAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streetAddress_ = b; return b; } else { @@ -1390,54 +1496,61 @@ public java.lang.String getStreetAddress() { } } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 6; + * * @param value The streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddress( - java.lang.String value) { + public Builder setStreetAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + streetAddress_ = value; onChanged(); return this; } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 6; + * * @return This builder for chaining. */ public Builder clearStreetAddress() { - + streetAddress_ = getDefaultInstance().getStreetAddress(); onChanged(); return this; } /** + * + * *
      * The street address of the subject.
      * 
* * string street_address = 6; + * * @param value The bytes for streetAddress to set. * @return This builder for chaining. */ - public Builder setStreetAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streetAddress_ = value; onChanged(); return this; @@ -1445,18 +1558,20 @@ public Builder setStreetAddressBytes( private java.lang.Object postalCode_ = ""; /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; + * * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; @@ -1465,20 +1580,21 @@ public java.lang.String getPostalCode() { } } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; + * * @return The bytes for postalCode. */ - public com.google.protobuf.ByteString - getPostalCodeBytes() { + public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postalCode_ = b; return b; } else { @@ -1486,61 +1602,68 @@ public java.lang.String getPostalCode() { } } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; + * * @param value The postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCode( - java.lang.String value) { + public Builder setPostalCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postalCode_ = value; onChanged(); return this; } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; + * * @return This builder for chaining. */ public Builder clearPostalCode() { - + postalCode_ = getDefaultInstance().getPostalCode(); onChanged(); return this; } /** + * + * *
      * The postal code of the subject.
      * 
* * string postal_code = 7; + * * @param value The bytes for postalCode to set. * @return This builder for chaining. */ - public Builder setPostalCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postalCode_ = 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); } @@ -1550,12 +1673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.Subject) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Subject) private static final com.google.cloud.security.privateca.v1beta1.Subject DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Subject(); } @@ -1564,16 +1687,16 @@ public static com.google.cloud.security.privateca.v1beta1.Subject getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subject(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subject(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1588,6 +1711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.Subject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java index 3a44c040..4a15d72c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNames.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] corresponds to a more modern way of listing what
  * the asserted identity is in a certificate (i.e., compared to the "common
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubjectAltNames}
  */
-public final class SubjectAltNames extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SubjectAltNames extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.SubjectAltNames)
     SubjectAltNamesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SubjectAltNames.newBuilder() to construct.
   private SubjectAltNames(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SubjectAltNames() {
     dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -31,16 +49,15 @@ private SubjectAltNames() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SubjectAltNames();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SubjectAltNames(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,58 +77,67 @@ private SubjectAltNames(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              dnsNames_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                dnsNames_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              dnsNames_.add(s);
+              break;
             }
-            dnsNames_.add(s);
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              uris_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                uris_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              uris_.add(s);
+              break;
             }
-            uris_.add(s);
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                emailAddresses_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              emailAddresses_.add(s);
+              break;
             }
-            emailAddresses_.add(s);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              ipAddresses_.add(s);
+              break;
             }
-            ipAddresses_.add(s);
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              customSans_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                customSans_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.security.privateca.v1beta1.X509Extension>();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              customSans_.add(
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.X509Extension.parser(),
+                      extensionRegistry));
+              break;
             }
-            customSans_.add(
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.X509Extension.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -119,8 +145,7 @@ private SubjectAltNames(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -141,50 +166,61 @@ private SubjectAltNames(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class,
+            com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
   }
 
   public static final int DNS_NAMES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList dnsNames_;
   /**
+   *
+   *
    * 
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList - getDnsNamesList() { + public com.google.protobuf.ProtocolStringList getDnsNamesList() { return dnsNames_; } /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -192,50 +228,60 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString - getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } public static final int URIS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList uris_; /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -243,50 +289,60 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList emailAddresses_; /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList - getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList getEmailAddressesList() { return emailAddresses_; } /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -294,50 +350,60 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString - getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } public static final int IP_ADDRESSES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ipAddresses_; /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_; } /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -345,22 +411,26 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int CUSTOM_SANS_FIELD_NUMBER = 5; private java.util.List customSans_; /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -368,10 +438,13 @@ public java.lang.String getIpAddresses(int index) { * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ @java.lang.Override - public java.util.List getCustomSansList() { + public java.util.List + getCustomSansList() { return customSans_; } /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -379,11 +452,14 @@ public java.util.List * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> getCustomSansOrBuilderList() { return customSans_; } /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -395,6 +471,8 @@ public int getCustomSansCount() { return customSans_.size(); } /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -406,6 +484,8 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension getCustomSans(i return customSans_.get(index); } /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -419,6 +499,7 @@ public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getCus } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -430,8 +511,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dnsNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsNames_.getRaw(i)); } @@ -489,8 +569,7 @@ public int getSerializedSize() { size += 1 * getIpAddressesList().size(); } for (int i = 0; i < customSans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, customSans_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, customSans_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -500,23 +579,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.security.privateca.v1beta1.SubjectAltNames)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.SubjectAltNames other = (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) obj; - - if (!getDnsNamesList() - .equals(other.getDnsNamesList())) return false; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (!getEmailAddressesList() - .equals(other.getEmailAddressesList())) return false; - if (!getIpAddressesList() - .equals(other.getIpAddressesList())) return false; - if (!getCustomSansList() - .equals(other.getCustomSansList())) return false; + com.google.cloud.security.privateca.v1beta1.SubjectAltNames other = + (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) obj; + + if (!getDnsNamesList().equals(other.getDnsNamesList())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (!getEmailAddressesList().equals(other.getEmailAddressesList())) return false; + if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; + if (!getCustomSansList().equals(other.getCustomSansList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -554,96 +629,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames 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.security.privateca.v1beta1.SubjectAltNames parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.SubjectAltNames prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.SubjectAltNames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * [SubjectAltNames][google.cloud.security.privateca.v1beta1.SubjectAltNames] corresponds to a more modern way of listing what
    * the asserted identity is in a certificate (i.e., compared to the "common
@@ -652,21 +735,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubjectAltNames}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.SubjectAltNames)
       com.google.cloud.security.privateca.v1beta1.SubjectAltNamesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class, com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.class,
+              com.google.cloud.security.privateca.v1beta1.SubjectAltNames.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.SubjectAltNames.newBuilder()
@@ -674,17 +759,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getCustomSansFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -706,9 +791,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_SubjectAltNames_descriptor;
     }
 
     @java.lang.Override
@@ -727,7 +812,8 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.SubjectAltNames buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.SubjectAltNames result = new com.google.cloud.security.privateca.v1beta1.SubjectAltNames(this);
+      com.google.cloud.security.privateca.v1beta1.SubjectAltNames result =
+          new com.google.cloud.security.privateca.v1beta1.SubjectAltNames(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = dnsNames_.getUnmodifiableView();
@@ -766,38 +852,39 @@ public com.google.cloud.security.privateca.v1beta1.SubjectAltNames buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.SubjectAltNames) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubjectAltNames)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubjectAltNames) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -805,7 +892,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubjectAltNames other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.SubjectAltNames.getDefaultInstance())
+        return this;
       if (!other.dnsNames_.isEmpty()) {
         if (dnsNames_.isEmpty()) {
           dnsNames_ = other.dnsNames_;
@@ -864,9 +952,10 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubjectAltN
             customSansBuilder_ = null;
             customSans_ = other.customSans_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            customSansBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCustomSansFieldBuilder() : null;
+            customSansBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCustomSansFieldBuilder()
+                    : null;
           } else {
             customSansBuilder_.addAllMessages(other.customSans_);
           }
@@ -891,7 +980,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.SubjectAltNames) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -900,44 +990,55 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList dnsNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList dnsNames_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureDnsNamesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         dnsNames_ = new com.google.protobuf.LazyStringArrayList(dnsNames_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @return A list containing the dnsNames. */ - public com.google.protobuf.ProtocolStringList - getDnsNamesList() { + public com.google.protobuf.ProtocolStringList getDnsNamesList() { return dnsNames_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @return The count of dnsNames. */ public int getDnsNamesCount() { return dnsNames_.size(); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param index The index of the element to return. * @return The dnsNames at the given index. */ @@ -945,80 +1046,90 @@ public java.lang.String getDnsNames(int index) { return dnsNames_.get(index); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - public com.google.protobuf.ByteString - getDnsNamesBytes(int index) { + public com.google.protobuf.ByteString getDnsNamesBytes(int index) { return dnsNames_.getByteString(index); } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param index The index to set the value at. * @param value The dnsNames to set. * @return This builder for chaining. */ - public Builder setDnsNames( - int index, java.lang.String value) { + public Builder setDnsNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param value The dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNames( - java.lang.String value) { + public Builder addDnsNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsNamesIsMutable(); + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param values The dnsNames to add. * @return This builder for chaining. */ - public Builder addAllDnsNames( - java.lang.Iterable values) { + public Builder addAllDnsNames(java.lang.Iterable values) { ensureDnsNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dnsNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsNames_); onChanged(); return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @return This builder for chaining. */ public Builder clearDnsNames() { @@ -1028,62 +1139,74 @@ public Builder clearDnsNames() { return this; } /** + * + * *
      * Contains only valid, fully-qualified host names.
      * 
* * repeated string dns_names = 1; + * * @param value The bytes of the dnsNames to add. * @return This builder for chaining. */ - public Builder addDnsNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addDnsNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDnsNamesIsMutable(); dnsNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -1091,80 +1214,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { + public Builder setUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { + public Builder addUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @return This builder for chaining. */ public Builder clearUris() { @@ -1174,62 +1307,74 @@ public Builder clearUris() { return this; } /** + * + * *
      * Contains only valid RFC 3986 URIs.
      * 
* * repeated string uris = 2; + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList emailAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList emailAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { emailAddresses_ = new com.google.protobuf.LazyStringArrayList(emailAddresses_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @return A list containing the emailAddresses. */ - public com.google.protobuf.ProtocolStringList - getEmailAddressesList() { + public com.google.protobuf.ProtocolStringList getEmailAddressesList() { return emailAddresses_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @return The count of emailAddresses. */ public int getEmailAddressesCount() { return emailAddresses_.size(); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ @@ -1237,80 +1382,90 @@ public java.lang.String getEmailAddresses(int index) { return emailAddresses_.get(index); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - public com.google.protobuf.ByteString - getEmailAddressesBytes(int index) { + public com.google.protobuf.ByteString getEmailAddressesBytes(int index) { return emailAddresses_.getByteString(index); } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param index The index to set the value at. * @param value The emailAddresses to set. * @return This builder for chaining. */ - public Builder setEmailAddresses( - int index, java.lang.String value) { + public Builder setEmailAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param value The emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddresses( - java.lang.String value) { + public Builder addEmailAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); + throw new NullPointerException(); + } + ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param values The emailAddresses to add. * @return This builder for chaining. */ - public Builder addAllEmailAddresses( - java.lang.Iterable values) { + public Builder addAllEmailAddresses(java.lang.Iterable values) { ensureEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, emailAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); onChanged(); return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @return This builder for chaining. */ public Builder clearEmailAddresses() { @@ -1320,62 +1475,74 @@ public Builder clearEmailAddresses() { return this; } /** + * + * *
      * Contains only valid RFC 2822 E-mail addresses.
      * 
* * repeated string email_addresses = 3; + * * @param value The bytes of the emailAddresses to add. * @return This builder for chaining. */ - public Builder addEmailAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addEmailAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ipAddresses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpAddressesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -1383,80 +1550,90 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses( - int index, java.lang.String value) { + public Builder setIpAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses( - java.lang.String value) { + public Builder addIpAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses( - java.lang.Iterable values) { + public Builder addAllIpAddresses(java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); onChanged(); return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -1466,20 +1643,22 @@ public Builder clearIpAddresses() { return this; } /** + * + * *
      * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
      * 
* * repeated string ip_addresses = 4; + * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); @@ -1487,25 +1666,34 @@ public Builder addIpAddressesBytes( } private java.util.List customSans_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomSansIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - customSans_ = new java.util.ArrayList(customSans_); + customSans_ = + new java.util.ArrayList( + customSans_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> customSansBuilder_; + com.google.cloud.security.privateca.v1beta1.X509Extension, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + customSansBuilder_; /** + * + * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public java.util.List getCustomSansList() { + public java.util.List + getCustomSansList() { if (customSansBuilder_ == null) { return java.util.Collections.unmodifiableList(customSans_); } else { @@ -1513,6 +1701,8 @@ public java.util.List } } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1527,6 +1717,8 @@ public int getCustomSansCount() { } } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1541,6 +1733,8 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension getCustomSans(i } } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1562,6 +1756,8 @@ public Builder setCustomSans( return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1569,7 +1765,8 @@ public Builder setCustomSans( * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ public Builder setCustomSans( - int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (customSansBuilder_ == null) { ensureCustomSansIsMutable(); customSans_.set(index, builderForValue.build()); @@ -1580,6 +1777,8 @@ public Builder setCustomSans( return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1600,6 +1799,8 @@ public Builder addCustomSans(com.google.cloud.security.privateca.v1beta1.X509Ext return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1621,6 +1822,8 @@ public Builder addCustomSans( return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1639,6 +1842,8 @@ public Builder addCustomSans( return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1646,7 +1851,8 @@ public Builder addCustomSans( * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ public Builder addCustomSans( - int index, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { + int index, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder builderForValue) { if (customSansBuilder_ == null) { ensureCustomSansIsMutable(); customSans_.add(index, builderForValue.build()); @@ -1657,6 +1863,8 @@ public Builder addCustomSans( return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1664,11 +1872,11 @@ public Builder addCustomSans( * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ public Builder addAllCustomSans( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (customSansBuilder_ == null) { ensureCustomSansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customSans_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customSans_); onChanged(); } else { customSansBuilder_.addAllMessages(values); @@ -1676,6 +1884,8 @@ public Builder addAllCustomSans( return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1693,6 +1903,8 @@ public Builder clearCustomSans() { return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1710,6 +1922,8 @@ public Builder removeCustomSans(int index) { return this; } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1721,28 +1935,34 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder getCust return getCustomSansFieldBuilder().getBuilder(index); } /** + * + * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getCustomSansOrBuilder( - int index) { + public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder + getCustomSansOrBuilder(int index) { if (customSansBuilder_ == null) { - return customSans_.get(index); } else { + return customSans_.get(index); + } else { return customSansBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public java.util.List - getCustomSansOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + getCustomSansOrBuilderList() { if (customSansBuilder_ != null) { return customSansBuilder_.getMessageOrBuilderList(); } else { @@ -1750,17 +1970,23 @@ public com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder getCus } } /** + * + * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addCustomSansBuilder() { - return getCustomSansFieldBuilder().addBuilder( - com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder + addCustomSansBuilder() { + return getCustomSansFieldBuilder() + .addBuilder( + com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** + * + * *
      * Contains additional subject alternative name values.
      * 
@@ -1769,37 +1995,44 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addCust */ public com.google.cloud.security.privateca.v1beta1.X509Extension.Builder addCustomSansBuilder( int index) { - return getCustomSansFieldBuilder().addBuilder( - index, com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); + return getCustomSansFieldBuilder() + .addBuilder( + index, + com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()); } /** + * + * *
      * Contains additional subject alternative name values.
      * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - public java.util.List - getCustomSansBuilderList() { + public java.util.List + getCustomSansBuilderList() { return getCustomSansFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> + com.google.cloud.security.privateca.v1beta1.X509Extension, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder> getCustomSansFieldBuilder() { if (customSansBuilder_ == null) { - customSansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.X509Extension, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( - customSans_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + customSansBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.X509Extension, + com.google.cloud.security.privateca.v1beta1.X509Extension.Builder, + com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder>( + customSans_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); customSans_ = null; } return customSansBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1809,12 +2042,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.SubjectAltNames) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.SubjectAltNames) private static final com.google.cloud.security.privateca.v1beta1.SubjectAltNames DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.SubjectAltNames(); } @@ -1823,16 +2056,16 @@ public static com.google.cloud.security.privateca.v1beta1.SubjectAltNames getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubjectAltNames parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubjectAltNames(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubjectAltNames parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubjectAltNames(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1847,6 +2080,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.SubjectAltNames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java index d002839a..d92584f6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectAltNamesOrBuilder.java @@ -1,186 +1,245 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface SubjectAltNamesOrBuilder extends +public interface SubjectAltNamesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.SubjectAltNames) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return A list containing the dnsNames. */ - java.util.List - getDnsNamesList(); + java.util.List getDnsNamesList(); /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @return The count of dnsNames. */ int getDnsNamesCount(); /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the element to return. * @return The dnsNames at the given index. */ java.lang.String getDnsNames(int index); /** + * + * *
    * Contains only valid, fully-qualified host names.
    * 
* * repeated string dns_names = 1; + * * @param index The index of the value to return. * @return The bytes of the dnsNames at the given index. */ - com.google.protobuf.ByteString - getDnsNamesBytes(int index); + com.google.protobuf.ByteString getDnsNamesBytes(int index); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * Contains only valid RFC 3986 URIs.
    * 
* * repeated string uris = 2; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return A list containing the emailAddresses. */ - java.util.List - getEmailAddressesList(); + java.util.List getEmailAddressesList(); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @return The count of emailAddresses. */ int getEmailAddressesCount(); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the element to return. * @return The emailAddresses at the given index. */ java.lang.String getEmailAddresses(int index); /** + * + * *
    * Contains only valid RFC 2822 E-mail addresses.
    * 
* * repeated string email_addresses = 3; + * * @param index The index of the value to return. * @return The bytes of the emailAddresses at the given index. */ - com.google.protobuf.ByteString - getEmailAddressesBytes(int index); + com.google.protobuf.ByteString getEmailAddressesBytes(int index); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return A list containing the ipAddresses. */ - java.util.List - getIpAddressesList(); + java.util.List getIpAddressesList(); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** + * + * *
    * Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
    * 
* * repeated string ip_addresses = 4; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString - getIpAddressesBytes(int index); + com.google.protobuf.ByteString getIpAddressesBytes(int index); /** + * + * *
    * Contains additional subject alternative name values.
    * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - java.util.List - getCustomSansList(); + java.util.List getCustomSansList(); /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -189,6 +248,8 @@ public interface SubjectAltNamesOrBuilder extends */ com.google.cloud.security.privateca.v1beta1.X509Extension getCustomSans(int index); /** + * + * *
    * Contains additional subject alternative name values.
    * 
@@ -197,15 +258,19 @@ public interface SubjectAltNamesOrBuilder extends */ int getCustomSansCount(); /** + * + * *
    * Contains additional subject alternative name values.
    * 
* * repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5; */ - java.util.List + java.util.List getCustomSansOrBuilderList(); /** + * + * *
    * Contains additional subject alternative name values.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java index fe0810a6..f989da9f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubjectOrBuilder.java @@ -1,149 +1,200 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface SubjectOrBuilder extends +public interface SubjectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.Subject) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 1; + * * @return The countryCode. */ java.lang.String getCountryCode(); /** + * + * *
    * The country code of the subject.
    * 
* * string country_code = 1; + * * @return The bytes for countryCode. */ - com.google.protobuf.ByteString - getCountryCodeBytes(); + com.google.protobuf.ByteString getCountryCodeBytes(); /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 2; + * * @return The organization. */ java.lang.String getOrganization(); /** + * + * *
    * The organization of the subject.
    * 
* * string organization = 2; + * * @return The bytes for organization. */ - com.google.protobuf.ByteString - getOrganizationBytes(); + com.google.protobuf.ByteString getOrganizationBytes(); /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; + * * @return The organizationalUnit. */ java.lang.String getOrganizationalUnit(); /** + * + * *
    * The organizational_unit of the subject.
    * 
* * string organizational_unit = 3; + * * @return The bytes for organizationalUnit. */ - com.google.protobuf.ByteString - getOrganizationalUnitBytes(); + com.google.protobuf.ByteString getOrganizationalUnitBytes(); /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 4; + * * @return The locality. */ java.lang.String getLocality(); /** + * + * *
    * The locality or city of the subject.
    * 
* * string locality = 4; + * * @return The bytes for locality. */ - com.google.protobuf.ByteString - getLocalityBytes(); + com.google.protobuf.ByteString getLocalityBytes(); /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; + * * @return The province. */ java.lang.String getProvince(); /** + * + * *
    * The province, territory, or regional state of the subject.
    * 
* * string province = 5; + * * @return The bytes for province. */ - com.google.protobuf.ByteString - getProvinceBytes(); + com.google.protobuf.ByteString getProvinceBytes(); /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 6; + * * @return The streetAddress. */ java.lang.String getStreetAddress(); /** + * + * *
    * The street address of the subject.
    * 
* * string street_address = 6; + * * @return The bytes for streetAddress. */ - com.google.protobuf.ByteString - getStreetAddressBytes(); + com.google.protobuf.ByteString getStreetAddressBytes(); /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; + * * @return The postalCode. */ java.lang.String getPostalCode(); /** + * + * *
    * The postal code of the subject.
    * 
* * string postal_code = 7; + * * @return The bytes for postalCode. */ - com.google.protobuf.ByteString - getPostalCodeBytes(); + com.google.protobuf.ByteString getPostalCodeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java index cfe8d3b2..712192f3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Describes a subordinate CA's issuers. This is either a resource path to a
  * known issuing [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig}
  */
-public final class SubordinateConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SubordinateConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig)
     SubordinateConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SubordinateConfig.newBuilder() to construct.
   private SubordinateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SubordinateConfig() {
-  }
+
+  private SubordinateConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SubordinateConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SubordinateConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,33 +69,47 @@ private SubordinateConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            subordinateConfigCase_ = 1;
-            subordinateConfig_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder subBuilder = null;
-            if (subordinateConfigCase_ == 2) {
-              subBuilder = ((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_).toBuilder();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              subordinateConfigCase_ = 1;
+              subordinateConfig_ = s;
+              break;
             }
-            subordinateConfig_ =
-                input.readMessage(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_);
-              subordinateConfig_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain
+                      .Builder
+                  subBuilder = null;
+              if (subordinateConfigCase_ == 2) {
+                subBuilder =
+                    ((com.google.cloud.security.privateca.v1beta1.SubordinateConfig
+                                .SubordinateConfigChain)
+                            subordinateConfig_)
+                        .toBuilder();
+              }
+              subordinateConfig_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.SubordinateConfig
+                          .SubordinateConfigChain.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.security.privateca.v1beta1.SubordinateConfig
+                            .SubordinateConfigChain)
+                        subordinateConfig_);
+                subordinateConfig_ = subBuilder.buildPartial();
+              }
+              subordinateConfigCase_ = 2;
+              break;
             }
-            subordinateConfigCase_ = 2;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,104 +117,120 @@ private SubordinateConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class,
+            com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
   }
 
-  public interface SubordinateConfigChainOrBuilder extends
+  public interface SubordinateConfigChainOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the pemCertificates. */ - java.util.List - getPemCertificatesList(); + java.util.List getPemCertificatesList(); /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of pemCertificates. */ int getPemCertificatesCount(); /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ java.lang.String getPemCertificates(int index); /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - com.google.protobuf.ByteString - getPemCertificatesBytes(int index); + com.google.protobuf.ByteString getPemCertificatesBytes(int index); } /** + * + * *
    * This message describes a subordinate CA's issuer certificate chain. This
    * wrapper exists for compatibility reasons.
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} */ - public static final class SubordinateConfigChain extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SubordinateConfigChain extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) SubordinateConfigChainOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubordinateConfigChain.newBuilder() to construct. private SubordinateConfigChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SubordinateConfigChain() { pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubordinateConfigChain(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubordinateConfigChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -204,22 +250,23 @@ private SubordinateConfigChain( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + pemCertificates_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pemCertificates_.add(s); + break; } - pemCertificates_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -227,8 +274,7 @@ private SubordinateConfigChain( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -237,50 +283,63 @@ private SubordinateConfigChain( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder.class); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .class, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .Builder.class); } public static final int PEM_CERTIFICATES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList pemCertificates_; /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { return pemCertificates_; } /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -288,20 +347,23 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** + * + * *
      * Required. Expected to be in leaf-to-root order according to RFC 5246.
      * 
* * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,8 +375,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pemCertificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCertificates_.getRaw(i)); } @@ -343,15 +404,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain other = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) obj; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain other = + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + obj; - if (!getPemCertificatesList() - .equals(other.getPemCertificatesList())) return false; + if (!getPemCertificatesList().equals(other.getPemCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,88 +436,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain 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.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + 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.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -463,45 +553,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * This message describes a subordinate CA's issuer certificate chain. This
      * wrapper exists for compatibility reasons.
      * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder.class); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .class, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -511,19 +610,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_SubordinateConfigChain_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain build() { - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + build() { + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -531,8 +634,12 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Subordinate } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain buildPartial() { - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain result = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain(this); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + buildPartial() { + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + result = + new com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = pemCertificates_.getUnmodifiableView(); @@ -547,46 +654,57 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Subordinate public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain other) { - if (other == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + other) { + if (other + == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance()) return this; if (!other.pemCertificates_.isEmpty()) { if (pemCertificates_.isEmpty()) { pemCertificates_ = other.pemCertificates_; @@ -612,11 +730,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,44 +746,58 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList pemCertificates_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList pemCertificates_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePemCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pemCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCertificates_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the pemCertificates. */ - public com.google.protobuf.ProtocolStringList - getPemCertificatesList() { + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { return pemCertificates_.getUnmodifiableView(); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of pemCertificates. */ public int getPemCertificatesCount() { return pemCertificates_.size(); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The pemCertificates at the given index. */ @@ -670,80 +805,95 @@ public java.lang.String getPemCertificates(int index) { return pemCertificates_.get(index); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the pemCertificates at the given index. */ - public com.google.protobuf.ByteString - getPemCertificatesBytes(int index) { + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { return pemCertificates_.getByteString(index); } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The pemCertificates to set. * @return This builder for chaining. */ - public Builder setPemCertificates( - int index, java.lang.String value) { + public Builder setPemCertificates(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.set(index, value); onChanged(); return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificates( - java.lang.String value) { + public Builder addPemCertificates(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePemCertificatesIsMutable(); + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The pemCertificates to add. * @return This builder for chaining. */ - public Builder addAllPemCertificates( - java.lang.Iterable values) { + public Builder addAllPemCertificates(java.lang.Iterable values) { ensurePemCertificatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pemCertificates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificates_); onChanged(); return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearPemCertificates() { @@ -753,25 +903,29 @@ public Builder clearPemCertificates() { return this; } /** + * + * *
        * Required. Expected to be in leaf-to-root order according to RFC 5246.
        * 
* - * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the pemCertificates to add. * @return This builder for chaining. */ - public Builder addPemCertificatesBytes( - com.google.protobuf.ByteString value) { + public Builder addPemCertificatesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePemCertificatesIsMutable(); pemCertificates_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -784,30 +938,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) - private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain(); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfigChain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfigChain(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfigChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfigChain(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,21 +979,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int subordinateConfigCase_ = 0; private java.lang.Object subordinateConfig_; + public enum SubordinateConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CERTIFICATE_AUTHORITY(1), PEM_ISSUER_CHAIN(2), SUBORDINATECONFIG_NOT_SET(0); private final int value; + private SubordinateConfigCase(int value) { this.value = value; } @@ -849,25 +1012,30 @@ public static SubordinateConfigCase valueOf(int value) { public static SubordinateConfigCase forNumber(int value) { switch (value) { - case 1: return CERTIFICATE_AUTHORITY; - case 2: return PEM_ISSUER_CHAIN; - case 0: return SUBORDINATECONFIG_NOT_SET; - default: return null; + case 1: + return CERTIFICATE_AUTHORITY; + case 2: + return PEM_ISSUER_CHAIN; + case 0: + return SUBORDINATECONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SubordinateConfigCase - getSubordinateConfigCase() { - return SubordinateConfigCase.forNumber( - subordinateConfigCase_); + public SubordinateConfigCase getSubordinateConfigCase() { + return SubordinateConfigCase.forNumber(subordinateConfigCase_); } public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1; /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -876,12 +1044,15 @@ public int getNumber() {
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -890,6 +1061,7 @@ public boolean hasCertificateAuthority() {
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthority. */ public java.lang.String getCertificateAuthority() { @@ -900,8 +1072,7 @@ public java.lang.String getCertificateAuthority() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -910,6 +1081,8 @@ public java.lang.String getCertificateAuthority() { } } /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -918,18 +1091,17 @@ public java.lang.String getCertificateAuthority() {
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthority. */ - public com.google.protobuf.ByteString - getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -941,12 +1113,17 @@ public java.lang.String getCertificateAuthority() { public static final int PEM_ISSUER_CHAIN_FIELD_NUMBER = 2; /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -954,38 +1131,55 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + getPemIssuerChain() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChainOrBuilder + getPemIssuerChainOrBuilder() { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -997,13 +1191,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 (subordinateConfigCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - output.writeMessage(2, (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); + output.writeMessage( + 2, + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_); } unknownFields.writeTo(output); } @@ -1018,8 +1214,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subordinateConfig_); } if (subordinateConfigCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) + subordinateConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1029,22 +1228,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.security.privateca.v1beta1.SubordinateConfig)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.SubordinateConfig other = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig) obj; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig other = + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig) obj; if (!getSubordinateConfigCase().equals(other.getSubordinateConfigCase())) return false; switch (subordinateConfigCase_) { case 1: - if (!getCertificateAuthority() - .equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority().equals(other.getCertificateAuthority())) return false; break; case 2: - if (!getPemIssuerChain() - .equals(other.getPemIssuerChain())) return false; + if (!getPemIssuerChain().equals(other.getPemIssuerChain())) return false; break; case 0: default: @@ -1078,96 +1276,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig 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.security.privateca.v1beta1.SubordinateConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.SubordinateConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a subordinate CA's issuers. This is either a resource path to a
    * known issuing [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], or a PEM issuer certificate chain.
@@ -1175,21 +1381,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.SubordinateConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.SubordinateConfig)
       com.google.cloud.security.privateca.v1beta1.SubordinateConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.class,
+              com.google.cloud.security.privateca.v1beta1.SubordinateConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.SubordinateConfig.newBuilder()
@@ -1197,16 +1405,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1216,13 +1423,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_SubordinateConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getDefaultInstanceForType() {
+    public com.google.cloud.security.privateca.v1beta1.SubordinateConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance();
     }
 
@@ -1237,7 +1445,8 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.SubordinateConfig buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.SubordinateConfig result = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig(this);
+      com.google.cloud.security.privateca.v1beta1.SubordinateConfig result =
+          new com.google.cloud.security.privateca.v1beta1.SubordinateConfig(this);
       if (subordinateConfigCase_ == 1) {
         result.subordinateConfig_ = subordinateConfig_;
       }
@@ -1257,38 +1466,39 @@ public com.google.cloud.security.privateca.v1beta1.SubordinateConfig buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.SubordinateConfig) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.SubordinateConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1296,21 +1506,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.SubordinateConfig other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.SubordinateConfig.getDefaultInstance())
+        return this;
       switch (other.getSubordinateConfigCase()) {
-        case CERTIFICATE_AUTHORITY: {
-          subordinateConfigCase_ = 1;
-          subordinateConfig_ = other.subordinateConfig_;
-          onChanged();
-          break;
-        }
-        case PEM_ISSUER_CHAIN: {
-          mergePemIssuerChain(other.getPemIssuerChain());
-          break;
-        }
-        case SUBORDINATECONFIG_NOT_SET: {
-          break;
-        }
+        case CERTIFICATE_AUTHORITY:
+          {
+            subordinateConfigCase_ = 1;
+            subordinateConfig_ = other.subordinateConfig_;
+            onChanged();
+            break;
+          }
+        case PEM_ISSUER_CHAIN:
+          {
+            mergePemIssuerChain(other.getPemIssuerChain());
+            break;
+          }
+        case SUBORDINATECONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1331,7 +1546,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.SubordinateConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.SubordinateConfig)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1340,12 +1557,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int subordinateConfigCase_ = 0;
     private java.lang.Object subordinateConfig_;
-    public SubordinateConfigCase
-        getSubordinateConfigCase() {
-      return SubordinateConfigCase.forNumber(
-          subordinateConfigCase_);
+
+    public SubordinateConfigCase getSubordinateConfigCase() {
+      return SubordinateConfigCase.forNumber(subordinateConfigCase_);
     }
 
     public Builder clearSubordinateConfig() {
@@ -1355,8 +1572,9 @@ public Builder clearSubordinateConfig() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1365,6 +1583,7 @@ public Builder clearSubordinateConfig() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -1372,6 +1591,8 @@ public boolean hasCertificateAuthority() { return subordinateConfigCase_ == 1; } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1380,6 +1601,7 @@ public boolean hasCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthority. */ @java.lang.Override @@ -1389,8 +1611,7 @@ public java.lang.String getCertificateAuthority() { ref = subordinateConfig_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (subordinateConfigCase_ == 1) { subordinateConfig_ = s; @@ -1401,6 +1622,8 @@ public java.lang.String getCertificateAuthority() { } } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1409,19 +1632,18 @@ public java.lang.String getCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthority. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateAuthorityBytes() { + public com.google.protobuf.ByteString getCertificateAuthorityBytes() { java.lang.Object ref = ""; if (subordinateConfigCase_ == 1) { ref = subordinateConfig_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (subordinateConfigCase_ == 1) { subordinateConfig_ = b; } @@ -1431,6 +1653,8 @@ public java.lang.String getCertificateAuthority() { } } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1439,20 +1663,22 @@ public java.lang.String getCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthority( - java.lang.String value) { + public Builder setCertificateAuthority(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - subordinateConfigCase_ = 1; + throw new NullPointerException(); + } + subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); return this; } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1461,6 +1687,7 @@ public Builder setCertificateAuthority(
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCertificateAuthority() { @@ -1472,6 +1699,8 @@ public Builder clearCertificateAuthority() { return this; } /** + * + * *
      * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
      * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -1480,15 +1709,15 @@ public Builder clearCertificateAuthority() {
      * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for certificateAuthority to set. * @return This builder for chaining. */ - public Builder setCertificateAuthorityBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateAuthorityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); subordinateConfigCase_ = 1; subordinateConfig_ = value; onChanged(); @@ -1496,14 +1725,24 @@ public Builder setCertificateAuthorityBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder> pemIssuerChainBuilder_; + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChainOrBuilder> + pemIssuerChainBuilder_; /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pemIssuerChain field is set. */ @java.lang.Override @@ -1511,37 +1750,53 @@ public boolean hasPemIssuerChain() { return subordinateConfigCase_ == 2; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pemIssuerChain. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + getPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } else { if (subordinateConfigCase_ == 2) { return pemIssuerChainBuilder_.getMessage(); } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPemIssuerChain(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain value) { + public Builder setPemIssuerChain( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + value) { if (pemIssuerChainBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1555,15 +1810,20 @@ public Builder setPemIssuerChain(com.google.cloud.security.privateca.v1beta1.Sub return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPemIssuerChain( - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder + builderForValue) { if (pemIssuerChainBuilder_ == null) { subordinateConfig_ = builderForValue.build(); onChanged(); @@ -1574,19 +1834,33 @@ public Builder setPemIssuerChain( return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergePemIssuerChain(com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain value) { + public Builder mergePemIssuerChain( + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + value) { if (pemIssuerChainBuilder_ == null) { - if (subordinateConfigCase_ == 2 && - subordinateConfig_ != com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance()) { - subordinateConfig_ = com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.newBuilder((com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_) - .mergeFrom(value).buildPartial(); + if (subordinateConfigCase_ == 2 + && subordinateConfig_ + != com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain.getDefaultInstance()) { + subordinateConfig_ = + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .newBuilder( + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain) + subordinateConfig_) + .mergeFrom(value) + .buildPartial(); } else { subordinateConfig_ = value; } @@ -1602,12 +1876,16 @@ public Builder mergePemIssuerChain(com.google.cloud.security.privateca.v1beta1.S return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPemIssuerChain() { if (pemIssuerChainBuilder_ == null) { @@ -1626,64 +1904,98 @@ public Builder clearPemIssuerChain() { return this; } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder getPemIssuerChainBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .Builder + getPemIssuerChainBuilder() { return getPemIssuerChainFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChainOrBuilder + getPemIssuerChainOrBuilder() { if ((subordinateConfigCase_ == 2) && (pemIssuerChainBuilder_ != null)) { return pemIssuerChainBuilder_.getMessageOrBuilder(); } else { if (subordinateConfigCase_ == 2) { - return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_; + return (com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain) + subordinateConfig_; } - return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + return com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } } /** + * + * *
      * Required. Contains the PEM certificate chain for the issuers of this
      * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
      * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder> + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChainOrBuilder> getPemIssuerChainFieldBuilder() { if (pemIssuerChainBuilder_ == null) { if (!(subordinateConfigCase_ == 2)) { - subordinateConfig_ = com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.getDefaultInstance(); + subordinateConfig_ = + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .getDefaultInstance(); } - pemIssuerChainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain.Builder, com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder>( - (com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain) subordinateConfig_, + pemIssuerChainBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + .Builder, + com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChainOrBuilder>( + (com.google.cloud.security.privateca.v1beta1.SubordinateConfig + .SubordinateConfigChain) + subordinateConfig_, getParentForChildren(), isClean()); subordinateConfig_ = null; } subordinateConfigCase_ = 2; - onChanged();; + onChanged(); + ; return pemIssuerChainBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1693,12 +2005,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.SubordinateConfig) - private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.SubordinateConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.SubordinateConfig(); } @@ -1707,16 +2020,16 @@ public static com.google.cloud.security.privateca.v1beta1.SubordinateConfig getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubordinateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubordinateConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubordinateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubordinateConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1731,6 +2044,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.SubordinateConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java index 940c14bd..873b96ed 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/SubordinateConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface SubordinateConfigOrBuilder extends +public interface SubordinateConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.SubordinateConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -16,10 +34,13 @@ public interface SubordinateConfigOrBuilder extends
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -28,10 +49,13 @@ public interface SubordinateConfigOrBuilder extends
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The certificateAuthority. */ java.lang.String getCertificateAuthority(); /** + * + * *
    * Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the same project that
    * was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field
@@ -40,40 +64,57 @@ public interface SubordinateConfigOrBuilder extends
    * 
* * string certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for certificateAuthority. */ - com.google.protobuf.ByteString - getCertificateAuthorityBytes(); + com.google.protobuf.ByteString getCertificateAuthorityBytes(); /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pemIssuerChain field is set. */ boolean hasPemIssuerChain(); /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pemIssuerChain. */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain getPemIssuerChain(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain + getPemIssuerChain(); /** + * + * *
    * Required. Contains the PEM certificate chain for the issuers of this
    * [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority], but not pem certificate for this CA itself.
    * 
* - * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain pem_issuer_chain = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder getPemIssuerChainOrBuilder(); + com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainOrBuilder + getPemIssuerChainOrBuilder(); - public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigCase getSubordinateConfigCase(); + public com.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigCase + getSubordinateConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java index 10149e1b..276594d5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest}
  */
-public final class UpdateCertificateAuthorityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateCertificateAuthorityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)
     UpdateCertificateAuthorityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateCertificateAuthorityRequest.newBuilder() to construct.
-  private UpdateCertificateAuthorityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateCertificateAuthorityRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateCertificateAuthorityRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateCertificateAuthorityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateCertificateAuthorityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,45 +72,53 @@ private UpdateCertificateAuthorityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder = null;
-            if (certificateAuthority_ != null) {
-              subBuilder = certificateAuthority_.toBuilder();
-            }
-            certificateAuthority_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(certificateAuthority_);
-              certificateAuthority_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder subBuilder =
+                  null;
+              if (certificateAuthority_ != null) {
+                subBuilder = certificateAuthority_.toBuilder();
+              }
+              certificateAuthority_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.CertificateAuthority.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(certificateAuthority_);
+                certificateAuthority_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,34 +126,42 @@ private UpdateCertificateAuthorityRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+        .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class,
+            com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder
+                .class);
   }
 
   public static final int CERTIFICATE_AUTHORITY_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_;
   /**
+   *
+   *
    * 
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ @java.lang.Override @@ -135,37 +169,54 @@ public boolean hasCertificateAuthority() { return certificateAuthority_ != null; } /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getCertificateAuthority() { + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { return getCertificateAuthority(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -173,11 +224,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -185,11 +240,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -199,6 +257,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -214,6 +274,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -222,14 +283,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -245,16 +307,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -263,6 +324,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificateAuthority_ != null) { output.writeMessage(1, getCertificateAuthority()); } @@ -295,12 +356,11 @@ public int getSerializedSize() { size = 0; if (certificateAuthority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificateAuthority()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateAuthority()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,25 +373,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.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)) { + if (!(obj + instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) obj; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other = + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) obj; if (hasCertificateAuthority() != other.hasCertificateAuthority()) return false; if (hasCertificateAuthority()) { - if (!getCertificateAuthority() - .equals(other.getCertificateAuthority())) return false; + if (!getCertificateAuthority().equals(other.getCertificateAuthority())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,97 +417,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest 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.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + 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.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority].
@@ -456,38 +529,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)
       com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.class,
+              com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -509,19 +585,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaProto
+          .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateAuthorityRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() {
-      return com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.getDefaultInstance();
+    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest build() {
-      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result = buildPartial();
+      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -529,8 +608,10 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityReq
     }
 
     @java.lang.Override
-    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(this);
+    public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
+        buildPartial() {
+      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest result =
+          new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(this);
       if (certificateAuthorityBuilder_ == null) {
         result.certificateAuthority_ = certificateAuthority_;
       } else {
@@ -550,46 +631,53 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)other);
+      if (other
+          instanceof
+          com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) {
+        return mergeFrom(
+            (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest other) {
+      if (other
+          == com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest
+              .getDefaultInstance()) return this;
       if (other.hasCertificateAuthority()) {
         mergeCertificateAuthority(other.getCertificateAuthority());
       }
@@ -615,11 +703,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parsedMessage = null;
+      com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,41 +722,62 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1beta1.CertificateAuthority certificateAuthority_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> certificateAuthorityBuilder_;
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority,
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder,
+            com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>
+        certificateAuthorityBuilder_;
     /**
+     *
+     *
      * 
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ public boolean hasCertificateAuthority() { return certificateAuthorityBuilder_ != null || certificateAuthority_ != null; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority + getCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { - return certificateAuthority_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } else { return certificateAuthorityBuilder_.getMessage(); } } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder setCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,11 +791,15 @@ public Builder setCertificateAuthority(com.google.cloud.security.privateca.v1bet return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateAuthority( com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder builderForValue) { @@ -697,17 +813,25 @@ public Builder setCertificateAuthority( return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { + public Builder mergeCertificateAuthority( + com.google.cloud.security.privateca.v1beta1.CertificateAuthority value) { if (certificateAuthorityBuilder_ == null) { if (certificateAuthority_ != null) { certificateAuthority_ = - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder(certificateAuthority_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.newBuilder( + certificateAuthority_) + .mergeFrom(value) + .buildPartial(); } else { certificateAuthority_ = value; } @@ -719,11 +843,15 @@ public Builder mergeCertificateAuthority(com.google.cloud.security.privateca.v1b return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateAuthority() { if (certificateAuthorityBuilder_ == null) { @@ -737,48 +865,66 @@ public Builder clearCertificateAuthority() { return this; } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder getCertificateAuthorityBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder + getCertificateAuthorityBuilder() { + onChanged(); return getCertificateAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder() { if (certificateAuthorityBuilder_ != null) { return certificateAuthorityBuilder_.getMessageOrBuilder(); } else { - return certificateAuthority_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() : certificateAuthority_; + return certificateAuthority_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateAuthority.getDefaultInstance() + : certificateAuthority_; } } /** + * + * *
      * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder> getCertificateAuthorityFieldBuilder() { if (certificateAuthorityBuilder_ == null) { - certificateAuthorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateAuthority, com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( - getCertificateAuthority(), - getParentForChildren(), - isClean()); + certificateAuthorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateAuthority, + com.google.cloud.security.privateca.v1beta1.CertificateAuthority.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder>( + getCertificateAuthority(), getParentForChildren(), isClean()); certificateAuthority_ = null; } return certificateAuthorityBuilder_; @@ -786,39 +932,55 @@ public com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder 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. A 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. A 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. A 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) { @@ -834,14 +996,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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(); @@ -852,17 +1016,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -874,11 +1041,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -892,48 +1062,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -941,6 +1124,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -956,13 +1141,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -971,6 +1156,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -986,15 +1173,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1002,6 +1188,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1017,20 +1205,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1046,15 +1236,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1070,23 +1263,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1096,30 +1289,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) - private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest(); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateAuthorityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateAuthorityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateAuthorityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,9 +1327,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java index 18b7809c..302e992d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateAuthorityRequestOrBuilder.java @@ -1,67 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface UpdateCertificateAuthorityRequestOrBuilder extends +public interface UpdateCertificateAuthorityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateAuthority field is set. */ boolean hasCertificateAuthority(); /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateAuthority. */ com.google.cloud.security.privateca.v1beta1.CertificateAuthority getCertificateAuthority(); /** + * + * *
    * Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateAuthority certificate_authority = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder getCertificateAuthorityOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateAuthorityOrBuilder + getCertificateAuthorityOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +121,13 @@ public interface UpdateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +143,8 @@ public interface UpdateCertificateAuthorityRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java index d66657cc..9fd5a2d2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate].
  * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRequest} */ -public final class UpdateCertificateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCertificateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) UpdateCertificateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCertificateRequest.newBuilder() to construct. private UpdateCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateCertificateRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCertificateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,52 @@ private UpdateCertificateRequest( case 0: done = true; break; - case 10: { - com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.Certificate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.security.privateca.v1beta1.Certificate.Builder subBuilder = null; + if (certificate_ != null) { + subBuilder = certificate_.toBuilder(); + } + certificate_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.Certificate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificate_); + certificate_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +123,41 @@ private UpdateCertificateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ @java.lang.Override @@ -134,37 +165,53 @@ public boolean hasCertificate() { return certificate_ != null; } /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { - return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() + : certificate_; } /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder + getCertificateOrBuilder() { return getCertificate(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -172,11 +219,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -184,11 +235,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -198,6 +252,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -213,6 +269,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -221,14 +278,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -244,16 +302,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -262,6 +319,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +331,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificate_ != null) { output.writeMessage(1, getCertificate()); } @@ -294,12 +351,10 @@ public int getSerializedSize() { size = 0; if (certificate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificate()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -312,25 +367,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.security.privateca.v1beta1.UpdateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) obj; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other = + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) obj; if (hasCertificate() != other.hasCertificate()) return false; if (hasCertificate()) { - if (!getCertificate() - .equals(other.getCertificate())) return false; + if (!getCertificate().equals(other.getCertificate())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,134 +411,145 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest 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.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest 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.security.privateca.v1beta1.UpdateCertificateRequest + 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.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate].
    * 
* * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.class, + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,14 +571,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + .getDefaultInstance(); } @java.lang.Override @@ -528,7 +594,8 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest buil @java.lang.Override public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest result = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest(this); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest result = + new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest(this); if (certificateBuilder_ == null) { result.certificate_ = certificate_; } else { @@ -548,46 +615,51 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest)other); + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + .getDefaultInstance()) return this; if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } @@ -617,7 +689,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,39 +703,58 @@ public Builder mergeFrom( private com.google.cloud.security.privateca.v1beta1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> certificateBuilder_; + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + certificateBuilder_; /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ public boolean hasCertificate() { return certificateBuilder_ != null || certificate_ != null; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ public com.google.cloud.security.privateca.v1beta1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() + : certificate_; } else { return certificateBuilder_.getMessage(); } } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { @@ -677,11 +770,15 @@ public Builder setCertificate(com.google.cloud.security.privateca.v1beta1.Certif return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificate( com.google.cloud.security.privateca.v1beta1.Certificate.Builder builderForValue) { @@ -695,17 +792,23 @@ public Builder setCertificate( return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.Certificate.newBuilder(certificate_) + .mergeFrom(value) + .buildPartial(); } else { certificate_ = value; } @@ -717,11 +820,15 @@ public Builder mergeCertificate(com.google.cloud.security.privateca.v1beta1.Cert return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -735,48 +842,65 @@ public Builder clearCertificate() { return this; } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1beta1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder + getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null ? - com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() : certificate_; + return certificate_ == null + ? com.google.cloud.security.privateca.v1beta1.Certificate.getDefaultInstance() + : certificate_; } } /** + * + * *
      * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.Certificate, com.google.cloud.security.privateca.v1beta1.Certificate.Builder, com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( - getCertificate(), - getParentForChildren(), - isClean()); + certificateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.Certificate, + com.google.cloud.security.privateca.v1beta1.Certificate.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder>( + getCertificate(), getParentForChildren(), isClean()); certificate_ = null; } return certificateBuilder_; @@ -784,39 +908,55 @@ public com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCerti 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. A 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. A 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. A 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) { @@ -832,14 +972,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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,17 +992,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -872,11 +1017,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -890,48 +1038,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -939,6 +1100,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -954,13 +1117,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -969,6 +1132,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -984,15 +1149,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1000,6 +1164,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1015,20 +1181,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1044,15 +1212,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1068,23 +1239,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1094,30 +1265,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) - private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest(); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,9 +1302,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java index a9d543d5..eed4a3ff 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRequestOrBuilder.java @@ -1,67 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface UpdateCertificateRequestOrBuilder extends +public interface UpdateCertificateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificate field is set. */ boolean hasCertificate(); /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificate. */ com.google.cloud.security.privateca.v1beta1.Certificate getCertificate(); /** + * + * *
    * Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1beta1.CertificateOrBuilder getCertificateOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +120,13 @@ public interface UpdateCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +142,8 @@ public interface UpdateCertificateRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java index 47d1c014..f2e611dc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequest.java @@ -1,41 +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/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * Request message for
  * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList].
  * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} */ -public final class UpdateCertificateRevocationListRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCertificateRevocationListRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) UpdateCertificateRevocationListRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCertificateRevocationListRequest.newBuilder() to construct. - private UpdateCertificateRevocationListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateCertificateRevocationListRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateCertificateRevocationListRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCertificateRevocationListRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCertificateRevocationListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,45 +74,54 @@ private UpdateCertificateRevocationListRequest( case 0: done = true; break; - case 10: { - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder subBuilder = null; - if (certificateRevocationList_ != null) { - subBuilder = certificateRevocationList_.toBuilder(); - } - certificateRevocationList_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateRevocationList_); - certificateRevocationList_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + subBuilder = null; + if (certificateRevocationList_ != null) { + subBuilder = certificateRevocationList_.toBuilder(); + } + certificateRevocationList_ = + input.readMessage( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(certificateRevocationList_); + certificateRevocationList_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +129,44 @@ private UpdateCertificateRevocationListRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + .class, + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + .Builder.class); } public static final int CERTIFICATE_REVOCATION_LIST_FIELD_NUMBER = 1; - private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList certificateRevocationList_; + private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + certificateRevocationList_; /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateRevocationList field is set. */ @java.lang.Override @@ -135,37 +174,54 @@ public boolean hasCertificateRevocationList() { return certificateRevocationList_ != null; } /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateRevocationList. */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList() { - return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationList() { + return certificateRevocationList_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() + : certificateRevocationList_; } /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder + getCertificateRevocationListOrBuilder() { return getCertificateRevocationList(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A 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 @@ -173,11 +229,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. A 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 @@ -185,11 +245,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A 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() { @@ -199,6 +262,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -214,6 +279,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -222,14 +288,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -245,16 +312,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -263,6 +329,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (certificateRevocationList_ != null) { output.writeMessage(1, getCertificateRevocationList()); } @@ -295,12 +361,12 @@ public int getSerializedSize() { size = 0; if (certificateRevocationList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCertificateRevocationList()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getCertificateRevocationList()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,25 +379,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.security.privateca.v1beta1.UpdateCertificateRevocationListRequest)) { + if (!(obj + instanceof + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) obj; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other = + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) obj; if (hasCertificateRevocationList() != other.hasCertificateRevocationList()) return false; if (hasCertificateRevocationList()) { - if (!getCertificateRevocationList() - .equals(other.getCertificateRevocationList())) return false; + if (!getCertificateRevocationList().equals(other.getCertificateRevocationList())) + 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,136 +425,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest 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.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + 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.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [CertificateAuthorityService.UpdateCertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList].
    * 
* - * Protobuf type {@code google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} + * Protobuf type {@code + * google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.class, com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.Builder.class); + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + .class, + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + .Builder.class); } - // Construct using com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.newBuilder() + // Construct using + // com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -509,19 +596,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.security.privateca.v1beta1.PrivateCaProto.internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1beta1.PrivateCaProto + .internal_static_google_cloud_security_privateca_v1beta1_UpdateCertificateRevocationListRequest_descriptor; } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() { - return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.getDefaultInstance(); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest build() { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = buildPartial(); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + build() { + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -529,8 +620,11 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationLi } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest buildPartial() { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest(this); + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + buildPartial() { + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest result = + new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest( + this); if (certificateRevocationListBuilder_ == null) { result.certificateRevocationList_ = certificateRevocationList_; } else { @@ -550,46 +644,54 @@ public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationLi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) { - return mergeFrom((com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest)other); + if (other + instanceof + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) { + return mergeFrom( + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other) { - if (other == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest other) { + if (other + == com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + .getDefaultInstance()) return this; if (other.hasCertificateRevocationList()) { mergeCertificateRevocationList(other.getCertificateRevocationList()); } @@ -615,11 +717,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest parsedMessage = null; + com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,43 +734,66 @@ public Builder mergeFrom( return this; } - private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList certificateRevocationList_; + private com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + certificateRevocationList_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> certificateRevocationListBuilder_; + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + certificateRevocationListBuilder_; /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateRevocationList field is set. */ public boolean hasCertificateRevocationList() { return certificateRevocationListBuilder_ != null || certificateRevocationList_ != null; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateRevocationList. */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { - return certificateRevocationList_ == null ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; + return certificateRevocationList_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .getDefaultInstance() + : certificateRevocationList_; } else { return certificateRevocationListBuilder_.getMessage(); } } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { + public Builder setCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,14 +807,19 @@ public Builder setCertificateRevocationList(com.google.cloud.security.privateca. return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCertificateRevocationList( - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder builderForValue) { + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + builderForValue) { if (certificateRevocationListBuilder_ == null) { certificateRevocationList_ = builderForValue.build(); onChanged(); @@ -697,17 +830,25 @@ public Builder setCertificateRevocationList( return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCertificateRevocationList(com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { + public Builder mergeCertificateRevocationList( + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList value) { if (certificateRevocationListBuilder_ == null) { if (certificateRevocationList_ != null) { certificateRevocationList_ = - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder(certificateRevocationList_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.newBuilder( + certificateRevocationList_) + .mergeFrom(value) + .buildPartial(); } else { certificateRevocationList_ = value; } @@ -719,11 +860,15 @@ public Builder mergeCertificateRevocationList(com.google.cloud.security.privatec return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCertificateRevocationList() { if (certificateRevocationListBuilder_ == null) { @@ -737,48 +882,67 @@ public Builder clearCertificateRevocationList() { return this; } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder getCertificateRevocationListBuilder() { - + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder + getCertificateRevocationListBuilder() { + onChanged(); return getCertificateRevocationListFieldBuilder().getBuilder(); } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder() { + public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder + getCertificateRevocationListOrBuilder() { if (certificateRevocationListBuilder_ != null) { return certificateRevocationListBuilder_.getMessageOrBuilder(); } else { - return certificateRevocationList_ == null ? - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.getDefaultInstance() : certificateRevocationList_; + return certificateRevocationList_ == null + ? com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + .getDefaultInstance() + : certificateRevocationList_; } } /** + * + * *
      * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
      * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder> getCertificateRevocationListFieldBuilder() { if (certificateRevocationListBuilder_ == null) { - certificateRevocationListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( - getCertificateRevocationList(), - getParentForChildren(), - isClean()); + certificateRevocationListBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList.Builder, + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder>( + getCertificateRevocationList(), getParentForChildren(), isClean()); certificateRevocationList_ = null; } return certificateRevocationListBuilder_; @@ -786,39 +950,55 @@ public com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBu 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. A 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. A 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. A 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) { @@ -834,14 +1014,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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(); @@ -852,17 +1034,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A 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; } @@ -874,11 +1059,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A 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) { @@ -892,48 +1080,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A 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. A 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. A 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_; @@ -941,6 +1142,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -956,13 +1159,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -971,6 +1174,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -986,15 +1191,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1002,6 +1206,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1017,20 +1223,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1046,15 +1254,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. An ID to identify requests. Specify a unique request ID so that if you must
      * retry your request, the server will know to ignore the request if it has
@@ -1070,23 +1281,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1096,30 +1307,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) - private static final com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest DEFAULT_INSTANCE; + private static final com.google.cloud.security.privateca.v1beta1 + .UpdateCertificateRevocationListRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest(); } - public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest getDefaultInstance() { + public static com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateRevocationListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateRevocationListRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateRevocationListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCertificateRevocationListRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,9 +1346,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest getDefaultInstanceForType() { + public com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java index 92d737b9..d539a069 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/UpdateCertificateRevocationListRequestOrBuilder.java @@ -1,67 +1,112 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/service.proto package com.google.cloud.security.privateca.v1beta1; -public interface UpdateCertificateRevocationListRequestOrBuilder extends +public interface UpdateCertificateRevocationListRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the certificateRevocationList field is set. */ boolean hasCertificateRevocationList(); /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The certificateRevocationList. */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationList getCertificateRevocationList(); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationList + getCertificateRevocationList(); /** + * + * *
    * Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.
    * 
* - * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.CertificateRevocationList certificate_revocation_list = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder getCertificateRevocationListOrBuilder(); + com.google.cloud.security.privateca.v1beta1.CertificateRevocationListOrBuilder + getCertificateRevocationListOrBuilder(); /** + * + * *
    * Required. A 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. A 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. A 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(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -77,10 +122,13 @@ public interface UpdateCertificateRevocationListRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An ID to identify requests. Specify a unique request ID so that if you must
    * retry your request, the server will know to ignore the request if it has
@@ -96,8 +144,8 @@ public interface UpdateCertificateRevocationListRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java index b902dc0f..1aaa6acf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509Extension.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; /** + * + * *
  * An [X509Extension][google.cloud.security.privateca.v1beta1.X509Extension] specifies an X.509 extension, which may be used in
  * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.security.privateca.v1beta1.X509Extension}
  */
-public final class X509Extension extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class X509Extension extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.X509Extension)
     X509ExtensionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use X509Extension.newBuilder() to construct.
   private X509Extension(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private X509Extension() {
     value_ = 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 X509Extension();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private X509Extension(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,36 +71,40 @@ private X509Extension(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder subBuilder = null;
-            if (objectId_ != null) {
-              subBuilder = objectId_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.security.privateca.v1beta1.ObjectId.Builder subBuilder = null;
+              if (objectId_ != null) {
+                subBuilder = objectId_.toBuilder();
+              }
+              objectId_ =
+                  input.readMessage(
+                      com.google.cloud.security.privateca.v1beta1.ObjectId.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(objectId_);
+                objectId_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            objectId_ = input.readMessage(com.google.cloud.security.privateca.v1beta1.ObjectId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(objectId_);
-              objectId_ = subBuilder.buildPartial();
+          case 16:
+            {
+              critical_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 16: {
-
-            critical_ = input.readBool();
-            break;
-          }
-          case 26: {
-
-            value_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              value_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,34 +112,41 @@ private X509Extension(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
+    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+        .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.security.privateca.v1beta1.X509Extension.class, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
+            com.google.cloud.security.privateca.v1beta1.X509Extension.class,
+            com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
   }
 
   public static final int OBJECT_ID_FIELD_NUMBER = 1;
   private com.google.cloud.security.privateca.v1beta1.ObjectId objectId_;
   /**
+   *
+   *
    * 
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the objectId field is set. */ @java.lang.Override @@ -126,23 +154,34 @@ public boolean hasObjectId() { return objectId_ != null; } /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The objectId. */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId() { - return objectId_ == null ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() : objectId_; + return objectId_ == null + ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() + : objectId_; } /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder() { @@ -152,6 +191,8 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectId public static final int CRITICAL_FIELD_NUMBER = 2; private boolean critical_; /** + * + * *
    * Required. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -159,6 +200,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectId
    * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The critical. */ @java.lang.Override @@ -169,11 +211,14 @@ public boolean getCritical() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** + * + * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -182,6 +227,7 @@ public com.google.protobuf.ByteString getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +239,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (objectId_ != null) { output.writeMessage(1, getObjectId()); } @@ -214,16 +259,13 @@ public int getSerializedSize() { size = 0; if (objectId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObjectId()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObjectId()); } if (critical_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, critical_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, critical_); } if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, value_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +275,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.security.privateca.v1beta1.X509Extension)) { return super.equals(obj); } - com.google.cloud.security.privateca.v1beta1.X509Extension other = (com.google.cloud.security.privateca.v1beta1.X509Extension) obj; + com.google.cloud.security.privateca.v1beta1.X509Extension other = + (com.google.cloud.security.privateca.v1beta1.X509Extension) obj; if (hasObjectId() != other.hasObjectId()) return false; if (hasObjectId()) { - if (!getObjectId() - .equals(other.getObjectId())) return false; + if (!getObjectId().equals(other.getObjectId())) return false; } - if (getCritical() - != other.getCritical()) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (getCritical() != other.getCritical()) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,8 +305,7 @@ public int hashCode() { hash = (53 * hash) + getObjectId().hashCode(); } hash = (37 * hash) + CRITICAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCritical()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCritical()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -275,96 +314,104 @@ public int hashCode() { } public static com.google.cloud.security.privateca.v1beta1.X509Extension 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.security.privateca.v1beta1.X509Extension parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.security.privateca.v1beta1.X509Extension parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.security.privateca.v1beta1.X509Extension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.security.privateca.v1beta1.X509Extension prototype) { + + public static Builder newBuilder( + com.google.cloud.security.privateca.v1beta1.X509Extension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [X509Extension][google.cloud.security.privateca.v1beta1.X509Extension] specifies an X.509 extension, which may be used in
    * different parts of X.509 objects like certificates, CSRs, and CRLs.
@@ -372,21 +419,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.security.privateca.v1beta1.X509Extension}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.X509Extension)
       com.google.cloud.security.privateca.v1beta1.X509ExtensionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.security.privateca.v1beta1.X509Extension.class, com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
+              com.google.cloud.security.privateca.v1beta1.X509Extension.class,
+              com.google.cloud.security.privateca.v1beta1.X509Extension.Builder.class);
     }
 
     // Construct using com.google.cloud.security.privateca.v1beta1.X509Extension.newBuilder()
@@ -394,16 +443,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -421,9 +469,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto.internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
+          .internal_static_google_cloud_security_privateca_v1beta1_X509Extension_descriptor;
     }
 
     @java.lang.Override
@@ -442,7 +490,8 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension build() {
 
     @java.lang.Override
     public com.google.cloud.security.privateca.v1beta1.X509Extension buildPartial() {
-      com.google.cloud.security.privateca.v1beta1.X509Extension result = new com.google.cloud.security.privateca.v1beta1.X509Extension(this);
+      com.google.cloud.security.privateca.v1beta1.X509Extension result =
+          new com.google.cloud.security.privateca.v1beta1.X509Extension(this);
       if (objectIdBuilder_ == null) {
         result.objectId_ = objectId_;
       } else {
@@ -458,38 +507,39 @@ public com.google.cloud.security.privateca.v1beta1.X509Extension buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.security.privateca.v1beta1.X509Extension) {
-        return mergeFrom((com.google.cloud.security.privateca.v1beta1.X509Extension)other);
+        return mergeFrom((com.google.cloud.security.privateca.v1beta1.X509Extension) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -497,7 +547,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.X509Extension other) {
-      if (other == com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance()) return this;
+      if (other == com.google.cloud.security.privateca.v1beta1.X509Extension.getDefaultInstance())
+        return this;
       if (other.hasObjectId()) {
         mergeObjectId(other.getObjectId());
       }
@@ -526,7 +577,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.security.privateca.v1beta1.X509Extension) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.security.privateca.v1beta1.X509Extension) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -538,39 +590,58 @@ public Builder mergeFrom(
 
     private com.google.cloud.security.privateca.v1beta1.ObjectId objectId_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> objectIdBuilder_;
+            com.google.cloud.security.privateca.v1beta1.ObjectId,
+            com.google.cloud.security.privateca.v1beta1.ObjectId.Builder,
+            com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>
+        objectIdBuilder_;
     /**
+     *
+     *
      * 
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the objectId field is set. */ public boolean hasObjectId() { return objectIdBuilder_ != null || objectId_ != null; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The objectId. */ public com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId() { if (objectIdBuilder_ == null) { - return objectId_ == null ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() : objectId_; + return objectId_ == null + ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() + : objectId_; } else { return objectIdBuilder_.getMessage(); } } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setObjectId(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (objectIdBuilder_ == null) { @@ -586,11 +657,15 @@ public Builder setObjectId(com.google.cloud.security.privateca.v1beta1.ObjectId return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setObjectId( com.google.cloud.security.privateca.v1beta1.ObjectId.Builder builderForValue) { @@ -604,17 +679,23 @@ public Builder setObjectId( return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeObjectId(com.google.cloud.security.privateca.v1beta1.ObjectId value) { if (objectIdBuilder_ == null) { if (objectId_ != null) { objectId_ = - com.google.cloud.security.privateca.v1beta1.ObjectId.newBuilder(objectId_).mergeFrom(value).buildPartial(); + com.google.cloud.security.privateca.v1beta1.ObjectId.newBuilder(objectId_) + .mergeFrom(value) + .buildPartial(); } else { objectId_ = value; } @@ -626,11 +707,15 @@ public Builder mergeObjectId(com.google.cloud.security.privateca.v1beta1.ObjectI return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearObjectId() { if (objectIdBuilder_ == null) { @@ -644,55 +729,73 @@ public Builder clearObjectId() { return this; } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectId.Builder getObjectIdBuilder() { - + onChanged(); return getObjectIdFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder() { if (objectIdBuilder_ != null) { return objectIdBuilder_.getMessageOrBuilder(); } else { - return objectId_ == null ? - com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() : objectId_; + return objectId_ == null + ? com.google.cloud.security.privateca.v1beta1.ObjectId.getDefaultInstance() + : objectId_; } } /** + * + * *
      * Required. The OID for this X.509 extension.
      * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder> getObjectIdFieldBuilder() { if (objectIdBuilder_ == null) { - objectIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.security.privateca.v1beta1.ObjectId, com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( - getObjectId(), - getParentForChildren(), - isClean()); + objectIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1beta1.ObjectId, + com.google.cloud.security.privateca.v1beta1.ObjectId.Builder, + com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder>( + getObjectId(), getParentForChildren(), isClean()); objectId_ = null; } return objectIdBuilder_; } - private boolean critical_ ; + private boolean critical_; /** + * + * *
      * Required. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -700,6 +803,7 @@ public com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectId
      * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The critical. */ @java.lang.Override @@ -707,6 +811,8 @@ public boolean getCritical() { return critical_; } /** + * + * *
      * Required. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -714,16 +820,19 @@ public boolean getCritical() {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The critical to set. * @return This builder for chaining. */ public Builder setCritical(boolean value) { - + critical_ = value; onChanged(); return this; } /** + * + * *
      * Required. Indicates whether or not this extension is critical (i.e., if the client
      * does not know how to handle this extension, the client should consider this
@@ -731,10 +840,11 @@ public Builder setCritical(boolean value) {
      * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCritical() { - + critical_ = false; onChanged(); return this; @@ -742,11 +852,14 @@ public Builder clearCritical() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -754,40 +867,46 @@ public com.google.protobuf.ByteString getValue() { return value_; } /** + * + * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * Required. The value of this X.509 extension.
      * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } + @java.lang.Override - 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 +916,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.security.privateca.v1beta1.X509Extension) } // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.X509Extension) private static final com.google.cloud.security.privateca.v1beta1.X509Extension DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.X509Extension(); } @@ -811,16 +930,16 @@ public static com.google.cloud.security.privateca.v1beta1.X509Extension getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509Extension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509Extension(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509Extension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509Extension(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,6 +954,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.security.privateca.v1beta1.X509Extension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java rename to proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java index d642584b..2453b823 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java +++ b/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/X509ExtensionOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/security/privateca/v1beta1/resources.proto package com.google.cloud.security.privateca.v1beta1; -public interface X509ExtensionOrBuilder extends +public interface X509ExtensionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1beta1.X509Extension) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the objectId field is set. */ boolean hasObjectId(); /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The objectId. */ com.google.cloud.security.privateca.v1beta1.ObjectId getObjectId(); /** + * + * *
    * Required. The OID for this X.509 extension.
    * 
* - * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.security.privateca.v1beta1.ObjectId object_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.security.privateca.v1beta1.ObjectIdOrBuilder getObjectIdOrBuilder(); /** + * + * *
    * Required. Indicates whether or not this extension is critical (i.e., if the client
    * does not know how to handle this extension, the client should consider this
@@ -42,16 +74,20 @@ public interface X509ExtensionOrBuilder extends
    * 
* * bool critical = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The critical. */ boolean getCritical(); /** + * + * *
    * Required. The value of this X.509 extension.
    * 
* * bytes value = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ com.google.protobuf.ByteString getValue(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto b/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto rename to proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/resources.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto b/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto rename to proto-google-cloud-security-private-ca-v1beta1/src/main/proto/google/cloud/security/privateca/v1beta1/service.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java index b8736aea..c3029ae4 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java index f14b28c3..4399dbb2 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1.CertificateAuthority; @@ -55,4 +56,5 @@ public static void asyncActivateCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java index b3c4856b..d379d219 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] import com.google.cloud.security.privateca.v1.ActivateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java index 061a1330..328acce4 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncActivateCertificateAuthorityCertificateauthorityname() th } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java index c1a97943..7536c82b 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncActivateCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java index 9a2a8eef..a008a5f9 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java index 7b33cb52..f4813f89 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); } } -// [END privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/AsyncCreateCaPoolLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java index a34bd29c..7dce811c 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolLocationnameCapoolString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_locationnamecapoolstring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcapool_locationnamecapoolstring_sync] import com.google.cloud.security.privateca.v1.CaPool; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.LocationName; @@ -40,4 +41,5 @@ public static void syncCreateCaPoolLocationnameCapoolString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_locationnamecapoolstring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcapool_locationnamecapoolstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java index 3df4df4d..ecc4ab39 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcapool/SyncCreateCaPoolStringCapoolString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcapool_stringcapoolstring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcapool_stringcapoolstring_sync] import com.google.cloud.security.privateca.v1.CaPool; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.LocationName; @@ -40,4 +41,5 @@ public static void syncCreateCaPoolStringCapoolString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcapool_stringcapoolstring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcapool_stringcapoolstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java index 7a0cd3a2..7f54aefd 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCapoolnameCertificateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificate_capoolnamecertificatestring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificate_capoolnamecertificatestring_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.Certificate; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncCreateCertificateCapoolnameCertificateString() throws Exc } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificate_capoolnamecertificatestring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificate_capoolnamecertificatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java index b31a5c7c..ae1d4fd7 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.Certificate; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncCreateCertificateStringCertificateString() throws Excepti } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java index ec63f520..1cc6b5c5 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthority; @@ -51,4 +52,5 @@ public static void asyncCreateCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java index 856a3b99..9ceb6039 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityCapoolnameCertificateauthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_capoolnamecertificateauthoritystring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_capoolnamecertificateauthoritystring_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -43,4 +44,5 @@ public static void syncCreateCertificateAuthorityCapoolnameCertificateauthorityS } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_capoolnamecertificateauthoritystring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_capoolnamecertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java index abfc3a2a..90dba41b 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -43,4 +44,5 @@ public static void syncCreateCertificateAuthorityStringCertificateauthorityStrin } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java index 31c3c587..a1176e88 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/AsyncCreateCertificateTemplateLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; @@ -51,4 +52,5 @@ public static void asyncCreateCertificateTemplateLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java index 077bb168..d1c77050 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateLocationnameCertificatetemplateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_locationnamecertificatetemplatestring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_locationnamecertificatetemplatestring_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.LocationName; @@ -43,4 +44,5 @@ public static void syncCreateCertificateTemplateLocationnameCertificatetemplateS } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_locationnamecertificatetemplatestring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_locationnamecertificatetemplatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java index eaab47ed..3265436f 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/createcertificatetemplate/SyncCreateCertificateTemplateStringCertificatetemplateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_stringcertificatetemplatestring_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_stringcertificatetemplatestring_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.LocationName; @@ -43,4 +44,5 @@ public static void syncCreateCertificateTemplateStringCertificatetemplateString( } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_stringcertificatetemplatestring_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_createcertificatetemplate_stringcertificatetemplatestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/AsyncDeleteCaPoolLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java similarity index 98% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java index b9dfde2b..ff167c4a 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPool.java @@ -20,7 +20,6 @@ import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.DeleteCaPoolRequest; -import com.google.protobuf.Empty; public class SyncDeleteCaPool { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java index 69894e3e..e3b04c31 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolCapoolname.java @@ -19,7 +19,6 @@ // [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_capoolname_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; -import com.google.protobuf.Empty; public class SyncDeleteCaPoolCapoolname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java index cdc2afff..e17c0cef 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecapool/SyncDeleteCaPoolString.java @@ -19,7 +19,6 @@ // [START privateca_v1_generated_certificateauthorityserviceclient_deletecapool_string_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; -import com.google.protobuf.Empty; public class SyncDeleteCaPoolString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java index d55caa70..e1c40fb0 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/AsyncDeleteCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; @@ -54,4 +55,5 @@ public static void asyncDeleteCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java index 17e72944..78e4e706 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncDeleteCertificateAuthorityCertificateauthorityname() thro } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java index b81841bf..b87c3785 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificateauthority/SyncDeleteCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncDeleteCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java index 283ee04c..3a4f46f1 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/AsyncDeleteCertificateTemplateLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplateName; @@ -51,4 +52,5 @@ public static void asyncDeleteCertificateTemplateLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java similarity index 98% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java index 1d7a7652..8847f70d 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplate.java @@ -20,7 +20,6 @@ import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplateName; import com.google.cloud.security.privateca.v1.DeleteCertificateTemplateRequest; -import com.google.protobuf.Empty; public class SyncDeleteCertificateTemplate { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java similarity index 85% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java index 984d7649..b901bf37 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateCertificatetemplatename.java @@ -16,10 +16,10 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_certificatetemplatename_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_certificatetemplatename_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplateName; -import com.google.protobuf.Empty; public class SyncDeleteCertificateTemplateCertificatetemplatename { @@ -38,4 +38,5 @@ public static void syncDeleteCertificateTemplateCertificatetemplatename() throws } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_certificatetemplatename_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_certificatetemplatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java similarity index 86% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java index 7a166229..01e903b1 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/deletecertificatetemplate/SyncDeleteCertificateTemplateString.java @@ -16,10 +16,10 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplateName; -import com.google.protobuf.Empty; public class SyncDeleteCertificateTemplateString { @@ -39,4 +39,5 @@ public static void syncDeleteCertificateTemplateString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_deletecertificatetemplate_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java index cac22abe..1a2c3672 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java index e27ba3ad..c8367abd 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; @@ -52,4 +53,5 @@ public static void asyncDisableCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java index f4cabf39..c8742803 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncDisableCertificateAuthorityCertificateauthorityname() thr } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java index b5d6e93d..ed6cf559 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncDisableCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java index 10f10801..8cde51ed 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; @@ -52,4 +53,5 @@ public static void asyncEnableCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java index d532ba67..6ee25eda 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncEnableCertificateAuthorityCertificateauthorityname() thro } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java index 2a85d15a..57d613bd 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncEnableCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/AsyncFetchCaCerts.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCerts.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsCapoolname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcacerts/SyncFetchCaCertsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java index 19498500..d3403937 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java index a0d81e54..1fece087 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrRequest; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java index 7faaa527..f828f7e5 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; @@ -40,4 +41,5 @@ public static void syncFetchCertificateAuthorityCsrCertificateauthorityname() th } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java index c350ca78..90c1de67 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse; @@ -41,4 +42,5 @@ public static void syncFetchCertificateAuthorityCsrString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/AsyncGetCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolCapoolname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcapool/SyncGetCaPoolString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java index 37edadcc..311f7bdb 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] import com.google.cloud.security.privateca.v1.Certificate; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateName; @@ -38,4 +39,5 @@ public static void syncGetCertificateCertificatename() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java index a3fca5b2..fbe012e4 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncGetCertificateAuthorityCertificateauthorityname() throws } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java index aaacffbf..6603d9bf 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncGetCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java index 554cfc83..148dd40c 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java index 0148b870..6f6dcb9e 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; import com.google.cloud.security.privateca.v1.CertificateRevocationListName; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java index 3799d156..5f7dcd27 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; import com.google.cloud.security.privateca.v1.CertificateRevocationListName; @@ -45,4 +46,5 @@ public static void syncGetCertificateRevocationListCertificaterevocationlistname } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java similarity index 89% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java index e9581c24..d0bc0aae 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; import com.google.cloud.security.privateca.v1.CertificateRevocationListName; @@ -45,4 +46,5 @@ public static void syncGetCertificateRevocationListString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/AsyncGetCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java index ca66ba35..54c81202 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateCertificatetemplatename.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_certificatetemplatename_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_certificatetemplatename_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.CertificateTemplateName; @@ -38,4 +39,5 @@ public static void syncGetCertificateTemplateCertificatetemplatename() throws Ex } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_certificatetemplatename_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_certificatetemplatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java index 89c87acb..6567e79a 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getcertificatetemplate/SyncGetCertificateTemplateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_getcertificatetemplate_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.CertificateTemplateName; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPools.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/AsyncListCaPoolsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPools.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcapools/SyncListCaPoolsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java similarity index 92% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java index f990c670..1cc08edd 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -59,4 +60,5 @@ public static void asyncListCertificateAuthoritiesPaged() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java index 86bcbd62..73228f11 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesCapoolname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_capoolname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_capoolname_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncListCertificateAuthoritiesCapoolname() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_capoolname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_capoolname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java index 2d3874a1..3c148d66 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] import com.google.cloud.security.privateca.v1.CaPoolName; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncListCertificateAuthoritiesString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java index 87b97af8..c57a5938 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -56,4 +57,5 @@ public static void asyncListCertificateRevocationLists() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java similarity index 92% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java index 3ef39b14..9281a3d4 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; @@ -64,4 +65,5 @@ public static void asyncListCertificateRevocationListsPaged() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java index 4dbbbb32..40473b4e 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; @@ -51,4 +52,5 @@ public static void syncListCertificateRevocationLists() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java index 4addaad6..0597ac11 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; @@ -42,4 +43,5 @@ public static void syncListCertificateRevocationListsCertificateauthorityname() } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java index b62de363..405b7e98 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; @@ -43,4 +44,5 @@ public static void syncListCertificateRevocationListsString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCapoolname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplates.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java similarity index 92% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java index 5f317524..7ab65371 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/AsyncListCertificateTemplatesPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_paged_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_paged_async] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.ListCertificateTemplatesRequest; @@ -59,4 +60,5 @@ public static void asyncListCertificateTemplatesPaged() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_paged_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplates.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java index 7cc886a9..1ad99a4c 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesLocationname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_locationname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_locationname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.LocationName; @@ -40,4 +41,5 @@ public static void syncListCertificateTemplatesLocationname() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_locationname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java index 373ed421..0cb124a2 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listcertificatetemplates/SyncListCertificateTemplatesString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.cloud.security.privateca.v1.LocationName; @@ -40,4 +41,5 @@ public static void syncListCertificateTemplatesString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_listcertificatetemplates_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java index 4aa40ef0..1e061da2 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] import com.google.cloud.security.privateca.v1.Certificate; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateName; @@ -38,4 +39,5 @@ public static void syncRevokeCertificateCertificatename() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java index 08ebaca7..74d7fc4c 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java index d204393c..36790da6 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/AsyncUndeleteCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; @@ -52,4 +53,5 @@ public static void asyncUndeleteCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java similarity index 95% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java index b291a19b..098ab5ce 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java index a7509f56..ab2fd9f8 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncUndeleteCertificateAuthorityCertificateauthorityname() th } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java index c912a936..7ab50e2f 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/undeletecertificateauthority/SyncUndeleteCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_string_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncUndeleteCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_string_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_undeletecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/AsyncUpdateCaPoolLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPool.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java index 80b63400..3ce6a441 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecapool/SyncUpdateCaPoolCapoolFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecapool_capoolfieldmask_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecapool_capoolfieldmask_sync] import com.google.cloud.security.privateca.v1.CaPool; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.protobuf.FieldMask; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java index 00b376bd..8edbfe11 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] import com.google.cloud.security.privateca.v1.Certificate; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.protobuf.FieldMask; @@ -39,4 +40,5 @@ public static void syncUpdateCertificateCertificateFieldmask() throws Exception } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java index 4037a350..40dc20f5 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java index e3ccceae..9302e2ad 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] import com.google.cloud.security.privateca.v1.CertificateAuthority; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.protobuf.FieldMask; @@ -42,4 +43,5 @@ public static void syncUpdateCertificateAuthorityCertificateauthorityFieldmask() } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java similarity index 90% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java index 1bd9584c..e7157f15 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateRevocationList() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java similarity index 90% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java index 37c624c2..26938466 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateRevocationListLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java similarity index 90% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java index 4a947e57..ebadcc6f 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; import com.google.cloud.security.privateca.v1.UpdateCertificateRevocationListRequest; @@ -44,4 +45,5 @@ public static void syncUpdateCertificateRevocationList() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java similarity index 86% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java index 1b170cd2..16174a37 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateRevocationList; import com.google.protobuf.FieldMask; @@ -43,4 +44,5 @@ public static void syncUpdateCertificateRevocationListCertificaterevocationlistF } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java similarity index 91% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java index 0d1e3663..e5575766 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/AsyncUpdateCertificateTemplateLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_lro_async] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateTemplateLRO() throws Exception { } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_lro_async] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java similarity index 87% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java index 645dd623..17fe3f9b 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityserviceclient/updatecertificatetemplate/SyncUpdateCertificateTemplateCertificatetemplateFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1.samples; -// [START privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_certificatetemplatefieldmask_sync] +// [START +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_certificatetemplatefieldmask_sync] import com.google.cloud.security.privateca.v1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1.CertificateTemplate; import com.google.protobuf.FieldMask; @@ -41,4 +42,5 @@ public static void syncUpdateCertificateTemplateCertificatetemplateFieldmask() t } } } -// [END privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_certificatetemplatefieldmask_sync] +// [END +// privateca_v1_generated_certificateauthorityserviceclient_updatecertificatetemplate_certificatetemplatefieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java index d413eb3d..8cb8e902 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; @@ -53,4 +54,5 @@ public static void asyncActivateCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java index fcaf0c08..8cd87ea4 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/AsyncActivateCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; @@ -54,4 +55,5 @@ public static void asyncActivateCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java index ad27130c..a01fc3ad 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.ActivateCertificateAuthorityRequest; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; @@ -48,4 +49,5 @@ public static void syncActivateCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java index 800cff8c..5b5d5b4f 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -39,4 +40,5 @@ public static void syncActivateCertificateAuthorityCertificateauthorityname() th } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java index a11cbf9b..702dd8d8 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/activatecertificateauthority/SyncActivateCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncActivateCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_activatecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java index affddf89..6b2cf30c 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java index 61727bf3..615e5535 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { CertificateAuthorityServiceClient.create(certificateAuthorityServiceSettings); } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/AsyncCreateCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java index 3653c95c..0b0c43e3 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateCertificateauthoritynameCertificateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_certificateauthoritynamecertificatestring_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_certificateauthoritynamecertificatestring_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -42,4 +43,5 @@ public static void syncCreateCertificateCertificateauthoritynameCertificateStrin } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_certificateauthoritynamecertificatestring_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_certificateauthoritynamecertificatestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java index e385b1b2..9b1d0bf7 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificate/SyncCreateCertificateStringCertificateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -42,4 +43,5 @@ public static void syncCreateCertificateStringCertificateString() throws Excepti } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificate_stringcertificatestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java index b9c9c8c9..0dbcd149 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -51,4 +52,5 @@ public static void asyncCreateCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java index 19f97bdd..c8aa81c6 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/AsyncCreateCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -51,4 +52,5 @@ public static void asyncCreateCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java index 8c795df7..918590f1 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CreateCertificateAuthorityRequest; @@ -45,4 +46,5 @@ public static void syncCreateCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java index 9c0965d6..b4aaf559 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityLocationnameCertificateauthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_locationnamecertificateauthoritystring_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_locationnamecertificateauthoritystring_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.LocationName; @@ -43,4 +44,5 @@ public static void syncCreateCertificateAuthorityLocationnameCertificateauthorit } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_locationnamecertificateauthoritystring_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_locationnamecertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java index d84198af..8cb9b1b5 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/createcertificateauthority/SyncCreateCertificateAuthorityStringCertificateauthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.LocationName; @@ -43,4 +44,5 @@ public static void syncCreateCertificateAuthorityStringCertificateauthorityStrin } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_createcertificateauthority_stringcertificateauthoritystring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java index e34372bf..58bb2953 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncDisableCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java index 02415b24..7e7eeaf2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/AsyncDisableCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; @@ -51,4 +52,5 @@ public static void asyncDisableCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java index b84c2a8a..46553fa7 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -45,4 +46,5 @@ public static void syncDisableCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java index 4607b41c..5b05caf5 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -39,4 +40,5 @@ public static void syncDisableCertificateAuthorityCertificateauthorityname() thr } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java index 6b29c850..100595fa 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/disablecertificateauthority/SyncDisableCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncDisableCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_disablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java index c0cd717b..c2db684c 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncEnableCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java index eb63a740..3ddf630c 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/AsyncEnableCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; @@ -51,4 +52,5 @@ public static void asyncEnableCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java index 8a9d3418..6600ba56 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -45,4 +46,5 @@ public static void syncEnableCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java index a183faf1..04148109 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -39,4 +40,5 @@ public static void syncEnableCertificateAuthorityCertificateauthorityname() thro } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java index 476db15a..8a1c449a 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/enablecertificateauthority/SyncEnableCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncEnableCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_enablecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java index 8ac459ee..4736bfad 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/AsyncFetchCertificateAuthorityCsr.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -49,4 +50,5 @@ public static void asyncFetchCertificateAuthorityCsr() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java similarity index 89% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java index f387da51..36a4662e 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsr.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrRequest; @@ -44,4 +45,5 @@ public static void syncFetchCertificateAuthorityCsr() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java index a8efa696..e6fa7283 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; @@ -39,4 +40,5 @@ public static void syncFetchCertificateAuthorityCsrCertificateauthorityname() th } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java index 17c59eef..253b4f60 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/fetchcertificateauthoritycsr/SyncFetchCertificateAuthorityCsrString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse; @@ -40,4 +41,5 @@ public static void syncFetchCertificateAuthorityCsrString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_fetchcertificateauthoritycsr_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/AsyncGetCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java index 1635f4b2..52b6da92 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateCertificatename.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateName; @@ -38,4 +39,5 @@ public static void syncGetCertificateCertificatename() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificate_certificatename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificate/SyncGetCertificateString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java similarity index 95% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java index 62bfe44d..1cca2bef 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/AsyncGetCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java index a7b40b43..87cd05f6 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java index ea2eb48c..bf0fd7b3 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -39,4 +40,5 @@ public static void syncGetCertificateAuthorityCertificateauthorityname() throws } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java index 3af97e9b..e2d7e111 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificateauthority/SyncGetCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncGetCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java index 4d112612..6a589c3d 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/AsyncGetCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -53,4 +54,5 @@ public static void asyncGetCertificateRevocationList() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java index 76185c35..3008b317 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; @@ -48,4 +49,5 @@ public static void syncGetCertificateRevocationList() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java index c254816f..9ee58555 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListCertificaterevocationlistname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; @@ -44,4 +45,5 @@ public static void syncGetCertificateRevocationListCertificaterevocationlistname } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_certificaterevocationlistname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java index 607560c7..36b52d39 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getcertificaterevocationlist/SyncGetCertificateRevocationListString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationListName; @@ -44,4 +45,5 @@ public static void syncGetCertificateRevocationListString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getcertificaterevocationlist_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/AsyncGetReusableConfig.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfig.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java index bfd4726e..4e97c3cf 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigReusableconfigname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_reusableconfigname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_reusableconfigname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.ReusableConfig; import com.google.cloud.security.privateca.v1beta1.ReusableConfigName; @@ -38,4 +39,5 @@ public static void syncGetReusableConfigReusableconfigname() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_reusableconfigname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_reusableconfigname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java index bc19c5d5..bfc42ee2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/getreusableconfig/SyncGetReusableConfigString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_getreusableconfig_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.ReusableConfig; import com.google.cloud.security.privateca.v1beta1.ReusableConfigName; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java index 4e18f5d5..432d0a3d 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthorities.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -53,4 +54,5 @@ public static void asyncListCertificateAuthorities() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java index ddef0837..0b511366 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/AsyncListCertificateAuthoritiesPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; @@ -59,4 +60,5 @@ public static void asyncListCertificateAuthoritiesPaged() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java index 673bec9e..5dbc8560 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthorities.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesRequest; @@ -48,4 +49,5 @@ public static void syncListCertificateAuthorities() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java index 58ec7522..f5b658df 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesLocationname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_locationname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_locationname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.LocationName; @@ -40,4 +41,5 @@ public static void syncListCertificateAuthoritiesLocationname() throws Exception } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_locationname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_locationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java index 7863aac9..33386f35 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificateauthorities/SyncListCertificateAuthoritiesString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.LocationName; @@ -40,4 +41,5 @@ public static void syncListCertificateAuthoritiesString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificateauthorities_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java index 2fce12a0..9ea40437 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationLists.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -55,4 +56,5 @@ public static void asyncListCertificateRevocationLists() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java similarity index 92% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java index ae72e57b..3db0e47a 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/AsyncListCertificateRevocationListsPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -63,4 +64,5 @@ public static void asyncListCertificateRevocationListsPaged() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java index 07534e19..b8103098 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationLists.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -50,4 +51,5 @@ public static void syncListCertificateRevocationLists() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java index 52a59481..fdfd9397 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -41,4 +42,5 @@ public static void syncListCertificateRevocationListsCertificateauthorityname() } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java index 303844e6..ea74e479 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificaterevocationlists/SyncListCertificateRevocationListsString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -42,4 +43,5 @@ public static void syncListCertificateRevocationListsString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificaterevocationlists_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificates.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java similarity index 96% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java index db98a843..ef4b2cde 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/AsyncListCertificatesPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_paged_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_paged_async] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificates.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java index c7633f14..05f30dc2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -41,4 +42,5 @@ public static void syncListCertificatesCertificateauthorityname() throws Excepti } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java index c60c473f..98b42102 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listcertificates/SyncListCertificatesString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listcertificates_string_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigs.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java similarity index 92% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java index ea888cab..200677eb 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/AsyncListReusableConfigsPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_paged_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_paged_async] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsRequest; import com.google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse; @@ -59,4 +60,5 @@ public static void asyncListReusableConfigsPaged() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_paged_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigs.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java index b75a62c2..8b087919 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsLocationname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_locationname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_locationname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.LocationName; import com.google.cloud.security.privateca.v1beta1.ReusableConfig; @@ -40,4 +41,5 @@ public static void syncListReusableConfigsLocationname() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_locationname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_locationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java index 139d9a90..7f131856 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/listreusableconfigs/SyncListReusableConfigsString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.LocationName; import com.google.cloud.security.privateca.v1beta1.ReusableConfig; @@ -40,4 +41,5 @@ public static void syncListReusableConfigsString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_listreusableconfigs_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java index 798a9b6b..7ac72d38 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncRestoreCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java index 38abfce2..52ff5553 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/AsyncRestoreCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; @@ -51,4 +52,5 @@ public static void asyncRestoreCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java index dde0ac62..17a1f4e8 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -45,4 +46,5 @@ public static void syncRestoreCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java index 3fd35dab..72138019 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -39,4 +40,5 @@ public static void syncRestoreCertificateAuthorityCertificateauthorityname() thr } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java index 127f7625..157efdad 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/restorecertificateauthority/SyncRestoreCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncRestoreCertificateAuthorityString() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_restorecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/AsyncRevokeCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java index 036b4699..05f82ff2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateCertificatename.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateName; @@ -38,4 +39,5 @@ public static void syncRevokeCertificateCertificatename() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_certificatename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java index 38499865..3103a1c0 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/revokecertificate/SyncRevokeCertificateString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_revokecertificate_string_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateName; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java index 029f678b..628609f7 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncScheduleDeleteCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java index 85a1800b..76fac327 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/AsyncScheduleDeleteCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; @@ -51,4 +52,5 @@ public static void asyncScheduleDeleteCertificateAuthorityLRO() throws Exception } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java similarity index 89% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java index 9c67fb48..f0beb36e 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -45,4 +46,5 @@ public static void syncScheduleDeleteCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java index c6aabf7c..5c8d933d 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityCertificateauthorityname.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_certificateauthorityname_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_certificateauthorityname_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncScheduleDeleteCertificateAuthorityCertificateauthoritynam } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_certificateauthorityname_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_certificateauthorityname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java index c88ea83d..ee8f4313 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/scheduledeletecertificateauthority/SyncScheduleDeleteCertificateAuthorityString.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_string_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_string_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityName; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -40,4 +41,5 @@ public static void syncScheduleDeleteCertificateAuthorityString() throws Excepti } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_string_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_scheduledeletecertificateauthority_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/AsyncUpdateCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java index 151887ca..3bbb6694 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] import com.google.cloud.security.privateca.v1beta1.Certificate; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.protobuf.FieldMask; @@ -39,4 +40,5 @@ public static void syncUpdateCertificateCertificateFieldmask() throws Exception } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificate_certificatefieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java index e5f20e66..dcac67c4 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java index 69d690c9..59ab70c4 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/AsyncUpdateCertificateAuthorityLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateAuthorityLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java similarity index 89% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java index 3a1a46dc..b2b66405 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthority.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateAuthorityRequest; @@ -44,4 +45,5 @@ public static void syncUpdateCertificateAuthority() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java index 60535fc3..70b72757 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificateauthority/SyncUpdateCertificateAuthorityCertificateauthorityFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthority; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.protobuf.FieldMask; @@ -42,4 +43,5 @@ public static void syncUpdateCertificateAuthorityCertificateauthorityFieldmask() } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificateauthority_certificateauthorityfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java index 1658bbd4..3f82b3d8 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] import com.google.api.core.ApiFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateRevocationList() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java index 7434744d..e334c2ea 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/AsyncUpdateCertificateRevocationListLRO.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; @@ -50,4 +51,5 @@ public static void asyncUpdateCertificateRevocationListLRO() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java similarity index 89% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java index aa034e51..6ae8a1a3 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationList.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.cloud.security.privateca.v1beta1.UpdateCertificateRevocationListRequest; @@ -44,4 +45,5 @@ public static void syncUpdateCertificateRevocationList() throws Exception { } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java index e920ec01..ade30ded 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityserviceclient/updatecertificaterevocationlist/SyncUpdateCertificateRevocationListCertificaterevocationlistFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.samples; -// [START privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] import com.google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient; import com.google.cloud.security.privateca.v1beta1.CertificateRevocationList; import com.google.protobuf.FieldMask; @@ -43,4 +44,5 @@ public static void syncUpdateCertificateRevocationListCertificaterevocationlistF } } } -// [END privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] +// [END +// privateca_v1beta1_generated_certificateauthorityserviceclient_updatecertificaterevocationlist_certificaterevocationlistfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/certificateauthorityservicesettings/createcertificate/SyncCreateCertificate.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java rename to samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java index 9875fdd5..2f5208af 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java +++ b/samples/snippets/generated/com/google/cloud/security/privateca/v1beta1/stub/certificateauthorityservicestubsettings/createcertificate/SyncCreateCertificate.java @@ -16,7 +16,8 @@ package com.google.cloud.security.privateca.v1beta1.stub.samples; -// [START privateca_v1beta1_generated_certificateauthorityservicestubsettings_createcertificate_sync] +// [START +// privateca_v1beta1_generated_certificateauthorityservicestubsettings_createcertificate_sync] import com.google.cloud.security.privateca.v1beta1.stub.CertificateAuthorityServiceStubSettings; import java.time.Duration; From 7236185f069d69ac63c06a96c207ee651c2d5d3d Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 23 Jun 2022 21:01:26 +0000 Subject: [PATCH 3/3] deps: adding gax-httpjson --- google-cloud-security-private-ca/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-security-private-ca/pom.xml b/google-cloud-security-private-ca/pom.xml index e72d4d76..f26e4455 100644 --- a/google-cloud-security-private-ca/pom.xml +++ b/google-cloud-security-private-ca/pom.xml @@ -74,6 +74,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -98,12 +102,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test +